/* =========================================================
   DARK PREMIUM — Design System
   LMS Website · Phase 2 (Dark Redesign)
   ========================================================= */

/* ---------- 1. Design Tokens (ตัวแปรสี/ฟอนต์ เปลี่ยนที่เดียวทั้งเว็บ) ---------- */
:root {
  /* Palette — Dark Navy + Emerald + Gold */
  --bg:            #0F172A;   /* dark navy หลัก */
  --bg-deep:       #0B1120;   /* เข้มขึ้นสำหรับสลับ section */
  --ink:           #E2E8F0;   /* ขาวอมฟ้าอ่อน — ข้อความหลัก */
  --ink-soft:      #94A3B8;   /* เทาอมฟ้า — ข้อความรอง */
  --accent:        #10B981;   /* เขียวมรกต (สว่างสำหรับพื้นดำ) */
  --accent-soft:   #34D399;   /* เขียวอ่อน hover */
  --accent-2:      #E8AA3C;   /* ทองอำพัน — สว่างขึ้นสำหรับพื้นดำ */
  --accent-2-soft: #F5C842;   /* ทองอ่อน */
  --accent-2-dark: #C8891C;   /* ทองเข้ม hover */
  --line:          #2D3748;   /* เส้นขอบบนพื้นดำ */
  --card:          #1E293B;   /* พื้นการ์ด dark slate */
  --on-accent:     #F8FAFC;   /* ตัวอักษรบนพื้น accent */

  /* Typography */
  --font-display: 'Kanit', system-ui, -apple-system, sans-serif;
  --font-body:    'Kanit', system-ui, -apple-system, sans-serif;

  /* Spacing & shape */
  --radius:   18px;
  --radius-sm: 10px;
  --container: 1240px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 250ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--deep { background: var(--bg-deep); }
.section--compact { padding-block: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }

/* ---------- 4. Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
h1.display { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2.display { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.lead { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--ink-soft); max-width: 56ch; }
.text-accent { color: var(--accent); }
.italic-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.8rem; border-radius: 100px; font-weight: 600; font-size: 1rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  min-height: 48px; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(16,185,129,.4);
  overflow: hidden;
}
.btn--primary::before {
  content: "";
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg);
  transition: left 0s;
}
.btn--primary:hover::before { left: 160%; transition: left .55s ease; }
.btn--primary:hover { background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(16,185,129,.5); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(255,255,255,.18); }
.btn--ghost:hover { border-color: rgba(255,255,255,.45); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.08); color: var(--ink); border: 1.5px solid rgba(255,255,255,.12); }
.btn--light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent); transition: gap var(--dur) var(--ease); }
.link-arrow:hover { gap: .75rem; }

/* ---------- 6. Header / Nav ---------- */
#header-root { display: contents; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform .4s var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(0,0,0,.6); animation: barDrop .45s var(--ease); }
@keyframes barDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 1.15rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .98rem; font-weight: 500; position: relative; padding-block: .25rem; transition: color var(--dur) var(--ease); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
body.hero-dark .site-header:not(.scrolled) .nav-links a.is-active { color: var(--accent-2-soft); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-mobile-auth { display: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); position: relative; transition: var(--dur); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); transition: var(--dur); }

.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Marquee ---------- */
.marquee { overflow: hidden; background: #060D18; color: var(--on-accent); }
.marquee__track {
  display: flex; gap: 0; white-space: nowrap; padding-block: 1rem;
  width: max-content; animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  display: inline-flex; align-items: center; gap: 1rem; padding-inline: 1.5rem;
}
.marquee__track span::before { content: "✦"; font-style: normal; color: var(--accent-2); font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
  .marquee { overflow: hidden; }
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.hero .container { position: relative; z-index: 1; }

/* Aurora beam — เส้นแสงวิ่งช้าๆ */
@keyframes auroraMove {
  0%   { transform: translateX(-60%) translateY(-20%) rotate(-15deg); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: .7; }
  100% { transform: translateX(120%) translateY(30%) rotate(-15deg); opacity: 0; }
}
@keyframes auroraMove2 {
  0%   { transform: translateX(120%) translateY(10%) rotate(12deg); opacity: 0; }
  20%  { opacity: .6; }
  80%  { opacity: .4; }
  100% { transform: translateX(-60%) translateY(50%) rotate(12deg); opacity: 0; }
}
.hero__aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero__aurora::before {
  content: "";
  position: absolute; top: 20%; left: -30%;
  width: 55%; height: 160px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.12), rgba(52,211,153,.18), rgba(232,170,60,.08), transparent);
  filter: blur(28px);
  border-radius: 100px;
  animation: auroraMove 12s ease-in-out infinite;
}
.hero__aurora::after {
  content: "";
  position: absolute; top: 55%; left: 0;
  width: 45%; height: 100px;
  background: linear-gradient(90deg, transparent, rgba(232,170,60,.1), rgba(16,185,129,.1), transparent);
  filter: blur(24px);
  border-radius: 100px;
  animation: auroraMove2 18s ease-in-out infinite 4s;
}

/* 2-column hero grid */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 100vh;
  padding-block: clamp(6rem, 11vw, 9rem) clamp(4rem, 6vw, 5rem);
  position: relative; z-index: 1;
}

/* LEFT copy */
.hero__copy { text-align: left; }

.hero__copy .eyebrow {
  color: var(--accent-2);
  background: rgba(232,170,60,.1);
  border: 1px solid rgba(232,170,60,.25);
  border-radius: 100px;
  padding: .35rem 1rem .35rem .75rem;
  gap: .6rem;
}
.hero__copy .eyebrow::before { background: var(--accent-2); width: 6px; height: 6px; border-radius: 50%; }
.hero__copy .lead { margin: 1.8rem 0 0; max-width: 46ch; color: rgba(226,232,240,.72); font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.8; }
.hero__copy .hero__cta { justify-content: flex-start; margin-top: 2.4rem; gap: 1rem; }
.hero__copy .hero__proof { justify-content: flex-start; margin-top: 2rem; }

/* RIGHT mock UI */
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }

/* float animations */
@keyframes mockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@keyframes improveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.mock-card {
  background: rgba(30,41,59,.85);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 1.6rem;
  backdrop-filter: blur(16px);
  animation: mockFloat 5s ease-in-out infinite;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05) inset;
  width: 100%; max-width: 360px;
}
.mock-card__header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.mock-dots span:first-child { background: #FF5F57; }
.mock-dots span:nth-child(2) { background: #FEBC2E; }
.mock-dots span:nth-child(3) { background: #28C840; }
.mock-card__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-left: auto; }

.mock-score-wrap { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.mock-score-ring { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.mock-score-ring svg { width: 90px; height: 90px; }
.mock-score-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mock-score-inner b { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.mock-score-inner span { font-size: .7rem; color: rgba(255,255,255,.4); }
.mock-pass { font-size: .9rem; font-weight: 700; color: #34D399; margin-bottom: .3rem; }
.mock-date { font-size: .75rem; color: rgba(255,255,255,.4); }

.mock-subjects { display: flex; flex-direction: column; gap: .7rem; }
.mock-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem .8rem; }
.mock-sub span { font-size: .75rem; color: rgba(255,255,255,.55); grid-column: 1; }
.mock-sub b { font-size: .78rem; font-weight: 700; color: #fff; grid-row: 1 / 3; grid-column: 2; text-align: right; }
.mock-bar-wrap { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; grid-column: 1; }
.mock-bar { height: 100%; background: linear-gradient(90deg, #10B981, #34D399); border-radius: 99px; }

/* floating badge */
.mock-badge {
  position: absolute; top: -16px; right: -12px;
  display: flex; align-items: center; gap: .45rem;
  background: #10B981; color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: .45rem .85rem; border-radius: 100px;
  box-shadow: 0 8px 24px -6px rgba(16,185,129,.5);
  animation: badgeFloat 4s ease-in-out infinite;
}
.mock-badge svg { width: 14px; height: 14px; }

/* floating improvement pill */
.mock-improve {
  position: absolute; bottom: -14px; left: -12px;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(30,41,59,.95);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .78rem; font-weight: 600; color: #34D399;
  padding: .45rem .9rem; border-radius: 100px;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.4);
  animation: improveFloat 4.5s ease-in-out infinite;
}
.mock-improve svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; padding-block: 7rem 3rem; }
  .hero__visual { display: none; }
}

/* glow ใต้ headline */
.hero__title { position: relative; margin: .9rem 0; }
.hero__title::after {
  content: "";
  position: absolute; bottom: -32px; left: 0;
  width: 80%; height: 70px;
  background: radial-gradient(ellipse at left, rgba(16,185,129,.18) 0%, transparent 70%);
  pointer-events: none; filter: blur(18px);
}

/* Stats bar WSI-style */
.hero__stats-bar { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding-block: clamp(2rem, 4vw, 2.8rem); }
.hero__stats-label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin-bottom: 1.6rem; opacity: .7; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.hero__stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--accent-2); display: block; line-height: 1; letter-spacing: -0.02em; }
.hero__stat span { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; display: block; }
@media (max-width: 640px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }

/* hero background decoration */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 66px 66px; opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 32% 38%, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at 32% 38%, #000 0%, transparent 68%);
}
.hero__bg .blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .45; }
.hero__bg .blob.b1 { width: 440px; height: 440px; background: var(--accent-soft); top: -130px; right: -70px; opacity: .35; animation: floatBlob1 15s var(--ease) infinite; }
.hero__bg .blob.b2 { width: 380px; height: 380px; background: var(--accent-2-soft); bottom: -150px; left: -70px; opacity: .4; animation: floatBlob2 18s var(--ease) infinite; }
.hero__bg .star { position: absolute; color: var(--accent-2); opacity: .55; }
.hero__bg .star.s1 { top: 20%; right: 30%; width: 22px; animation: spin 22s linear infinite; }
.hero__bg .star.s2 { bottom: 24%; left: 12%; width: 16px; opacity: .35; animation: spin 30s linear infinite reverse; }
@keyframes floatBlob1 { 50% { transform: translate(-34px, 34px) scale(1.12); } }
@keyframes floatBlob2 { 50% { transform: translate(30px, -22px) scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* handwritten highlight under a word */
.hl { position: relative; color: var(--accent-2); white-space: nowrap; display: inline-block; }
.hl svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .42em; color: var(--accent-2); overflow: visible; }
.hl svg path { stroke-dasharray: 320; stroke-dashoffset: 320; }
.reveal.in .hl svg path { animation: drawLine 1.1s var(--ease) .5s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* social proof */
.hero__proof { display: inline-flex; align-items: center; gap: .75rem; margin-top: 2rem; padding: .65rem 1.2rem; border-radius: 100px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); font-size: .92rem; color: rgba(255,255,255,.65); }
.hero__proof b { color: #fff; font-weight: 600; }
.hero__proof-stars { display: flex; gap: 2px; color: var(--accent-2); flex-shrink: 0; }
.hero__proof-stars svg { width: 14px; height: 14px; }

/* floating pills around panel */
.hero__panel-wrap { position: relative; }
.pill-float {
  position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line);
  border-radius: 100px; padding: .55rem 1rem; font-size: .88rem; font-weight: 600;
  box-shadow: 0 14px 34px -16px rgba(26,26,26,.4); display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink);
}
.pill-float .dot { width: 9px; height: 9px; border-radius: 50%; }
.pill-float svg { width: 16px; height: 16px; color: var(--accent); }
.pill-float.p1 { top: -20px; left: -26px; animation: floaty 6s var(--ease) infinite; }
.pill-float.p2 { bottom: -16px; left: 2rem; animation: floaty 7s var(--ease) infinite .6s; }
.pill-float.p3 { top: 30%; right: 14px; animation: floaty 6.5s var(--ease) infinite .3s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* scroll cue */
.scroll-cue { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; width: max-content; margin: 1rem auto 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue .mouse { width: 26px; height: 42px; border: 2px solid var(--ink-soft); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--ink-soft); border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }
.hero__title { margin: .9rem 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.2rem; }
.hero__panel {
  position: relative; background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); overflow: hidden;
  box-shadow: 0 44px 90px -44px rgba(15,93,67,.55);
}
/* exam panel */
.exam-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .85rem; }
.exam-label { font-size: .75rem; opacity: .65; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.exam-prog { font-size: .92rem; font-weight: 600; }
.exam-timer { display: inline-flex; align-items: center; gap: .3rem; background: color-mix(in srgb, var(--on-accent) 14%, transparent); border-radius: 100px; padding: .38rem .75rem; font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.exam-timer svg { width: 14px; height: 14px; opacity: .7; }
.t-colon { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.exam-pbar { height: 3px; background: color-mix(in srgb, var(--on-accent) 18%, transparent); border-radius: 2px; margin-bottom: 1.1rem; }
.exam-pbar__fill { height: 100%; width: 38%; background: var(--accent-2); border-radius: 2px; }
.exam-q { margin-bottom: 1rem; }
.exam-q__num { font-size: .76rem; opacity: .6; margin-bottom: .35rem; }
.exam-q__text { font-size: .97rem; line-height: 1.6; font-weight: 500; }
.exam-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: .9rem; }
.ec { padding: .55rem .75rem; border-radius: 8px; border: 1.5px solid color-mix(in srgb, var(--on-accent) 22%, transparent); font-size: .88rem; }
.ec--sel { background: var(--accent-2); color: #2A1E08; border-color: var(--accent-2); font-weight: 700; }
.exam-nav { display: flex; justify-content: space-between; align-items: center; padding-top: .8rem; border-top: 1px solid color-mix(in srgb, var(--on-accent) 20%, transparent); font-size: .84rem; }
.exam-nav__back { opacity: .45; }
.exam-nav__next { font-weight: 700; color: var(--accent-2); }

/* ---------- 9. Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem 2.2rem;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* decorative number */
.feature::before {
  content: attr(data-num);
  position: absolute; top: -8px; right: 1.4rem;
  font-size: 7rem; font-weight: 800; line-height: 1;
  color: var(--accent-2); opacity: .07;
  font-family: var(--font-display); letter-spacing: -0.04em;
  pointer-events: none; user-select: none;
  transition: opacity .3s var(--ease);
}

/* gradient accent line */
.feature::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}

/* hover state */
.feature:hover {
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 0 0 1px rgba(16,185,129,.12), 0 8px 24px -8px rgba(0,0,0,.4), 0 0 40px -20px rgba(16,185,129,.2);
}
.feature:hover::after { transform: scaleX(1); }
.feature:hover::before { opacity: .14; }

/* icon container */
.feature .ic {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 1.6rem;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.22);
  color: var(--accent); display: grid; place-items: center;
  transform: scale(0.75) rotate(-8deg); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
/* icon entrance when scroll reveal fires */
.feature.reveal.in .ic {
  transform: scale(1) rotate(0deg); opacity: 1;
}
.feature.reveal.in:nth-child(1) .ic { transition-delay: .05s; }
.feature.reveal.in:nth-child(2) .ic { transition-delay: .15s; }
.feature.reveal.in:nth-child(3) .ic { transition-delay: .25s; }

.feature:hover .ic {
  background: rgba(16,185,129,.2);
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 0 24px -6px rgba(16,185,129,.35);
  transform: scale(1.08) rotate(-4deg);
}
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.25rem; margin-bottom: .65rem; font-weight: 700; }
.feature p { color: var(--ink-soft); font-size: .97rem; line-height: 1.75; }

/* ---------- 10. Section heading row ---------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); flex-wrap: wrap; }
.head-row .lead { margin-top: .8rem; }
.head-row--center { flex-direction: column; align-items: center; text-align: center; }
.head-row--center .lead { max-width: 58ch; margin-top: .8rem; }

/* ---------- 11. Course cards ---------- */
.grid-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.course {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
  position: relative; cursor: pointer;
}
.course-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  padding: .28rem .65rem; border-radius: 100px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.course-badge--hot { background: rgba(232,170,60,.18); color: var(--accent-2); border: 1px solid rgba(232,170,60,.32); }
.course-badge--new { background: rgba(16,185,129,.14); color: var(--accent); border: 1px solid rgba(16,185,129,.28); }
.course__rating { display: inline-flex; align-items: center; gap: .3rem; }
.course__rating svg { width: 12px; height: 12px; fill: var(--accent-2); flex-shrink: 0; }
.course__rating strong { color: var(--accent-2); font-weight: 700; }

/* gradient line บนสุด */
.course::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}

/* radial glow พื้นหลัง */
.course::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at top, rgba(16,185,129,.06) 0%, transparent 65%);
  opacity: 0; transition: opacity .3s var(--ease);
}

.course:hover {
  transform: translateY(-8px);
  border-color: rgba(16,185,129,.32);
  box-shadow: 0 0 0 1px rgba(16,185,129,.1), 0 24px 48px -16px rgba(0,0,0,.5), 0 0 36px -18px rgba(16,185,129,.22);
}
.course:hover::before { transform: scaleX(1); }
.course:hover::after { opacity: 1; }
.course__cover {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  color: var(--on-accent); overflow: hidden;
  transition: transform .45s var(--ease);
}
.course:hover .course__cover { transform: scale(1.03); }
.course__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.18) 0%, transparent 60%, rgba(0,0,0,.28) 100%);
  z-index: 1;
}
.course__cover svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.course__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); color: #F1F5F9; font-size: .76rem; font-weight: 600; padding: .35rem .75rem; border-radius: 100px; z-index: 3; }
.course__cover .subj {
  position: relative; z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: rgba(255,255,255,.9);
}
.course__cover .subj svg { width: 32px; height: 32px;
  transform: scale(0.7) translateY(10px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.course.reveal.in .subj { transform: scale(1) translateY(0); opacity: 1; }
.course.reveal.in:nth-child(1) .subj { transition-delay: .1s; }
.course.reveal.in:nth-child(2) .subj { transition-delay: .2s; }
.course.reveal.in:nth-child(3) .subj { transition-delay: .3s; }
.course__cover .subj-icon {
  position: relative; z-index: 2;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.2);
  display: grid; place-items: center;
  transform: scale(0.7) translateY(10px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.course__cover .subj-icon svg { width: 30px; height: 30px; }
.course.reveal.in .subj-icon { transform: scale(1) translateY(0); opacity: 1; }
.course.reveal.in:nth-child(1) .subj-icon { transition-delay: .1s; }
.course.reveal.in:nth-child(2) .subj-icon { transition-delay: .2s; }
.course.reveal.in:nth-child(3) .subj-icon { transition-delay: .3s; }
.course.reveal.in:nth-child(4) .subj-icon { transition-delay: .15s; }
.course.reveal.in:nth-child(5) .subj-icon { transition-delay: .25s; }
.course.reveal.in:nth-child(6) .subj-icon { transition-delay: .35s; }
.course__rating { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-soft); }
.course__rating .stars { display: flex; gap: 1px; }
.course__rating .stars svg { width: 13px; height: 13px; fill: var(--accent-2); }
.course__rating b { color: var(--ink); font-weight: 600; }
.course__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.course__meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--ink-soft); }
.course__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.course__body h3 { font-size: 1.18rem; font-weight: 600; line-height: 1.4; }
.course__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; border-top: 1px solid var(--line); }
.course__price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--accent-2); letter-spacing: -0.02em; }
.course.is-hidden { display: none; }

/* ---------- 11b. Inner page hero + breadcrumb + filter ---------- */
.page-hero { position: relative; padding-block: clamp(5rem, 11vw, 8rem) clamp(3rem, 5vw, 4.5rem); overflow: hidden; background: linear-gradient(155deg, rgba(10,28,22,.95) 0%, var(--bg) 55%); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 66px 66px; opacity: .22; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, #000 0%, transparent 70%); }
.page-hero::after { content: ""; position: absolute; top: -15%; right: -8%; width: 680px; height: 680px; background: radial-gradient(circle, rgba(16,185,129,.09) 0%, transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__glow { position: absolute; bottom: -10%; left: 8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(232,170,60,.06) 0%, transparent 65%); pointer-events: none; }
/* mini step pills ใน hero วิธีใช้งาน */
.hero-steps { display: flex; align-items: center; gap: .75rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-step {
  display: flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px; padding: .45rem .9rem .45rem .55rem;
  backdrop-filter: blur(6px);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hero-step:hover { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.07); }
.hero-step--final { border-color: rgba(232,170,60,.3); background: rgba(232,170,60,.07); }
.hero-step--final .hero-step__num { background: var(--accent-2); color: #1A1000; }
.hero-step__num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(16,185,129,.2); color: var(--accent);
  font-size: .72rem; font-weight: 800; display: grid; place-items: center;
  letter-spacing: .02em;
}
.hero-step__label { font-size: .85rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hero-step__arrow { width: 16px; height: 16px; color: var(--ink-soft); opacity: .5; flex-shrink: 0; }

.page-hero__stats { display: flex; gap: clamp(1.5rem,4vw,3rem); margin-top: 2.2rem; }
.page-hero__stats .stat-item { display: flex; flex-direction: column; gap: .2rem; }
.page-hero__stats .stat-num { font-family: var(--font-display); font-size: clamp(1.4rem,2.5vw,1.9rem); font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.page-hero__stats .stat-num span { color: var(--accent-2); }
.page-hero__stats .stat-label { font-size: .78rem; color: var(--ink-soft); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.page-hero h1 { margin-bottom: 1rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chip { padding: .6rem 1.2rem; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.15); background: transparent; font-size: .92rem; font-weight: 500; color: var(--ink); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chip:hover { border-color: rgba(255,255,255,.4); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* FAQ accordion */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq__item[open] {
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 0 0 1px rgba(16,185,129,.08), 0 8px 24px -8px rgba(0,0,0,.3);
}

.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  cursor: pointer; padding: 1.3rem 1.5rem;
  font-size: 1rem; font-weight: 600;
  list-style: none;
  transition: color .25s var(--ease), background .25s var(--ease);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }

/* chevron icon */
.faq__item summary::after {
  content: "";
  width: 20px; height: 20px; flex-shrink: 0;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-repeat: no-repeat; mask-size: contain;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item[open] summary { color: var(--accent); background: rgba(16,185,129,.05); }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: inherit; }

/* gradient line ด้านซ้ายตอน open */
.faq__item[open] summary::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 0 2px 2px 0;
}

.faq__item p {
  color: var(--ink-soft); font-size: .95rem; line-height: 1.75;
  padding: 0 1.5rem 1.3rem; max-width: 68ch;
  border-top: 1px solid rgba(255,255,255,.05);
}

.faq-contact {
  max-width: 780px; margin: 1.8rem auto 0;
  color: var(--ink-soft); font-size: .94rem; text-align: center;
}
.faq-contact a { color: var(--accent); font-weight: 600; }
.faq-contact a:hover { text-decoration: underline; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-stat { background: var(--card); padding: 2rem 1.5rem; text-align: center; }
.about-stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--accent); display: block; line-height: 1; }
.about-stat span { color: var(--ink-soft); font-size: .92rem; margin-top: .5rem; display: block; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.story-header { text-align: center; margin-bottom: 1.2rem; }
.story-header .eyebrow { display: flex; justify-content: center; }
.story-quote { margin-top: 1.75rem; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: rgba(16,185,129,.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.story-quote p { color: var(--ink); font-size: 1rem; font-style: italic; line-height: 1.6; }
.story-quote cite { display: block; margin-top: .45rem; font-size: .8rem; color: var(--accent); font-style: normal; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat-strip__item { padding: 1.5rem 1.25rem; background: var(--card); text-align: center; }
.stat-strip__item + .stat-strip__item { border-left: 1px solid var(--line); }
.stat-strip__num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--accent); display: block; line-height: 1; }
.stat-strip__label { color: var(--ink-soft); font-size: .85rem; margin-top: .4rem; display: block; }
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip__item:nth-child(3), .stat-strip__item:nth-child(4) { border-top: 1px solid var(--line); }
  .stat-strip__item:nth-child(3) { border-left: none; }
}

/* Form fields (ใช้ร่วม contact + login + register) */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
  padding: .85rem 1rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .25rem; }
.info-item a, .info-item span { color: var(--ink); font-weight: 500; }
.info-item a:hover { color: var(--accent); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Auth pages (login / register) */
.auth { min-height: 100vh; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__form-side { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.auth__box { width: 100%; max-width: 420px; }
.auth__box h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.auth__box .sub { color: var(--ink-soft); margin-bottom: 2rem; }
.auth__box .alt { text-align: center; margin-top: 1.5rem; color: var(--ink-soft); font-size: .95rem; }
.auth__box .alt a { color: var(--accent); font-weight: 600; }
.auth__box .alt a:hover { text-decoration: underline; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; font-size: .9rem; }
.auth__row label { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); cursor: pointer; }
.auth__row a { color: var(--accent); font-weight: 600; }

/* Password toggle */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 2.8rem; }
.pwd-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; padding: .25rem; cursor: pointer; color: var(--ink-soft); display: flex; align-items: center; transition: color var(--dur) var(--ease); }
.pwd-toggle:hover { color: var(--ink); }
.pwd-toggle svg { width: 18px; height: 18px; }

/* Spin keyframe for loading button */
@keyframes spin { to { transform: rotate(360deg); } }

.auth__aside { position: relative; background: linear-gradient(145deg, #0D1F1A 0%, #0D3324 100%); color: var(--on-accent); display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.auth__aside .eyebrow { color: var(--accent-2-soft); }
.auth__aside .eyebrow::before { background: var(--accent-2-soft); }
.auth__aside h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; line-height: 1.18; margin: 1rem 0 1.5rem; }
.auth__aside .point { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.auth__aside .point svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-2-soft); }
.auth__aside .ring { position: absolute; border: 1px solid color-mix(in srgb, var(--on-accent) 16%, transparent); border-radius: 50%; }
.auth__aside .ring.r1 { width: 360px; height: 360px; top: -140px; right: -120px; }
.auth__aside .ring.r2 { width: 480px; height: 480px; bottom: -260px; left: -140px; }
.auth__brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 2rem; position: relative; z-index: 1; }
.auth__brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); color: var(--accent); display: grid; place-items: center; }
.auth__aside .inner { position: relative; z-index: 1; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* ===== Dashboard Showcase (จุดขายหลักหน้าแรก) ===== */
.showcase__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase__copy h2 { margin: 1rem 0 0; }
.showcase__copy .lead { margin-top: 1rem; }
.showcase__list { margin: 1.6rem 0 2rem; display: flex; flex-direction: column; gap: .9rem; }
.showcase__list li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.showcase__list .tick { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.showcase__list .tick svg { width: 15px; height: 15px; }

.dash { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 44px 90px -50px rgba(15,93,67,.45); position: relative; }
.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.dash__head h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.dash__head .tag { font-size: .8rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .3rem .7rem; border-radius: 100px; }
.dash__chart { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1rem 1rem 2rem; margin-bottom: 1.2rem; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent); }
.dash__chart svg { width: 100%; height: auto; display: block; }
.chart-ylabels { position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 1.8rem; pointer-events: none; }
.chart-ylabels span { position: absolute; left: 4px; font-size: .65rem; font-weight: 600; color: var(--ink-soft); transform: translateY(-50%); }
.dash__chart .chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.reveal.in .dash__chart .chart-line { animation: drawChart 1.8s var(--ease) .3s forwards; }
@keyframes drawChart { to { stroke-dashoffset: 0; } }
.dash__weak { display: flex; flex-direction: column; gap: .7rem; }
.weak { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; }
.weak .wic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.weak .wic svg { width: 16px; height: 16px; }
.weak b { font-weight: 600; }
.weak--fail { background: rgba(192,73,47,.15); color: #FDA99C; }
.weak--fail .wic { background: #C0492F; }
.weak--pass { background: rgba(16,185,129,.12); color: #6EE7B7; }
.weak--pass .wic { background: var(--accent); }
@media (max-width: 880px) { .showcase__grid { grid-template-columns: 1fr; } }

/* ===== Testimonials ===== */
.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}

/* quote mark decorative */
.tcard::before {
  content: '\201C';
  position: absolute; top: -.4rem; right: 1.4rem;
  font-family: Georgia, serif; font-size: 8rem; line-height: 1; font-weight: 700;
  color: var(--accent-2); opacity: .08; pointer-events: none; user-select: none;
  transition: opacity .3s var(--ease);
}

/* gradient line บน */
.tcard::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}

.tcard:hover {
  transform: translateY(-8px);
  border-color: rgba(16,185,129,.32);
  box-shadow: 0 0 0 1px rgba(16,185,129,.1), 0 24px 48px -16px rgba(0,0,0,.5), 0 0 36px -18px rgba(16,185,129,.2);
}
.tcard:hover::before { opacity: .14; }
.tcard:hover::after { transform: scaleX(1); }

.tcard .stars { display: flex; gap: 3px; color: var(--accent-2); }
.tcard .stars svg { width: 16px; height: 16px; }
.tcard p { color: rgba(226,232,240,.82); font-size: .98rem; line-height: 1.78; flex: 1; }

.tcard .q-hl {
  background: rgba(232,170,60,.14);
  color: var(--accent-2-soft); font-weight: 600;
  padding: .06em .3em; border-radius: 4px;
}

.tperson { display: flex; align-items: center; gap: .85rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.07); }
.tperson .av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px rgba(255,255,255,.12), 0 6px 16px -6px rgba(0,0,0,.3);
}
.tperson b { display: block; font-weight: 600; font-size: .95rem; }
.tperson span { font-size: .82rem; color: var(--ink-soft); margin-top: .1rem; display: block; }

/* ===== Dark Hero (เฉพาะหน้าแรก body.hero-dark) ===== */
body.hero-dark .hero { background: linear-gradient(158deg, #0F172A 0%, #060D18 100%); color: var(--on-accent); min-height: 100vh; }
body.hero-dark .hero__bg .grid-lines {
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
}
body.hero-dark .hero__bg .blob.b1 { background: #10B981; opacity: .18; }
body.hero-dark .hero__bg .blob.b2 { background: var(--accent-2); opacity: .12; }
body.hero-dark .hero__bg .star { color: var(--accent-2); opacity: .6; }

body.hero-dark .hero .eyebrow { color: var(--accent-2-soft); }
body.hero-dark .hero .eyebrow::before { background: var(--accent-2-soft); }
body.hero-dark .hero__title { color: var(--on-accent); }
body.hero-dark .hero .lead { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
body.hero-dark .hero .btn--primary {
  background: var(--accent-2); color: #2A1E08;
  padding: .85rem 2rem; font-size: 1rem; font-weight: 700;
  box-shadow: 0 0 0 0 rgba(232,170,60,0), 0 12px 32px -8px rgba(232,170,60,.35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
body.hero-dark .hero .btn--primary:hover {
  background: var(--accent-2-soft);
  box-shadow: 0 0 0 4px rgba(232,170,60,.15), 0 16px 36px -8px rgba(232,170,60,.5);
  transform: translateY(-2px);
}
body.hero-dark .hero .btn--ghost {
  border-color: rgba(255,255,255,.22); color: var(--on-accent);
  padding: .85rem 1.8rem; font-size: 1rem;
}
body.hero-dark .hero .btn--ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); transform: translateY(-2px); }
body.hero-dark .hero__proof .txt { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
body.hero-dark .hero__proof .txt b { color: var(--on-accent); }
body.hero-dark .scroll-cue { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
body.hero-dark .scroll-cue .mouse { border-color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
body.hero-dark .scroll-cue .mouse::after { background: var(--on-accent); }

/* การ์ด Dashboard เป็นสีขาว ลอยเด่นบนพื้นเขียว */
body.hero-dark .hero__panel-wrap::before {
  content: ""; position: absolute; inset: 6% 4%;
  background: radial-gradient(ellipse, rgba(255,255,255,.22) 0%, transparent 68%);
  filter: blur(36px); z-index: 0; pointer-events: none; border-radius: 50%;
}
body.hero-dark .hero__panel {
  position: relative; z-index: 1;
  background: #fff; color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 60px 120px -50px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.18),
    0 0 80px -15px rgba(255,255,255,.18);
}
body.hero-dark .exam-label { color: var(--ink-soft); opacity: 1; }
body.hero-dark .exam-prog { color: var(--ink); }
body.hero-dark .exam-timer { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
body.hero-dark .exam-pbar { background: var(--line); }
body.hero-dark .exam-pbar__fill { background: var(--accent); }
body.hero-dark .exam-q__num { color: var(--ink-soft); opacity: 1; }
body.hero-dark .exam-q__text { color: var(--ink); }
body.hero-dark .ec { border-color: var(--line); color: var(--ink); }
body.hero-dark .ec--sel { background: var(--accent-2); color: #2A1E08; border-color: var(--accent-2); }
body.hero-dark .exam-nav { border-top-color: var(--line); }
body.hero-dark .exam-nav__back { color: var(--ink-soft); }
body.hero-dark .exam-nav__next { color: var(--accent); }

/* เมนูบนโปร่งใส + ตัวขาว ตอนอยู่บนสุด (จนกว่าจะเลื่อน) */
body.hero-dark .site-header:not(.scrolled) { background: rgba(9,13,24,.85); border-color: transparent; }
body.hero-dark .site-header:not(.scrolled) .brand,
body.hero-dark .site-header:not(.scrolled) .nav-links a { color: var(--on-accent); }
body.hero-dark .site-header:not(.scrolled) .brand .text-accent { color: var(--accent-2-soft); }
body.hero-dark .site-header:not(.scrolled) .brand .mark { background: var(--on-accent); color: var(--accent); }
body.hero-dark .site-header:not(.scrolled) .nav-links a::after { background: var(--accent-2-soft); }
body.hero-dark .site-header:not(.scrolled) .btn--ghost { border-color: color-mix(in srgb, var(--on-accent) 45%, transparent); color: var(--on-accent); }
body.hero-dark .site-header:not(.scrolled) .btn--primary { background: var(--accent-2); color: #2A1E08; }
body.hero-dark .site-header:not(.scrolled) .nav-toggle span,
body.hero-dark .site-header:not(.scrolled) .nav-toggle span::before,
body.hero-dark .site-header:not(.scrolled) .nav-toggle span::after { background: var(--on-accent); }

/* ---------- 12. Steps ---------- */
/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; position: relative;
}

/* connector line ระหว่าง steps */
.steps::before {
  content: ""; position: absolute;
  top: 62px; left: calc(12.5% + 26px); right: calc(12.5% + 26px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .25;
  pointer-events: none;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* gradient line บน */
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}

/* radial glow */
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at top left, rgba(16,185,129,.07) 0%, transparent 65%);
  opacity: 0; transition: opacity .3s var(--ease);
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(16,185,129,.32);
  box-shadow: 0 0 0 1px rgba(16,185,129,.1), 0 20px 40px -14px rgba(0,0,0,.45), 0 0 32px -16px rgba(16,185,129,.2);
}
.step:hover::before { transform: scaleX(1); }
.step:hover::after { opacity: 1; }

.step__num {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: var(--accent-2); background: rgba(232,170,60,.1);
  border: 1px solid rgba(232,170,60,.2);
  display: inline-block; padding: .22rem .7rem; border-radius: 100px; margin-bottom: 1.4rem;
  position: relative; z-index: 1;
}

.step__ic {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 1.3rem;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.22);
  color: var(--accent); display: grid; place-items: center;
  position: relative; z-index: 1;
  transform: scale(0.7) rotate(-8deg); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.step.reveal.in .step__ic { transform: scale(1) rotate(0deg); opacity: 1; }
.step.reveal.in:nth-child(1) .step__ic { transition-delay: .05s; }
.step.reveal.in:nth-child(2) .step__ic { transition-delay: .15s; }
.step.reveal.in:nth-child(3) .step__ic { transition-delay: .25s; }
.step.reveal.in:nth-child(4) .step__ic { transition-delay: .35s; }

.step:hover .step__ic {
  background: rgba(16,185,129,.22);
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 0 20px -4px rgba(16,185,129,.3);
  transform: scale(1.08) rotate(-4deg);
}
.step__ic svg { width: 26px; height: 26px; }

.step h3 { font-size: 1.1rem; margin-bottom: .5rem; font-weight: 700; position: relative; z-index: 1; }
.step p { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; position: relative; z-index: 1; }

@media (max-width: 768px) { .steps::before { display: none; } }

/* ---------- 13. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* gradient accent line บน */
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
/* glow radial พื้นหลัง */
.stat::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(16,185,129,.07) 0%, transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(16,185,129,.32);
  box-shadow: 0 0 0 1px rgba(16,185,129,.1), 0 20px 40px -14px rgba(0,0,0,.45), 0 0 32px -16px rgba(16,185,129,.2);
}
.stat:hover::before { transform: scaleX(1); }
.stat:hover::after { opacity: 1; }

.stat b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800; display: block; line-height: 1;
  color: var(--accent-2);
  letter-spacing: -0.03em;
  position: relative; z-index: 1;
  transform: translateY(8px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.stat.reveal.in b {
  transform: translateY(0); opacity: 1;
}
.stat.reveal.in:nth-child(1) b { transition-delay: .05s; }
.stat.reveal.in:nth-child(2) b { transition-delay: .15s; }
.stat.reveal.in:nth-child(3) b { transition-delay: .25s; }
.stat.reveal.in:nth-child(4) b { transition-delay: .35s; }

.stat span {
  color: var(--ink-soft); font-size: .88rem;
  margin-top: .6rem; display: block;
  position: relative; z-index: 1;
  letter-spacing: .02em;
}

@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.section--deep .stat b { color: var(--accent-2); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0B1A12 0%, #0B1120 60%, #0F172A 100%);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16,185,129,.06), 0 32px 64px -24px rgba(0,0,0,.5), 0 0 80px -30px rgba(16,185,129,.18);
}

/* emerald glow blobs */
.cta-band::before {
  content: ""; position: absolute; top: -80px; left: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.14) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; bottom: -100px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,170,60,.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--on-accent); margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  position: relative; z-index: 1;
}
.cta-band p {
  color: rgba(226,232,240,.65); max-width: 50ch; margin: 0 auto 2.4rem;
  font-size: clamp(.95rem, 1.5vw, 1.05rem); line-height: 1.75;
  position: relative; z-index: 1;
}
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* decorative rings */
.cta-band .ring { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band .ring.r1 {
  width: 420px; height: 420px; top: -200px; left: -100px;
  border: 1px solid rgba(16,185,129,.1);
}
.cta-band .ring.r2 {
  width: 560px; height: 560px; bottom: -320px; right: -140px;
  border: 1px solid rgba(232,170,60,.08);
}

/* ---------- Features Bento Grid ---------- */
.features-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.25rem;
  margin-top: 3rem;
}
.features-bento .feature { margin: 0; }
.features-bento .feature-wide { grid-column: span 2; }
.features-bento .feature-tall { grid-row: span 2; }

.feature-visual {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) * .6);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1rem;
}
.feature-visual .mock-bar { height: 6px; border-radius: 100px; background: rgba(255,255,255,.1); margin-bottom: .5rem; }
.feature-visual .mock-bar.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 70%; }
.feature-visual .mock-bar.sm { width: 50%; }
.feature-visual .mock-bar.xs { width: 35%; }

.feature-stat { margin-top: 1.2rem; display: flex; align-items: baseline; gap: .4rem; }
.feature-stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.04em; line-height: 1; }
.feature-stat .unit { font-size: .85rem; color: var(--ink-soft); }

.feature-devices { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.feature-devices span {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px; padding: .3rem .7rem;
}
.feature-devices span svg { width: 13px; height: 13px; }

.feature-cert {
  margin-top: 1.4rem;
  border: 1.5px solid rgba(232,170,60,.25);
  border-radius: calc(var(--radius) * .6);
  padding: 1rem 1.25rem;
  background: rgba(232,170,60,.05);
  display: flex; align-items: center; gap: 1rem;
}
.feature-cert__qr {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 2px;
}
.feature-cert__qr span { background: rgba(232,170,60,.55); border-radius: 1px; }
.feature-cert__qr span:nth-child(1),.feature-cert__qr span:nth-child(2),.feature-cert__qr span:nth-child(6),.feature-cert__qr span:nth-child(11),.feature-cert__qr span:nth-child(5),.feature-cert__qr span:nth-child(10),.feature-cert__qr span:nth-child(15) { background: transparent; }
.feature-cert__info { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }
.feature-cert__info strong { display: block; color: var(--accent-2); font-size: .88rem; margin-bottom: .15rem; }

@media (max-width: 900px) {
  .features-bento { grid-template-columns: repeat(2, 1fr); }
  .features-bento .feature-wide { grid-column: span 2; }
}
@media (max-width: 540px) {
  .features-bento { grid-template-columns: 1fr; }
  .features-bento .feature-wide { grid-column: span 1; }
}

/* avatar stack + contact strip */
.cta-team { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.2rem; position: relative; z-index: 1; }
.cta-team__avatars { display: flex; }
.cta-team__avatars .av {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: #fff;
  border: 2px solid #0B1A12;
  margin-left: -10px;
}
.cta-team__avatars .av:first-child { margin-left: 0; }
.cta-team__avatars .av:nth-child(1) { background: linear-gradient(135deg, var(--accent), #047857); }
.cta-team__avatars .av:nth-child(2) { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.cta-team__avatars .av:nth-child(3) { background: linear-gradient(135deg, var(--accent-2), #B45309); }
.cta-team__label { font-size: .88rem; color: rgba(226,232,240,.65); line-height: 1.4; text-align: left; }
.cta-team__label strong { display: block; color: rgba(226,232,240,.9); font-size: .92rem; }

.cta-response { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: var(--accent); margin-top: .85rem; position: relative; z-index: 1; letter-spacing: .02em; }
.cta-response::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(16,185,129,.2); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,.08); } }

.cta-contact-strip { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-top: 1.6rem; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-contact-strip a { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: rgba(226,232,240,.6); transition: color .2s var(--ease); }
.cta-contact-strip a:hover { color: rgba(226,232,240,.95); }
.cta-contact-strip a svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-contact-strip .divider { width: 1px; height: 18px; background: rgba(255,255,255,.12); }

/* primary CTA button ในส่วนนี้ */
.cta-band .btn--light {
  background: var(--accent-2); color: #2A1E08; font-weight: 700;
  border: none; padding: .85rem 2rem;
  box-shadow: 0 0 0 0 rgba(232,170,60,0), 0 8px 24px -6px rgba(232,170,60,.4);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.cta-band .btn--light:hover {
  background: var(--accent-2-soft);
  box-shadow: 0 0 0 4px rgba(232,170,60,.15), 0 12px 28px -6px rgba(232,170,60,.5);
  transform: translateY(-2px);
}
.cta-band .btn--ghost {
  border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8);
  padding: .85rem 1.8rem;
}
.cta-band .btn--ghost:hover {
  border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

/* ---------- 15. Footer ---------- */
.site-footer { background: #060D18; color: var(--ink); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: var(--ink); margin-bottom: 1rem; }
.site-footer .brand .mark { background: var(--accent); color: #fff; }
.footer-about p { color: var(--ink-soft); max-width: 34ch; font-size: .95rem; line-height: 1.65; }
.footer-badge { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(16,185,129,.35); background: rgba(16,185,129,.08); color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.1rem; opacity: .7; }
.footer-col a { display: block; padding: .35rem 0; color: var(--ink-soft); font-size: .96rem; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.footer-col a:visited { color: var(--ink-soft) !important; }
.footer-col a:hover { color: var(--ink); transform: translateX(.35rem); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: var(--ink-soft); flex-wrap: wrap; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.socials a:hover { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.4); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* ---------- 16. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ---------- 17. Course hero (dark, colored — used on course detail pages) ---------- */
.course-hero {
  background: var(--course-clr, var(--accent));
  color: var(--on-accent);
}
.course-hero::before {
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
}
.course-hero .eyebrow { color: var(--accent-2-soft); }
.course-hero .eyebrow::before { background: var(--accent-2-soft); }
.course-hero h1 { color: var(--on-accent); }
.course-hero .lead { color: rgba(244,242,236,.8); max-width: 65ch; }
.course-hero .breadcrumb { color: rgba(244,242,236,.6); }
.course-hero .breadcrumb a { color: rgba(244,242,236,.7); }
.course-hero .breadcrumb a:hover { color: var(--on-accent); }
.course-hero-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 1.4rem; font-size: .95rem; color: rgba(244,242,236,.75); }
.course-hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.course-hero-meta svg { width: 17px; height: 17px; }
.course-hero-meta .stars { display: flex; gap: 2px; color: var(--accent-2); }
.course-hero-meta .stars svg { width: 15px; height: 15px; fill: var(--accent-2); }
.course-hero-meta strong { color: var(--on-accent); }

/* ---------- 18. Course detail layout ---------- */
.course-detail { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.course-detail__main { min-width: 0; }
.course-detail__sidebar { position: sticky; top: calc(76px + 1.5rem); }

.enroll-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 24px 60px -30px rgba(15,93,67,.28); }
.enroll-card__price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 1.4rem; }
.enroll-card .btn { width: 100%; margin-bottom: .65rem; justify-content: center; }
.enroll-card__perks { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.enroll-card__perks li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink-soft); }
.enroll-card__perks li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.what-learn { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2.5rem; }
.what-learn h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.what-learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.what-learn-grid li { display: flex; align-items: flex-start; gap: .55rem; font-size: .95rem; line-height: 1.5; }
.what-learn-grid li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.curriculum { margin-bottom: 2.5rem; }
.curriculum > h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.curriculum-meta { font-size: .88rem; color: var(--ink-soft); margin-left: .5rem; font-weight: 400; }
.curriculum-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.curriculum-item { border-bottom: 1px solid var(--line); }
.curriculum-item:last-child { border-bottom: none; }
.curriculum-item summary { display: flex; align-items: center; gap: .8rem; cursor: pointer; padding: 1.1rem 1.4rem; font-size: 1rem; font-weight: 600; list-style: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.curriculum-item summary::-webkit-details-marker { display: none; }
.curriculum-item summary .chap-meta { font-size: .82rem; font-weight: 400; color: var(--ink-soft); margin-left: auto; flex-shrink: 0; }
.curriculum-item summary::after { content: "›"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; transition: transform var(--dur) var(--ease); line-height: 1; }
.curriculum-item[open] summary { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent); }
.curriculum-item[open] summary::after { transform: rotate(90deg); }
.curriculum-item summary:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.curriculum-item__body { padding: .4rem 1.4rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.lesson-row { display: flex; align-items: center; gap: .7rem; font-size: .92rem; color: var(--ink-soft); padding: .4rem 0; border-bottom: 1px solid rgba(0,0,0,.04); }
.lesson-row:last-child { border-bottom: none; }
.lesson-row svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); opacity: .7; }
.lesson-row span { margin-left: auto; font-size: .8rem; color: var(--ink-soft); opacity: .75; }

.instructor-card { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 2.5rem; }
.instructor-av { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 1.65rem; font-weight: 600; flex-shrink: 0; box-shadow: 0 6px 20px -6px rgba(15,93,67,.4); }
.instructor-info h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: .2rem; }
.instructor-info .role { font-size: .88rem; color: var(--accent); font-weight: 600; margin-bottom: .6rem; }
.instructor-info p { font-size: .92rem; color: var(--ink-soft); line-height: 1.65; }

.section-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.section-label::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }

@media (max-width: 980px) {
  .course-detail { grid-template-columns: 1fr; }
  .course-detail__sidebar { position: static; order: -1; }
  .what-learn-grid { grid-template-columns: 1fr; }
}

/* ---------- 20. Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; padding-top: .5rem; }
.timeline::before { content: ""; position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); opacity: .5; z-index: 0; }
.tl-item { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-deep); box-shadow: 0 0 0 2px var(--accent); margin: 0 auto 1.1rem; }
.tl-year { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--accent); display: block; line-height: 1; margin-bottom: .4rem; }
.tl-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; display: block; }
.tl-item p { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- 21. Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -28px rgba(15,93,67,.26); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.team-card__av { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 2.1rem; font-weight: 700; margin: 0 auto 1.3rem; box-shadow: 0 10px 28px -10px rgba(15,93,67,.45); }
.team-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: .25rem; }
.team-card .role { font-size: .87rem; color: var(--accent); font-weight: 600; margin-bottom: .75rem; display: block; }
.team-card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- 22. LINE contact ---------- */
.line-contact { display: flex; align-items: center; gap: 1.1rem; background: #06C755; color: #fff; border-radius: var(--radius); padding: 1.4rem 2rem; text-decoration: none; transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease); }
.line-contact:hover { filter: brightness(1.08); transform: translateY(-2px); }
.line-contact__icon { width: 44px; height: 44px; flex-shrink: 0; }
.line-contact__body b { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: .15rem; }
.line-contact__body span { font-size: .9rem; opacity: .88; }
.line-contact__arrow { margin-left: auto; opacity: .8; width: 22px; height: 22px; flex-shrink: 0; }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; margin-bottom: 2.5rem; }
.channel-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.channel-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(15,93,67,.25); }
.channel-card__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.channel-card__ic svg { width: 24px; height: 24px; }
.channel-card__ic img { width: 28px; height: 28px; object-fit: contain; }
.channel-card__ic--brand { background: rgba(255,255,255,.06); }
.channel-card__ic--line { background: #06C755; color: #fff; }
.channel-card__ic--email { background: var(--accent); color: var(--on-accent); }
.channel-card__ic--phone { background: color-mix(in srgb, var(--accent-2) 18%, var(--bg)); color: var(--accent-2-dark); }
.channel-card__ic--hours { background: color-mix(in srgb, var(--ink) 10%, var(--bg)); color: var(--ink); }
.channel-card__body b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .2rem; font-weight: 600; }
.channel-card__body span { font-size: 1rem; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .contact-channels { grid-template-columns: 1fr; } }

/* ---------- 23. Auth enhancements ---------- */
.auth__brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 2.2rem; position: relative; z-index: 1; color: var(--on-accent); text-decoration: none; }
.auth__brand .mark { width: 36px; height: 36px; border-radius: 10px; background: rgba(244,242,236,.18); color: var(--on-accent); display: grid; place-items: center; font-size: 1rem; }
.auth__tcard { background: rgba(244,242,236,.1); border: 1px solid rgba(244,242,236,.18); border-radius: var(--radius-sm); padding: 1.3rem; margin-top: 2.2rem; position: relative; z-index: 1; }
.auth__tcard p { font-size: .92rem; color: rgba(244,242,236,.82); line-height: 1.65; margin-bottom: .9rem; font-style: italic; }
.auth__tcard .tperson { display: flex; align-items: center; gap: .7rem; padding-top: 0; border-top: none; }
.auth__tcard .av { width: 38px; height: 38px; border-radius: 50%; background: rgba(244,242,236,.2); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.auth__tcard .name { display: block; font-size: .9rem; font-weight: 600; color: var(--on-accent); }
.auth__tcard .meta { display: block; font-size: .8rem; color: rgba(244,242,236,.6); }

/* ---------- 19. Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-courses, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero__proof { flex-wrap: wrap; }
  .mock-card { max-width: 100%; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn--ghost, .nav-actions .btn--primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-auth { display: none; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: #0B1120; padding: 1.2rem clamp(1.2rem,4vw,2.5rem) 2rem; gap: .3rem; border-bottom: 1px solid var(--line);
    z-index: 49;
  }
  .site-header.menu-open .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .site-header.menu-open .nav-mobile-auth {
    display: flex; flex-direction: column; gap: .7rem;
    padding-top: 1.2rem; margin-top: .5rem; border-top: 2px solid var(--line);
  }
  .site-header.menu-open .nav-mobile-auth .btn { justify-content: center; }
  /* hero-dark: ตอน dropdown เปิด ให้สีตัวอักษรกลับมาปกติ (dropdown พื้นขาว) */
  body.hero-dark .site-header.menu-open .nav-links a { color: var(--ink); }
  body.hero-dark .site-header.menu-open .nav-links a::after { background: var(--accent); }
  body.hero-dark .site-header.menu-open .nav-links a.is-active { color: var(--accent); }
  body.hero-dark .site-header.menu-open .nav-links a.is-active::after { background: var(--accent); }
}
@media (max-width: 560px) {
  .grid-3, .grid-courses, .steps, .stats, .footer-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 24. Dark ink section (used on stats) ---------- */
.section--ink { background: #060D18; padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--ink .stat b {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.section--ink .stat span {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- 25. Features — editorial horizontal rows ---------- */
/* Features section heading */
#features .head-row h2.display { font-size: clamp(2.4rem, 4.5vw, 4rem); }
#features .head-row { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section--deep .head-row:has(+ .faq) { margin-bottom: clamp(1.2rem, 2.5vw, 2rem); }

/* Responsive — hide number on small screens */
@media (max-width: 640px) {
  .feature::before { display: none; }
}

/* ---------- 18. Accessibility — focus & reduced motion ---------- */

/* Focus-visible ring ทุก interactive element */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* ปรับ radius ให้เข้ากับ shape ของ element */
.btn:focus-visible,
.chip:focus-visible        { border-radius: var(--radius); }
.adm-tab:focus-visible,
.adm-btn:focus-visible,
.adm-modal-close:focus-visible { border-radius: var(--radius-sm); }
.course:focus-visible      { border-radius: var(--radius); outline-offset: 4px; }
.nav-links a:focus-visible { border-radius: 6px; }
.dash__nav-link:focus-visible { border-radius: var(--radius-sm); }

/* ล้าง outline เก่าออก เพราะใช้ focus-visible แทน */
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .adm-bar { transition: none !important; }
}

/* ========================================================
   26. Dashboard (admin/)
   ======================================================== */
.dash-body { overflow: hidden; }
.dash { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: var(--bg); }

/* Sidebar */
.dash__sidebar { background: #060D18; display: flex; flex-direction: column; padding: 1.5rem 1rem; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash__logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: .5rem .75rem; margin-bottom: 2rem; }
.dash__logo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.dash__nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.dash__nav-item { display: flex; align-items: center; gap: .7rem; padding: .65rem .85rem; border-radius: 10px; color: var(--ink-soft); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); position: relative; }
.dash__nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash__nav-item:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.dash__nav-item.is-active { background: rgba(16,185,129,.14); color: var(--accent); font-weight: 600; }
.dash__nav-item.is-active svg { color: var(--accent); }
.dash__nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.dash__logout { display: flex; align-items: center; gap: .7rem; padding: .65rem .85rem; border-radius: 10px; color: var(--ink-soft); font-size: .9rem; text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); margin-top: auto; }
.dash__logout svg { width: 18px; height: 18px; }
.dash__logout:hover { background: rgba(239,68,68,.1); color: #f87171; }

/* Main */
.dash__main { display: flex; flex-direction: column; overflow-y: auto; max-height: 100vh; }

/* Topbar */
.dash__topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.75rem; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.dash__greeting { font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: 0; }
.dash__subgreeting { font-size: .85rem; color: var(--ink-soft); margin: .2rem 0 0; }
.dash__topbar-right { display: flex; align-items: center; gap: .75rem; }
.dash__search { display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .9rem; }
.dash__search svg { width: 15px; height: 15px; color: var(--ink-soft); flex-shrink: 0; }
.dash__search input { background: none; border: none; outline: none; color: var(--ink); font-family: var(--font-body); font-size: .88rem; width: 160px; }
.dash__search input::placeholder { color: var(--ink-soft); }
.dash__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(16,185,129,.2); color: var(--accent); font-weight: 700; font-size: .95rem; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; border: 2px solid rgba(16,185,129,.3); }

/* Body layout */
.dash__body { display: grid; grid-template-columns: 1fr 300px; gap: 0; flex: 1; }
.dash__col-main { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; border-right: 1px solid var(--line); }
.dash__col-side { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; }

/* Section */
.dash__section { display: flex; flex-direction: column; gap: 1rem; }
.dash__section-head { display: flex; align-items: center; justify-content: space-between; }
.dash__section-head h2 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; }
.dash__period { font-size: .8rem; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .6rem; }
.dash__see-all { font-size: .82rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.dash__see-all:hover { text-decoration: underline; }

/* Stat cards */
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.dash__stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.dash__stat-icon { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; margin-bottom: .2rem; }
.dash__stat-icon svg { width: 18px; height: 18px; }
.dash__stat--accent { border-color: rgba(16,185,129,.25); background: rgba(16,185,129,.07); }
.dash__stat--accent .dash__stat-icon { background: rgba(16,185,129,.15); color: var(--accent); }
.dash__stat--accent .dash__stat-num { color: var(--accent); }
.dash__stat--gold { border-color: rgba(232,170,60,.25); background: rgba(232,170,60,.06); }
.dash__stat--gold .dash__stat-icon { background: rgba(232,170,60,.15); color: var(--accent-2); }
.dash__stat--gold .dash__stat-num { color: var(--accent-2); }
.dash__stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.dash__stat-label { font-size: .82rem; color: var(--ink-soft); }

/* Schedule */
.dash__schedule { display: flex; flex-direction: column; gap: .6rem; }
.dash__sched-item { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.dash__sched-item--today { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.06); }
.dash__sched-date { display: flex; flex-direction: column; align-items: center; min-width: 38px; }
.dash__sched-day { font-size: 1.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.dash__sched-month { font-size: .72rem; color: var(--ink-soft); }
.dash__sched-info { flex: 1; min-width: 0; }
.dash__sched-info b { display: block; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__sched-info span { font-size: .78rem; color: var(--ink-soft); }
.dash__sched-time { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.dash__sched-btn { display: inline-flex; align-items: center; padding: .4rem .9rem; border-radius: 7px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: opacity var(--dur) var(--ease); }
.dash__sched-btn:hover { opacity: .85; }
.dash__sched-btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.dash__sched-btn--ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Teachers */
.dash__teachers { display: flex; flex-direction: column; gap: .6rem; }
.dash__teacher { display: flex; align-items: center; gap: .75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.dash__teacher-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.dash__teacher-info { flex: 1; min-width: 0; }
.dash__teacher-info b { display: block; font-size: .88rem; color: var(--ink); }
.dash__teacher-info span { font-size: .77rem; color: var(--ink-soft); }
.dash__teacher-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); flex-shrink: 0; }
.dash__teacher-btn svg { width: 15px; height: 15px; }
.dash__teacher-btn:hover { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.3); color: var(--accent); }

/* Events */
.dash__events { display: flex; flex-direction: column; gap: .6rem; }
.dash__event { display: flex; align-items: center; gap: .85rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.dash__event-ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.dash__event-ic svg { width: 18px; height: 18px; }
.dash__event-info b { display: block; font-size: .87rem; color: var(--ink); margin-bottom: .15rem; }
.dash__event-info span { font-size: .77rem; color: var(--ink-soft); }

/* Certificates */
.dash__certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.dash__cert { display: flex; align-items: center; gap: .85rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.dash__cert--locked { opacity: .6; }
.dash__cert-icon { width: 38px; height: 38px; border-radius: 9px; background: rgba(232,170,60,.12); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.dash__cert-icon svg { width: 20px; height: 20px; }
.dash__cert--locked .dash__cert-icon { background: rgba(255,255,255,.05); color: var(--ink-soft); }
.dash__cert-body { flex: 1; min-width: 0; }
.dash__cert-body b { display: block; font-size: .83rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__cert-body span { font-size: .75rem; color: var(--ink-soft); }
.dash__cert-dl { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); text-decoration: none; flex-shrink: 0; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.dash__cert-dl svg { width: 14px; height: 14px; }
.dash__cert-dl:hover { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.3); color: var(--accent); }
.dash__cert-tag { font-size: .72rem; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .55rem; white-space: nowrap; flex-shrink: 0; }

/* ========================================================
   27. Privacy Policy
   ======================================================== */
.policy-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.policy-toc { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.policy-toc__title { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.policy-toc nav { display: flex; flex-direction: column; gap: .15rem; }
.policy-toc a { display: block; padding: .4rem .6rem; border-radius: 6px; font-size: .88rem; color: var(--ink-soft); text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.policy-toc a:hover { background: rgba(16,185,129,.08); color: var(--accent); }

.policy-body { max-width: 720px; }
.policy-body section { margin-bottom: 2.5rem; }
.policy-body h2 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.policy-body h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 1.2rem 0 .6rem; }
.policy-body p { color: var(--ink-soft); line-height: 1.75; margin-bottom: .85rem; }
.policy-body ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: .85rem; }
.policy-body ul li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); line-height: 1.6; font-size: .95rem; }
.policy-body ul li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.policy-body strong { color: var(--ink); font-weight: 600; }
.policy-body a { color: var(--accent); font-weight: 600; }
.policy-body a:hover { text-decoration: underline; }

.policy-notice { display: flex; gap: 1rem; align-items: flex-start; background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.25); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.policy-notice svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.policy-notice p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }

.policy-contact-box { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.policy-contact-item { display: flex; align-items: flex-start; gap: .85rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.policy-contact-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: .15rem; }
.policy-contact-item b { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: .2rem; }
.policy-contact-item a, .policy-contact-item span { font-size: .95rem; color: var(--ink); font-weight: 500; }

.policy-footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.policy-footer-note p { font-size: .88rem; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 860px) { .policy-wrap { grid-template-columns: 1fr; } .policy-toc { position: static; } }

/* Dashboard responsive */
@media (max-width: 1100px) { .dash__certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash__sidebar { display: none; } .dash__body { grid-template-columns: 1fr; } .dash__col-main { border-right: none; border-bottom: 1px solid var(--line); } .dash__stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .dash__stats { grid-template-columns: 1fr 1fr; } .dash__certs { grid-template-columns: 1fr; } .dash__topbar { flex-direction: column; align-items: flex-start; } }

/* ========================================================
   28. Admin Panel — sidebar badge, tables, modals
   ======================================================== */

/* Sidebar admin badge */
.dash__sidebar-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); background: rgba(232,170,60,.1); border: 1px solid rgba(232,170,60,.25); border-radius: 8px; padding: .35rem .75rem; margin: 0 .5rem 1.5rem; }
.dash__sidebar-badge svg { width: 13px; height: 13px; }

/* Admin tab filter */
.adm-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.adm-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-family: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.adm-tab:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.adm-tab.is-active { background: rgba(16,185,129,.12); color: var(--accent); border-color: rgba(16,185,129,.3); font-weight: 600; }
.adm-tab-count { font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 100px; background: rgba(255,255,255,.08); color: var(--ink-soft); }
.adm-tab.is-active .adm-tab-count { background: rgba(16,185,129,.2); color: var(--accent); }
.adm-tab-count--warn { background: rgba(232,170,60,.15) !important; color: var(--accent-2) !important; }
.adm-tab-count--ok { background: rgba(16,185,129,.15) !important; color: var(--accent) !important; }

/* Admin table */
.adm-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table thead { background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.adm-table th { padding: .85rem 1.1rem; text-align: left; font-size: .77rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.adm-table td { padding: .85rem 1.1rem; font-size: .9rem; color: var(--ink); vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.04); }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr { transition: background var(--dur) var(--ease); }
.adm-table tbody tr:hover { background: rgba(255,255,255,.025); }

/* User cell */
.adm-user { display: flex; align-items: center; gap: .75rem; }
.adm-user-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.adm-user b { display: block; font-size: .9rem; color: var(--ink); }
.adm-user span { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: .05rem; }

/* Badges */
.adm-badge { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 100px; font-size: .77rem; font-weight: 600; white-space: nowrap; }
.adm-badge--warn { background: rgba(232,170,60,.12); color: var(--accent-2); border: 1px solid rgba(232,170,60,.25); }
.adm-badge--info { background: rgba(99,102,241,.12); color: #818cf8; border: 1px solid rgba(99,102,241,.25); }
.adm-badge--ok { background: rgba(16,185,129,.12); color: var(--accent); border: 1px solid rgba(16,185,129,.25); }
.adm-badge--danger { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.25); }

/* Score cell */
.adm-score { font-weight: 700; color: var(--ink-soft); }
.adm-score--hi { color: var(--accent); }
.adm-dash-cell { color: var(--ink-soft); font-size: .88rem; }

/* Action buttons */
.adm-actions { display: flex; gap: .4rem; }
.adm-btn { display: inline-flex; align-items: center; padding: .35rem .8rem; border-radius: 7px; font-family: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); white-space: nowrap; }
.adm-btn--ok { background: rgba(16,185,129,.14); color: var(--accent); border-color: rgba(16,185,129,.3); }
.adm-btn--ok:hover { background: rgba(16,185,129,.25); }
.adm-btn--ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.adm-btn--ghost:hover { background: rgba(255,255,255,.06); color: var(--ink); border-color: rgba(255,255,255,.2); }
.adm-btn--danger { background: transparent; color: #f87171; border-color: rgba(239,68,68,.25); }
.adm-btn--danger:hover { background: rgba(239,68,68,.1); }

/* Modal */
.adm-modal-overlay { position: fixed; inset: 0; background: rgba(6,13,24,.75); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.adm-modal-overlay.is-open { opacity: 1; pointer-events: all; }
.adm-modal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; max-width: 480px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); transform: translateY(16px) scale(.98); transition: transform .25s var(--ease); }
.adm-modal-overlay.is-open .adm-modal { transform: translateY(0) scale(1); }
.adm-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.adm-modal-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; }
.adm-modal-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; background: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.adm-modal-close svg { width: 15px; height: 15px; }
.adm-modal-close:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.adm-modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0; }
.adm-modal-body .field { margin-bottom: 1rem; }
.adm-modal-foot { display: flex; gap: .6rem; justify-content: flex-end; padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); }

/* Admin stat cards */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.adm-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.adm-stat-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; margin-bottom: .2rem; }
.adm-stat-icon svg { width: 18px; height: 18px; }
.adm-stat--accent { border-color: rgba(16,185,129,.25); background: rgba(16,185,129,.06); }
.adm-stat--accent .adm-stat-icon { background: rgba(16,185,129,.15); color: var(--accent); }
.adm-stat--gold { border-color: rgba(232,170,60,.25); background: rgba(232,170,60,.05); }
.adm-stat--gold .adm-stat-icon { background: rgba(232,170,60,.15); color: var(--accent-2); }
.adm-stat--warn { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.05); }
.adm-stat--warn .adm-stat-icon { background: rgba(239,68,68,.12); color: #f87171; }
.adm-stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.adm-stat-label { font-size: .8rem; color: var(--ink-soft); }

@media (max-width: 1000px) { .adm-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .adm-table-wrap { overflow-x: auto; } .adm-table { min-width: 700px; } }

/* ========================================================
   29. Admin Courses — card grid, upload
   ======================================================== */
.adm-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.adm-course-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.adm-course-card:hover { border-color: rgba(16,185,129,.3); box-shadow: 0 12px 32px -10px rgba(0,0,0,.4); }
.adm-course-card__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem .5rem; }
.adm-course-card__icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(16,185,129,.14); color: var(--accent); display: grid; place-items: center; }
.adm-course-card__icon svg { width: 20px; height: 20px; }
.adm-course-card__body { padding: .4rem 1.2rem 1rem; flex: 1; }
.adm-course-card__body h3 { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.adm-course-card__body p { font-size: .82rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: .85rem; }
.adm-course-meta { display: flex; gap: .75rem; margin-bottom: .85rem; flex-wrap: wrap; }
.adm-course-meta span { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--ink-soft); }
.adm-course-meta span svg { width: 13px; height: 13px; }
.adm-course-card__prog { height: 5px; border-radius: 100px; background: var(--line); overflow: hidden; }
.adm-course-card__prog-bar { height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: 100px; transition: width 1s var(--ease); }
.adm-course-card__foot { display: flex; gap: .5rem; padding: .85rem 1.2rem; border-top: 1px solid var(--line); }
.adm-course-card__foot .adm-btn { flex: 1; justify-content: center; gap: .4rem; }
.adm-course-card__foot .adm-btn svg { width: 13px; height: 13px; }

/* Upload modal internals */
.adm-upload-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.adm-upload-tab { padding: .55rem 1rem; font-family: inherit; font-size: .88rem; font-weight: 500; color: var(--ink-soft); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.adm-upload-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.adm-upload-tab:hover:not(.is-active) { color: var(--ink); }
.adm-dropzone { border: 1.5px dashed rgba(255,255,255,.15); border-radius: var(--radius-sm); padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; transition: border-color .2s, background .2s; cursor: default; }
.adm-dropzone.is-over { border-color: var(--accent); background: rgba(16,185,129,.05); }
.adm-dropzone svg { width: 32px; height: 32px; color: var(--ink-soft); margin-bottom: .25rem; }
.adm-dropzone p { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.adm-dropzone p span { font-size: .8rem; }
.adm-dropzone small { font-size: .75rem; color: var(--ink-soft); opacity: .6; }

/* ========================================================
   30. Admin Reports — bar chart, weak items
   ======================================================== */
.adm-bar-chart { display: flex; align-items: flex-end; gap: .85rem; height: 160px; padding: 0 .5rem; position: relative; }
.adm-bar-chart::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.adm-bar-group { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex: 1; height: 100%; justify-content: flex-end; }
.adm-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.adm-bar { width: 100%; min-height: 4px; height: var(--h, 0%); background: rgba(255,255,255,.12); border-radius: 6px 6px 0 0; position: relative; transition: height 1s var(--ease); }
.adm-bar--accent { background: var(--accent); }
.adm-bar--gold { background: var(--accent-2); }
.adm-bar-tip { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.adm-bar-label { font-size: .72rem; color: var(--ink-soft); text-align: center; padding-bottom: .25rem; }

.adm-weak-item { display: flex; align-items: flex-start; gap: .75rem; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .85rem; }
.adm-weak-item > div { flex: 1; min-width: 0; }
.adm-weak-item b { display: block; font-size: .82rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-weak-item span { display: block; font-size: .75rem; color: var(--ink-soft); margin-top: .1rem; }
.adm-weak-score { font-family: var(--font-display); font-size: .95rem; font-weight: 700; flex-shrink: 0; }
.adm-weak-score--bad { color: #f87171; }
.adm-weak-score--mid { color: var(--accent-2); }

@media (max-width: 1100px) { .adm-course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .adm-course-grid { grid-template-columns: 1fr; } }
