[data-page="golf-coins"] {
  display: block;
  min-height: 100vh;
}

.coins-page {
  min-height: 100vh;
  padding-bottom: max(6rem, env(safe-area-inset-bottom));
  color: #fff;
  background: #0a0f0a;
}

.coins-page--loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  color: #9ca3af;
}

.coins-page--loading .ps-spinner {
  width: 2.5rem;
  height: 2.5rem;
  color: #f59e0b;
}

.coins-page button,
.coins-page input {
  color: inherit;
}

.coins-hero {
  padding: 1rem 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.3), #0a0f0a);
}

.coins-hero > header {
  width: min(42rem, 100%);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
}

.coins-hero > header button {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -0.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #9ca3af;
  background: transparent;
}

.coins-hero > header button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.coins-hero > header button .ps-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.coins-hero h1 {
  margin: 0 0 0 0.5rem;
  font-family: Poppins, sans-serif;
  font-size: 1.25rem;
}

.coins-balance-card {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #f59e0b, #ca8a04);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
  text-align: center;
}

.coins-balance-card > span {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(120, 53, 15, 0.72);
}

.coins-balance-card > span .ps-icon {
  width: 2rem;
  height: 2rem;
}

.coins-balance-card > strong {
  display: block;
  font-size: clamp(2.75rem, 13vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.coins-balance-card > small {
  color: #fef3c7;
}

.coins-tabs {
  padding: 0 0.5rem;
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #1f2937;
  scrollbar-width: none;
}

.coins-tabs::-webkit-scrollbar { display: none; }

.coins-tabs button {
  min-width: max-content;
  flex: 1;
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
}

.coins-tabs button:hover { color: #d1d5db; }
.coins-tabs button.is-active { border-bottom-color: #f59e0b; color: #f59e0b; }
.coins-tabs .ps-icon { width: 1rem; height: 1rem; }

.coins-content {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.coins-stack,
.coins-task-list,
.coins-package-list,
.coins-history-list {
  display: grid;
  gap: 0.75rem;
}

.coins-invite-feature {
  width: 100%;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.5), rgba(6, 95, 70, 0.3));
  text-align: left;
  transition: border-color 160ms ease;
}

.coins-invite-feature:hover { border-color: rgba(16, 185, 129, 0.55); }

.coins-feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.coins-feature-icon .ps-icon { width: 1.75rem; height: 1.75rem; }

.coins-feature-copy,
.coins-feature-copy b,
.coins-feature-copy small,
.coins-feature-reward,
.coins-feature-reward b,
.coins-feature-reward small {
  display: block;
}

.coins-feature-copy { min-width: 0; }
.coins-feature-copy b { font-size: 1.0625rem; }
.coins-feature-copy small { color: #9ca3af; }
.coins-feature-copy em {
  margin-left: 0.4rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  color: #064e3b;
  background: #10b981;
  font-size: 0.6875rem;
  font-style: normal;
}
.coins-feature-reward { color: #fbbf24; text-align: right; }
.coins-feature-reward b { font-size: 1.0625rem; }
.coins-feature-reward small { color: #6b7280; }

.coins-section-label {
  margin: 1.25rem 0 0;
  color: #9ca3af;
  font-family: Poppins, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coins-task {
  padding: 1rem;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.5);
}

.coins-task:hover { border-color: #374151; }
.coins-task.is-complete { border-color: rgba(16, 185, 129, 0.3); opacity: 0.6; }

.coins-task__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  color: #34d399;
  background: #1f2937;
}

.coins-task.is-complete .coins-task__icon { color: #10b981; background: rgba(16, 185, 129, 0.2); }
.coins-task__icon .ps-icon { width: 1.5rem; height: 1.5rem; }

.coins-task__copy,
.coins-task__copy b,
.coins-task__copy small,
.coins-task__reward,
.coins-task__reward b {
  display: block;
}

.coins-task__copy { min-width: 0; }
.coins-task__copy small { color: #6b7280; font-size: 0.875rem; }
.coins-task.is-complete .coins-task__copy b { color: #9ca3af; text-decoration: line-through; }
.coins-task__reward { color: #fbbf24; text-align: right; }
.coins-task.is-complete .coins-task__reward { color: #10b981; font-size: 0.875rem; }
.coins-task__reward button { padding: 0; border: 0; color: #34d399; background: transparent; font-size: 0.75rem; }

.coins-buy-intro,
.coins-secure-note {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.3), rgba(30, 64, 175, 0.3));
}

.coins-buy-intro > .ps-icon,
.coins-secure-note > .ps-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.625rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.2);
}

.coins-buy-intro span,
.coins-buy-intro b,
.coins-buy-intro small,
.coins-secure-note span,
.coins-secure-note b,
.coins-secure-note small { display: block; }
.coins-buy-intro small,
.coins-secure-note small { color: #9ca3af; }

.coins-package {
  width: 100%;
  padding: 1rem;
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  color: #fff;
  background: rgba(17, 24, 39, 0.5);
  text-align: left;
}

.coins-package:hover:not(:disabled) { border-color: #374151; }
.coins-package.is-popular { border-color: #f59e0b; }
.coins-package.is-popular:hover:not(:disabled) { border-color: #fbbf24; }

.coins-package__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  color: #9ca3af;
  background: #1f2937;
}

.coins-package.is-popular .coins-package__icon { color: #fbbf24; background: rgba(245, 158, 11, 0.2); }
.coins-package__icon .ps-icon { width: 1.75rem; height: 1.75rem; }

.coins-package__copy,
.coins-package__copy b,
.coins-package__copy small,
.coins-package__price,
.coins-package__price b,
.coins-package__price small { display: block; }
.coins-package__copy small,
.coins-package__price small { color: #6b7280; font-size: 0.75rem; }
.coins-package__copy em {
  margin-left: 0.35rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  color: #78350f;
  background: #f59e0b;
  font-size: 0.6875rem;
  font-style: normal;
}
.coins-package__copy em.is-bonus { color: #34d399; background: rgba(16, 185, 129, 0.2); }
.coins-package__price { text-align: right; }
.coins-package__price b { font-size: 1.0625rem; }

.coins-secure-note {
  margin-top: 0.75rem;
  border-color: transparent;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.3);
}
.coins-secure-note > .ps-icon { color: #9ca3af; background: transparent; padding: 0; width: 1.25rem; height: 1.25rem; }
.coins-secure-note b { color: #d1d5db; font-size: 0.875rem; }
.coins-secure-note small { color: #6b7280; font-size: 0.75rem; }

.coins-use > p { color: #9ca3af; font-size: 0.875rem; }

.coins-use-card {
  padding: 1.25rem;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.5);
}

.coins-use-card--games {
  border-color: rgba(21, 128, 61, 0.5);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.5), rgba(6, 78, 59, 0.3));
}

.coins-use-card header {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.coins-use-card header > span {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #4ade80;
  background: rgba(22, 163, 74, 0.3);
}
.coins-use-card--upgrades header > span { color: #c084fc; background: rgba(147, 51, 234, 0.3); }
.coins-use-card header .ps-icon { width: 1.5rem; height: 1.5rem; }
.coins-use-card h2 { margin: 0; font-family: Poppins, sans-serif; font-size: 1.0625rem; }
.coins-use-card header p { margin: 0; color: #4ade80; font-size: 0.875rem; }
.coins-use-card--upgrades header p { color: #c084fc; }
.coins-use-card > p { color: #d1d5db; font-size: 0.875rem; }

.coins-pills { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.coins-pills span { padding: 0.25rem 0.75rem; border-radius: 999px; color: #86efac; background: rgba(20, 83, 45, 0.5); font-size: 0.75rem; }
.coins-use-card > button { width: 100%; padding: 0.75rem; border: 0; border-radius: 0.75rem; color: #fff; background: #16a34a; font-weight: 600; }
.coins-use-card > button:hover { background: #15803d; }
.coins-use-card ul { margin: 0; padding: 0; display: grid; gap: 0.5rem; color: #9ca3af; font-size: 0.875rem; list-style: none; }
.coins-use-card li::before { content: ''; width: 0.375rem; height: 0.375rem; margin-right: 0.5rem; display: inline-block; border-radius: 999px; background: #a855f7; vertical-align: middle; }

.coins-transaction {
  padding: 1rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.5);
}
.coins-transaction > span { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 999px; }
.coins-transaction.is-credit > span { color: #10b981; background: rgba(16, 185, 129, 0.2); }
.coins-transaction.is-debit > span { color: #f87171; background: rgba(239, 68, 68, 0.2); }
.coins-transaction > span .ps-icon { width: 1.25rem; height: 1.25rem; }
.coins-transaction div b, .coins-transaction div small { display: block; }
.coins-transaction div small { color: #6b7280; font-size: 0.875rem; }
.coins-transaction.is-credit > strong { color: #34d399; }
.coins-transaction.is-debit > strong { color: #f87171; }

.coins-history-empty,
.coins-empty-copy {
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #6b7280;
  text-align: center;
}
.coins-history-empty .ps-icon { width: 3rem; height: 3rem; margin-bottom: 0.75rem; color: #4b5563; }
.coins-history-empty b { color: #9ca3af; }
.coins-history-empty span { font-size: 0.875rem; }

.coins-modal-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}
.coins-modal-backdrop--center { align-items: center; }

.coins-modal {
  width: min(28rem, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 1.5rem 1.5rem 0 0;
  color: #fff;
  background: #111827;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  animation: coins-modal-in 200ms ease-out;
}

.coins-onboarding { overflow: hidden; border-radius: 1.5rem; }
.coins-onboarding > header { padding: 2rem; display: flex; flex-direction: column; align-items: center; background: linear-gradient(135deg, #f59e0b, #ca8a04); text-align: center; }
.coins-onboarding > header > .ps-icon { width: 5rem; height: 5rem; margin-bottom: 1rem; padding: 1.25rem; border-radius: 999px; background: rgba(255,255,255,.2); }
.coins-onboarding h2 { margin: 0 0 0.5rem; font-family: Poppins, sans-serif; font-size: 1.5rem; }
.coins-onboarding header p { margin: 0; color: #fef3c7; }
.coins-onboarding__body { padding: 1.5rem; }
.coins-onboarding-list { margin-bottom: 1.5rem; display: grid; gap: 1rem; }
.coins-onboarding-list > div { display: flex; align-items: flex-start; gap: 0.75rem; }
.coins-onboarding-list > div > span { width: 2rem; height: 2rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; color: #34d399; background: rgba(16,185,129,.2); }
.coins-onboarding-list .ps-icon { width: 1rem; height: 1rem; }
.coins-onboarding-list p, .coins-onboarding-list b, .coins-onboarding-list small { margin: 0; display: block; }
.coins-onboarding-list small { color: #9ca3af; }
.coins-onboarding__body > button { width: 100%; padding: 1rem; border: 0; border-radius: 0.75rem; color: #78350f; background: #f59e0b; font-weight: 700; }

.coins-invite-modal { padding: 1.5rem; }
.coins-invite-modal > header { margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.coins-invite-modal > header h2 { margin: 0; font-family: Poppins, sans-serif; font-size: 1.25rem; }
.coins-invite-modal > header button { width: 2.5rem; height: 2.5rem; padding: 0; display: grid; place-items: center; border: 0; border-radius: 999px; color: #9ca3af; background: transparent; }
.coins-invite-modal > header button:hover { background: #1f2937; }
.coins-invite-modal > header .ps-icon { width: 1.25rem; height: 1.25rem; }
.coins-invite-banner { margin-bottom: 1.5rem; padding: 1rem; display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(16,185,129,.3); border-radius: 0.75rem; background: rgba(6,78,59,.3); }
.coins-invite-banner b { color: #34d399; }
.coins-invite-banner span { color: #9ca3af; font-size: 0.875rem; }
.coins-invite-modal > label { margin-bottom: 1.5rem; display: block; color: #9ca3af; font-size: 0.875rem; }
.coins-invite-modal > label > span { margin-top: 0.5rem; display: flex; gap: 0.5rem; }
.coins-invite-modal input { min-width: 0; flex: 1; padding: 0.75rem 1rem; border: 1px solid #374151; border-radius: 0.5rem; color: #fff; background: #1f2937; }
.coins-invite-modal label button { width: 3.25rem; display: grid; place-items: center; border: 1px solid #374151; border-radius: 0.5rem; color: #9ca3af; background: #1f2937; }
.coins-invite-modal label .ps-icon { width: 1.25rem; height: 1.25rem; }
.coins-share-actions { display: grid; gap: 0.75rem; }
.coins-share-actions > button { width: 100%; padding: 1rem; display: grid; grid-template-columns: 2.5rem 1fr 1.25rem; align-items: center; gap: 1rem; border: 0; border-radius: 0.75rem; color: #fff; background: #1f2937; text-align: left; }
.coins-share-actions > button:hover { background: #374151; }
.coins-share-actions > button > span { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 999px; color: #4ade80; background: rgba(34,197,94,.2); }
.coins-share-actions > button:nth-child(2) > span { color: #60a5fa; background: rgba(59,130,246,.2); }
.coins-share-actions > button:nth-child(3) > span { color: #c084fc; background: rgba(168,85,247,.2); }
.coins-share-actions .ps-icon { width: 1.25rem; height: 1.25rem; }
.coins-share-actions > button > .ps-icon { color: #6b7280; }

@keyframes coins-modal-in { from { opacity: 0; transform: translateY(1.25rem); } }

@media (min-width: 640px) {
  .coins-modal-backdrop { align-items: center; }
  .coins-modal { border-radius: 1.5rem; }
}

@media (max-width: 430px) {
  .coins-invite-feature, .coins-task, .coins-package { gap: 0.75rem; }
  .coins-invite-feature { grid-template-columns: 3rem 1fr auto; padding: 1rem; }
  .coins-feature-icon { width: 3rem; height: 3rem; }
  .coins-feature-copy small { font-size: 0.75rem; }
  .coins-package { grid-template-columns: 3rem 1fr auto; }
  .coins-package__icon { width: 3rem; height: 3rem; }
  .coins-package__copy em { display: block; width: fit-content; margin: 0.25rem 0 0; }
}
