/* Success Mantra Group — premium navy & gold theme */
:root {
  --n950: #050d1c; --n900: #0a1830; --n850: #0e2040; --n800: #12284d; --n700: #1b3766; --n600: #2a4a80;
  --gold: #c9a24a; --gold2: #e3c16b; --gold3: #f6e6ae; --golddk: #9b7a2c;
  --goldgrad: linear-gradient(135deg, #f7e7b0 0%, #e2bf66 38%, #c79d42 62%, #9e7a2d 100%);
  --cream: #f6f2e9; --cream2: #efe8d9; --paper: #ffffff;
  --ink: #0a1830; --ink2: #24344d; --muted: #5d6b80; --line: #e6dfcf; --line2: #ece7dc;
  --ok: #1f8a5b; --okbg: #e6f5ee; --err: #b3392f; --errbg: #fbeceb; --warn: #9a6a07; --warnbg: #fdf4de; --info: #1f5fa8; --infobg: #e8f0fb;
  --r: 14px; --r2: 20px;
  --sh1: 0 1px 2px rgba(10,24,48,.06), 0 4px 14px rgba(10,24,48,.06);
  --sh2: 0 10px 30px rgba(10,24,48,.10), 0 2px 6px rgba(10,24,48,.06);
  --sh3: 0 24px 60px rgba(5,13,28,.28);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--n700); text-decoration: none; }
a:hover { color: var(--golddk); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink); }
h1, h2, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.gold-text { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--golddk); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--goldgrad); border-radius: 2px; }
.dark .eyebrow { color: var(--gold2); }
.hide { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 700 15px/1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--goldgrad); color: #1a1405; box-shadow: 0 6px 18px rgba(201,162,74,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { color: #1a1405; box-shadow: 0 10px 26px rgba(201,162,74,.5), inset 0 1px 0 rgba(255,255,255,.5); transform: translateY(-1px); }
.btn-navy { background: var(--n900); color: #fff; }
.btn-navy:hover { background: var(--n700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); background: #fff; }
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--gold2); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; } .btn-ok:hover { color: #fff; filter: brightness(1.08); }
.btn-danger { background: #fff; color: var(--err); border-color: #efc9c5; } .btn-danger:hover { background: var(--errbg); color: var(--err); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--n700); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- public header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(8,20,40,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(227,193,107,.14); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.brand b { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .02em; line-height: 1.1; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.82); font-weight: 600; font-size: 14.5px; padding: 9px 14px; border-radius: 999px; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255,255,255,.07); }
.nav a.on { color: var(--gold2); }
.head-cta { display: flex; gap: 10px; align-items: center; }
.head-cta .btn { min-height: 42px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-head.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 6px; background: var(--n900); border-bottom: 1px solid rgba(227,193,107,.15); }
  .site-head.open .nav a { padding: 13px 14px; font-size: 16px; }
  .site-head.open .head-cta { display: flex; position: absolute; left: 0; right: 0; top: calc(76px + var(--navh, 290px)); padding: 8px 16px 18px; background: var(--n900); box-shadow: 0 20px 30px rgba(0,0,0,.35); }
  .site-head.open .head-cta .btn { flex: 1; }
  .brand img { height: 40px; }
}

/* ---------- hero ---------- */
.dark { background: var(--n900); color: #dfe6f0; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(201,162,74,.20), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(42,74,128,.55), transparent 60%), linear-gradient(180deg, #0a1830 0%, #071226 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; margin: 18px 0 20px; }
.hero .lead { font-size: 18px; color: #b9c6d8; max-width: 560px; margin-bottom: 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: #c9d4e3; font-size: 14px; font-weight: 600; }
.hero-points span { display: inline-flex; gap: 8px; align-items: center; }
.hero-points .ico { color: var(--gold2); }
.hero-art { position: relative; height: 520px; }
.hero-art .ph { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--sh3); border: 1px solid rgba(227,193,107,.25); background: var(--n800); }
.hero-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .p1 { right: 0; top: 0; width: 78%; height: 66%; }
.hero-art .p2 { left: 0; bottom: 0; width: 58%; height: 50%; }
.hero-art .p1::after, .hero-art .p2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,13,28,.55)); }
.float-card { position: absolute; z-index: 2; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--sh3); font-size: 13.5px; }
.float-card b { display: block; font-size: 15px; }
.float-card .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--goldgrad); color: #1a1405; }
.float-card .fi .ico { width: 22px; height: 22px; }
.float-card.f1 { left: 4%; top: 18%; animation: bob 6s ease-in-out infinite; }
.float-card.f2 { right: 3%; bottom: 9%; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 36px; }
  .hero-art { height: 380px; }
  .hero .lead { font-size: 16.5px; }
}
@media (max-width: 520px) { .hero-art { height: 300px; } .float-card { font-size: 12px; padding: 9px 12px; } .float-card .fi { width: 34px; height: 34px; } .hero-points { gap: 12px 18px; } }

/* ---------- stats band ---------- */
.band { position: relative; z-index: 2; margin-top: -44px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r2); box-shadow: var(--sh2); border: 1px solid var(--line2); overflow: hidden; }
.stats > div { padding: 26px 22px; border-right: 1px solid var(--line2); display: flex; gap: 14px; align-items: center; }
.stats > div:last-child { border-right: 0; }
.stats .si { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #f8f1df; color: var(--golddk); flex: none; }
.stats .si .ico { width: 24px; height: 24px; }
.stats b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line2); } }
@media (max-width: 420px) { .stats > div { padding: 18px 14px; gap: 10px; } .stats .si { width: 40px; height: 40px; } .stats b { font-size: 21px; } }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec.tight { padding: 64px 0; }
.sec-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 44px); margin: 12px 0 14px; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }
.dark .sec-head p { color: #aebbd0; }
.sec-head.left { margin-left: 0; text-align: left; }
@media (max-width: 700px) { .sec { padding: 64px 0; } .sec-head { margin-bottom: 32px; } }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0,1fr); } }

.feat { background: #fff; border: 1px solid var(--line2); border-radius: var(--r2); padding: 28px 26px; box-shadow: var(--sh1); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh2); border-color: #e9d9ac; }
.feat .fi { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--n800), var(--n900)); color: var(--gold2); margin-bottom: 18px; box-shadow: 0 8px 18px rgba(10,24,48,.18); }
.feat .fi .ico { width: 26px; height: 26px; }
.feat h3 { font-size: 18.5px; margin-bottom: 8px; }
.feat p { color: var(--muted); margin: 0; font-size: 15px; }

/* split image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .img { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--sh2); aspect-ratio: 5/4; background: var(--n800); }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
.split .img .tag { position: absolute; left: 18px; bottom: 18px; background: rgba(10,24,48,.86); color: #fff; padding: 12px 16px; border-radius: 14px; backdrop-filter: blur(6px); font-size: 13.5px; border: 1px solid rgba(227,193,107,.3); }
.split .img .tag b { color: var(--gold2); display: block; font-size: 16px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li .ico { color: var(--ok); width: 22px; height: 22px; margin-top: 1px; }
.dark .ticks li .ico { color: var(--gold2); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } .split.rev .img { order: -1; } }

/* steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; }
.step { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(227,193,107,.18); border-radius: var(--r2); padding: 28px 22px; }
.step::before { counter-increment: st; content: "0" counter(st); font-family: var(--serif); font-size: 40px; font-weight: 700; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; line-height: 1; }
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { color: #a9b6ca; font-size: 14.5px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* level ladder */
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; }
.rung { position: relative; border-radius: 16px 16px 10px 10px; padding: 18px 14px; color: #fff; background: linear-gradient(180deg, var(--n700), var(--n900)); border: 1px solid rgba(227,193,107,.22); box-shadow: var(--sh2); display: flex; flex-direction: column; justify-content: flex-end; }
.rung .n { font-family: var(--serif); font-size: 13px; color: var(--gold2); letter-spacing: .1em; }
.rung b { display: block; font-size: 15px; line-height: 1.25; margin-top: 4px; }
.rung:last-child { background: var(--goldgrad); color: #1a1405; }
.rung:last-child .n { color: #5a4512; }
@media (max-width: 860px) { .ladder { grid-template-columns: repeat(3, 1fr); } .rung { min-height: 96px !important; } }
@media (max-width: 460px) { .ladder { grid-template-columns: repeat(2, 1fr); } }

/* lesson / course cards */
.lcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line2); box-shadow: var(--sh1); transition: transform .25s, box-shadow .25s; color: var(--ink); height: 100%; }
.lcard:hover { transform: translateY(-4px); box-shadow: var(--sh2); color: var(--ink); }
.lcard .th { position: relative; aspect-ratio: 16/9; background: var(--n800) center/cover no-repeat; overflow: hidden; }
.lcard .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lcard:hover .th img { transform: scale(1.04); }
.lcard .th::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,13,28,.05) 40%, rgba(5,13,28,.6)); }
.lcard .play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--n900); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s; }
.lcard .play .ico { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.lcard:hover .play { transform: translate(-50%,-50%) scale(1.08); }
.lcard .chip-on { position: absolute; z-index: 1; left: 12px; top: 12px; }
.lcard .dur { position: absolute; z-index: 1; right: 12px; bottom: 12px; color: #fff; font-size: 12.5px; font-weight: 700; background: rgba(0,0,0,.55); padding: 3px 9px; border-radius: 999px; }
.lcard .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.lcard h3 { font-size: 17px; margin-bottom: 6px; }
.lcard p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.lcard .meta { margin-top: auto; display: flex; gap: 14px; font-size: 13px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.lcard.locked .th img { filter: grayscale(.7) brightness(.6); }
.lcard .lockov { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; font-weight: 700; font-size: 13.5px; }
.lcard .lockov .ico { width: 30px; height: 30px; display: block; margin: 0 auto 6px; color: var(--gold2); }

/* founder */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; background: #fff; border-radius: 28px; padding: 40px; box-shadow: var(--sh2); border: 1px solid var(--line2); position: relative; overflow: hidden; }
.founder::before { content: "“"; position: absolute; right: 30px; top: -30px; font-family: var(--serif); font-size: 260px; color: #f3e9cd; line-height: 1; }
.founder .badge-logo { aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 30% 20%, var(--n700), var(--n950)); display: grid; place-items: center; padding: 34px; box-shadow: var(--sh3); }
.founder blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--ink); position: relative; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; padding: 26px; gap: 26px; } .founder .badge-logo { max-width: 240px; } .founder blockquote { font-size: 20px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 0 22px; box-shadow: var(--sh1); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--golddk); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 48px; background: radial-gradient(600px 300px at 90% 0%, rgba(227,193,107,.25), transparent 60%), linear-gradient(135deg, var(--n800), var(--n950)); color: #d7e0ec; display: flex; gap: 30px; align-items: center; justify-content: space-between; box-shadow: var(--sh3); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 24px; } }

/* page header (inner pages) */
.phead { background: radial-gradient(800px 300px at 90% 0%, rgba(201,162,74,.18), transparent 60%), linear-gradient(180deg, #0a1830, #081428); color: #c4cfde; padding: 64px 0 56px; }
.phead h1 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); margin: 12px 0 10px; }
.phead p { max-width: 640px; font-size: 17px; margin: 0; }
.crumbs { font-size: 13px; color: #8fa0b8; }
.crumbs a { color: #c9d4e3; }

/* footer */
.foot { background: var(--n950); color: #9fadc2; padding: 64px 0 0; font-size: 14.5px; }
.foot a { color: #c9d4e3; }
.foot a:hover { color: var(--gold2); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot .contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot .contact .ico { color: var(--gold2); margin-top: 3px; }
.foot .bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; gap: 28px; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.4); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float .ico { width: 28px; height: 28px; }

/* ---------- forms ---------- */
.f { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.f > span.lbl { display: block; margin-bottom: 7px; }
.f input, .f select, .f textarea, .inp { display: block; width: 100%; margin-top: 7px; font: 500 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #ded6c4; border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.inp { margin-top: 0; }
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,74,.18); }
.f input[type=file] { padding: 10px; background: #fbf9f4; }
.f input[type=checkbox], .f input[type=radio] { display: inline-block; width: auto; margin: 0 8px 0 0; }
.f .hint { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--n800); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .row2, .row3 { grid-template-columns: 1fr; } }
.pwd { position: relative; }
.pwd button { position: absolute; right: 8px; bottom: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; }

/* alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; }
.alert .ico { margin-top: 2px; }
.alert.ok { background: var(--okbg); color: var(--ok); border-color: #c4e6d5; }
.alert.err { background: var(--errbg); color: var(--err); border-color: #f0cdc9; }
.alert.warn { background: var(--warnbg); color: var(--warn); border-color: #f1dfaf; }
.alert.info { background: var(--infobg); color: var(--info); border-color: #cddcf2; }
.alert p { margin: 4px 0 0; font-weight: 500; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.auth-side { position: relative; overflow: hidden; color: #cdd7e5; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(8,20,40,.78), rgba(5,13,28,.94)), var(--n900) center/cover no-repeat; }
.auth-side .brand img { height: 56px; }
.auth-side h2 { color: #fff; font-size: 38px; margin: 0 0 14px; }
.auth-side .quote { max-width: 460px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: 34px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-mobile-brand { display: none; margin-bottom: 26px; }
.auth-mobile-brand img { height: 64px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-mobile-brand { display: flex; justify-content: center; } .auth-main { padding: 28px 18px 48px; align-items: flex-start; } .auth-card h1 { font-size: 28px; text-align: center; } .auth-card .sub { text-align: center; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ==========================================================================
   APP LAYOUT (member / manager / admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: 268px minmax(0,1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, var(--n900) 0%, var(--n950) 100%); color: #b8c4d6; padding: 20px 14px; display: flex; flex-direction: column; border-right: 1px solid rgba(227,193,107,.12); }
.side .brand { padding: 4px 8px 22px; }
.side .brand img { height: 42px; }
.side .brand b { font-size: 16.5px; }
.side-sec { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #6f80a0; padding: 16px 12px 8px; font-weight: 700; }
.side a.si { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #c3cee0; font-weight: 600; font-size: 14.5px; position: relative; }
.side a.si .ico { width: 19px; height: 19px; opacity: .85; }
.side a.si:hover { background: rgba(255,255,255,.05); color: #fff; }
.side a.si.on { background: linear-gradient(90deg, rgba(227,193,107,.18), rgba(227,193,107,.04)); color: #fff; }
.side a.si.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--goldgrad); }
.side a.si.on .ico { color: var(--gold2); opacity: 1; }
.side .cnt { margin-left: auto; background: var(--gold); color: #1a1405; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.side .me { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.07); display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--goldgrad); color: #1a1405; font-weight: 800; font-size: 15px; flex: none; }
.side .me b { color: #fff; font-size: 14px; display: block; line-height: 1.2; }
.side .me small { font-size: 12px; color: #8b9bb4; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(246,242,233,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-family: var(--sans); font-size: 18px; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tb-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.topbar .mbrand { display: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink); position: relative; cursor: pointer; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--err); border: 2px solid #fff; }
.content { padding: 28px; flex: 1; width: 100%; max-width: 1280px; }
.bottom-nav { display: none; }
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 70; left: 0; top: 0; width: 290px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--sh3); }
  .app.nav-open .side { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(5,13,28,.5); }
  .topbar { padding: 0 14px; height: 60px; background: var(--n900); border-bottom-color: rgba(227,193,107,.15); }
  .topbar h1 { color: #fff; font-size: 16.5px; }
  .topbar .icon-btn { background: transparent; border-color: rgba(255,255,255,.16); color: #fff; }
  .topbar .icon-btn .dot { border-color: var(--n900); }
  .topbar .mbrand { display: block; } .topbar .mbrand img { height: 34px; }
  .content { padding: 18px 14px 96px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(var(--bn, 4), 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(10,24,48,.06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 0; border-radius: 12px; }
  .bottom-nav a .ico { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--n900); }
  .bottom-nav a.on .ico { color: var(--golddk); }
}

/* cards / panels */
.card { background: #fff; border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--sh1); padding: 22px; min-width: 0; }
.card + .card { margin-top: 18px; }
.card-h { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 800; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-h { padding: 18px 22px 0; }
.stack { display: grid; gap: 18px; }
.cols { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }

/* welcome banner */
.welcome { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; color: #cfd9e8; background: radial-gradient(500px 240px at 100% 0%, rgba(227,193,107,.28), transparent 60%), linear-gradient(135deg, var(--n800), var(--n950)); box-shadow: var(--sh2); display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.welcome h2 { color: #fff; font-size: 28px; margin: 6px 0 6px; }
.welcome p { margin: 0; max-width: 560px; }
.welcome .lvl { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(227,193,107,.14); border: 1px solid rgba(227,193,107,.35); color: var(--gold3); font-weight: 700; font-size: 13px; }
.welcome img.wl { height: 96px; width: auto; opacity: .95; }
@media (max-width: 700px) { .welcome { padding: 22px 20px; flex-direction: column; align-items: flex-start; } .welcome h2 { font-size: 23px; } .welcome img.wl { display: none; } }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line2); border-radius: 18px; padding: 18px; box-shadow: var(--sh1); display: flex; gap: 14px; align-items: center; min-width: 0; }
.kpi .ki { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: #f6efdc; color: var(--golddk); }
.kpi .ki .ico { width: 22px; height: 22px; }
.kpi .ki.b { background: #e8eefb; color: var(--info); } .kpi .ki.g { background: var(--okbg); color: var(--ok); } .kpi .ki.r { background: var(--errbg); color: var(--err); }
.kpi b { display: block; font-size: 24px; line-height: 1.15; font-weight: 800; }
.kpi span { font-size: 13px; color: var(--muted); }
a.kpi { color: var(--ink); } a.kpi:hover { border-color: #e9d9ac; color: var(--ink); }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } .kpi { padding: 14px; gap: 10px; } .kpi .ki { width: 40px; height: 40px; } .kpi b { font-size: 20px; } }

/* progress */
.bar { height: 8px; background: #eee7d6; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--goldgrad); border-radius: 99px; }
.bar.navy > i { background: linear-gradient(90deg, var(--n600), var(--n900)); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), #eee7d6 0); display: grid; place-items: center; flex: none; }
.ring::before { content: attr(data-t); width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* chips / badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1ece0; color: var(--ink2); white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; }
.chip.gold { background: #f8eccb; color: #7a5c14; }
.chip.navy { background: var(--n900); color: var(--gold3); }
.chip.ok { background: var(--okbg); color: var(--ok); } .chip.err { background: var(--errbg); color: var(--err); } .chip.warn { background: var(--warnbg); color: var(--warn); } .chip.info { background: var(--infobg); color: var(--info); }
.lvl-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--gold); }

/* course day list */
.days { display: grid; gap: 12px; }
.day { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 16px 18px; box-shadow: var(--sh1); color: var(--ink); transition: border-color .2s, transform .2s; }
a.day:hover { border-color: #e2cb8b; color: var(--ink); transform: translateX(2px); }
.day .dn { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, var(--n800), var(--n950)); color: #fff; line-height: 1; }
.day .dn small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--gold2); font-weight: 700; margin-bottom: 3px; }
.day .dn b { font-size: 20px; font-family: var(--serif); }
.day.done .dn { background: var(--goldgrad); color: #1a1405; } .day.done .dn small { color: #5a4512; }
.day.locked { opacity: .62; background: #faf8f3; box-shadow: none; }
.day.locked .dn { background: #d9d3c4; }
.day .dt { flex: 1; min-width: 0; }
.day .dt b { display: block; font-size: 16px; }
.day .dt .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 4px; align-items: center; }
.day .dt .bar { margin-top: 10px; max-width: 360px; }
.day .go { flex: none; }
@media (max-width: 620px) { .day { padding: 14px; gap: 12px; flex-wrap: wrap; } .day .dn { width: 48px; height: 48px; } .day .go { width: 100%; } .day .go .btn { width: 100%; } }

/* course hero (member) */
.chero { position: relative; border-radius: 22px; overflow: hidden; color: #d5deea; background: var(--n900); box-shadow: var(--sh2); margin-bottom: 20px; }
.chero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.chero .in { position: relative; padding: 30px; display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; background: linear-gradient(90deg, rgba(10,24,48,.95), rgba(10,24,48,.55)); }
.chero h2 { color: #fff; font-size: 30px; margin: 8px 0 6px; }
.chero .ring { background: conic-gradient(var(--gold2) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); width: 84px; height: 84px; }
.chero .ring::before { background: var(--n900); color: #fff; width: 68px; height: 68px; font-size: 17px; }

/* ---------- protected player ---------- */
.player { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--sh2); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.player video, .player .yt, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player .shield { position: absolute; inset: 0; z-index: 2; }
.player .wm { position: absolute; z-index: 3; pointer-events: none; color: rgba(255,255,255,.5); font-weight: 700; font-size: clamp(11px, 1.6vw, 15px); text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; transition: left 1.6s ease, top 1.6s ease; letter-spacing: .02em; }
.player .wm2 { position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: .07; background-repeat: repeat; }
.player .bigplay { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--goldgrad); color: #1a1405; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.player .bigplay .ico { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; }
.player .ctrl { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; display: flex; align-items: center; gap: 10px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); transition: opacity .3s; }
.player.idle .ctrl { opacity: 0; }
.player .ctrl button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.player .ctrl button:hover { background: rgba(255,255,255,.22); }
.player .ctrl button .ico { width: 18px; height: 18px; }
.player .ctrl .pbar { flex: 1; height: 6px; border-radius: 9px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.player .ctrl .pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--goldgrad); border-radius: 9px; }
.player .ctrl .tm { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .9; }
.player .live { position: absolute; z-index: 5; left: 14px; top: 14px; display: inline-flex; gap: 7px; align-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; padding: 5px 10px; border-radius: 999px; }
.player .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.player .msg { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; background: rgba(5,13,28,.88); font-weight: 600; }
.player .msg b { display: block; font-size: 20px; margin-bottom: 6px; color: var(--gold2); }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player:-webkit-full-screen { border-radius: 0; width: 100vw; height: 100vh; }
.watchinfo { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 16px 0 0; }
.rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink2); }
.rules li { display: flex; gap: 10px; }
.rules li .ico { color: var(--golddk); margin-top: 2px; }
.notes-box { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #fffaf0, #f8efd9); border: 1px solid #ecdcb2; flex-wrap: wrap; }
.notes-box .ni { width: 52px; height: 52px; border-radius: 14px; background: var(--n900); color: var(--gold2); display: grid; place-items: center; flex: none; }
.notes-box .ni .ico { width: 26px; height: 26px; }
.notes-box .nt { flex: 1; min-width: 160px; }
.pdfview { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 14px; margin-top: 14px; background: #fff; }

/* ---------- exam ---------- */
.exam-top { position: sticky; top: 68px; z-index: 20; background: rgba(246,242,233,.95); backdrop-filter: blur(8px); padding: 12px 0; margin-bottom: 8px; display: flex; gap: 14px; align-items: center; }
@media (max-width: 1000px) { .exam-top { top: 60px; } }
.exam-top .bar { flex: 1; }
.q { background: #fff; border: 1px solid var(--line2); border-radius: 18px; padding: 22px; box-shadow: var(--sh1); margin-bottom: 14px; }
.q .qn { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--golddk); text-transform: uppercase; }
.q h3 { font-size: 17.5px; margin: 6px 0 14px; line-height: 1.45; }
.opt { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 10px; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #d9c48a; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .k { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid #d8cfb9; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--gold); background: #fffaf0; }
.opt:has(input:checked) .k { background: var(--n900); color: var(--gold2); border-color: var(--n900); }
.opt.right { border-color: #9fd3b9; background: var(--okbg); } .opt.right .k { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: #ebb9b3; background: var(--errbg); } .opt.wrong .k { background: var(--err); color: #fff; border-color: var(--err); }
.result-hero { text-align: center; padding: 36px 24px; border-radius: 22px; color: #d5deea; background: radial-gradient(500px 240px at 50% 0%, rgba(227,193,107,.25), transparent 60%), linear-gradient(160deg, var(--n800), var(--n950)); box-shadow: var(--sh2); }
.result-hero.fail { background: radial-gradient(500px 240px at 50% 0%, rgba(229,72,77,.22), transparent 60%), linear-gradient(160deg, #2a1d2d, var(--n950)); }
.result-hero .big { font-family: var(--serif); font-size: 72px; line-height: 1; color: #fff; }
.result-hero h2 { color: #fff; margin: 12px 0 6px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbf9f4; white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fdfbf6; }
.tbl .who b { display: block; }
.tbl .who small { color: var(--muted); }
.tbl .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tbl td.num, .tbl th.num { text-align: right; }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; color: #cdbf9a; margin: 0 auto 10px; display: block; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 760px) {
  table.tbl.cards thead { display: none; }
  table.tbl.cards, table.tbl.cards tbody, table.tbl.cards tr, table.tbl.cards td { display: block; width: 100%; }
  table.tbl.cards tr { border-bottom: 1px solid var(--line); padding: 10px 4px; }
  table.tbl.cards td { border: 0; padding: 4px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.tbl.cards td::before { content: attr(data-l); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; text-align: left; flex: none; }
  table.tbl.cards td.who { display: block; text-align: left; } table.tbl.cards td.who::before { display: none; }
  table.tbl.cards .acts { justify-content: flex-end; }
}

/* tabs, toolbar */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.tabs a.on { background: var(--n900); color: var(--gold3); border-color: var(--n900); }
.tabs a .n { margin-left: 4px; opacity: .8; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .inp { width: auto; min-width: 0; flex: 1 1 200px; padding: 10px 14px; font-size: 15px; }
.toolbar select.inp { flex: 0 1 190px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; padding: 0 10px; }
.pager span { background: var(--n900); color: #fff; border-color: var(--n900); }

/* detail list */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; font-size: 14.5px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

/* notices */
.notice { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.notice:last-child { border-bottom: 0; }
.notice .ni { width: 40px; height: 40px; border-radius: 12px; background: #f6efdc; color: var(--golddk); display: grid; place-items: center; flex: none; }
.notice b { display: block; }
.notice p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* level steps (member level page) */
.lsteps { display: grid; gap: 10px; }
.lstep { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; }
.lstep .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #eee7d6; color: var(--muted); flex: none; }
.lstep.have .n { background: var(--goldgrad); color: #1a1405; }
.lstep.cur { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.15); }
.lstep b { display: block; }
.lstep small { color: var(--muted); }

/* certificate */
.cert { max-width: 1000px; margin: 0 auto; aspect-ratio: 1.414; background: #fffdf7; border-radius: 6px; position: relative; padding: 5%; box-shadow: var(--sh2); text-align: center; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 2.2%; border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 6px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(201,162,74,.12), transparent 30%), radial-gradient(circle at 100% 100%, rgba(10,24,48,.08), transparent 35%); pointer-events: none; }
.cert img { height: 15%; width: auto; }
.cert .t1 { font-family: var(--serif); font-size: clamp(22px, 4.2vw, 46px); letter-spacing: .06em; margin: 2% 0 0; }
.cert .t2 { letter-spacing: .3em; text-transform: uppercase; font-size: clamp(9px, 1.2vw, 13px); color: var(--golddk); font-weight: 700; }
.cert .name { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 5vw, 54px); margin: 2.5% 0 1%; border-bottom: 1px solid var(--line); padding: 0 6% 1%; }
.cert p { font-size: clamp(11px, 1.6vw, 17px); max-width: 76%; margin: 0 auto; }
.cert .sig { display: flex; justify-content: space-between; width: 80%; margin-top: 5%; font-size: clamp(10px, 1.3vw, 14px); }
.cert .sig div { border-top: 1px solid var(--ink); padding-top: 6px; min-width: 28%; }
@media print { body * { visibility: hidden; } .cert, .cert * { visibility: visible; } .cert { position: fixed; left: 0; top: 0; width: 100vw; max-width: none; box-shadow: none; } @page { size: A4 landscape; margin: 0; } }

/* admin course list etc. */
.list-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.list-row:last-child { border-bottom: 0; }
.list-row .th { width: 110px; aspect-ratio: 16/10; border-radius: 10px; background: var(--n800) center/cover; flex: none; }
.list-row .tx { flex: 1; min-width: 0; }
.list-row .tx b { display: block; }
@media (max-width: 600px) { .list-row { flex-wrap: wrap; } .list-row .th { width: 84px; } }
.drop { border: 2px dashed #dccfa9; border-radius: 14px; padding: 18px; background: #fffcf4; }
details.box { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; background: #fff; margin-bottom: 12px; }
details.box > summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
details.box[open] > summary { border-bottom: 1px solid var(--line2); margin-bottom: 14px; }
.qa { padding: 14px 0; border-bottom: 1px solid var(--line2); }
.qa:last-child { border-bottom: 0; }
.qa ol { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.qa li.ans { color: var(--ok); font-weight: 700; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; min-height: 220px; }

/* misc */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-card { animation: none; } html { scroll-behavior: auto; } }
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.err-page .big { font-family: var(--serif); font-size: 110px; line-height: 1; }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 6px; }
.contact-tiles { display: grid; gap: 14px; }
.ct { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 18px; box-shadow: var(--sh1); color: var(--ink); }
.ct .fi { width: 48px; height: 48px; border-radius: 14px; background: var(--n900); color: var(--gold2); display: grid; place-items: center; flex: none; }
.ct small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ct b { font-size: 16px; overflow-wrap: anywhere; }
.free-player { border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: var(--sh2); }
.free-player iframe, .free-player video { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1000px) { .topbar .mtoggle { display: inline-grid !important; } }
.site-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.site-head .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--gold2); color: #fff; }
@media (min-width: 1001px) { .app { background: linear-gradient(90deg, var(--n950) 268px, var(--cream) 268px); } }
/* ---------- v2: prices, programs, notes, protection ---------- */
.price-tag { position: absolute; z-index: 1; right: 12px; top: 12px; background: var(--goldgrad); color: #1a1405; font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.price-big { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1; }
.price-big s { font-family: var(--sans); font-size: 17px; color: var(--muted); font-weight: 600; margin-left: 8px; }
.pay-box { border: 1px solid #ecdcb2; background: linear-gradient(135deg, #fffdf7, #faf2df); border-radius: 18px; padding: 20px; }
.pay-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #e7d7ab; flex-wrap: wrap; }
.pay-row:last-child { border-bottom: 0; }
.pay-row small { width: 130px; color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.pay-row b { flex: 1; min-width: 140px; overflow-wrap: anywhere; }
.qr { width: 200px; max-width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.enotes { font-size: 15.5px; line-height: 1.75; }
.enotes h2 { font-family: var(--sans); font-size: 20px; font-weight: 800; margin: 18px 0 8px; }
.enotes h3 { font-size: 17px; margin: 16px 0 6px; }
.enotes ul { padding-left: 20px; margin: 0 0 12px; }
.enotes p { margin: 0 0 12px; }
.nocopy { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mynote { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.mynote:last-child { border-bottom: 0; }
.mynote .at { flex: none; font-weight: 800; font-size: 12.5px; background: var(--n900); color: var(--gold3); border-radius: 8px; padding: 3px 8px; height: fit-content; font-variant-numeric: tabular-nums; }
.mynote .tx { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.player .guard { position: absolute; z-index: 7; inset: 0; background: #05080f; color: #fff; display: none; place-items: center; text-align: center; padding: 24px; font-weight: 600; }
.player .guard b { display: block; font-size: 19px; color: var(--gold2); margin-bottom: 6px; }
.player.guarded .guard { display: grid; }
.player.guarded video, .player.guarded .yt { visibility: hidden; }
.player .wm2 { opacity: .09; }
@media print { .player, .enotes, #notescard, .mynotes { display: none !important; } body::after { content: "Printing is disabled for course content."; display: block; padding: 40px; font-size: 20px; } }
.testi { background: #fff; border: 1px solid var(--line2); border-radius: var(--r2); padding: 26px; box-shadow: var(--sh1); height: 100%; display: flex; flex-direction: column; gap: 16px; }
.testi p { margin: 0; font-size: 15.5px; color: var(--ink2); }
.testi .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.testi .who img, .testi .who .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.prose-md h2 { font-size: 26px; margin-top: 1.4em; } .prose-md h3 { margin-top: 1.2em; } .prose-md li { margin-bottom: 6px; }
.ladder { grid-template-columns: repeat(var(--n, 6), minmax(0,1fr)); }
.steps { grid-template-columns: repeat(var(--n, 4), minmax(0,1fr)); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .ladder { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .ladder { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.ladder .rung b { overflow-wrap: anywhere; }
.pay-row { flex-wrap: nowrap; }
.pay-row b { min-width: 0; }
@media (max-width: 520px) { .pay-row { flex-wrap: wrap; } .pay-row small { width: 100%; } }
/* ---------- v3: thumbnails, books, gallery ---------- */
.dthumb { position: relative; width: 132px; aspect-ratio: 16/9; border-radius: 12px; background: var(--n800) center/cover no-repeat; flex: none; overflow: hidden; box-shadow: 0 4px 12px rgba(10,24,48,.15); }
.dthumb > span { position: absolute; left: 6px; bottom: 6px; background: rgba(5,13,28,.8); color: #fff; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.dthumb > span small { color: var(--gold2); font-size: 10px; letter-spacing: .1em; }
.dthumb > i { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.dthumb > i .ico { width: 14px; height: 14px; }
.day.locked .dthumb { filter: grayscale(.8) brightness(.8); }
@media (max-width: 620px) { .dthumb { width: 96px; } }
.player .ytposter { position: absolute; inset: 0; z-index: 1; background: #000 center/cover no-repeat; transition: opacity .4s; }
.player.started .ytposter { opacity: 0; pointer-events: none; }
.book { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line2); border-radius: var(--r2); overflow: hidden; box-shadow: var(--sh1); color: var(--ink); height: 100%; transition: transform .25s, box-shadow .25s; }
.book:hover { transform: translateY(-4px); box-shadow: var(--sh2); color: var(--ink); }
.book .cv { position: relative; aspect-ratio: 3/4; background: linear-gradient(135deg, var(--n700), var(--n950)) center/cover no-repeat; display: grid; place-items: center; color: var(--gold2); }
.book .cv .ico { width: 54px; height: 54px; opacity: .7; }
.book .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book h3 { font-size: 15.5px; margin: 0; }
.book .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 620px) { .g5 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } }
.reader { position: relative; background: #e9e3d4; border-radius: 16px; padding: 12px; max-height: 82vh; overflow: auto; }
.reader canvas { display: block; width: 100%; max-width: 900px; margin: 0 auto 12px; border-radius: 6px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.reader .rwm { position: sticky; top: 0; height: 0; z-index: 2; pointer-events: none; }
.reader .rwm span { position: absolute; left: 50%; transform: translateX(-50%); top: 40vh; color: rgba(10,24,48,.12); font-weight: 800; font-size: 22px; white-space: nowrap; }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.gal a { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--n800) center/cover no-repeat; box-shadow: var(--sh1); }
.gal a:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gal a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,13,28,.75)); }
.gal a span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; color: #fff; font-weight: 700; font-size: 14px; }
.gal a .play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--n900); display: grid; place-items: center; }
.gal a .play .ico { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
@media (max-width: 860px) { .gal { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,13,28,.92); display: none; place-items: center; padding: 20px; }
.lightbox.on { display: grid; }
.lightbox .lb-in { width: min(1000px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lightbox .vid { aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.lightbox .vid iframe, .lightbox .vid video { width: 100%; height: 100%; border: 0; }
.lightbox p { color: #fff; text-align: center; font-weight: 600; margin-top: 12px; }
.lightbox .x { position: absolute; right: 18px; top: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1000px) { .kpis.k3 { grid-template-columns: 1fr; } }
/* header dropdowns (Courses / Books) */
.nav .dd { position: relative; }
.nav .dd-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 180px; padding: 8px; background: var(--n900); border: 1px solid rgba(227,193,107,.2); border-radius: 14px; box-shadow: var(--sh3); z-index: 60; }
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { display: grid; gap: 2px; }
.nav .dd-menu a { display: block; padding: 10px 12px; border-radius: 10px; }
@media (max-width: 960px) {
  .site-head.open .nav .dd { display: contents; }
  .site-head.open .nav .dd > a { display: none; }
  .site-head.open .nav .dd-menu { display: contents; }
}

/* install-as-app bar */
.appbar{position:fixed;left:12px;right:12px;bottom:12px;z-index:900;display:flex;align-items:center;gap:12px;background:#0a1830;color:#fff;border:1px solid rgba(233,196,106,.35);border-radius:16px;padding:12px 12px 12px 14px;box-shadow:0 12px 32px rgba(0,0,0,.35);max-width:520px;margin:0 auto}
.appbar img{width:42px;height:42px;border-radius:10px;flex:none}
.appbar-t{flex:1;min-width:0;font-size:14px;line-height:1.35}
.appbar-t b{display:block;font-size:15px}
.appbar-t span{color:#c9d4e3}
.appbar-t span b{display:inline;color:#fff;font-size:14px}
.appbar-go{background:linear-gradient(135deg,#e9c46a,#b8862f);color:#0a1830;border:0;border-radius:999px;padding:9px 16px;font-weight:700;cursor:pointer;flex:none}
.appbar-x{background:transparent;border:0;color:#c9d4e3;font-size:24px;line-height:1;cursor:pointer;padding:0 4px;flex:none}
@media (max-width:900px){.app .appbar{bottom:78px}}

/* student files */
.docup{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center}
.docup input[type=file]{border:1px dashed var(--line);border-radius:12px;padding:10px;background:#fbf8f1;min-width:0}
@media (max-width:700px){.docup{grid-template-columns:1fr}}
.docs{display:grid;gap:10px}
.doc{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff}
.doc .dic{width:52px;height:52px;flex:none;border-radius:10px;background:#f3ecdc center/cover no-repeat;display:flex;align-items:center;justify-content:center;color:#a07b2c}
.doc .dic .ico{width:24px;height:24px}
.doc .dtx{flex:1;min-width:0}
.doc .dtx b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.doc .dtx small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.noteup{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.noteup .nu-pick{flex:1;min-width:180px;display:flex;align-items:center;gap:8px;border:1px dashed #d8c69a;background:#fbf8f1;border-radius:12px;padding:10px 14px;cursor:pointer;font-weight:700;color:#7a5c1e;position:relative;overflow:hidden}
.noteup .nu-pick span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.noteup .nu-pick input{position:absolute;inset:0;opacity:0;cursor:pointer}
.noteup .btn[disabled]{opacity:.5;cursor:not-allowed}
