/* ============================================================
   BN Global Education Centre — Main Stylesheet
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --indigo:      #6366f1;
  --indigo-dark: #4f46e5;
  --purple:      #a855f7;
  --purple-dark: #9333ea;
  --amber:       #fbbf24;
  --amber-dark:  #f59e0b;
  --green:       #22c55e;
  --red:         #ef4444;

  --ink:         #0f172a;
  --ink-2:       #1e293b;
  --muted:       #64748b;
  --muted-2:     #94a3b8;

  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --bg-alt:      #f1f5f9;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;

  --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --grad-warm: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 45px -12px rgba(79, 70, 229, .25);

  --container: 1200px;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--indigo-dark); text-decoration: none; }
a:hover { color: var(--purple-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-2); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; }

/* ---------- 3. Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container.narrow { max-width: 820px; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-soft); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.brand-mark { display: grid; place-items: center; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}
.brand-text small {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav > a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
}
.site-nav > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .25s ease;
}
.site-nav > a:hover { color: var(--indigo-dark); }
.site-nav > a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: .75rem;
}

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .3s, opacity .3s;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease,
              background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .7);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(99, 102, 241, .85);
}

.btn-accent {
  background: var(--grad-warm);
  color: #422006;
  box-shadow: 0 8px 20px -8px rgba(251, 191, 36, .75);
}
.btn-accent:hover {
  color: #422006;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(251, 191, 36, .9);
}

.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  color: var(--indigo-dark);
  border-color: var(--indigo);
  transform: translateY(-2px);
  background: #fff;
}

.btn-lg    { padding: .95rem 1.9rem; font-size: .97rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(900px 450px at 88% -5%, rgba(168, 85, 247, .14), transparent 60%),
    radial-gradient(700px 400px at 5% 100%, rgba(99, 102, 241, .12), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.pill {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .22);
  color: var(--indigo-dark);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-2);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}
.hero-stats span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 7. Hero art (abacus card) ---------- */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.abacus-card {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 2;
}
.abacus-top {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: .9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.abacus-top em {
  margin-left: auto;
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red   { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }

.rod {
  position: relative;
  height: 22px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
}
.rod::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: #c7d2fe;
  transform: translateY(-1px);
}
.bead {
  position: absolute;
  top: 50%;
  width: 26px; height: 26px;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.18),
              0 3px 6px rgba(15,23,42,.12);
}
.bead.b1 { background: linear-gradient(160deg, #818cf8, #4f46e5); }
.bead.b2 { background: linear-gradient(160deg, #fbbf24, #f59e0b); }
.bead.b3 { background: linear-gradient(160deg, #34d399, #059669); }
.b1:nth-child(1) { left: 8%; }
.b2:nth-child(2) { left: 42%; }
.b3:nth-child(3) { left: 72%; }
.bead.b2:nth-child(1) { left: 8%; }
.bead.b3:nth-child(2) { left: 42%; }
.bead.b1:nth-child(3) { left: 72%; }
.bead.b3:nth-child(1) { left: 8%; }
.bead.b1:nth-child(2) { left: 42%; }
.bead.b2:nth-child(3) { left: 72%; }

.abacus-foot {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}
.score {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg-alt);
  padding: .35rem .75rem;
  border-radius: 999px;
}

/* Floating emojis */
.float {
  position: absolute;
  font-size: 1.9rem;
  filter: drop-shadow(0 6px 12px rgba(15,23,42,.18));
  animation: floaty 4s ease-in-out infinite;
  z-index: 3;
}
.f1 { top: 4%;  left: 2%;  animation-delay: 0s; }
.f2 { top: 60%; right: 0;  animation-delay: 1.2s; }
.f3 { bottom: 2%; left: 8%; animation-delay: 2.1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

/* ---------- 8. Section head ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo-dark);
  margin-bottom: .5rem;
}

/* ---------- 9. Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card h3 { margin-bottom: .4rem; }
.card p  { margin: 0; color: var(--muted); font-size: .93rem; }

.ico {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.12));
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ---------- 10. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem 1.6rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.steps li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.step-no {
  position: absolute;
  top: -18px; left: 1.5rem;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 8px 18px -6px rgba(99,102,241,.7);
}
.steps h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.steps p  { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- 11. Preview ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.preview-copy h2 { margin-bottom: .75rem; }
.preview-copy p  { color: var(--muted); }

.ticks { display: grid; gap: .65rem; margin: 1.25rem 0 1.75rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  font-size: .95rem;
  color: var(--ink-2);
  font-weight: 500;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  color: #15803d;
  font-size: .75rem;
  font-weight: 800;
}
.ticks.big li { font-size: 1rem; padding-block: .15rem; }

/* Mock browser frame */
.preview-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.frame-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border-2);
}
.frame-bar span:nth-child(1) { background: #ff5f57; }
.frame-bar span:nth-child(2) { background: #febc2e; }
.frame-bar span:nth-child(3) { background: #28c840; }
.frame-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: .76rem;
  color: var(--muted);
  font-weight: 600;
}

.frame-body { padding: 2rem 1.5rem; text-align: center; }

.mock-row {
  display: flex;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.mock-bead {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(160deg, #818cf8, #4f46e5);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.18);
}
.mock-bead.alt { background: linear-gradient(160deg, #fbbf24, #f59e0b); }

.mock-q {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.mock-answers {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.mock-answers span {
  display: grid;
  place-items: center;
  min-width: 64px;
  padding: .6rem 1.1rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 700;
  color: var(--ink-2);
}
.mock-answers .ok {
  border-color: var(--green);
  background: rgba(34,197,94,.1);
  color: #15803d;
}

.mock-progress {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .9rem;
}
.mock-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}
.mock-note {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 12. Pricing ---------- */
.price-wrap { display: grid; place-items: center; }

.price-card {
  position: relative;
  width: min(100%, 460px);
  background: #fff;
  border: 2px solid var(--indigo);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: .35rem 1.1rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  box-shadow: 0 8px 18px -6px rgba(99,102,241,.75);
}
.price-card h3 { margin-bottom: 1rem; font-size: 1.15rem; }

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .15rem;
  font-family: var(--font-display);
  margin-bottom: .25rem;
}
.price .cur { font-size: 1.6rem; font-weight: 700; color: var(--indigo-dark); }
.price .amt { font-size: 3.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price .per { font-size: 1rem; font-weight: 600; color: var(--muted); }

.price-sub {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.price-card .ticks { text-align: left; margin: 0 auto 1.75rem; max-width: 320px; }

.price-foot {
  margin: .85rem 0 0;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 13. FAQ ---------- */
.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .85rem;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq[open] {
  border-color: var(--indigo);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--indigo);
  transition: transform .25s ease;
  line-height: 1;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- 14. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-grid h2 { margin-bottom: .75rem; }
.contact-grid > div > p { color: var(--muted); }

.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.contact-list strong {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contact-list a { font-weight: 600; }

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: .7rem;
}
.contact-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }

/* ---------- 15. Alerts ---------- */
.alert {
  margin: 1rem auto 0;
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid;
}
.alert-error {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .3);
  color: #b91c1c;
}
.alert-success {
  background: rgba(34, 197, 94, .08);
  border-color: rgba(34, 197, 94, .3);
  color: #15803d;
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: var(--muted-2); }

.footer-note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted-2);
  max-width: 34ch;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { display: grid; gap: .6rem; }
.site-footer a {
  color: #cbd5e1;
  font-size: .9rem;
  transition: color .2s;
}
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 1.5rem;
  font-size: .83rem;
  color: var(--muted-2);
}
.footer-bottom p { margin: 0; color: var(--muted-2); }
.footer-links a { color: var(--muted-2); }
.footer-links a:hover { color: #fff; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .preview-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .preview-copy .ticks { text-align: left; max-width: 480px; margin-inline: auto; }
  .contact-list { text-align: left; max-width: 420px; margin-inline: auto; }
  .contact-card { max-width: 420px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-burger { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s ease, opacity .25s ease;
  }
  .nav-toggle:checked ~ .site-nav {
    max-height: 640px;
    opacity: 1;
    pointer-events: auto;
    padding: 1.25rem 1.25rem 1.75rem;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .site-nav > a {
    padding: .85rem .25rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav > a::after { display: none; }

  .nav-cta {
    flex-direction: column;
    margin: 1rem 0 0;
    gap: .6rem;
  }
  .nav-cta .btn { width: 100%; }

  .hero { padding-top: 2.5rem; }
  .float { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .price-card { padding: 2.25rem 1.25rem 1.75rem; }
  .price .amt { font-size: 2.8rem; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 1.75rem, var(--container)); }
  .btn-lg { padding: .85rem 1.4rem; font-size: .9rem; }
  .hero-stats { gap: 1.25rem; }
}

/* ---------- 18. Accessibility ---------- */
:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .55);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   STUDENT DASHBOARD — Premium Redesign
   ============================================================ */

.dash-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
  background:
    radial-gradient(700px 400px at 95% -10%, rgba(168,85,247,.08), transparent 60%),
    radial-gradient(600px 400px at 0% 10%, rgba(99,102,241,.06), transparent 55%),
    #f8fafc;
  min-height: 80vh;
}

/* ---------- HERO BANNER ---------- */
.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
  color: #fff;
  padding: 2.25rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 24px 50px -22px rgba(49,46,129,.55);
}
.dash-hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.55), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.dash-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dash-hero-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}
.dash-avatar {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  color: #1e1b4b;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 12px 28px -10px rgba(251,191,36,.7);
}
.dash-hero-text { min-width: 0; }
.dash-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: .25rem;
}
.dash-hero-text h1 {
  margin: 0 0 .25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.dash-hero-text h1 span {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-hero-text p {
  margin: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  word-break: break-all;
}

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1.5px solid;
}
.dash-status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dash-status-active {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.4);
  color: #86efac;
}
.dash-status-active i {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.3);
  animation: dashPulse 1.8s infinite;
}
.dash-status-expired {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.4);
  color: #fca5a5;
}
.dash-status-expired i { background: #ef4444; }
.dash-status-none {
  background: rgba(148,163,184,.15);
  border-color: rgba(148,163,184,.4);
  color: #cbd5e1;
}
.dash-status-none i { background: #94a3b8; }

@keyframes dashPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.35); }
  50%     { box-shadow: 0 0 0 7px rgba(34,197,94,.1); }
}

/* ---------- STAT CARDS ---------- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.dstat {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.dstat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}
.dstat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(79,70,229,.28);
  border-color: #c7d2fe;
}
.dstat-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.dstat-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
}
.dstat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}
.dstat-value-sm { font-size: 1rem; }
.dstat-foot {
  font-size: .78rem;
  color: #64748b;
  font-weight: 600;
}
.dstat-indigo::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.dstat-indigo .dstat-icon { background: rgba(99,102,241,.1); }
.dstat-blue::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.dstat-blue .dstat-icon { background: rgba(14,165,233,.1); }
.dstat-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dstat-amber .dstat-icon { background: rgba(245,158,11,.12); }
.dstat-green::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.dstat-green .dstat-icon { background: rgba(34,197,94,.12); }
.dstat-green .dstat-value { color: #15803d; }
.dstat-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.dstat-red .dstat-icon { background: rgba(239,68,68,.12); }
.dstat-red .dstat-value { color: #b91c1c; font-size: 1.15rem; }

/* ---------- PLAY CARD ---------- */
.dash-play-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
  box-shadow: 0 24px 50px -22px rgba(99,102,241,.55);
}
.dash-play-card.is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
}
.dash-play-card.is-expired {
  background: linear-gradient(135deg, #b45309 0%, #d97706 60%, #f59e0b 100%);
  box-shadow: 0 24px 50px -22px rgba(217,119,6,.5);
}
.dash-play-glow {
  position: absolute;
  inset: -50% auto auto -10%;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.dash-play-emoji {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 90px; height: 90px;
  flex-shrink: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  font-size: 2.6rem;
  animation: dashFloat 3.5s ease-in-out infinite;
}
@keyframes dashFloat {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%     { transform: translateY(-8px) rotate(3deg); }
}
.dash-play-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}
.dash-play-body h2 {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
}
.dash-play-body p {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  max-width: 55ch;
}
.dash-play-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1rem 1.75rem;
  border-radius: 14px;
  background: #fff;
  color: #4f46e5;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.35);
  transition: transform .18s, box-shadow .18s;
}
.dash-play-btn:hover {
  color: #4f46e5;
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -12px rgba(0,0,0,.45);
}
.dash-play-btn svg { transition: transform .22s; }
.dash-play-btn:hover svg { transform: translateX(4px); }
.dash-play-btn-warn { color: #b45309; }
.dash-play-btn-warn:hover { color: #b45309; }

/* ---------- EMPTY STATE ---------- */
.dash-empty {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 3rem 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 12px 30px -22px rgba(15,23,42,.2);
}
.dash-empty-emoji {
  display: inline-grid;
  place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.12));
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.dash-empty h2 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}
.dash-empty p {
  max-width: 48ch;
  margin: 0 auto 1.5rem;
  color: #64748b;
}
.dash-empty .dash-play-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}
.dash-empty .dash-play-btn:hover { color: #fff; }

/* ---------- QUICK NAV ---------- */
.dash-quick-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.dash-quick-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dash-quick-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -20px rgba(79,70,229,.3);
  border-color: #c7d2fe;
  color: #0f172a;
}
.dash-quick-item > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.dash-quick-item strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.dash-quick-item small {
  font-size: .8rem;
  color: #64748b;
  margin-top: .15rem;
}
.dash-quick-item > svg {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}
.dash-quick-item:hover > svg {
  color: #4f46e5;
  transform: translateX(3px);
}
.dash-quick-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  font-size: 1.35rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .dash-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-play-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.75rem 1.5rem;
  }
  .dash-play-emoji {
    width: 72px; height: 72px;
    font-size: 2rem;
    border-radius: 18px;
  }
}
@media (max-width: 600px) {
  .dash-section { padding: 1rem 0 3rem; }
  .dash-hero { padding: 1.5rem 1.25rem; border-radius: 20px; }
  .dash-avatar { width: 54px; height: 54px; font-size: 1.4rem; }
  .dash-hero-text h1 { font-size: 1.25rem; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .dstat { padding: 1.1rem 1rem .95rem; border-radius: 16px; }
  .dstat-icon { width: 34px; height: 34px; font-size: 1rem; margin-bottom: .35rem; }
  .dstat-value { font-size: 1.35rem; }
  .dstat-value-sm { font-size: .9rem; }
  .dstat-label { font-size: .63rem; }
  .dash-play-btn {
    width: 100%;
    justify-content: center;
    padding: .95rem 1.25rem;
    font-size: .93rem;
  }
  .dash-quick { grid-template-columns: 1fr; }
  .dash-quick-item { padding: 1rem 1.1rem; }
}
@media (max-width: 380px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-avatar { width: 48px; height: 48px; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-play-emoji,
  .dash-status-active i { animation: none !important; }
}

/* ============================================================
   POLICY PAGES — Terms / Privacy / Refund / Shipping
   ============================================================ */

.policy-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(168,85,247,.1), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(99,102,241,.08), transparent 55%),
    #f8fafc;
  border-bottom: 1px solid var(--border);
}
.policy-hero h1 {
  margin: .25rem 0 .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.policy-hero p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}

.policy-content {
  font-size: .97rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.policy-content > p:first-of-type {
  font-size: 1.05rem;
  color: var(--ink);
}
.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2.25rem 0 .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  letter-spacing: -.005em;
}
.policy-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}
.policy-content p {
  margin: 0 0 1rem;
}
.policy-content a {
  color: var(--indigo-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.policy-content a:hover {
  color: var(--purple-dark);
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: .55rem;
}
.policy-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
}
.policy-list li::before {
  content: '';
  position: absolute;
  left: .35rem;
  top: .65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
}
.policy-list strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 600px) {
  .policy-content { font-size: .93rem; }
  .policy-content h2 { font-size: 1.1rem; }
  .policy-hero { padding: 2rem 0 1.25rem; }
  .policy-hero h1 { font-size: 1.6rem; }
}

/* ============================================================
   PANELS, TABLES, ACCOUNT (Student Side)
   ============================================================ */

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  margin-bottom: 1.5rem;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.panel-count {
  font-size: .82rem;
  color: #64748b;
  font-weight: 700;
}
.panel-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}
.panel-foot p { margin: 0; font-size: .88rem; }
.panel-foot a { font-weight: 700; }

/* ---------- Data table ---------- */
.table-wrap {
  overflow-x: auto;
  margin: -0.25rem -0.25rem 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th {
  text-align: left;
  padding: .75rem .65rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 800;
  white-space: nowrap;
}
.data-table td {
  padding: .85rem .65rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

.amount-cell {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.code-chip {
  font-family: ui-monospace, Menlo, monospace;
  font-size: .74rem;
  background: #f1f5f9;
  padding: .2rem .5rem;
  border-radius: 6px;
  color: #4f46e5;
  word-break: break-all;
}
.muted { color: #94a3b8; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-paid     { background: rgba(34,197,94,.12);  color: #15803d; }
.badge-created  { background: rgba(100,116,139,.12); color: #475569; }
.badge-failed   { background: rgba(239,68,68,.12);  color: #b91c1c; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}
.empty-emoji {
  display: inline-grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.12));
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 .35rem;
}
.empty-state p {
  color: #64748b;
  font-size: .93rem;
  max-width: 42ch;
  margin: 0 auto 1.25rem;
}
.empty-state .dash-play-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}
.empty-state .dash-play-btn:hover { color: #fff; }

/* ---------- Account grid ---------- */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.form-meta {
  font-size: .82rem;
  color: #64748b;
  font-weight: 600;
  padding: .5rem 0;
}
.form-meta strong { color: #0f172a; }

.form-row input:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .panel { padding: 1.25rem 1.1rem 1rem; border-radius: 16px; }
  .panel-head h2 { font-size: 1rem; }
  .data-table { font-size: .82rem; }
  .data-table th, .data-table td { padding: .55rem .45rem; }
  .code-chip { font-size: .68rem; padding: .15rem .4rem; }
}

/* ============================================================
   GAMES HUB — Premium Redesign
   ============================================================ */

.games-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
  background:
    radial-gradient(700px 500px at 95% -10%, rgba(168,85,247,.08), transparent 60%),
    radial-gradient(600px 400px at 0% 10%, rgba(99,102,241,.06), transparent 55%),
    #f8fafc;
  min-height: 80vh;
}

/* ---------- HERO ---------- */
.games-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
  color: #fff;
  padding: 2.75rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 28px 60px -24px rgba(49,46,129,.6);
}
.games-hero-glow {
  position: absolute;
  inset: -50% -15% auto auto;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.55), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}
.games-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.games-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .65rem;
}
.games-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 .65rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.games-hero h1 span {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.games-hero p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 50ch;
}

.games-hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}

.games-hero-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(34,197,94,.15);
  border: 1.5px solid rgba(34,197,94,.4);
  color: #86efac;
  font-size: .8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

/* ---------- GAMES GRID ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ---------- GAME CARD ---------- */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 2rem 1.75rem 1.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .3s cubic-bezier(.2,.8,.2,1),
              box-shadow .3s,
              border-color .3s;
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px -24px rgba(99,102,241,.4);
  border-color: #c7d2fe;
  color: #0f172a;
}

/* Featured — Flash Anzan */
.game-card-featured {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 45px -18px rgba(99,102,241,.65);
}
.game-card-featured:hover {
  color: #fff;
  box-shadow: 0 32px 60px -22px rgba(99,102,241,.8);
}
.game-card-featured p { color: rgba(255,255,255,.85); }

.game-card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

/* Abacus card — green accent */
.game-card-abacus {
  border-color: rgba(34,197,94,.3);
}
.game-card-abacus:hover {
  border-color: rgba(34,197,94,.6);
  box-shadow: 0 28px 55px -24px rgba(34,197,94,.35);
}

/* Badge */
.game-card-badge {
  position: absolute;
  top: 1.15rem; right: 1.15rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: #fbbf24;
  color: #422006;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
}
.game-card-badge-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}
.game-card-badge-soon {
  background: #f1f5f9;
  color: #64748b;
}

/* Icon */
.game-card-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.12));
  font-size: 2.4rem;
  transition: transform .3s;
}
.game-card-featured .game-card-icon {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
.game-card:hover .game-card-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Body */
.game-card-body { flex: 1; }
.game-card h3 {
  margin: 0 0 .4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: inherit;
  letter-spacing: -.01em;
}
.game-card p {
  margin: 0 0 .85rem;
  font-size: .92rem;
  color: #64748b;
  line-height: 1.6;
}

/* Meta tags */
.game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.meta-tag {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .72rem;
  font-weight: 700;
}
.game-card-featured .meta-tag {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* CTA */
.game-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  font-weight: 800;
  font-size: .9rem;
  color: #6366f1;
  letter-spacing: .02em;
  transition: gap .25s;
}
.game-card-featured .game-card-cta { color: #fff; }
.game-card:hover .game-card-cta { gap: .75rem; }

.game-card-cta-soon {
  color: #94a3b8;
  font-weight: 700;
}

/* Coming soon card */
.game-card-soon {
  opacity: .7;
  pointer-events: none;
  background: #fafbfc;
  border-style: dashed;
}
.game-card-soon .game-card-icon {
  background: #f1f5f9;
}

/* Coming soon header */
.coming-soon-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.coming-soon-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 .35rem;
}
.coming-soon-header p {
  color: #64748b;
  font-size: .92rem;
  margin: 0;
}

.games-grid-soon {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .games-hero { padding: 2rem 1.75rem; border-radius: 22px; }
  .games-hero-badge { position: static; margin-top: 1.25rem; display: inline-flex; }
  .games-hero-stats { gap: 1.75rem; margin-top: 1.25rem; }
}

@media (max-width: 600px) {
  .games-section { padding: 1rem 0 3rem; }
  .games-hero { padding: 1.75rem 1.35rem; border-radius: 20px; }
  .games-hero h1 { font-size: 1.5rem; }
  .games-hero p { font-size: .92rem; }
  .hero-stat-value { font-size: 1.4rem; }
  .hero-stat-label { font-size: .68rem; }

  .games-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .game-card { padding: 1.65rem 1.35rem 1.5rem; border-radius: 20px; }
  .game-card-icon { width: 60px; height: 60px; font-size: 2rem; border-radius: 16px; }
  .game-card h3 { font-size: 1.15rem; }
  .game-card p { font-size: .87rem; }

  .coming-soon-header h2 { font-size: 1.15rem; }
}

@media (max-width: 380px) {
  .games-hero-stats { gap: 1.25rem; }
  .hero-stat-value { font-size: 1.2rem; }
  .game-card-badge { font-size: .6rem; padding: .3rem .7rem; }
}

/* Speed Drill card — orange accent */
.game-card-speed {
  border-color: rgba(251,191,36,.35);
}
.game-card-speed:hover {
  border-color: rgba(251,191,36,.7);
  box-shadow: 0 28px 55px -24px rgba(251,191,36,.4);
}
.game-card-badge-orange {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
}

/* Soroban card — blue/teal accent */
.game-card-soroban {
  border-color: rgba(14,165,233,.3);
}
.game-card-soroban:hover {
  border-color: rgba(14,165,233,.65);
  box-shadow: 0 28px 55px -24px rgba(14,165,233,.35);
}
.game-card-badge-blue {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
}

/* Anzan Challenge card — pink/magenta accent */
.game-card-anzan {
  border-color: rgba(244,114,182,.3);
}
.game-card-anzan:hover {
  border-color: rgba(244,114,182,.65);
  box-shadow: 0 28px 55px -24px rgba(244,114,182,.4);
}
.game-card-badge-pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: #fff;
}

/* Daily Challenge card — red/rose accent */
.game-card-daily {
  border-color: rgba(244,63,94,.3);
}
.game-card-daily:hover {
  border-color: rgba(244,63,94,.65);
  box-shadow: 0 28px 55px -24px rgba(244,63,94,.4);
}
.game-card-badge-red {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #fff;
}

/* Multiplication Master card — cyan accent */
.game-card-multiply {
  border-color: rgba(56,189,248,.3);
}
.game-card-multiply:hover {
  border-color: rgba(56,189,248,.65);
  box-shadow: 0 28px 55px -24px rgba(56,189,248,.4);
}
.game-card-badge-cyan {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
}

/* Memory Numbers card — violet accent */
.game-card-memory {
  border-color: rgba(168,85,247,.3);
}
.game-card-memory:hover {
  border-color: rgba(168,85,247,.65);
  box-shadow: 0 28px 55px -24px rgba(168,85,247,.4);
}
.game-card-badge-violet {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
}

/* Division Drills card — teal accent */
.game-card-division {
  border-color: rgba(34,211,238,.3);
}
.game-card-division:hover {
  border-color: rgba(34,211,238,.65);
  box-shadow: 0 28px 55px -24px rgba(34,211,238,.4);
}
.game-card-badge-teal {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  color: #fff;
}

/* ============================================================
   ACCOUNT PAGE — Premium Redesign
   ============================================================ */

.acc-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
  background:
    radial-gradient(700px 400px at 95% -10%, rgba(168,85,247,.08), transparent 60%),
    radial-gradient(600px 400px at 0% 10%, rgba(99,102,241,.06), transparent 55%),
    #f8fafc;
  min-height: 80vh;
}

/* ---------- Hero ---------- */
.acc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
  color: #fff;
  padding: 2.25rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 24px 50px -22px rgba(49,46,129,.55);
}
.acc-hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.55), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.acc-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.acc-hero-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}
.acc-avatar {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  color: #1e1b4b;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  box-shadow: 0 12px 28px -10px rgba(251,191,36,.7);
}
.acc-hero-text { min-width: 0; }
.acc-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: .25rem;
}
.acc-hero-text h1 {
  margin: 0 0 .25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.acc-hero-text h1 span {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.acc-hero-text p {
  margin: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  word-break: break-all;
}
.acc-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.acc-member-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(34,197,94,.15);
  border: 1.5px solid rgba(34,197,94,.35);
  color: #86efac;
  font-size: .8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.acc-member-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.3);
  animation: accPulse 2s infinite;
}
@keyframes accPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.35); }
  50%     { box-shadow: 0 0 0 7px rgba(34,197,94,.1); }
}
.acc-hero-back {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  transition: background .2s, color .2s;
}
.acc-hero-back:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
}

/* ---------- Tabs ---------- */
.acc-tabs {
  display: flex;
  gap: .4rem;
  padding: .4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.acc-tab {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.acc-tab:hover {
  color: var(--ink);
  background: var(--bg-alt);
}
.acc-tab.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(99,102,241,.7);
}
.acc-tab svg { flex-shrink: 0; }

/* ---------- Panel / Card ---------- */
.acc-panel {
  display: none;
  animation: accFadeIn .3s ease-out;
}
.acc-panel.active { display: block; }
@keyframes accFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.acc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 20px 45px -30px rgba(79,70,229,.2);
}

/* Card header */
.acc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.acc-card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
}
.acc-card-head h2 {
  margin: 0 0 .2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.acc-card-head p {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Alert ---------- */
.acc-alert {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid;
}
.acc-alert-error {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
  color: #b91c1c;
}

/* ---------- Form ---------- */
.acc-form {
  display: grid;
  gap: 1.15rem;
}
.acc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.acc-field {
  display: grid;
  gap: .4rem;
}
.acc-field label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}
.acc-label-icon {
  font-size: .95rem;
  line-height: 1;
}
.acc-lock-badge {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg-alt);
  padding: .2rem .55rem;
  border-radius: 999px;
  letter-spacing: .05em;
}

/* Inputs */
.acc-field input {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: .95rem;
  font-family: inherit;
  font-weight: 600;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.acc-field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
.acc-field input:disabled {
  background: var(--bg-alt);
  color: var(--muted);
  cursor: not-allowed;
  border-color: var(--border);
}

/* Input with toggle */
.acc-input-wrap {
  position: relative;
}
.acc-input-wrap input {
  padding-right: 3.1rem;
}
.acc-pw-toggle {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.acc-pw-toggle:hover {
  color: #4f46e5;
  background: rgba(99,102,241,.08);
}

.acc-field-hint {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.acc-field-hint a { font-weight: 700; }
.acc-field-hint.ok { font-weight: 700; }
.acc-field-error {
  font-size: .82rem;
  color: #b91c1c;
  font-weight: 600;
}

/* ---------- Password strength meter ---------- */
.acc-strength {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .15rem;
}
.acc-strength-bars {
  display: flex;
  gap: .35rem;
}
.acc-strength-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  transition: background .25s;
}
.acc-strength-label {
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
}

/* ---------- Form meta ---------- */
.acc-form-meta {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
  padding: .6rem .9rem;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.acc-form-meta strong { color: var(--ink); }

/* ---------- Actions ---------- */
.acc-form-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  padding-top: .5rem;
}
.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  min-height: 48px;
}
.acc-btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(99,102,241,.8);
}
.acc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(99,102,241,.95);
}
.acc-btn-danger {
  background: linear-gradient(135deg, #ef4444, #f472b6);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(239,68,68,.7);
}
.acc-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(239,68,68,.9);
}
.acc-btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--border-2);
}
.acc-btn-ghost:hover {
  border-color: #a5b4fc;
  color: #4f46e5;
  background: #eef2ff;
}
.acc-btn:focus-visible {
  outline: 3px solid rgba(99,102,241,.55);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .acc-hero-inner { flex-direction: column; align-items: flex-start; }
  .acc-hero-right { align-items: flex-start; }
  .acc-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .acc-section { padding: 1rem 0 3rem; }
  .acc-hero { padding: 1.6rem 1.35rem; border-radius: 20px; }
  .acc-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
  .acc-hero-text h1 { font-size: 1.25rem; }

  .acc-tabs { padding: .3rem; border-radius: 14px; }
  .acc-tab { padding: .75rem .9rem; font-size: .82rem; min-width: 0; }
  .acc-tab span.tab-text { display: none; }
  .acc-tab svg + span { display: inline; }

  .acc-card { padding: 1.5rem 1.25rem 1.35rem; border-radius: 18px; }
  .acc-card-head { gap: .85rem; padding-bottom: 1.1rem; margin-bottom: 1.25rem; }
  .acc-card-icon { width: 44px; height: 44px; border-radius: 13px; }
  .acc-card-head h2 { font-size: 1.1rem; }
  .acc-card-head p { font-size: .82rem; }

  .acc-field input { padding: .8rem 1rem; font-size: .92rem; }
  .acc-input-wrap input { padding-right: 2.9rem; }
  .acc-pw-toggle { width: 32px; height: 32px; right: .5rem; }

  .acc-form-actions { flex-direction: column; }
  .acc-btn { width: 100%; }
}

/* ============================================================
   PAYMENT HISTORY PAGE
   ============================================================ */

.pay-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
  background:
    radial-gradient(700px 400px at 95% -10%, rgba(34,197,94,.06), transparent 60%),
    radial-gradient(600px 400px at 0% 10%, rgba(99,102,241,.06), transparent 55%),
    #f8fafc;
  min-height: 80vh;
}

/* ---------- Hero ---------- */
.pay-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%);
  color: #fff;
  padding: 2.25rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 24px 50px -22px rgba(6,78,59,.55);
}
.pay-hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.55), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.pay-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pay-hero-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}
.pay-avatar {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #a3e635);
  color: #064e3b;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  box-shadow: 0 12px 28px -10px rgba(251,191,36,.7);
}
.pay-hero-text { min-width: 0; }
.pay-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: .25rem;
}
.pay-hero-text h1 {
  margin: 0 0 .25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.pay-hero-text h1 span {
  background: linear-gradient(135deg, #fbbf24, #a3e635);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pay-hero-text p {
  margin: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}

.pay-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.pay-member-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.pay-member-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.4);
  animation: payPulse 2s infinite;
}
@keyframes payPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.4); }
  50%     { box-shadow: 0 0 0 7px rgba(74,222,128,.15); }
}
.pay-hero-back {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  transition: background .2s, color .2s;
}
.pay-hero-back:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
}

/* ---------- Summary cards ---------- */
.pay-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pstat {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.pstat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}
.pstat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(79,70,229,.28);
  border-color: #c7d2fe;
}
.pstat-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.pstat-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
}
.pstat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}
.pstat-value-sm { font-size: 1.05rem; }
.pstat-foot {
  font-size: .78rem;
  color: #64748b;
  font-weight: 600;
}
.pstat-indigo::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.pstat-indigo .pstat-icon { background: rgba(99,102,241,.1); }
.pstat-green::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.pstat-green .pstat-icon { background: rgba(34,197,94,.12); }
.pstat-green .pstat-value { color: #15803d; }
.pstat-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pstat-amber .pstat-icon { background: rgba(245,158,11,.12); }
.pstat-blue::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.pstat-blue .pstat-icon { background: rgba(14,165,233,.12); }
.pstat-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.pstat-red .pstat-icon { background: rgba(239,68,68,.12); }
.pstat-red .pstat-value { color: #b91c1c; }

/* ---------- Card ---------- */
.pay-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 20px 45px -30px rgba(79,70,229,.2);
}

.pay-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.pay-card-title {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.pay-card-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(16,185,129,.14));
  color: #15803d;
  flex-shrink: 0;
}
.pay-card-head h2 {
  margin: 0 0 .15rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pay-card-head p {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Filter ---------- */
.pay-filter {
  display: inline-flex;
  gap: .25rem;
  padding: .25rem;
  background: var(--bg-alt);
  border-radius: 11px;
}
.pay-filter-btn {
  padding: .45rem .9rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
}
.pay-filter-btn:hover { color: var(--ink); }
.pay-filter-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}

/* ---------- Table ---------- */
.pay-table-wrap {
  overflow-x: auto;
  margin: 0 -0.5rem;
}
.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 700px;
}
.pay-table th {
  text-align: left;
  padding: .75rem .65rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  font-weight: 800;
  white-space: nowrap;
}
.pay-table td {
  padding: .95rem .65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--ink-2);
}
.pay-table tr:last-child td { border-bottom: none; }
.pay-table tr:hover td { background: var(--bg-soft); }

.pay-td-num {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  font-weight: 700;
  width: 40px;
}
.pay-td-amount {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: 1rem;
  white-space: nowrap;
}

.pay-date {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: .88rem;
}
.pay-time {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: .1rem;
}

/* Code chips */
.pay-code {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .74rem;
  background: var(--bg-alt);
  padding: .28rem .55rem;
  border-radius: 6px;
  color: #4f46e5;
  border: 1px solid var(--border);
  font-weight: 600;
  letter-spacing: -.01em;
}
.pay-code-green {
  color: #15803d;
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.2);
}
.pay-muted { color: #94a3b8; font-weight: 600; }

/* Status badges */
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.pay-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pay-badge-paid {
  background: rgba(34,197,94,.1);
  color: #15803d;
  border-color: rgba(34,197,94,.3);
}
.pay-badge-created {
  background: rgba(245,158,11,.1);
  color: #b45309;
  border-color: rgba(245,158,11,.3);
}
.pay-badge-failed {
  background: rgba(239,68,68,.1);
  color: #b91c1c;
  border-color: rgba(239,68,68,.3);
}

/* ---------- Mobile list ---------- */
.pay-mobile-list {
  display: none;
  flex-direction: column;
  gap: .75rem;
}
.pay-mob-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.pay-mob-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.pay-mob-amount {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.pay-mob-date {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}
.pay-mob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.pay-mob-row:first-of-type { border-top: 0; padding-top: 0; }
.pay-mob-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800;
  flex-shrink: 0;
}
.pay-mob-row code {
  word-break: break-all;
  text-align: right;
  font-size: .72rem;
}

/* ---------- Card footer ---------- */
.pay-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}
.pay-help-link {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}
.pay-help-link:hover { color: #a855f7; }

/* ---------- Empty state ---------- */
.pay-empty {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}
.pay-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.12));
  font-size: 2.5rem;
  margin-bottom: 1.1rem;
}
.pay-empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 .4rem;
  color: var(--ink);
}
.pay-empty p {
  color: var(--muted);
  font-size: .93rem;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.pay-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 1rem 1.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(99,102,241,.8);
  transition: transform .18s, box-shadow .18s;
}
.pay-empty-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(99,102,241,.95);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pay-hero-inner { flex-direction: column; align-items: flex-start; }
  .pay-hero-right { align-items: flex-start; }
}

@media (max-width: 768px) {
  /* Hide table, show mobile card list */
  .pay-table-wrap { display: none; }
  .pay-mobile-list { display: flex; }
}

@media (max-width: 600px) {
  .pay-section { padding: 1rem 0 3rem; }
  .pay-hero { padding: 1.6rem 1.35rem; border-radius: 20px; }
  .pay-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
  .pay-hero-text h1 { font-size: 1.25rem; }
  .pay-hero-text p { font-size: .82rem; }
  .pay-member-badge { font-size: .72rem; padding: .4rem .85rem; }

  .pay-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .pstat { padding: 1.05rem 1rem .9rem; border-radius: 16px; }
  .pstat-icon { width: 34px; height: 34px; font-size: 1rem; margin-bottom: .35rem; }
  .pstat-value { font-size: 1.35rem; }
  .pstat-value-sm { font-size: .92rem; }
  .pstat-label { font-size: .62rem; }
  .pstat-foot { font-size: .72rem; }

  .pay-card { padding: 1.25rem 1.1rem 1.1rem; border-radius: 18px; }
  .pay-card-head { gap: .75rem; padding-bottom: 1rem; margin-bottom: 1rem; }
  .pay-card-icon { width: 40px; height: 40px; border-radius: 11px; }
  .pay-card-head h2 { font-size: 1.05rem; }
  .pay-card-head p { font-size: .78rem; }

  .pay-filter { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .pay-filter-btn { font-size: .75rem; padding: .4rem .75rem; }

  .pay-mob-card { padding: .9rem 1rem; }
  .pay-mob-amount { font-size: 1.05rem; }
  .pay-card-foot { font-size: .78rem; }
}

@media (max-width: 400px) {
  .pay-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   FLOATING EMOJI FIX — overrides earlier .float rules
   ============================================================ */

/* Gentler, slower float — no rotation, subtle drift */
.float {
  position: absolute;
  font-size: 1.9rem;
  filter: drop-shadow(0 6px 12px rgba(15,23,42,.18));
  animation: floaty 8s ease-in-out infinite;
  z-index: 3;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.f1 { top: 4%;  left: 2%;  animation-delay: 0s; }
.f2 { top: 60%; right: 0;  animation-delay: 2.6s; }
.f3 { bottom: 2%; left: 8%; animation-delay: 5.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50%      { transform: translateY(-10px) translateZ(0); }
}

/* ============================================================
   REDUCED MOTION — full safety net (fixes the .01ms loop bug)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  /* Kill every decorative animation entirely */
  .float,
  .dash-play-emoji,
  .dash-status-active i,
  .pay-member-dot,
  .acc-member-dot,
  .games-hero-glow,
  .lgn-blob {
    animation: none !important;
  }
}

/* ============================================================
   MOBILE — hide the floating emojis below tablet size
   (they distract more than they help on small screens)
   ============================================================ */
@media (max-width: 768px) {
  
}

/* Soroban Quest card — gold accent */
.game-card-quest {
  border-color: rgba(251,191,36,.35);
}
.game-card-quest:hover {
  border-color: rgba(251,191,36,.75);
  box-shadow: 0 28px 55px -24px rgba(251,191,36,.45);
}
.game-card-badge-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #422006;
}

/* Memory Math card — pink accent */
.game-card-memmath {
  border-color: rgba(236,72,153,.3);
}
.game-card-memmath:hover {
  border-color: rgba(236,72,153,.7);
  box-shadow: 0 28px 55px -24px rgba(236,72,153,.45);
}
.game-card-badge-pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: #fff;
}