/* ===========================================================
   Lazlo Learning Global — Global Stylesheet
   Theme: Dark Navy + Blue/Cyan (matches lazlo-learning.web.app)
   Font:  Kanit / Noto Sans Thai / Inter
   =========================================================== */

/* Google Fonts are injected async by components.js to avoid render-blocking @import */

:root {
  /* Brand */
  --c-navy: #050a17;
  --c-navy-2: #0a1430;
  --c-ink: #070d19;
  --c-blue: #1a6fff;
  --c-blue-2: #0b5fff;
  --c-blue-soft: rgba(26, 111, 255, 0.14);
  --c-gold: #00d4ff;            /* accent (cyan) */
  --c-gold-2: #5ce1ff;
  --c-gold-soft: rgba(0, 212, 255, 0.12);
  --c-gold-line: rgba(0, 212, 255, 0.28);

  /* Surfaces */
  --c-bg: #02040f;
  --c-surface: #0a1426;
  --c-surface-2: #0b1730;
  --c-surface-3: #11203f;

  /* Text */
  --c-text: #f7faff;
  --c-text-soft: #c8d3e6;
  --c-text-muted: #8996aa;
  --c-text-faint: #5a6b82;

  /* Lines */
  --c-line: rgba(90, 168, 255, 0.14);
  --c-line-strong: rgba(90, 168, 255, 0.30);

  /* Status */
  --c-success: #22c55e;
  --c-success-soft: rgba(34, 197, 94, 0.14);
  --c-danger: #f25555;
  --c-danger-soft: rgba(242, 85, 85, 0.14);
  --c-warn: #f0a93b;
  --c-warn-soft: rgba(240, 169, 59, 0.14);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 28px 80px rgba(0, 0, 0, 0.50);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --t-fast: 140ms ease;
  --t: 220ms ease;
  --t-slow: 360ms ease;

  --container: 1240px;
  --gutter: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Kanit", "Noto Sans Thai", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background:
    radial-gradient(circle at 72% 8%, rgba(26, 111, 255, 0.22), transparent 31rem),
    radial-gradient(circle at 18% 20%, rgba(0, 212, 255, 0.07), transparent 22rem),
    linear-gradient(135deg, #02040f 0%, #030815 48%, #01030b 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-gold-2); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; color: var(--c-text); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.35rem; line-height: 1.3; }
h4 { font-size: 1.1rem; line-height: 1.35; }
p  { margin: 0 0 1em; color: var(--c-text-soft); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--c-navy); color: #e9edf7; }
.section--dark p { color: rgba(233, 237, 247, 0.7); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #ffffff; }

.row { display: flex; flex-wrap: wrap; gap: 24px; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Eyebrow / labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-gold-soft);
  color: var(--c-gold-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--c-gold-line);
}
.eyebrow--blue { background: var(--c-blue-soft); color: var(--c-blue); border-color: rgba(26, 58, 138, 0.16); }

/* Section heading */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  margin-top: 14px; margin-bottom: 24px;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 800;
  position: relative;
  padding-bottom: 18px;
  background: linear-gradient(120deg, #ffffff 0%, #6cc4ff 60%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #5aa8ff 0%, var(--c-gold) 100%);
}
.section-head p { color: var(--c-text-muted); font-size: 1.02rem; }

/* Gradient heading text (for standalone headings outside .section-head) */
.heading-grad {
  background: linear-gradient(120deg, #ffffff 0%, #6cc4ff 60%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-2) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11, 95, 255, 0.30);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(11, 95, 255, 0.42); }

.btn--gold {
  background: linear-gradient(135deg, var(--c-blue-2) 0%, #00a8ff 60%, var(--c-gold) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 140, 255, 0.38);
}
.btn--gold:hover { color: #fff; box-shadow: 0 14px 34px rgba(0, 168, 255, 0.48); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-text); }

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.btn--outline:hover { border-color: var(--c-gold); color: var(--c-gold-2); }

.btn--link {
  padding: 0;
  background: transparent;
  color: var(--c-blue);
  border-radius: 0;
}
.btn--link:hover { color: var(--c-gold-2); transform: none; }

/* Card */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-line-strong); }
.card--ghost { background: transparent; border: 1px dashed var(--c-line-strong); }
.card--accent { border-color: var(--c-gold-line); background: var(--c-gold-soft); }
.card-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--c-blue-soft);
  color: var(--c-blue);
  margin-bottom: 18px;
}
.card--accent .card-icon { background: rgba(199, 150, 83, 0.2); color: var(--c-gold-2); }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--c-text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* Team avatars — premium monogram (or photo) */
.team-avatar {
  position: relative;
  width: 104px; height: 104px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 600; letter-spacing: 0.01em;
  background: linear-gradient(145deg, #1d4ed8 0%, #0a1430 55%, #00a8ff 130%);
  box-shadow:
    0 14px 34px rgba(0, 168, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
/* Gradient ring around the avatar */
.team-avatar::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  padding: 4px; pointer-events: none;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.85), rgba(26, 111, 255, 0.15) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}
.team-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--c-surface-3);
  color: var(--c-text-soft);
}
.badge--success { background: var(--c-success-soft); color: var(--c-success); }
.badge--warn { background: var(--c-warn-soft); color: var(--c-warn); }
.badge--gold { background: var(--c-gold-soft); color: var(--c-gold-2); }
.badge--blue { background: var(--c-blue-soft); color: var(--c-blue); }

/* Form */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 0.95rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(199, 150, 83, 0.18);
}
.form-help { font-size: 0.82rem; color: var(--c-text-muted); margin-top: 6px; }

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .form-control { padding-left: 44px; }
.input-group-icon {
  position: absolute;
  left: 14px;
  color: var(--c-text-muted);
  pointer-events: none;
  display: inline-flex;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5, 10, 23, 0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-text);
}
.site-logo img { height: 40px; width: auto; }
.site-logo:hover { color: var(--c-text); }
.site-logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--c-gold-2);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--c-text-soft);
  transition: color var(--t), background var(--t);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--c-text); background: var(--c-surface-3); }
.site-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
@media (max-width: 980px) {
  .site-nav, .site-actions .btn:not(.btn--gold):not(.nav-toggle) { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 4px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--c-navy);
  color: rgba(233, 237, 247, 0.78);
  padding: 72px 0 28px;
  margin-top: 80px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
.site-footer__brand p { color: rgba(233, 237, 247, 0.65); margin-top: 16px; }
.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(233, 237, 247, 0.7); font-size: 0.92rem; }
.site-footer a:hover { color: var(--c-gold); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(233, 237, 247, 0.55);
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .social-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-list a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background var(--t), transform var(--t);
}
.social-list a:hover { background: var(--c-gold); transform: translateY(-2px); color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 10vw, 130px);
  background:
    radial-gradient(1100px 560px at 15% 5%, rgba(26, 111, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 18%, rgba(0, 212, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #0a1228 0%, #060a18 100%);
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 2; }

/* Animated candlestick background */
.hero__chart {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  opacity: 0.65;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero__chart-track {
  position: absolute; top: 50%; left: 0;
  width: 200%; height: 62%;
  display: flex;
  transform: translateY(-50%);
  animation: heroChartScroll 18s linear infinite;
}
.hero__chart-track svg { width: 50%; height: 100%; flex: none; display: block; }
.hero__chart-track line,
.hero__chart-track polyline { vector-effect: non-scaling-stroke; }
@keyframes heroChartScroll {
  from { transform: translate(0, -50%); }
  to   { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 100000px) { .hero__chart-track { animation: none; } }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.hero .eyebrow { color: #6cc4ff; }
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  margin: 16px 0 18px;
  letter-spacing: -0.015em;
  color: #fff;
}
.hero__title .accent {
  background: linear-gradient(135deg, #5aa8ff 0%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede { font-size: 1.08rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 28px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.hero .btn--outline:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__stat .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero__stat .lbl { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

.hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(12, 22, 42, 0.94) 0%, rgba(9, 16, 31, 0.78) 100%);
  border: 1px solid var(--c-line-strong);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}
.market-ticker {
  display: grid;
  gap: 12px;
}
.ticker-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.ticker-sym {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-blue-soft);
  color: var(--c-blue);
  font-weight: 700;
  font-size: 0.78rem;
}
.ticker-name { color: var(--c-text); font-weight: 500; }
.ticker-price { font-weight: 600; color: var(--c-text); }
.ticker-change { font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); }
.ticker-change.up { background: var(--c-success-soft); color: var(--c-success); }
.ticker-change.down { background: var(--c-danger-soft); color: var(--c-danger); }

/* ============ Member Access Card (home hero) ============ */
.access-card {
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 55% at 18% 0%, rgba(0, 212, 255, 0.12), transparent 60%),
    linear-gradient(165deg, #0c1630 0%, #070d1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.access-card__header { display: flex; align-items: center; gap: 10px; }
.access-card__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}
.access-card__label {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #5ad1ff; font-weight: 700;
}
.access-card__stage {
  position: relative;
  height: 168px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(58% 68% at 50% 46%, rgba(125, 175, 235, 0.18), rgba(10, 16, 32, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.14));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.access-card__stage img {
  position: relative;
  height: 86px; width: auto; opacity: 0.92;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5));
}

.acc-item {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 17px 16px; color: #fff; cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.acc-item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(199, 150, 83, 0.5); transform: translateY(-2px); }
.acc-num { font-size: 0.8rem; font-weight: 700; color: var(--c-gold-2); width: 20px; flex: none; }
.acc-icon {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: rgba(90, 170, 240, 0.12); color: #6cc4ff;
}
.acc-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.acc-title { font-weight: 600; font-size: 0.98rem; }
.acc-desc { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.acc-arrow { flex: none; color: rgba(255, 255, 255, 0.5); display: inline-flex; transition: transform var(--t), color var(--t); }
.acc-item:hover .acc-arrow { color: var(--c-gold-2); transform: translateX(3px); }

.ticker-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  margin-top: 4px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.ticker-bar .ticker-item { display: inline-flex; align-items: center; gap: 6px; }
.ticker-bar .ticker-sym {
  width: auto; height: auto; background: none; border-radius: 0;
  color: rgba(255, 255, 255, 0.55); font-weight: 600; font-size: 0.78rem;
}
.ticker-bar .ticker-val { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker-bar .ticker-change { background: none; padding: 0; font-size: 0.72rem; font-weight: 600; }
.ticker-bar .ticker-change.up { color: #34d399; background: none; }
.ticker-bar .ticker-change.dn, .ticker-bar .ticker-change.down { color: #f87171; background: none; }
.ticker-sep { color: rgba(255, 255, 255, 0.25); }

/* ---- Access card micro-interactions (ลูกเล่น) ---- */
/* Pulsing status dot */
.access-card__dot { animation: accPulse 2.2s ease-out infinite; }
@keyframes accPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* Breathing glow behind the logo + gently floating logo */
.access-card__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 55% at 50% 46%, rgba(125, 175, 235, 0.22), transparent 70%);
  animation: accGlow 4.5s ease-in-out infinite;
}
@keyframes accGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.access-card__stage img { animation: accFloat 5s ease-in-out infinite; }
@keyframes accFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Icon zoom + ring on hover */
.acc-icon { transition: transform var(--t), box-shadow var(--t); }
.acc-item:hover .acc-icon { transform: scale(1.08); box-shadow: 0 0 0 1px rgba(108, 196, 255, 0.45); }

/* Light-sweep shimmer across each item on hover */
.acc-item::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.acc-item:hover::after { left: 130%; }

/* Staggered fade-in on load */
.acc-item { animation: accIn 0.5s ease both; }
.acc-item:nth-child(3) { animation-delay: 0.06s; }
.acc-item:nth-child(4) { animation-delay: 0.14s; }
.acc-item:nth-child(5) { animation-delay: 0.22s; }
@keyframes accIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) and (min-width: 100000px) {
  .access-card__dot, .access-card__stage::before, .access-card__stage img, .acc-item { animation: none; }
}

/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 56px;
  align-items: center;
  opacity: 0.7;
}
.logo-strip span { color: var(--c-text-faint); font-weight: 500; letter-spacing: 0.04em; }

/* Feature card row */
.feature-row { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }
.feature {
  padding: 32px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t);
  text-align: center;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(26, 111, 255, 0.22), rgba(0, 212, 255, 0.10));
  color: var(--c-gold);
  margin-bottom: 22px;
}
.feature h3 { margin-bottom: 10px; font-size: 1.42rem; font-weight: 700; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price--featured {
  border: 2px solid var(--c-gold);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, rgba(12, 22, 42, 0.6) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.15);
}
.price--featured::before {
  content: "ยอดนิยม";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--c-blue-2), var(--c-gold));
  color: #04122b;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}
.price__name { font-size: 1.1rem; font-weight: 600; }
.price__desc { color: var(--c-text-muted); font-size: 0.9rem; margin: 8px 0 22px; }
.price__amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price__amount .num { font-size: 2.6rem; font-weight: 700; color: var(--c-text); letter-spacing: -0.02em; }
.price__amount .cur { color: var(--c-text-muted); font-size: 1rem; }
.price__amount .per { color: var(--c-text-muted); font-size: 0.85rem; }
.price__features { margin: 28px 0; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.price__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--c-text-soft);
}
.price__features li::before {
  content: "✓";
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-success-soft);
  color: var(--c-success);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Course card */
.course {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), opacity 0.25s ease, border-color var(--t);
}
.course.is-hiding { opacity: 0; transform: translateY(6px); pointer-events: none; }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course__cover {
  aspect-ratio: 16/9;
  position: relative;
  background:
    linear-gradient(135deg, rgba(2, 4, 15, 0.55), rgba(0, 212, 255, 0.35)),
    linear-gradient(135deg, #0b3a99, #00a8ff);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
}
.course__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%);
}
.course__cover .badge { background: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(6px); position: relative; z-index: 1; }
.course__body { padding: 26px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.course__title { font-size: 1.05rem; font-weight: 600; color: var(--c-text); }
.course__meta {
  display: flex; gap: 14px;
  font-size: 0.82rem; color: var(--c-text-muted);
  align-items: center;
  margin-top: auto;
}
.course__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course__price { font-weight: 700; color: var(--c-text); font-size: 1.05rem; }

/* Testimonial */
.testimonial {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.testimonial p { font-style: italic; color: var(--c-text-soft); font-size: 1rem; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-gold));
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 600;
}
.testimonial__name { font-weight: 600; color: var(--c-text); font-size: 0.95rem; }
.testimonial__role { color: var(--c-text-muted); font-size: 0.82rem; }

/* CTA banner */
.cta-banner {
  margin: 40px 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(0, 212, 255, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 120%, rgba(26, 111, 255, 0.28), transparent 60%),
    linear-gradient(135deg, var(--c-navy-2) 0%, #0d1f44 100%);
  color: #fff;
  border: 1px solid var(--c-line-strong);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; text-align: left; } }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255, 255, 255, 0.7); margin-bottom: 0; }

/* Auth */
.auth {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--c-bg);
}
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__visual { display: none; } }
.auth__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--gutter);
}
.auth__form { width: 100%; max-width: 420px; }
.auth__form h1 { font-size: 1.85rem; margin-bottom: 8px; }
.auth__form > p { color: var(--c-text-muted); margin-bottom: 30px; }
.auth__visual {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(0, 212, 255, 0.22), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(26, 111, 255, 0.30), transparent 70%),
    linear-gradient(160deg, var(--c-navy-2) 0%, #0d1f44 100%);
  color: #fff;
  padding: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.auth__visual h2 { color: #fff; font-size: 1.85rem; line-height: 1.25; max-width: 420px; }
.auth__visual p { color: rgba(255, 255, 255, 0.7); }
.auth__quote {
  position: relative;
  z-index: 2;
  border-left: 3px solid var(--c-gold);
  padding-left: 18px;
  margin-bottom: 40px;
}
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0;
  font-size: 0.82rem;
  color: var(--c-text-faint);
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.social-auth .btn { background: rgba(255, 255, 255, 0.04); color: var(--c-text); border: 1px solid var(--c-line-strong); }
.social-auth .btn:hover { background: rgba(255, 255, 255, 0.08); }

/* Misc utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.text-soft { color: var(--c-text-soft); } .text-muted { color: var(--c-text-muted); }
.text-gold { color: var(--c-gold-2); } .text-blue { color: var(--c-blue); }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.hidden-md { display: block; } @media (max-width: 720px) { .hidden-md { display: none; } }

/* Page hero (subpages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(26, 111, 255, 0.16), transparent 60%),
    radial-gradient(900px 400px at 100% 100%, rgba(0, 212, 255, 0.10), transparent 60%);
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(620px 280px at 50% -12%, rgba(0, 212, 255, 0.14), transparent 70%);
  animation: pageHeroGlow 6s ease-in-out infinite;
}
@keyframes pageHeroGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.page-hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) and (min-width: 100000px) { .page-hero::before { animation: none; } }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--c-text-muted); max-width: 640px; margin: 0 auto; }
.breadcrumbs {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--c-text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-gold-2); }
.breadcrumbs span { color: var(--c-text-faint); }

/* Print-ready spacing for nav placeholder */
[data-component] { min-height: 0; }
[data-component="header"] { display: block; min-height: 76px; }

/* FAQ accordion */
.faq-item { padding: 0; }
.faq-q {
  cursor: pointer; font-weight: 600; padding: 20px 48px 20px 22px;
  position: relative; user-select: none; color: var(--c-text);
}
.faq-q::after {
  content: ""; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-text-muted); border-bottom: 2px solid var(--c-text-muted);
  rotate: 45deg; transition: rotate 0.25s ease;
}
.faq-item.is-open .faq-q::after { rotate: -135deg; }
.faq-a { display: none; padding: 0 22px 20px; }
.faq-a p { color: var(--c-text-muted); margin: 0; font-size: 0.95rem; }
.faq-item.is-open .faq-a { display: block; }

/* Page reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ SPLASH SCREEN ============ */
body.splash-lock { overflow: hidden; }
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 132, 255, 0.32), transparent 22rem),
    linear-gradient(180deg, #001634 0%, #001b48 46%, #000919 100%);
  transition: opacity 520ms ease, visibility 520ms ease;
}
.app-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.app-splash__logo {
  width: min(58vw, 240px);
  height: auto;
  filter: drop-shadow(0 0 3rem rgba(0, 140, 255, 0.45));
  animation: splashBreath 2200ms ease-in-out both;
}
.app-splash__bar {
  position: absolute;
  bottom: 16%;
  width: min(46vw, 200px);
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
}
.app-splash__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  animation: splashSweep 1200ms ease-in-out infinite;
}
@keyframes splashBreath {
  0%   { opacity: 0; transform: scale(1.06); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splashSweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(370%); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 100000px) {
  .app-splash__logo { animation: none; opacity: 1; }
  .app-splash__bar::after { animation: none; }
}

/* ============================================================
   FRONTEND POLISH & MOTION (site-wide ลูกเล่น)
   ============================================================ */

/* Smoother reveal + staggered grid children */
.reveal { transform: translateY(24px); }
.grid > .reveal:nth-child(2), .feature-row > .reveal:nth-child(2) { transition-delay: 0.07s; }
.grid > .reveal:nth-child(3), .feature-row > .reveal:nth-child(3) { transition-delay: 0.14s; }
.grid > .reveal:nth-child(4), .feature-row > .reveal:nth-child(4) { transition-delay: 0.21s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.28s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.35s; }

/* Card hover — lift + glow border + animated icon */
.card:hover { transform: translateY(-5px); border-color: var(--c-gold-line); box-shadow: var(--shadow-lg); }
.card .card-icon { transition: transform var(--t), box-shadow var(--t), background var(--t); }
.card:hover .card-icon { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 22px rgba(0, 212, 255, 0.22); }

/* Course card hover — lift + cover zoom */
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c-gold-line); }
.course__cover, .course__cover::after { transition: transform 0.5s ease, filter 0.4s ease; }
.course:hover .course__cover { transform: scale(1.06); filter: saturate(1.15) brightness(1.06); }

/* Testimonial — big quote mark, hover, glowing avatar, stars */
.testimonial { position: relative; overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.testimonial::before {
  content: "\201C"; position: absolute; top: -14px; right: 16px;
  font-size: 5.5rem; line-height: 1; color: var(--c-gold); opacity: 0.14; font-family: Georgia, serif;
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--c-gold-line); box-shadow: var(--shadow-lg); }
.testimonial__avatar { box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14), 0 6px 16px rgba(0, 168, 255, 0.25); }
.testimonial__stars { color: var(--c-gold); letter-spacing: 3px; font-size: 0.95rem; margin-bottom: 10px; }

/* Primary button shine sweep */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%; pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn--gold:hover::after { left: 140%; }

/* Header — denser glass once scrolled */
.site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }
.site-header.is-scrolled { background: rgba(4, 8, 18, 0.88); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4); }

/* Section ambient glow orb */
.section--alt { position: relative; overflow: hidden; }
.section--alt::before {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.10), transparent 70%);
  pointer-events: none; z-index: 0;
}
.section--alt > .container { position: relative; z-index: 1; }

/* Step cards — glowing number + connector */
.step-card .card-icon {
  border-radius: 50%; font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.18), rgba(26, 111, 255, 0.10));
  color: var(--c-gold-2);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3), 0 8px 20px rgba(0, 168, 255, 0.2);
}
@media (min-width: 901px) {
  .step-card { position: relative; }
  .step-card:not(:last-child)::after {
    content: ""; position: absolute; top: 52px; right: -16px;
    width: 32px; height: 2px; z-index: 2;
    background: linear-gradient(90deg, var(--c-gold-line), transparent);
  }
}

/* Logo marquee */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-marquee__track { display: flex; gap: 56px; width: max-content; animation: logoScroll 28s linear infinite; }
.logo-marquee__track span { display: inline-flex; align-items: center; gap: 9px; color: var(--c-text-faint); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; font-size: 1.05rem; }
.logo-marquee__track span img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; opacity: 0.85; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--c-blue), var(--c-gold));
  pointer-events: none;
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--c-line-strong); cursor: pointer;
  background: rgba(10, 20, 38, 0.85); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}
.scroll-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--c-blue); border-color: var(--c-blue); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) and (min-width: 100000px) {
  .logo-marquee__track { animation: none; }
  .card:hover, .course:hover, .testimonial:hover { transform: none; }
  .btn--gold::after { display: none; }
}

/* ============================================================
   MORE MOTION — shimmer, spotlight+tilt, orbs, forms, page fade
   ============================================================ */

/* Animated gradient shimmer on hero accent word */
.hero__title .accent { background-size: 220% auto; animation: shimmerText 5s linear infinite; }
@keyframes shimmerText { to { background-position: 220% center; } }

/* Course cover chart-grid texture */
.course__cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
          mask-image: linear-gradient(180deg, transparent, #000);
}

/* Interactive cards: cursor spotlight + 3D tilt */
.has-spotlight { position: relative; transform-style: preserve-3d; transition: transform 0.18s ease, box-shadow var(--t), border-color var(--t); }
.has-spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 255, 0.16), transparent 60%);
}
.has-spotlight:hover::after { opacity: 1; }

/* Hero floating orbs */
.hero__orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__orbs span { position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.5; }
.hero__orbs span:nth-child(1) { width: 300px; height: 300px; left: 6%; top: 16%; background: rgba(26, 111, 255, 0.35); animation: orbFloat 15s ease-in-out infinite; }
.hero__orbs span:nth-child(2) { width: 230px; height: 230px; right: 14%; top: 48%; background: rgba(0, 212, 255, 0.26); animation: orbFloat 19s ease-in-out infinite reverse; }
.hero__orbs span:nth-child(3) { width: 190px; height: 190px; left: 42%; bottom: 6%; background: rgba(11, 95, 255, 0.24); animation: orbFloat 23s ease-in-out infinite; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(34px, -42px); } }

/* Form focus glow */
.form-input, .form-control, .auth input, .auth textarea, .auth select, form input, form textarea, form select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input:focus, .form-control:focus, .auth input:focus, .auth textarea:focus, .auth select:focus,
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 255, 0.18);
}

/* TradeLab sparkline draw-in */
.tradelab-spark polyline {
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: sparkDraw 2.4s ease forwards;
  filter: drop-shadow(0 0 6px rgba(92, 225, 255, 0.5));
}
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }

/* Gentle page fade-in */
body { animation: pageFade 0.15s ease both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero__title .accent, .hero__orbs span, .tradelab-spark polyline, body { animation: none; }
  .has-spotlight { transition: box-shadow var(--t), border-color var(--t); }
}

/* Floating contact button (bottom-left) */
.contact-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 120;
  width: 50px; height: 50px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(145deg, #06c755, #04a548); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(6, 199, 85, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(6, 199, 85, 0.45); }

/* Sticky mobile CTA bar */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 115;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(4, 8, 18, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
}
.mobile-cta strong { font-size: 0.92rem; color: #fff; }
@media (max-width: 640px) {
  .mobile-cta { display: flex; }
  .contact-fab { bottom: 84px; }
  .scroll-top { bottom: 84px; }
  body { padding-bottom: 66px; }
}

/* ============================================================
   HI-TECH NEON FX
   ============================================================ */
/* Neon glow on the candlestick chart */
.hero__chart-track svg { filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.45)); }

/* Sweeping scan line across the hero */
.hero__scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__scan::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 160px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.16), transparent);
  filter: blur(3px);
  animation: heroScan 6.5s linear infinite;
}
@keyframes heroScan { from { transform: translateX(-220px); } to { transform: translateX(calc(100vw + 220px)); } }

/* Synthwave perspective grid floor */
.hero__grid-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 0;
  pointer-events: none; overflow: hidden; perspective: 320px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
          mask-image: linear-gradient(180deg, transparent, #000);
}
.hero__grid-floor::before {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: 0; height: 200%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.22) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: rotateX(74deg); transform-origin: bottom center;
  animation: gridScroll 3.5s linear infinite;
}
@keyframes gridScroll { from { background-position: 0 0; } to { background-position: 0 46px; } }

/* Color-shifting aurora orbs */
.hero__orbs { animation: auroraHue 16s linear infinite; }
@keyframes auroraHue { to { filter: hue-rotate(360deg); } }

/* Neon glow on hero headline */
.hero__title { text-shadow: 0 0 32px rgba(26, 111, 255, 0.25); }
.hero__title .accent { filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.55)); }

/* Pulsing neon border on the access card */
.access-card { animation: cardNeon 3.6s ease-in-out infinite; }
@keyframes cardNeon {
  0%, 100% { box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 212, 255, 0.15), 0 0 26px rgba(0, 212, 255, 0.12); }
  50% { box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 212, 255, 0.5), 0 0 46px rgba(0, 212, 255, 0.32); }
}

/* Cursor glow over the hero */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--hx, 50%) var(--hy, 28%), rgba(0, 212, 255, 0.10), transparent 62%);
}

/* Global neon accents */
.btn--gold { box-shadow: 0 0 18px rgba(0, 212, 255, 0.25); }
.badge--gold { box-shadow: none; }
.card:hover { box-shadow: var(--shadow-lg), 0 0 26px rgba(0, 212, 255, 0.18); }
.section--alt::before { animation: orbDrift 12s ease-in-out infinite; }
@keyframes orbDrift { 0%, 100% { transform: translate(0, 0); opacity: 0.8; } 50% { transform: translate(-30px, 24px); opacity: 1; } }

/* Running neon light along the top edge of every section */
.section, .section--alt { position: relative; }
.section::after, .section--alt::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.85) 50%, transparent 100%);
  background-size: 42% 100%; background-repeat: no-repeat;
  animation: lineRun 4.5s linear infinite;
}
@keyframes lineRun { 0% { background-position: -45% 0; } 100% { background-position: 145% 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero__scan::before, .hero__grid-floor::before, .hero__orbs, .access-card,
  .section--alt::before, .section::after, .section--alt::after { animation: none; }
}

/* ============================================================
   ALL-PAGE HI-TECH FX — Phase 2
   ============================================================ */

/* Fix broken old reduced-motion rule on page-hero */
@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .page-hero::after,
  .page-hero__orbs span, .page-hero__scan::before,
  .feature__icon::after, .card-icon::after,
  .step-card .card-icon { animation: none; }
}

/* PAGE-HERO: Perspective synthwave grid floor */
.page-hero::after {
  content: ""; position: absolute;
  left: -50%; right: -50%; bottom: 0; height: 52%;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.13) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotateX(70deg);
  transform-origin: bottom center;
  animation: gridScroll 4.5s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 90%);
  mask-image: linear-gradient(180deg, transparent 5%, #000 90%);
}

/* PAGE-HERO: Floating orbs (injected by JS as .page-hero__orbs) */
.page-hero__orbs {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.page-hero__orbs span {
  position: absolute; border-radius: 50%; filter: blur(52px);
}
.page-hero__orbs span:nth-child(1) {
  width: 260px; height: 260px; left: 4%; top: -30%;
  background: rgba(26, 111, 255, 0.30);
  animation: orbFloat 14s ease-in-out infinite;
}
.page-hero__orbs span:nth-child(2) {
  width: 200px; height: 200px; right: 7%; top: 5%;
  background: rgba(0, 212, 255, 0.22);
  animation: orbFloat 18s ease-in-out infinite reverse;
}
.page-hero__orbs span:nth-child(3) {
  width: 150px; height: 150px; left: 42%; bottom: -15%;
  background: rgba(11, 95, 255, 0.20);
  animation: orbFloat 22s ease-in-out infinite;
}

/* PAGE-HERO: Scan line beam (injected by JS as .page-hero__scan) */
.page-hero__scan {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.page-hero__scan::before {
  content: ""; position: absolute;
  top: 0; bottom: 0; left: 0; width: 150px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
  filter: blur(3px);
  animation: heroScan 8s linear infinite 0.8s;
}

/* PAGE-HERO: h1 neon glow */
.page-hero h1 {
  text-shadow: 0 0 42px rgba(26, 111, 255, 0.24), 0 0 80px rgba(0, 212, 255, 0.10);
}

/* FEATURE CARD: top-left corner bracket on hover */
.feature { position: relative; }
.feature::before {
  content: ""; position: absolute;
  top: 12px; left: 12px;
  width: 18px; height: 18px;
  border-top: 2px solid rgba(0, 212, 255, 0.8);
  border-left: 2px solid rgba(0, 212, 255, 0.8);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature:hover::before { opacity: 1; }

/* FEATURE ICON: rotating conic-gradient ring on hover */
.feature__icon { position: relative; overflow: visible; }
.feature__icon::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: var(--radius-sm);
  background: conic-gradient(from 0deg, transparent 55%, rgba(0, 212, 255, 0.55) 75%, transparent 95%);
  animation: iconSpin 2.5s linear infinite;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature:hover .feature__icon::after { opacity: 1; }
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* CARD ICON: rotating glow ring on hover */
.card-icon { position: relative; overflow: visible; }
.card-icon::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 55%, rgba(0, 212, 255, 0.45) 75%, transparent 95%);
  animation: iconSpin 3s linear infinite;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover .card-icon::after { opacity: 1; }

/* DATA COUNTERS: subtle cyan glow */
[data-countup], .hero__stat .num {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.22);
}

/* SECTION HEADINGS: subtle blue depth glow */
.section-head h2, .page-hero h2 {
  text-shadow: 0 0 56px rgba(26, 111, 255, 0.18);
}

/* STEP CARDS: pulsing neon number badge */
.step-card .card-icon {
  animation: stepGlow 3.2s ease-in-out infinite;
}
@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 212, 255, 0.22), inset 0 0 10px rgba(0, 212, 255, 0.08); }
  50%       { box-shadow: 0 0 28px rgba(0, 212, 255, 0.52), inset 0 0 16px rgba(0, 212, 255, 0.20); }
}

/* TESTIMONIAL STARS: cyan neon glow */
.testimonial__stars {
  filter: drop-shadow(0 0 7px rgba(0, 212, 255, 0.65));
  color: var(--c-gold-2) !important;
  letter-spacing: 4px;
}

/* BADGE: removed neon glow — was too bright/layered */

/* BUTTONS: stronger glow on hover */
.btn--gold:hover  { box-shadow: 0 0 24px rgba(0, 212, 255, 0.55), 0 8px 26px rgba(0, 168, 255, 0.30) !important; }
.btn--primary:hover { box-shadow: 0 0 20px rgba(26, 111, 255, 0.50), 0 8px 24px rgba(26, 111, 255, 0.28) !important; }

/* FOOTER: circuit grid texture */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.site-footer .container, .site-footer__top,
.site-footer__bottom { position: relative; z-index: 1; }

/* TABLE ROWS: neon left-border on hover */
table tbody tr:hover {
  background: rgba(0, 212, 255, 0.05) !important;
  box-shadow: inset 4px 0 0 rgba(0, 212, 255, 0.45);
}

/* EYEBROW LABELS: subtle left neon tick */
.eyebrow::before {
  content: "▎";
  margin-right: 5px;
  color: var(--c-gold);
  opacity: 0.7;
  font-size: 0.9em;
}
.hero .eyebrow::before { content: none; }

/* NAV LINKS: neon underline glow on hover/active */
.site-nav a:hover, .site-nav a.is-active {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.50);
}

/* CTA BANNER: neon animated border */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background-image: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.9) 50%, transparent 100%);
  background-size: 42% 100%; background-repeat: no-repeat;
  animation: lineRun 4s linear infinite;
}
.cta-banner::after {
  content: ""; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background-image: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.5) 50%, transparent 100%);
  background-size: 42% 100%; background-repeat: no-repeat;
  animation: lineRun 5.5s linear infinite reverse;
}

/* GLOBAL CURSOR GLOW (injected by JS as #cursor-glow) */
#cursor-glow {
  position: fixed; z-index: 9; pointer-events: none;
  width: 340px; height: 340px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, transparent 68%);
  transition: left 0.08s ease, top 0.08s ease, opacity 0.3s ease;
  opacity: 0; will-change: left, top;
}

/* REVEAL: glow flash on entry */
.reveal.is-visible {
  animation: revealGlow 0.7s ease forwards;
}
@keyframes revealGlow {
  0%   { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.30)); }
  100% { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero::after, .page-hero__orbs span, .page-hero__scan::before,
  .feature__icon::after, .card-icon::after, .step-card .card-icon,
  .cta-banner::before, .cta-banner::after, .reveal.is-visible { animation: none; }
}

/* ============ SKELETON LOADING ============ */
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--c-surface-3) 25%,
    rgba(255,255,255,0.06) 50%,
    var(--c-surface-3) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
  color: transparent !important;
  user-select: none; pointer-events: none;
}
.skeleton * { visibility: hidden; }

/* ============ COUNT-UP ANIMATION ============ */
.count-up { display: inline-block; }

/* ============ EXPIRY WARNING ============ */
.card--expiry-warn {
  border-color: rgba(251, 146, 60, 0.5) !important;
  background: linear-gradient(135deg, rgba(251,146,60,0.08), transparent) !important;
}
.card--expiry-danger {
  border-color: rgba(248, 113, 113, 0.5) !important;
  background: linear-gradient(135deg, rgba(248,113,113,0.08), transparent) !important;
}

/* ============ CIRCULAR PROGRESS RING ============ */
.ring-wrap { position: relative; flex-shrink: 0; }
.ring-wrap__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; line-height: 1.1; text-align: center;
}
.ring-progress {
  transition: stroke-dasharray 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ PASSWORD TOGGLE (right-side btn in input-group) ============ */
.input-group.has-toggle .form-control { padding-right: 46px; }
.input-group-toggle {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--c-text-muted); transition: color 0.18s ease;
}
.input-group-toggle:hover { color: var(--c-gold-2); }
.input-group-toggle svg { pointer-events: none; }

/* ============ PASSWORD STRENGTH BAR ============ */
.pwd-strength { margin-top: 8px; }
.pwd-strength__track {
  height: 4px; border-radius: 999px;
  background: var(--c-line); overflow: hidden;
}
.pwd-strength__bar {
  height: 100%; border-radius: 999px;
  width: 0%; transition: width 0.3s ease, background 0.3s ease;
}
.pwd-strength__label {
  font-size: .78rem; color: var(--c-text-faint);
  margin-top: 5px; transition: color 0.3s ease;
}
.pwd-strength[data-level="1"] .pwd-strength__bar { width: 25%; background: #f87171; }
.pwd-strength[data-level="1"] .pwd-strength__label { color: #f87171; }
.pwd-strength[data-level="2"] .pwd-strength__bar { width: 50%; background: #fb923c; }
.pwd-strength[data-level="2"] .pwd-strength__label { color: #fb923c; }
.pwd-strength[data-level="3"] .pwd-strength__bar { width: 75%; background: #facc15; }
.pwd-strength[data-level="3"] .pwd-strength__label { color: #facc15; }
.pwd-strength[data-level="4"] .pwd-strength__bar { width: 100%; background: #4ade80; }
.pwd-strength[data-level="4"] .pwd-strength__label { color: #4ade80; }

/* ============ FORM SHAKE ON ERROR ============ */
@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-7px); }
  30%       { transform: translateX(7px); }
  45%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
  75%       { transform: translateX(-3px); }
  90%       { transform: translateX(3px); }
}
.form--shake { animation: formShake 0.42s cubic-bezier(.36,.07,.19,.97) both; }

/* ============ INLINE FIELD VALIDATION ============ */
.form-group .field-hint {
  font-size: .78rem; margin-top: 5px;
  display: none; transition: color 0.2s;
}
.form-group.is-error .form-control { border-color: #f87171 !important; }
.form-group.is-error .field-hint   { display: block; color: #f87171; }
.form-group.is-valid .form-control { border-color: #4ade80 !important; }
.form-group.is-valid .field-hint   { display: block; color: #4ade80; }

@media (prefers-reduced-motion: reduce) {
  .form--shake, .pwd-strength__bar, .input-group-toggle { animation: none; transition: none; }
}

/* ============ PRICING: billing toggle active state ============ */
.btn--ghost.is-active {
  background: var(--c-gold-soft) !important;
  border-color: var(--c-gold-line) !important;
  color: var(--c-gold-2) !important;
}

/* ============ PRICING: price flip animation ============ */
@keyframes priceFlip {
  0%   { opacity: 1; transform: translateY(0); }
  35%  { opacity: 0; transform: translateY(-10px); }
  65%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.price-flip { animation: priceFlip 0.32s ease; }

/* ============ PRICING: popular badge pulse ============ */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(0,212,255,0); }
}
.badge--pulse { animation: badgePulse 2.4s ease-in-out infinite; }

/* ============ RR CALCULATOR: trade visualization ============ */
.trade-viz-wrap {
  margin-top: 16px; border-radius: var(--radius-sm);
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  overflow: hidden; padding: 8px 0 4px;
}
.trade-viz-wrap svg { display: block; width: 100%; }

/* ============ RR CALCULATOR: history ============ */
.calc-hist-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid var(--c-line);
  font-size: .82rem; cursor: pointer;
  transition: background 0.15s ease;
}
.calc-hist-row:last-child { border-bottom: none; }
.calc-hist-row:hover { background: var(--c-surface-3); }

@media (prefers-reduced-motion: reduce) {
  .price-flip, .badge--pulse { animation: none; }
}

/* ============ CHECKOUT: payment option selection ============ */
.pay-option { transition: border-color 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.pay-option:has(input[type="radio"]:checked) {
  border-color: var(--c-gold) !important;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.18), var(--shadow-sm) !important;
}
.pay-option input[type="radio"] { accent-color: var(--c-gold); }

/* ============ CHECKOUT: trust badges ============ */
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 16px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--c-text-faint);
  padding: 5px 10px; border-radius: 99px;
  border: 1px solid var(--c-line); background: var(--c-surface-3);
}
.trust-badge svg { color: var(--c-gold); flex-shrink: 0; }

/* ============ CHECKOUT: countdown banner ============ */
.countdown-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(0,212,255,0.08), rgba(26,111,255,0.08));
  border: 1px solid var(--c-gold-line); border-radius: var(--radius-sm);
  padding: 10px 18px; margin-bottom: 24px; font-size: .88rem;
}
.countdown-banner strong { color: var(--c-gold-2); }
.countdown-timer {
  font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--c-gold-2); letter-spacing: .04em; font-size: 1rem;
}

/* ============ HOMEPAGE: price ticker strip ============ */
.price-ticker {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden; height: 40px; display: flex; align-items: center;
}
.price-ticker__track {
  display: flex; align-items: center; white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
}
.price-ticker:hover .price-ticker__track { animation-play-state: paused; }
.price-ticker__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px; border-right: 1px solid var(--c-line);
  font-size: .82rem; height: 40px;
}
.price-ticker__sym { font-weight: 700; color: var(--c-text); }
.price-ticker__price { color: var(--c-text-soft); font-variant-numeric: tabular-nums; }
.price-ticker__chg { font-variant-numeric: tabular-nums; font-size: .78rem; }
.price-ticker__chg--up { color: #4ade80; }
.price-ticker__chg--dn { color: #f87171; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .price-ticker__track { animation: none; } }

/* ============ HOMEPAGE: testimonial focus rotate ============ */
.testimonial { transition: opacity 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease; }
.testimonial.is-dimmed { opacity: 0.45; }
.testimonial.is-featured { border-color: var(--c-gold-line) !important; box-shadow: 0 0 18px rgba(0,212,255,0.12); }

/* ============ TOOLS: filter tabs ============ */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.filter-tab {
  padding: 7px 18px; border-radius: 99px; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--c-line); background: transparent; color: var(--c-text-soft);
  cursor: pointer; transition: all 0.18s ease;
}
.filter-tab:hover { border-color: var(--c-gold-line); color: var(--c-text); }
.filter-tab.is-active {
  background: var(--c-gold-soft); border-color: var(--c-gold-line);
  color: var(--c-gold-2);
}

/* tool cards hidden when filtered out */
.tool-card-wrap {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tool-card-wrap.is-hidden {
  display: none;
}

/* ============ ONBOARDING: radio / checkbox card selection ============ */
label.card:has(input[type="radio"]:checked) {
  border-color: var(--c-gold) !important;
  background: var(--c-gold-soft) !important;
  box-shadow: 0 0 0 2px rgba(0,212,255,.18), var(--shadow-sm) !important;
}
label.btn--outline:has(input[type="checkbox"]:checked) {
  background: var(--c-gold-soft) !important;
  border-color: var(--c-gold-line) !important;
  color: var(--c-gold-2) !important;
}

/* ============ COURSES: card hover lift (upgrades existing shadow) ============ */
@media (hover: hover) {
  .course:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.38), 0 0 0 1px rgba(0,212,255,0.14);
    border-color: var(--c-gold-line);
  }
}

/* Bestseller / New badge overlay on course cover */
.course__cover .badge--overlay {
  position: absolute; top: 14px; right: 14px; z-index: 2;
}

/* ============ CONTACT: form success state ============ */
.contact-success {
  display: none; text-align: center; padding: 52px 24px;
  opacity: 0; transition: opacity 0.4s ease;
}
.contact-success.is-visible { opacity: 1; }
.contact-success svg { margin: 0 auto 16px; color: #4ade80; display: block; }
.contact-success h3 { color: #4ade80; margin-bottom: 8px; }

/* ============ CONTACT: textarea character counter ============ */
.textarea-wrap { position: relative; }
.textarea-wrap textarea { padding-bottom: 28px; }
.char-counter {
  position: absolute; bottom: 10px; right: 12px;
  font-size: .75rem; color: var(--c-text-faint); pointer-events: none;
  transition: color 0.2s ease;
}
.char-counter.is-warn  { color: #fb923c; }
.char-counter.is-limit { color: #f87171; }

/* ============ ABOUT: timeline "Now" dot glow ============ */
@keyframes timelineGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,179,1,.55); }
  50%       { box-shadow: 0 0 0 9px rgba(245,179,1,0); }
}
.timeline-now { animation: timelineGlow 2.4s ease-in-out infinite; }

/* ============ PARTNER: commission estimator range ============ */
.est-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 99px;
  background: var(--c-line); outline: none; margin: 14px 0 6px;
}
.est-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-gold); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(0,212,255,.18);
}
.est-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-gold); cursor: pointer; border: none;
}

/* ============ COURSE PLAYER ============ */
.player-topbar {
  background: var(--c-surface-2); border-bottom: 1px solid var(--c-line);
  padding: 10px 20px; display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 40;
}
.player-layout {
  display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 52px);
}
@media (min-width: 900px) {
  .player-layout { grid-template-columns: 1fr 320px; }
}
.player-main { display: flex; flex-direction: column; }
.player-video-wrap {
  background: #000; aspect-ratio: 16/9; width: 100%;
  position: relative; overflow: hidden; display: flex;
  align-items: center; justify-content: center;
}
.player-play-btn {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(0,212,255,.18); border: 2px solid rgba(0,212,255,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}
.player-play-btn:hover { background: rgba(0,212,255,.32); transform: scale(1.06); }
.player-lesson-info {
  padding: 20px 24px; border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.player-nav { display: flex; gap: 8px; }
.player-notes-wrap { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.player-notes { flex: 1; min-height: 120px; resize: vertical; }

/* Sidebar */
.player-sidebar {
  border-left: 1px solid var(--c-line); display: flex; flex-direction: column;
  max-height: calc(100vh - 52px); overflow-y: auto;
}
@media (max-width: 899px) {
  .player-sidebar { max-height: none; border-left: none; border-top: 1px solid var(--c-line); }
}
.player-sidebar-head {
  padding: 16px 18px; border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; background: var(--c-surface-2); z-index: 1;
}
.lesson-chapter { padding: 10px 18px 4px; font-size: .75rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--c-text-muted); }
.lesson-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; cursor: pointer; font-size: .875rem;
  color: var(--c-text-soft); transition: background 0.15s ease;
  border-left: 3px solid transparent;
}
.lesson-item:hover { background: var(--c-surface-3); }
.lesson-item.is-active {
  background: var(--c-gold-soft); color: var(--c-gold-2);
  border-left-color: var(--c-gold);
}
.lesson-item.is-done { color: var(--c-text-muted); }
.lesson-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--c-line); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.lesson-item.is-done .lesson-check { background: #4ade80; border-color: #4ade80; color: #fff; }
.lesson-item.is-active .lesson-check { border-color: var(--c-gold); }
.lesson-item .lesson-num { flex-shrink: 0; font-size: .75rem; color: var(--c-text-faint); min-width: 24px; }

/* Progress bar in sidebar head */
.player-progress-bar { height: 4px; border-radius: 99px; background: var(--c-line); margin-top: 8px; overflow: hidden; }
.player-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c-gold), var(--c-gold-2)); transition: width 0.4s ease; }
