/* =========================================================
   CN Achievers — Website styles
   10 themes are defined as CSS variable sets on [data-theme]
   ========================================================= */
:root, [data-theme="royal"] {
  --bg: #f6f7fc; --bg2: #eef1fb; --surface: #ffffff; --surface2: #f3f5fc;
  --text: #0f1535; --muted: #5b6386; --border: rgba(20, 30, 90, .10);
  --primary: #1f3fb8; --primary2: #3a63f0; --accent: #f29a1f; --accent2: #e8483b;
  --on-primary: #fff; --glow: rgba(58, 99, 240, .35);
  --hero: linear-gradient(120deg, #0d1a5c 0%, #1f3fb8 55%, #3a63f0 100%);
  --hero-text: #fff; --glass: rgba(255, 255, 255, .72); --shadow: 0 10px 30px rgba(15, 25, 80, .08);
  --radius: 18px; --font: 'Poppins', system-ui, sans-serif; --font-head: 'Outfit', 'Poppins', sans-serif;
  color-scheme: light;
}
[data-theme="saffron"] {
  --bg: #fffaf3; --bg2: #fff1df; --surface: #fff; --surface2: #fff6ea; --text: #2a1a05; --muted: #7a6446;
  --border: rgba(120, 70, 0, .12); --primary: #e57b00; --primary2: #ffa62b; --accent: #1a56c4; --accent2: #d93a2b;
  --glow: rgba(255, 150, 30, .35); --hero: linear-gradient(120deg, #b34d00, #e57b00 50%, #ffb347);
  --glass: rgba(255, 255, 255, .75);
}
[data-theme="neon"] {
  --bg: #07060f; --bg2: #0d0b1d; --surface: #13112a; --surface2: #1a1738; --text: #ecebff; --muted: #9a97c7;
  --border: rgba(140, 120, 255, .18); --primary: #8b5cf6; --primary2: #22d3ee; --accent: #f472b6; --accent2: #facc15;
  --glow: rgba(139, 92, 246, .55); --hero: radial-gradient(1200px 500px at 20% 0%, #3b1d8f 0%, transparent 60%), radial-gradient(900px 500px at 90% 30%, #0e7490 0%, transparent 55%), #07060f;
  --glass: rgba(25, 20, 55, .6); --shadow: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
}
[data-theme="emerald"] {
  --bg: #f3faf6; --bg2: #e4f4ea; --surface: #fff; --surface2: #eff8f2; --text: #0b2a1b; --muted: #4d6b5b;
  --border: rgba(10, 80, 40, .12); --primary: #0f8a52; --primary2: #22c17a; --accent: #d4a017; --accent2: #0f5f8a;
  --glow: rgba(34, 193, 122, .35); --hero: linear-gradient(120deg, #064e32, #0f8a52 55%, #34d399);
  --glass: rgba(255, 255, 255, .75);
}
[data-theme="aurora"] {
  --bg: #050b18; --bg2: #0a1426; --surface: rgba(255, 255, 255, .06); --surface2: rgba(255, 255, 255, .09); --text: #eaf4ff; --muted: #9fb3cc;
  --border: rgba(255, 255, 255, .12); --primary: #2dd4bf; --primary2: #818cf8; --accent: #f0abfc; --accent2: #fde047;
  --on-primary: #04121a; --glow: rgba(45, 212, 191, .45);
  --hero: radial-gradient(900px 400px at 10% 10%, rgba(45, 212, 191, .45), transparent 60%), radial-gradient(900px 450px at 80% 0%, rgba(129, 140, 248, .5), transparent 60%), radial-gradient(700px 400px at 60% 100%, rgba(240, 171, 252, .35), transparent 60%), #050b18;
  --glass: rgba(10, 20, 40, .55); --shadow: 0 10px 40px rgba(0, 0, 0, .45); color-scheme: dark;
}
[data-theme="rosegold"] {
  --bg: #fdf7f5; --bg2: #f9ebe6; --surface: #fff; --surface2: #fcf1ee; --text: #3a1f1c; --muted: #8a6560;
  --border: rgba(140, 70, 60, .14); --primary: #b76e79; --primary2: #e0a899; --accent: #c9a227; --accent2: #7d4b8f;
  --glow: rgba(183, 110, 121, .35); --hero: linear-gradient(120deg, #6d3a43, #b76e79 55%, #f0c3b1);
  --glass: rgba(255, 255, 255, .75); --font-head: 'Playfair Display', Georgia, serif;
}
[data-theme="ocean"] {
  --bg: #f2f9fd; --bg2: #e2f1fa; --surface: #fff; --surface2: #eef7fc; --text: #06263a; --muted: #4c6c80;
  --border: rgba(0, 80, 130, .12); --primary: #0077b6; --primary2: #00b4d8; --accent: #ff8c42; --accent2: #06d6a0;
  --glow: rgba(0, 180, 216, .35); --hero: linear-gradient(120deg, #023e8a, #0077b6 50%, #48cae4);
  --glass: rgba(255, 255, 255, .75);
}
[data-theme="luxe"] {
  --bg: #0b0b0c; --bg2: #121214; --surface: #161618; --surface2: #1d1d20; --text: #f4f1ea; --muted: #a39f95;
  --border: rgba(212, 175, 55, .18); --primary: #d4af37; --primary2: #f3d77a; --accent: #ffffff; --accent2: #b8860b;
  --on-primary: #111; --glow: rgba(212, 175, 55, .35); --hero: linear-gradient(135deg, #0b0b0c 0%, #1b1a17 50%, #2b2616 100%);
  --glass: rgba(22, 22, 24, .7); --shadow: 0 10px 40px rgba(0, 0, 0, .6); --font-head: 'Playfair Display', Georgia, serif; color-scheme: dark;
}
[data-theme="sunset"] {
  --bg: #fff7f4; --bg2: #ffe9e2; --surface: #fff; --surface2: #fff3ef; --text: #331410; --muted: #85574f;
  --border: rgba(150, 50, 30, .12); --primary: #e4572e; --primary2: #ff8f6b; --accent: #7b2cbf; --accent2: #ffb400;
  --glow: rgba(228, 87, 46, .35); --hero: linear-gradient(120deg, #7b2cbf, #e4572e 55%, #ffb400);
  --glass: rgba(255, 255, 255, .75);
}
[data-theme="galaxy"] {
  --bg: #0c0822; --bg2: #140e33; --surface: #1a1340; --surface2: #221a52; --text: #f1edff; --muted: #a9a0d6;
  --border: rgba(180, 160, 255, .16); --primary: #a855f7; --primary2: #ec4899; --accent: #38bdf8; --accent2: #fbbf24;
  --glow: rgba(168, 85, 247, .5); --hero: radial-gradient(800px 400px at 80% 20%, #6d28d9 0%, transparent 60%), radial-gradient(700px 400px at 10% 80%, #be185d 0%, transparent 60%), #0c0822;
  --glass: rgba(26, 19, 64, .6); --shadow: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden; transition: background .4s, color .4s; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
#chrome-top, #chrome-bottom { display: contents; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; font-size: .95rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: var(--on-primary); box-shadow: 0 8px 22px var(--glow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-light { background: #fff; color: #111; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; cursor: pointer; transition: .2s; }
.chip.active, .chip:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; background: var(--accent); color: #fff; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }

/* ---------- announcement + header ---------- */
.announce { background: linear-gradient(90deg, var(--primary), var(--primary2)); color: var(--on-primary); text-align: center; font-size: .9rem; padding: 8px 16px; position: relative; z-index: 60; }
.announce a { font-weight: 700; color: var(--accent2); margin-left: 8px; filter: brightness(1.3); }
[data-theme="royal"] .announce a, [data-theme="ocean"] .announce a { color: #ffd166; }
.header { position: sticky; top: 0; z-index: 55; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; }
.brand b { font-family: var(--font-head); font-size: 1.15rem; display: block; line-height: 1.1; }
.brand small { font-size: .7rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 8px 11px; border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: .2s; }
.nav a:hover, .nav a.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; font-size: 1.05rem; }
.menu-btn { display: none; }
.streak-pill { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; cursor: pointer; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; position: relative; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head .kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.sec-head h2 span { background: linear-gradient(90deg, var(--primary), var(--primary2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head p { color: var(--muted); max-width: 620px; margin: 10px auto 0; }
.sec-head.left { text-align: left; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.sec-head.left p { margin: 6px 0 0; }
.alt-bg { background: var(--bg2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-text, #fff); }
.hero .slides { position: relative; min-height: 460px; }
.hero .slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; opacity: 0; transform: translateX(40px); transition: opacity .7s, transform .7s; pointer-events: none; }
.hero .slide.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.hero .kick { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 16px 0 12px; letter-spacing: -.02em; }
.hero p { font-size: 1.08rem; opacity: .9; max-width: 560px; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .inner { padding: 56px 0 70px; }
.hero-art { display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 420px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.art-logo { position: relative; width: 340px; height: 340px; display: grid; place-items: center; animation: floaty 6s ease-in-out infinite; }
.art-logo img { width: 210px; height: 210px; object-fit: contain; background: #fff; border-radius: 50%; padding: 22px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .15), 0 30px 60px rgba(0, 0, 0, .35); position: relative; z-index: 1; }
.art-logo .ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); }
.art-logo .r1 { inset: 20px; animation: spin 30s linear infinite; } .art-logo .r2 { inset: -10px; border-style: solid; border-color: rgba(255, 255, 255, .12); }
@keyframes spin { to { transform: rotate(360deg); } }
.art-logo .float { position: absolute; z-index: 2; background: #fff; color: #111; font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); animation: floaty 4s ease-in-out infinite; }
.art-logo .f1 { top: 20px; left: -10px; } .art-logo .f2 { bottom: 40px; left: -30px; animation-delay: -1.3s; } .art-logo .f3 { top: 90px; right: -30px; animation-delay: -2.2s; }
.art-card { width: 100%; max-width: 400px; background: #fff; color: #0f1535; border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); animation: floaty 6s ease-in-out infinite; }
.art-card .ac-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.art-card .ac-head small { color: #6b7280; }
.ac-score { display: flex; gap: 16px; align-items: center; }
.ac-bars { flex: 1; display: grid; gap: 8px; font-size: .75rem; color: #5b6386; }
.ac-bars i { display: block; height: 7px; border-radius: 99px; background: #eef1fb; margin-top: 3px; overflow: hidden; }
.ac-bars em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1f3fb8, #3a63f0); }
.ac-foot { margin-top: 14px; padding: 10px; border-radius: 12px; background: #fff7ea; color: #b45309; font-weight: 700; font-size: .85rem; text-align: center; }
.art-card.tg { background: #e7f3fb; }
.tg-msg { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 14px; margin-top: 10px; font-size: .88rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); animation: pop .6s both; }
.hero .dots { display: flex; gap: 8px; position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero .dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: .3s; }
.hero .dots button.active { width: 30px; background: #fff; }
.hero .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(6px); }
.hero .arrow.prev { left: 14px; } .hero .arrow.next { right: 14px; }
.hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; }
.hero.v-split .slide { grid-template-columns: 1fr 1fr; }
.hero.v-center .slide { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero.v-center .hero-art { display: none; } .hero.v-center p { margin-inline: auto; } .hero.v-center .cta-row { justify-content: center; }

/* ---------- stats ---------- */
.stats { margin-top: -46px; position: relative; z-index: 5; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.stats .stat { padding: 26px 16px; text-align: center; border-right: 1px solid var(--border); }
.stats .stat:last-child { border-right: 0; }
.stats .num { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; background: linear-gradient(90deg, var(--primary), var(--primary2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .lbl { color: var(--muted); font-size: .9rem; }
.stats.v-cards .grid { background: none; border: 0; box-shadow: none; gap: 16px; backdrop-filter: none; }
.stats.v-cards .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.stats.v-minimal { margin-top: 0; padding-top: 30px; }
.stats.v-minimal .grid { background: none; border: 0; box-shadow: none; backdrop-filter: none; }

/* ---------- goals ---------- */
.goals { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.goal { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: .25s; min-width: 220px; }
.goal:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 24px var(--glow); }
.goal .ic { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.goal b { display: block; } .goal small { color: var(--muted); }
.goals.v-tiles { display: grid; grid-template-columns: repeat(5, 1fr); }
.goals.v-tiles .goal { flex-direction: column; text-align: center; min-width: 0; padding: 24px 14px; }

/* ---------- product (course) cards ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.cards.v-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.cards.v-carousel > * { flex: 0 0 320px; scroll-snap-align: start; }
.cards.v-list { grid-template-columns: 1fr; }
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px var(--glow); }
.pcard .thumb { height: 150px; position: relative; display: flex; align-items: end; padding: 16px; color: #fff; overflow: hidden; }
.pcard .thumb h4 { font-size: 1.25rem; position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.pcard .thumb .badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: rgba(255, 255, 255, .95); color: #111; }
.pcard .thumb .cat { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: .72rem; font-weight: 700; background: rgba(0, 0, 0, .25); padding: 3px 10px; border-radius: 99px; }
.pcard .thumb::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -50px; bottom: -80px; background: rgba(255, 255, 255, .15); }
.th-c1 { background: linear-gradient(135deg, #1f3fb8, #7c3aed); } .th-c2 { background: linear-gradient(135deg, #f97316, #e11d48); }
.th-c3 { background: linear-gradient(135deg, #0ea5e9, #2563eb); } .th-c4 { background: linear-gradient(135deg, #10b981, #0f766e); }
.th-c5 { background: linear-gradient(135deg, #a855f7, #ec4899); } .th-c6 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard .sub { color: var(--muted); font-size: .9rem; }
.pcard .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.pcard ul { list-style: none; font-size: .86rem; display: grid; gap: 4px; }
.pcard ul li::before { content: '✓ '; color: var(--primary); font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price b { font-size: 1.45rem; font-family: var(--font-head); }
.price s { color: var(--muted); font-size: .9rem; }
.price .off { color: #16a34a; font-weight: 700; font-size: .85rem; }
.pcard .actions { display: flex; gap: 8px; }
.pcard .actions .btn { flex: 1; justify-content: center; }
/* variant: glass */
.pcard.v-glass { background: var(--glass); backdrop-filter: blur(14px); }
/* variant: gradient — full gradient card */
.pcard.v-gradient { color: #fff; border: 0; }
.pcard.v-gradient .thumb { background: transparent !important; height: 110px; }
.pcard.v-gradient .sub, .pcard.v-gradient .meta, .pcard.v-gradient .price s { color: rgba(255, 255, 255, .8); }
.pcard.v-gradient ul li::before { color: #fff; }
.pcard.v-gradient .btn-ghost { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .3); }
/* variant: neon */
.pcard.v-neon { background: #0e0c1f; color: #eee; border: 1px solid transparent; background-image: linear-gradient(#0e0c1f, #0e0c1f), linear-gradient(135deg, var(--primary), var(--accent), var(--primary2)); background-origin: border-box; background-clip: padding-box, border-box; }
.pcard.v-neon .sub, .pcard.v-neon .meta { color: #a6a3c9; }
.pcard.v-neon:hover { box-shadow: 0 0 30px var(--glow), 0 0 60px color-mix(in srgb, var(--accent) 30%, transparent); }
.pcard.v-neon .btn-ghost { background: transparent; color: #fff; border-color: #444; }
/* variant: compact — horizontal */
.pcard.v-compact { flex-direction: row; }
.pcard.v-compact .thumb { width: 130px; height: auto; flex-shrink: 0; padding: 12px; }
.pcard.v-compact .thumb h4 { font-size: .95rem; }
.pcard.v-compact ul { display: none; }
.pcard.v-compact .thumb::after { display: none; }
/* variant: classic — plain */
.pcard.v-classic { box-shadow: none; }
.pcard.v-classic .thumb { height: 120px; }

/* ---------- feature cards ---------- */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fcard { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .3s; display: block; position: relative; overflow: hidden; }
.fcard:hover { transform: translateY(-5px); box-shadow: 0 16px 34px var(--glow); }
.fcard .ic { font-size: 1.7rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), color-mix(in srgb, var(--primary2) 18%, transparent)); margin-bottom: 14px; }
.fcard h4 { font-size: 1.05rem; margin-bottom: 6px; }
.fcard p { color: var(--muted); font-size: .9rem; }
.fcard .go { position: absolute; right: 18px; top: 22px; opacity: 0; transition: .3s; color: var(--primary); }
.fcard:hover .go { opacity: 1; transform: translateX(3px); }
.fcard.v-glass { background: var(--glass); backdrop-filter: blur(14px); }
.fcard.v-neon { background: #0e0c1f; color: #eee; border-color: color-mix(in srgb, var(--primary) 50%, transparent); box-shadow: inset 0 0 30px color-mix(in srgb, var(--primary) 20%, transparent); }
.fcard.v-neon p { color: #a6a3c9; }
.fcard.v-minimal { background: transparent; border-color: transparent; text-align: center; }
.fcard.v-minimal .ic { margin-inline: auto; border-radius: 50%; }
.fcard.v-iconleft { display: flex; gap: 14px; align-items: flex-start; }
.fcard.v-iconleft .ic { flex-shrink: 0; margin: 0; }
.fcard.v-gradient { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: var(--on-primary); border: 0; }
.fcard.v-gradient p { color: inherit; opacity: .85; } .fcard.v-gradient .ic { background: rgba(255, 255, 255, .2); } .fcard.v-gradient .go { color: inherit; }

/* ---------- video ---------- */
.vwrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.player { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.player iframe, .player .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { background-size: cover; background-position: center; cursor: pointer; display: grid; place-items: center; }
.player .poster::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 60%); }
.playbtn { position: relative; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; font-size: 1.8rem; color: #e11d48; box-shadow: 0 0 0 12px rgba(255, 255, 255, .2); transition: .3s; }
.player .poster:hover .playbtn { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(255, 255, 255, .15); }
.player .ptitle { position: absolute; left: 18px; bottom: 16px; right: 18px; color: #fff; font-weight: 600; z-index: 1; }
.vnow { margin-top: 12px; }
.vnow h3 { font-size: 1.15rem; }
.plist { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px; max-height: 480px; display: flex; flex-direction: column; }
.plist-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; }
.plist-items { overflow-y: auto; display: grid; gap: 8px; padding-right: 4px; }
.vitem { display: flex; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; transition: .2s; align-items: center; }
.vitem:hover, .vitem.active { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.vitem.active { outline: 2px solid var(--primary); }
.vitem .vt { width: 120px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 10px; background-size: cover; background-position: center; position: relative; }
.vitem .vt .rank { position: absolute; top: 4px; left: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.vitem b { font-size: .86rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vitem small { color: var(--muted); font-size: .75rem; }
.vslider { position: relative; margin-top: 22px; }
.vtrack { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.vtrack::-webkit-scrollbar { display: none; }
.vcard { flex: 0 0 260px; scroll-snap-align: start; cursor: pointer; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: .3s; }
.vcard:hover { transform: translateY(-5px); box-shadow: 0 12px 28px var(--glow); }
.vcard .vt { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.vcard .vt::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(0, 0, 0, .25); opacity: 0; transition: .3s; }
.vcard:hover .vt::after { opacity: 1; }
.vcard .vb { padding: 10px 12px; font-size: .86rem; font-weight: 600; }
.sl-arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; z-index: 2; font-size: 1.1rem; }
.sl-arrow.l { left: -12px; } .sl-arrow.r { right: -12px; }
.videos.v-stacked .vwrap { grid-template-columns: 1fr; }
.videos.v-stacked .plist { display: none; }

/* ---------- quiz & leaderboard ---------- */
.daily { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 30px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, var(--primary), var(--accent)); box-shadow: 0 16px 40px var(--glow); flex-wrap: wrap; position: relative; overflow: hidden; }
.daily::after { content: '🎯'; position: absolute; right: 200px; font-size: 7rem; opacity: .12; }
.daily h3 { font-size: 1.6rem; margin: 6px 0; }
.daily .pill { display: inline-block; background: rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.qcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.qcard .qb { padding: 16px; flex: 1; }
.qcard h4 { margin: 10px 0; font-size: 1rem; }
.qcard .qm { display: flex; gap: 12px; color: var(--muted); font-size: .8rem; }
.qcard button { border: 0; background: linear-gradient(90deg, var(--primary), var(--primary2)); color: var(--on-primary); padding: 12px; font-weight: 700; cursor: pointer; }
.lb { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 16px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.head { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); background: var(--surface2); }
.rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface2); }
.rank.r1 { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #7c2d12; }
.rank.r2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.rank.r3 { background: linear-gradient(135deg, #fed7aa, #c2410c); color: #fff; }
.lb-row .pts { color: var(--primary); font-weight: 700; }
.podium { display: flex; justify-content: center; align-items: end; gap: 16px; margin-bottom: 26px; }
.podium .p { text-align: center; }
.podium .av { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2)); border: 4px solid var(--surface); box-shadow: var(--shadow); }
.podium .bar { width: 120px; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: #fff; }
.podium .p1 .bar { height: 130px; background: linear-gradient(#f59e0b, #b45309); }
.podium .p2 .bar { height: 100px; background: linear-gradient(#9ca3af, #4b5563); }
.podium .p3 .bar { height: 80px; background: linear-gradient(#fb923c, #9a3412); }

/* ---------- educator ---------- */
.edu { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.edu::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(var(--glow), transparent 70%); left: -120px; top: -120px; }
.edu .ph { position: relative; aspect-ratio: 1; border-radius: 24px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; overflow: hidden; }
.edu .ph img { width: 100%; height: 100%; object-fit: cover; }
.edu .ph .ini { font-size: 5rem; font-weight: 800; color: #fff; font-family: var(--font-head); }
.edu h3 { font-size: 1.8rem; }
.edu .role { color: var(--primary); font-weight: 600; margin: 4px 0 12px; }
.edu .soc { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
/* the card adapts to the space it gets (a narrow column stacks photo over text) */
.edu-wrap { container-type: inline-size; }
@container (max-width: 640px) {
  .edu { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .edu .ph { max-width: 200px; }
  .edu h3 { font-size: 1.5rem; }
}
.about-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.about-intro > * { min-width: 0; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stats .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 14px; text-align: center; }
.about-stats .num { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; background: linear-gradient(90deg, var(--primary), var(--primary2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats .lbl { color: var(--muted); font-size: .86rem; }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } }

/* ---------- results ---------- */
.rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rcard { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow); }
.rcard .q { color: var(--accent); font-size: 2rem; line-height: 1; font-family: Georgia, serif; }
.rcard p { margin: 8px 0 16px; font-size: .92rem; }
.rcard b { display: block; } .rcard small { color: var(--accent); font-weight: 700; }

/* ---------- resources ---------- */
.rescols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rescol { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.rescol h4 { color: var(--primary); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.resitem { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 16px; border-radius: 12px; margin-bottom: 10px; color: #fff; font-size: .9rem; font-weight: 500; background: linear-gradient(100deg, var(--primary), var(--accent2)); transition: .25s; }
.resitem:hover { transform: translateX(4px); filter: brightness(1.08); }

/* ---------- app band ---------- */
.appband { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 30px; padding: 40px; border-radius: 28px; background: var(--hero); color: #fff; overflow: hidden; position: relative; }
.appband h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.appband .stores { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 10px; background: #000; color: #fff; padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); }
.store small { display: block; font-size: .65rem; opacity: .8; } .store b { font-size: 1rem; }
.phone { width: 220px; height: 420px; margin: auto; border-radius: 36px; background: #111; padding: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); transform: rotate(-6deg); }
.phone .scr { width: 100%; height: 100%; border-radius: 28px; background: linear-gradient(160deg, var(--primary), var(--primary2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
.phone .scr img { width: 90px; background: #fff; border-radius: 20px; padding: 6px; }

/* ---------- lead form ---------- */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.lead .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.lead .trust div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
.lead .trust b { display: block; font-size: 1.3rem; color: var(--primary); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); outline: none; transition: .2s; }
.form input:focus, .form select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }
.faq.v-cards details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }

/* ---------- footer ---------- */
.footer { background: #0a0e24; color: #c8cde6; padding: 56px 0 24px; margin-top: 40px; }
[data-theme="luxe"] .footer, [data-theme="neon"] .footer, [data-theme="aurora"] .footer, [data-theme="galaxy"] .footer { background: #000; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; font-size: .9rem; opacity: .85; }
.footer a:hover { opacity: 1; color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; font-size: .82rem; flex-wrap: wrap; gap: 8px; }
.socrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.soc-ic { width: 38px; height: 38px; display: grid !important; place-items: center; border-radius: 10px; padding: 0 !important; color: #fff; opacity: 1 !important; transition: .25s; }
.soc-ic:hover { transform: translateY(-3px) rotate(-6deg); }
.soc-ic svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- floating ---------- */
.rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; background: var(--glass); backdrop-filter: blur(10px); border-radius: 16px 0 0 16px; border: 1px solid var(--border); border-right: 0; transition: transform .35s; }
.rail.collapsed { transform: translate(calc(100% - 4px), -50%); }
.rail .soc-ic { width: 36px; height: 36px; border-radius: 10px; transform: rotate(0); }
.rail .soc-ic:hover { transform: scale(1.12); }
.rail .tog { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); width: 26px; height: 50px; border-radius: 10px 0 0 10px; border: 1px solid var(--border); border-right: 0; background: var(--glass); cursor: pointer; font-size: .8rem; }
.fab { position: fixed; z-index: 45; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); cursor: pointer; border: 0; transition: .25s; }
.fab:hover { transform: scale(1.08); }
.fab.wa { left: 20px; bottom: 22px; background: #25d366; color: #fff; }
.fab.wa svg { width: 28px; fill: #fff; }
.fab.chat { right: 20px; bottom: 22px; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; font-size: 1.5rem; }
.fab.chat .dot { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; font-size: .62rem; display: grid; place-items: center; border: 2px solid #fff; }
.chat-hint { position: fixed; right: 88px; bottom: 30px; z-index: 44; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); max-width: 260px; font-size: .85rem; animation: pop .5s; }
.chat-hint b { display: block; font-size: .9rem; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.chatbox { position: fixed; right: 20px; bottom: 90px; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); z-index: 70; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; animation: pop .3s; }
.chat-head { padding: 16px; background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; display: flex; align-items: center; gap: 10px; }
.chat-head .av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 1.2rem; }
.chat-head small { opacity: .85; display: block; font-size: .75rem; }
.chat-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; white-space: pre-line; }
.msg.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.me { background: var(--primary); color: var(--on-primary); margin-left: auto; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.chat-sugg button { font-size: .75rem; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; }
.chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-in input { flex: 1; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); outline: none; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 25, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); color: var(--text); border-radius: 24px; padding: 28px; width: min(480px, 100%); max-height: 90vh; overflow-y: auto; position: relative; animation: pop .3s; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.modal .x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; background: #111827; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: pop .3s; }

/* ---------- inner pages ---------- */
.page-hero { background: var(--hero); color: #fff; padding: 50px 0 60px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { opacity: .9; margin-top: 8px; max-width: 640px; }
.crumb { font-size: .85rem; opacity: .8; margin-bottom: 10px; }
.crumb a:hover { text-decoration: underline; }
.page { padding: 40px 0 60px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs button { padding: 13px 20px; border: 0; background: none; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
@media (max-width: 700px) {
  /* phones: every tab stays visible (wraps to a second row) instead of hiding off-screen */
  .tabs { flex-wrap: wrap; overflow-x: visible; gap: 6px; border-bottom: 0; }
  .tabs button { padding: 8px 12px; font-size: .84rem; border: 1px solid var(--border); border-radius: 99px; }
  .tabs button.active { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }
}
.cd { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.buybox { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.buybox .thumb { height: 170px; }
.buybox .in { padding: 20px; display: grid; gap: 12px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--primary); background: var(--surface2); text-transform: uppercase; }
.unit { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.unit summary { padding: 16px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; }
.unit ul { list-style: none; padding: 0 16px 14px; display: grid; gap: 6px; }
.unit li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: .88rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps div { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.steps b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: var(--on-primary); margin-bottom: 10px; }
.toggle-2 { display: inline-flex; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.toggle-2 button { padding: 9px 22px; border-radius: 99px; border: 0; background: none; font-weight: 700; cursor: pointer; color: var(--primary); }
.toggle-2 button.active { background: linear-gradient(90deg, var(--primary), var(--primary2)); color: var(--on-primary); }
.infostack { display: grid; gap: 10px; margin: 20px 0; }
.infostack div { padding: 14px; text-align: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 1.05rem; }
.ptable { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ptable .tr { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 10px; }
.ptable .tr:nth-child(even) { background: var(--surface2); }
.ptable .th { background: #111827; color: #fff; font-weight: 700; }
.ptable .acts { display: flex; gap: 6px; }

/* ---------- CBT ---------- */
.cbt { position: fixed; inset: 0; z-index: 80; background: #f4f6fb; color: #111; display: flex; flex-direction: column; font-family: Arial, sans-serif; }
.cbt-top { background: #1d3a8a; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.cbt-top .timer { background: #fff; color: #1d3a8a; padding: 6px 14px; border-radius: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cbt-main { flex: 1; display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
.cbt-q { padding: 24px; overflow-y: auto; }
.cbt-q .qh { display: flex; justify-content: space-between; border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 16px; font-weight: 700; }
.cbt-q .qt { font-size: 1.05rem; margin-bottom: 18px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid #ccd; border-radius: 8px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.opt.sel { border-color: #1d3a8a; background: #e8eeff; }
.cbt-side { background: #fff; border-left: 1px solid #ddd; padding: 16px; overflow-y: auto; }
.pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.pal button { aspect-ratio: 1; border: 1px solid #bbb; border-radius: 6px; background: #eee; cursor: pointer; font-weight: 700; }
.pal .ans { background: #16a34a; color: #fff; border-color: #16a34a; }
.pal .nans { background: #dc2626; color: #fff; border-color: #dc2626; }
.pal .rev { background: #7c3aed; color: #fff; border-color: #7c3aed; border-radius: 50%; }
.pal .cur { outline: 3px solid #f59e0b; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: .75rem; }
.legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; background: var(--c); }
.cbt-foot { display: flex; gap: 10px; padding: 12px 20px; background: #fff; border-top: 1px solid #ddd; flex-wrap: wrap; }
.cbt-foot button { padding: 10px 18px; border-radius: 6px; border: 1px solid #bbb; background: #fff; font-weight: 700; cursor: pointer; }
.cbt-foot .g { background: #16a34a; color: #fff; border-color: #16a34a; }
.cbt-foot .p { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.cbt-foot .s { background: #1d3a8a; color: #fff; margin-left: auto; }

/* ---------- analysis / dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.kpi .v { font-size: 1.9rem; font-weight: 800; font-family: var(--font-head); color: var(--primary); }
.kpi .l { color: var(--muted); font-size: .85rem; }
.kpi .ic { font-size: 1.4rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.panel h3 { font-size: 1.1rem; margin-bottom: 14px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 48px; gap: 10px; align-items: center; font-size: .85rem; }
.bar-bg { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar-fg { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary2)); transition: width 1s; }
.bar-fg.weak { background: linear-gradient(90deg, #ef4444, #f97316); }
.dash { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 20px; }
.ring { width: 150px; height: 150px; }
.streakcal { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); }
.sc { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); margin: auto; }
.sc.on { background: linear-gradient(135deg, #f97316, #facc15); border-color: transparent; box-shadow: 0 0 12px rgba(249, 115, 22, .5); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.bdg { text-align: center; padding: 16px 10px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--border); }
.bdg .e { font-size: 2.2rem; } .bdg.locked { filter: grayscale(1); opacity: .5; }
.bdg b { display: block; font-size: .85rem; margin-top: 6px; } .bdg small { font-size: .72rem; color: var(--muted); }
.plan-day { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface2); margin-bottom: 8px; align-items: center; }
.plan-day .d { width: 48px; text-align: center; font-weight: 800; color: var(--primary); line-height: 1.1; }
.plan-day input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) { .header-actions .btn-ghost { display: none; } .nav a { padding: 8px 8px; font-size: .85rem; } }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); padding: 12px 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .header-actions { margin-left: auto; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .rgrid { grid-template-columns: repeat(2, 1fr); }
  .goals.v-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero .slide, .hero.v-split .slide { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero .slides { min-height: 400px; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
  .vwrap, .lead, .appband, .cd, .dash, .edu { grid-template-columns: 1fr; }
  .edu .ph { max-width: 220px; }
  .rescols, .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .cbt-main { grid-template-columns: 1fr; }
  .cbt-side { border-left: 0; border-top: 1px solid #ddd; max-height: 220px; }
  .phone { display: none; }
  .buybox { position: static; }
  .sl-arrow { display: none; }
  .bar-row { grid-template-columns: 110px 1fr 40px; }
}
@media (max-width: 560px) {
  .fgrid, .rgrid { grid-template-columns: 1fr; }
  .goals.v-tiles { grid-template-columns: repeat(2, 1fr); }
  .goal { min-width: 0; width: 100%; }
  .header-actions .btn-ghost, .streak-pill { display: none; }
  .brand small { display: none; }
  .lb-row { grid-template-columns: 44px 1fr auto; }
  .lb-row .acc { display: none; }
  .lead .trust { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .rail { display: none; }
  .chat-hint { right: 16px; bottom: 140px; }
  .daily { padding: 22px; }
  .podium .bar { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Production additions (Laravel build)
   ========================================================= */
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
button.vitem, button.vcard, button.poster { font: inherit; color: inherit; border: 0; text-align: left; cursor: pointer; }
button.vitem { width: 100%; background: none; }
button.vcard { padding: 0; display: block; }
.vitem > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.vcard .vt, .vcard .vb { display: block; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.price b.free { color: #16a34a; letter-spacing: .04em; }

/* product cards with images */
.pcard .thumb.has-img { padding: 0; height: auto; aspect-ratio: 16 / 9; }
.pcard .thumb.has-img::after { display: none; }
.pcard .thumb img, .buybox .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .ptitle { font-size: 1.1rem; }
.pcard.v-poster .thumb { height: 230px; }
.pcard.v-poster .thumb.has-img { aspect-ratio: auto; }
.pcard.v-poster .body ul { display: none; }
.pcard.v-compact .thumb.has-img { aspect-ratio: auto; }
.buybox .thumb { position: relative; display: flex; align-items: end; padding: 16px; color: #fff; }
.buybox .thumb.has-img { padding: 0; aspect-ratio: 16 / 9; height: auto; }
.buybox .thumb .badge { position: absolute; top: 12px; left: 12px; background: #fff; color: #111; z-index: 1; }
.buybox .thumb h4 { position: relative; z-index: 1; font-size: 1.2rem; }

/* hero with admin image banners */
.hero .slide.img-slide { display: block; padding: 28px 0 56px; }
.banner-img { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.banner-img img { width: 100%; height: auto; display: block; }
.goal .ic img, .fcard .ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* product page */
.product-hero h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pro-pill { font-size: .9rem; padding: 5px 12px; border-radius: 99px; background: linear-gradient(90deg, #f59e0b, #fde68a); color: #7c2d12; font-family: var(--font); }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-chips span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; border-radius: 99px; font-size: .85rem; }
.prose { margin-top: 20px; color: var(--muted); }
.prose h2, .prose h3 { color: var(--text); margin: 16px 0 8px; }
.prose ul, .prose ol { margin: 8px 0 8px 22px; }
.checklist { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.checklist li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-weight: 800; margin-right: 10px; font-size: .8rem; }
.cur-summary { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; margin-bottom: 14px; }
.unit.subject > summary { font-size: 1.02rem; background: var(--surface2); }
.unit summary span { flex: 1; }
.topic { margin: 8px 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.topic summary { padding: 12px 14px; cursor: pointer; font-weight: 600; display: flex; gap: 10px; }
.topic ul { list-style: none; padding: 0 10px 10px; display: grid; gap: 6px; }
.unit li.lec, .lec { display: grid; justify-content: stretch; grid-template-columns: 34px 1fr auto 26px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: .88rem; }
.lec-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: .8rem; }
.lec-t b { font-weight: 500; }
.lec-d { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; }
.lec.locked { opacity: .92; }
.lec.locked .lec-t { filter: saturate(.6); }
.fgrid.two { grid-template-columns: repeat(2, 1fr); }

/* testimonials */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tgrid.as-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.tgrid.as-carousel .tcard { flex: 0 0 320px; scroll-snap-align: start; }
.res-img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 8px; }
.offer-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; margin-right: 10px; }
.tslider { position: relative; }
.tslider .tgrid { gap: 18px; scrollbar-width: none; padding: 4px 2px 12px; }
.tslider .tgrid::-webkit-scrollbar { display: none; }
.tslider .tgrid.as-carousel .tcard { flex: 0 0 calc((100% - 36px) / 3); }
.tnav { position: absolute; top: 42%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.tnav.prev { left: -14px; } .tnav.next { right: -14px; }
.tnav:hover { background: var(--primary); color: var(--on-primary, #fff); }
.tslider.static .tnav { display: none; }
.tdots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.tdots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: var(--border); cursor: pointer; transition: width .25s, background .25s; }
.tdots button.on { width: 26px; background: var(--primary); }
@media (max-width: 900px) { .tslider .tgrid.as-carousel .tcard { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px) { .tslider .tgrid.as-carousel .tcard { flex-basis: 86%; } .tnav { width: 36px; height: 36px; } .tnav.prev { left: -6px; } .tnav.next { right: -6px; } }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tvideo { position: relative; aspect-ratio: 16 / 9; background: #000; }
.tvideo .poster, .tvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background-size: cover; background-position: center; display: grid; place-items: center; }
.tvideo .playbtn { width: 60px; height: 60px; font-size: 1.3rem; }
.tbody { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tbody .q { color: var(--accent); font-size: 2rem; line-height: .6; font-family: Georgia, serif; }
.tbody p { font-size: .92rem; flex: 1; }
.tperson { display: flex; gap: 10px; align-items: center; }
.tperson img, .tav { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tav { display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.tperson small { display: block; color: var(--accent); font-weight: 700; font-size: .8rem; }

/* stepper — "How to learn / How to access" */
.stepper { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.steps-list { list-style: none; position: relative; }
.steps-list li { display: flex; gap: 16px; padding: 0 0 26px; cursor: pointer; position: relative; }
.steps-list li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; border-left: 2px dashed var(--border); }
.steps-list .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); flex-shrink: 0; margin-top: 3px; transition: .3s; }
.steps-list li.active .dot { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 20%, transparent); }
.steps-list li.done .dot { background: color-mix(in srgb, var(--primary) 40%, var(--surface)); border-color: transparent; }
.steps-list h4 { font-size: 1.15rem; color: var(--muted); transition: .3s; }
.steps-list li.active h4 { color: var(--text); }
.steps-list p { color: var(--muted); font-size: .92rem; max-height: 0; overflow: hidden; transition: max-height .4s; }
.steps-list li.active p { max-height: 80px; margin-top: 4px; }
.steps-list .bar { display: block; height: 2px; width: 100%; max-width: 320px; background: var(--border); margin-top: 12px; position: relative; overflow: hidden; }
.steps-list li.active .bar::after { content: ''; position: absolute; inset: 0; background: var(--primary); animation: stepbar 3.5s linear; }
@keyframes stepbar { from { transform: translateX(-100%); } }
.steps-shot .device { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; border: 10px solid #1f2937; background: #1f2937; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.shot.active { opacity: 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.steps-shot .device.is-phone { aspect-ratio: 9 / 19.5; width: min(240px, 100%); margin: 0 auto; border-radius: 38px; border-width: 9px; background: #fff; }
.device.is-phone .shot img { object-fit: contain; background: #fff; }
.shot-ph { width: 100%; height: 100%; display: grid; place-content: center; gap: 10px; text-align: center; color: #fff; background: var(--hero); }
.shot-ph span { font-size: 4rem; font-weight: 900; font-family: var(--font-head); opacity: .9; }
.shot-ph b { font-size: 1.3rem; padding: 0 20px; }

/* promo popups */
.modal.pp { padding: 0; overflow: hidden; width: min(520px, 100%); }
.modal.pp .x { z-index: 2; background: rgba(255, 255, 255, .9); border-radius: 50%; width: 34px; height: 34px; }
.pp-img { display: block; }
.pp-img img { width: 100%; display: block; }
.pp-body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.pp-body h3 { font-size: 1.4rem; }
.pp-body p { color: var(--muted); }
.pp-body .btn { justify-self: start; }
.modal.pp-image .pp-body { display: none; }
.modal-bg:has(.pp-fullscreen) { padding: 0; }
.modal.pp-fullscreen { width: 100%; height: 100%; max-height: none; border-radius: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.modal.pp-fullscreen .pp-img img { height: 100vh; object-fit: cover; }
.modal.pp-fullscreen .pp-body { padding: 40px; }
.modal.pp-fullscreen .pp-body h3 { font-size: 2.4rem; }
.pp-float { position: fixed; z-index: 85; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; transition: transform .45s cubic-bezier(.2, .9, .3, 1.1), opacity .3s; opacity: 0; }
.pp-float.show { opacity: 1; transform: none !important; }
.pp-float .x { position: absolute; top: 8px; right: 10px; z-index: 2; border: 0; background: rgba(255, 255, 255, .9); color: #111; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.pp-sheet { left: 50%; bottom: 0; width: min(640px, 100%); margin-left: max(-320px, -50%); border-radius: 24px 24px 0 0; transform: translateY(100%); display: grid; grid-template-columns: 200px 1fr; }
.pp-sheet .pp-img img { height: 100%; object-fit: cover; }
.pp-slide { right: 20px; top: 50%; width: 320px; border-radius: 20px; transform: translate(120%, -50%); margin-top: -40px; }
.pp-slide.show { transform: translateY(-50%) !important; }
.pp-corner { right: 20px; bottom: 100px; width: 280px; border-radius: 18px; transform: translateY(30px) scale(.9); }
.pp-corner .pp-body { padding: 14px 16px 16px; }
.pp-corner .pp-body h3 { font-size: 1.05rem; }

/* app download popup (bottom-left) */
.appdl { position: fixed; left: 20px; bottom: 20px; z-index: 84; width: 300px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 16px; transform: translateY(20px); opacity: 0; transition: .4s; }
.appdl.show { transform: none; opacity: 1; }
.appdl-mini { position: fixed; left: 16px; bottom: 16px; z-index: 83; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 700 .82rem/1 inherit; font-family: inherit; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); cursor: pointer; animation: appdl-in .4s ease; }
.appdl-mini:hover { transform: translateY(-2px); }
.appdl-mini[hidden] { display: none; }
@keyframes appdl-in { from { transform: translateY(20px); opacity: 0; } }
.appdl-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.appdl-head { display: flex; gap: 10px; align-items: center; padding-right: 20px; }
.appdl-head img { border-radius: 10px; background: #fff; padding: 2px; object-fit: contain; }
.appdl-head small { display: block; color: var(--muted); font-size: .78rem; }
.appdl-qr { display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 10px; background: var(--surface2); border-radius: 14px; font-size: .8rem; color: var(--muted); }
.appdl-qr svg { width: 92px; height: 92px; background: #fff; padding: 6px; border-radius: 10px; flex-shrink: 0; }
.appdl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store-btn { display: flex; align-items: center; gap: 6px; background: #000; color: #fff; padding: 8px 10px; border-radius: 10px; font-size: .82rem; font-weight: 600; line-height: 1.1; }
.store-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.store-btn small { display: block; font-size: .58rem; font-weight: 400; opacity: .8; }
.appdl.is-mobile .appdl-qr { display: none; }
.appdl.is-android .store-btn.ios, .appdl.is-ios .store-btn.android { display: none; }
.appdl.is-android .appdl-btns, .appdl.is-ios .appdl-btns { grid-template-columns: 1fr; }
.appdl.is-mobile .store-btn { justify-content: center; padding: 12px; font-size: .95rem; }

/* WhatsApp moved to bottom-right (chat assistant will sit below it in Phase 2) */
.fab.wa { left: auto; right: 20px; bottom: 22px; }
.store svg { width: 26px; fill: #fff; }
.form-ok { text-align: center; padding: 26px 0; }
.form-err { color: #dc2626; text-align: center; }

@media (max-width: 860px) {
  .stepper { grid-template-columns: 1fr; gap: 24px; }
  .fgrid.two { grid-template-columns: 1fr; }
  .modal.pp-fullscreen { grid-template-columns: 1fr; overflow-y: auto; }
  .modal.pp-fullscreen .pp-img img { height: 45vh; }
  .pp-sheet { grid-template-columns: 1fr; margin-left: 0; left: 0; }
  .pp-sheet .pp-img img { max-height: 200px; }
  .pp-slide { right: 12px; width: calc(100% - 24px); }
}
@media (max-width: 560px) {
  .appdl { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .unit li.lec { grid-template-columns: 30px 1fr auto; }
  .lec-lock { display: none; }
  .pp-corner { right: 12px; left: 12px; width: auto; }
}

.cd > *, .dash > *, .lead > *, .vwrap > *, .stepper > * { min-width: 0; }
.lec-t { overflow-wrap: anywhere; }

@media (max-width: 420px) { .header-actions .btn-primary { display: none; } .header .container { gap: 10px; } }


/* =========================================================
   Phase 2 — login, dashboard, charts, enrollment toast
   ========================================================= */
.user-pill { font-weight: 700; }
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 16px; background: var(--hero); }
.auth-card { width: min(420px, 100%); background: var(--surface); color: var(--text); border-radius: 24px; padding: 30px 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); text-align: center; }
.auth-logo { margin: 0 auto 10px; border-radius: 16px; background: #fff; padding: 4px; object-fit: contain; }
.auth-card h1 { font-size: 1.6rem; }
.auth-step { display: grid; gap: 10px; margin-top: 18px; text-align: left; }
.auth-step label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: -4px; }
.auth-step input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); outline: none; font-size: 1rem; }
.auth-step input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }
.phone-in { display: flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface2); }
.phone-in span { padding: 12px; font-weight: 700; color: var(--muted); border-right: 1px solid var(--border); }
.phone-in input { border: 0; border-radius: 0; }
.hello { font-size: 1rem; }
.auth-info { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, transparent); font-size: .9rem; }
.auth-err { margin-top: 12px; color: #dc2626; font-weight: 600; font-size: .9rem; }
.linkish { margin-top: 12px; background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; font-weight: 600; }

.dash-hero { padding: 40px 0 46px; }
.dash-hero-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.tier-badge { padding: 3px 12px; border-radius: 99px; font-weight: 800; font-size: .82rem; background: rgba(255, 255, 255, .18); }
.tier-badge.t-pro { background: linear-gradient(90deg, #f59e0b, #fde68a); color: #7c2d12; }
.trial-pill { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: .82rem; }
.dash-page .panel h3 { display: flex; align-items: center; gap: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
.small { font-size: .82rem; }
.unlock-hero { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 20px; }
.unlock-hero h2 { font-size: 1.5rem; }
.proof { margin-top: 10px; font-weight: 600; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.locked-grid .kpi, .kpi.blurred { position: relative; }
.kpi.blurred .v { filter: blur(6px); color: var(--muted); }
.lock-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.kpi .lock-chip { position: absolute; top: 12px; right: 12px; }

.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ring-card { text-align: center; }
.ring-card .ring { width: 100%; max-width: 120px; height: auto; }
.ring-card b { font-size: .82rem; display: block; margin-top: 4px; }
.ring-bg { fill: none; stroke: var(--surface2); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--primary); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s; }
.ring-num { font: 800 19px var(--font-head); fill: var(--text); text-anchor: middle; }
.ring-sub { font-size: 9px; fill: var(--muted); text-anchor: middle; }

.course-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.course-row:last-child { border-bottom: 0; }
.course-row small { display: block; }
.course-row.expired b { color: var(--muted); }
.cr-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill-days, .pill-exp { padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.pill-days.warn { background: #fff7ed; color: #c2410c; }
.pill-exp { background: #fef2f2; color: #b91c1c; }

.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 20px; height: 0; border-top: 2px solid; }
.lg-you { border-color: var(--primary) !important; border-top-width: 3px !important; }
.lg-avg { border-color: var(--muted) !important; border-top-style: dashed !important; }
.lg-top { border-color: var(--accent) !important; border-top-style: dotted !important; border-top-width: 3px !important; }
.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid { stroke: var(--border); stroke-width: 1; }
.line-chart .axis { font-size: 11px; fill: var(--muted); }
.line-chart .val { font-size: 12px; font-weight: 700; fill: var(--text); }
.ln-you { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ln-avg { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; }
.ln-top { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1 5; stroke-linecap: round; }
.pt-you { fill: var(--primary); stroke: var(--surface); stroke-width: 2; }
.hit { fill: transparent; cursor: pointer; }
.table-view { margin-top: 10px; font-size: .85rem; }
.table-view summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table-view th, .table-view td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.table-view th { color: var(--muted); font-size: .75rem; }
.chart-tip { position: fixed; z-index: 120; pointer-events: none; background: #111827; color: #fff; font-size: .8rem; padding: 6px 10px; border-radius: 8px; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.insights { display: grid; gap: 8px; margin-top: 12px; }
.insights div { padding: 10px 14px; border-radius: 12px; background: var(--surface2); font-size: .9rem; }
.trend { font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 99px; }
.trend.up { background: #dcfce7; color: #166534; } .trend.down { background: #fee2e2; color: #991b1b; }
.pro-tease { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px dashed var(--accent); font-size: .9rem; }
.pro-tease a { color: var(--primary); font-weight: 700; }

.heat { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.heat-col { display: grid; gap: 4px; }
.hc { width: 16px; height: 16px; border-radius: 4px; background: var(--surface2); border: 1px solid var(--border); display: inline-block; }
.hc.present { background: var(--primary); border-color: transparent; }
.hc.absent { background: #f87171; border-color: transparent; opacity: .75; }
.hc.future { opacity: .35; }

.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--border); }
.seg a { padding: 6px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.seg a.on { background: var(--primary); color: var(--on-primary); }
.my-rank { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border-radius: 16px; margin-bottom: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent); border: 1px solid var(--border); }
.my-rank small { display: block; color: var(--muted); font-size: .75rem; }
.my-rank b { font-size: 1.15rem; }
.my-rank .gap { flex-basis: 100%; font-size: .9rem; }
.lb-row.me { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.you-tag { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--primary); color: var(--on-primary); font-size: .7rem; }
.locked-board { position: relative; }
.locked-board .blurred { filter: blur(5px); pointer-events: none; user-select: none; }
.lock-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; font-weight: 700; }

.compare .cmp-bars { display: grid; gap: 10px; margin: 10px 0; }
.cmp-bars div { display: grid; grid-template-columns: 200px 1fr 56px; gap: 10px; align-items: center; font-size: .88rem; }
.cmp-bars i { height: 12px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.cmp-bars em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f59e0b, #fde68a); }
.cmp-bars em.rest { background: var(--muted); opacity: .6; }

.zone-title { margin: 40px 0 16px; font-size: 1.5rem; }
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pro-card { position: relative; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, #f59e0b 40%, var(--border)); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.pro-card .pc-ic { font-size: 1.8rem; }
.pro-card p { color: var(--muted); font-size: .88rem; }
.pro-card.locked > *:not(.lock-chip):not(.pc-ic):not(h4) { opacity: .55; }
.pro-card .lock-chip { justify-self: start; }
.pro-card .btn { justify-self: start; }
.ds-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.ds-row small { display: block; color: var(--muted); }
.pro-cta { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: 20px; background: linear-gradient(90deg, #7c2d12, #b45309); color: #fff; }
.pro-cta span { display: block; opacity: .85; font-size: .9rem; color: #fde68a; }

/* product page: already-purchased note */
.owned-lock { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: 16px; margin-bottom: 14px; background: #fef2f2; border: 1px solid #fecaca; }
.sec-alert { color: #b91c1c; font-weight: 700; }
.owned-badge { text-align: center; padding: 8px; border-radius: 10px; background: #dcfce7; color: #166534; font-weight: 700; }

/* "just enrolled" toast */
.enroll-toast { position: fixed; left: 20px; bottom: 20px; z-index: 83; display: flex; gap: 10px; align-items: center; max-width: 340px; padding: 12px 16px; border-radius: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0, 0, 0, .22); font-size: .85rem; transform: translateX(-120%); transition: transform .5s cubic-bezier(.2, .9, .3, 1.1); }
.enroll-toast.show { transform: none; }
.enroll-toast .et-ic { font-size: 1.6rem; }
.enroll-toast small { display: block; color: var(--muted); margin-top: 2px; }

@media (max-width: 860px) {
  .rings { grid-template-columns: repeat(2, 1fr); }
  .pro-grid { grid-template-columns: 1fr; }
  .cmp-bars div { grid-template-columns: 1fr 44px; }
  .cmp-bars div span { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .enroll-toast { left: 10px; right: 10px; max-width: none; } }

.header-actions .login-btn, .header-actions .user-pill { display: inline-flex !important; }


/* =========================================================
   Blog
   ========================================================= */
.blog-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 18px; }
.blog-search input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; outline: none; }
.blog-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.bgrid.v-list { grid-template-columns: 1fr; }
.bcard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.bcard:hover { transform: translateY(-5px); box-shadow: 0 18px 40px var(--glow); }
.bthumb { position: relative; display: grid; place-items: end start; aspect-ratio: 1200 / 630; padding: 16px; color: #fff; overflow: hidden; }
.bthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bthumb > span { font: 800 1.15rem/1.25 var(--font-head); text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.bcat { position: absolute; top: 12px; left: 12px; z-index: 1; font-style: normal; font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .95); color: #111; padding: 3px 10px; border-radius: 99px; }
.bbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bbody h3 { font-size: 1.08rem; line-height: 1.35; }
.bbody h3 a:hover { color: var(--primary); }
.bbody p { color: var(--muted); font-size: .9rem; flex: 1; }
.bmeta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.blog-featured { margin-bottom: 26px; }
.bcard.big { display: grid; grid-template-columns: 1.2fr 1fr; }
.bcard.big .bthumb { aspect-ratio: auto; min-height: 280px; }
.bcard.big .bbody { padding: 26px; justify-content: center; }
.bcard.big h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.bcard.big p { flex: 0; font-size: .98rem; }
.bgrid.v-list .bcard { display: grid; grid-template-columns: 280px 1fr; }
.bgrid.v-list .bthumb { aspect-ratio: auto; min-height: 160px; }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 30px; }

.post-hero h1 { max-width: 900px; }
.post-meta { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.post-meta small { display: block; opacity: .85; font-size: .82rem; }
.post-meta .av, .cmt .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; background: rgba(255, 255, 255, .2); color: #fff; }
.post-layout { align-items: start; }
.post { min-width: 0; }
.post-cover { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: 8px; }
.post-prose { color: var(--text); font-size: 1.04rem; line-height: 1.8; }
.post-prose p { margin: 0 0 14px; }
.post-prose h2 { font-size: 1.5rem; margin: 28px 0 10px; }
.post-prose h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.post-prose a { color: var(--primary); text-decoration: underline; }
.post-prose blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--primary); background: var(--surface2); border-radius: 0 12px 12px 0; font-style: italic; }
.post-prose li { margin: 4px 0; }
.post-fig { margin: 22px 0; }
.post-fig img { width: 100%; border-radius: 14px; }
.post-fig .tvideo { border-radius: 14px; overflow: hidden; }
.post-fig figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 8px; }
.callout { margin: 20px 0; padding: 14px 18px; border-radius: 14px; border: 1px solid; }
.callout b { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout.c-tip { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.callout.c-info { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.callout.c-warning { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.callout.c-success { background: #f0fdf4; border-color: #86efac; color: #14532d; }
.post-course { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; margin: 24px 0; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.post-course .pc-img { position: relative; display: grid; place-items: end start; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; padding: 12px; color: #fff; font-weight: 800; }
.post-course .pc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-course h4 { margin: 2px 0 6px; }
.post-course .price { margin: 0 0 10px; }
.post-course .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; }
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.share-bar .sh { padding: 7px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.sh.wa { background: #25d366; } .sh.tg { background: #229ed9; } .sh.fb { background: #1877f2; } .sh.x { background: #111; } .sh.copy { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.comments h3 { margin-bottom: 14px; }
.cmt { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cmt .av { background: linear-gradient(135deg, var(--primary), var(--accent)); width: 38px; height: 38px; }
.cmt p { margin: 4px 0 0; }
.cmt-reply { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface2); border-left: 3px solid var(--primary); font-size: .92rem; }
.cmt-form { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.cmt-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmt-form input, .cmt-form textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font: inherit; outline: none; resize: vertical; }
.cmt-form input:focus, .cmt-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }
.cmt-form .btn { justify-self: start; }
.form-msg.ok { color: #16a34a; font-weight: 600; } .form-msg.err { color: #dc2626; font-weight: 600; }
.post-side { position: sticky; top: 90px; display: grid; gap: 18px; }
.side-box { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 12px; }
.side-course { display: flex; gap: 10px; align-items: center; }
.side-course .sc-img { position: relative; width: 84px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.side-course .sc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-course b, .side-post b { display: block; font-size: .88rem; line-height: 1.3; }
.side-course small, .side-post small { color: var(--muted); font-size: .78rem; }
.side-course:hover b, .side-post:hover b { color: var(--primary); }
.side-post { display: block; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.side-post:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 860px) {
  .bcard.big, .bgrid.v-list .bcard { grid-template-columns: 1fr; }
  .bcard.big .bthumb, .bgrid.v-list .bthumb { aspect-ratio: 1200 / 630; min-height: 0; }
  .post-side { position: static; }
  .post-course { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .cmt-form .row2 { grid-template-columns: 1fr; } }
