/* ============================================
   UNISBA ADMISSION - DESIGN SYSTEM
   ============================================ */

:root {
  /* Brand palette */
  --blue-50:  #eff5ff;
  --blue-100: #dbe6fe;
  --blue-200: #bfd2fe;
  --blue-300: #93b4fd;
  --blue-400: #6090fa;
  --blue-500: #3b6df3;
  --blue-600: #2550e8;
  --blue-700: #1e3fd1;
  --blue-800: #1e3a8a;
  --blue-900: #1e2f6b;
  --blue-950: #131d44;

  --orange-50:  #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;

  /* Semantic tokens — LIGHT */
  --bg:        #fbfaf7;
  --bg-2:      #ffffff;
  --bg-3:      #f4f1ea;
  --bg-panel:  rgba(255,255,255,0.85);
  --fg:        #131d44;
  --fg-muted:  #4b5677;
  --fg-soft:   #6b7693;
  --border:    #e6e2d8;
  --border-strong: #cfc8b8;
  --accent:    var(--orange-500);
  --accent-fg: #ffffff;
  --primary:   var(--blue-800);
  --primary-fg: #ffffff;
  --ring:      var(--blue-600);
  --shadow-sm: 0 1px 2px rgba(19,29,68,0.06), 0 1px 3px rgba(19,29,68,0.04);
  --shadow-md: 0 6px 16px -4px rgba(19,29,68,0.10), 0 2px 6px -2px rgba(19,29,68,0.06);
  --shadow-lg: 0 24px 48px -16px rgba(19,29,68,0.22), 0 8px 16px -8px rgba(19,29,68,0.10);

  /* Type */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Rhythm */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-2xl: 48px;

  /* A11y - dynamic */
  --font-scale: 1;
  --letter-spacing: 0;
  --word-spacing: 0;
  --line-height: 1.55;
}

[data-theme="dark"] {
  --bg:        #0b1027;
  --bg-2:      #131a3b;
  --bg-3:      #182149;
  --bg-panel:  rgba(19,26,59,0.85);
  --fg:        #f1f3fa;
  --fg-muted:  #c1c8df;
  --fg-soft:   #8a93b3;
  --border:    #2a3262;
  --border-strong: #3a4480;
  --primary:   var(--blue-500);
  --primary-fg: #0b1027;
  --ring:      var(--orange-400);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 20px -6px rgba(0,0,0,0.55);
  --shadow-lg: 0 28px 56px -20px rgba(0,0,0,0.7);
}

/* High contrast mode */
[data-contrast="high"] {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #f0f0f0;
  --fg: #000000;
  --fg-muted: #000000;
  --fg-soft: #1a1a1a;
  --border: #000000;
  --border-strong: #000000;
  --primary: #0033a0;
  --primary-fg: #ffffff;
  --accent: #cc4400;
  --ring: #cc4400;
}
[data-theme="dark"][data-contrast="high"] {
  --bg: #000000;
  --bg-2: #000000;
  --bg-3: #0a0a0a;
  --fg: #ffffff;
  --fg-muted: #ffffff;
  --fg-soft: #e5e5e5;
  --border: #ffffff;
  --primary: #ffd84d;
  --primary-fg: #000000;
  --accent: #ffd84d;
  --ring: #ffd84d;
}

/* Reduced motion */
[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Dyslexia friendly */
[data-dyslexia="on"] {
  --font-sans: 'Atkinson Hyperlegible', 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Atkinson Hyperlegible', sans-serif;
  --letter-spacing: 0.02em;
  --word-spacing: 0.08em;
  --line-height: 1.8;
}

/* Reading guide */
[data-reading-guide="on"] {
  cursor: crosshair;
}

/* ========== Base ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: calc(16px * var(--font-scale));
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  word-spacing: var(--word-spacing);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Focus ring - WCAG compliant */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}
[data-focus="enhanced"] :focus-visible {
  outline: 4px solid var(--orange-500);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.25);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--orange-500);
  outline-offset: 0;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { position: relative; }

/* ========== Type ========== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -0.015em; }
p { text-wrap: pretty; color: var(--fg-muted); margin: 0; }

/* ========== Header / Nav ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: var(--bg-panel);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 800;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 70% 30%, var(--orange-400), transparent 60%);
  opacity: 0.6;
  mix-blend-mode: overlay;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .b1 { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text .b2 { font-size: 0.72rem; font-weight: 500; color: var(--fg-soft); text-transform: uppercase; letter-spacing: 0.1em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--bg-3); color: var(--primary); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, color 0.2s;
  min-height: 44px; /* a11y hit target */
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--shadow-lg); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 4px 12px -2px rgba(249,115,22,0.5);
}
.btn-accent:hover { background: var(--orange-600); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-3); border-color: var(--primary); }
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-icon:hover { background: var(--bg-3); transform: translateY(-1px); }
.btn-icon.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(249,115,22,0.18), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(37,80,232,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}
.orb-1 { width: 380px; height: 380px; background: var(--orange-400); top: 10%; right: -100px; }
.orb-2 { width: 460px; height: 460px; background: var(--blue-500); bottom: -120px; left: -120px; }
.orb-3 { width: 240px; height: 240px; background: var(--orange-300); top: 50%; left: 40%; opacity: 0.3; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--fg);
  margin: 18px 0 24px;
  text-wrap: balance;
}
.hero-headline .accent {
  background: linear-gradient(120deg, var(--orange-500), var(--orange-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}
.hero-headline .rotator {
  display: inline-block;
  min-width: 1ch;
  position: relative;
}
.hero-headline .rotator-word {
  display: inline-block;
  animation: rotIn 0.6s ease both;
}
@keyframes rotIn {
  from { opacity: 0; transform: translateY(20px) rotateX(-30deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 56ch;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}
.stat .num .suf { color: var(--accent); }
.stat .lbl { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--fg-soft); }

/* ========== HERO SLIDER (right side) ========== */
.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-2);
  aspect-ratio: 4/5;
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transform-style: preserve-3d;
}
@media (max-width: 980px) {
  .hero-slider { transform: none; aspect-ratio: 16/10; }
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Extra bottom padding so the description never collides with the
     absolutely-positioned slider dots (left) or nav arrows (right) at the
     foot of the card. */
  padding: 28px 28px 72px;
}
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
}
.slide-bg svg, .slide-bg .pat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide-content {
  position: relative;
  z-index: 1;
  color: white;
}
.slide-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: white;
}
.slide-desc {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  max-width: 38ch;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 5;
  display: flex;
  gap: 6px;
}
.dot {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.dot:hover { background: rgba(255,255,255,0.7); }
.dot.active { background: var(--orange-400); width: 44px; }
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }

/* Floating badge */
.hero-badge {
  position: absolute;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.hero-badge.b-tl { top: 30px; left: -30px; }
.hero-badge.b-br { bottom: 60px; right: -30px; }
@media (max-width: 980px) {
  .hero-badge.b-tl, .hero-badge.b-br { display: none; }
}
.hero-badge .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--orange-100);
  color: var(--orange-600);
}
[data-theme="dark"] .hero-badge .ico { background: rgba(249,115,22,0.2); }
.hero-badge .b-text { line-height: 1.2; }
.hero-badge .b-text strong { display: block; font-size: 0.92rem; color: var(--fg); }
.hero-badge .b-text span { font-size: 0.75rem; color: var(--fg-soft); }

/* ========== Section base ========== */
/* Each section was 100px top+bottom = 200px between sections. That felt
 * cavernous, especially when a section's content was short (filtered Programs
 * grid, FAQ collapsed, etc.). Brought down to 72px desktop / 48px mobile so
 * the page reads tighter without anything feeling cramped. */
.section { padding: 72px 0; position: relative; }
@media (max-width: 768px) {
  .section { padding: 48px 0; }
}
.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .section-header { grid-template-columns: 1fr; margin-bottom: 28px; }
}
.section-header h2 { max-width: 22ch; }
.section-header .sub { max-width: 48ch; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ABOUT / PILAR ========== */
.pilar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pilar-grid { grid-template-columns: 1fr; } }
.pilar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.pilar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300);
}
.pilar-card .ico-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-700);
  margin-bottom: 22px;
}
[data-theme="dark"] .pilar-card .ico-wrap {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--blue-200);
}
.pilar-card.accent .ico-wrap {
  background: linear-gradient(135deg, var(--orange-50), var(--orange-100));
  color: var(--orange-600);
}
[data-theme="dark"] .pilar-card.accent .ico-wrap {
  background: linear-gradient(135deg, var(--orange-800), var(--orange-700));
  color: var(--orange-200);
}
.pilar-card h3 { margin-bottom: 10px; }
.pilar-card p { font-size: 0.97rem; line-height: 1.6; }
.pilar-card .num-bg {
  position: absolute;
  top: -10px; right: 8px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 600;
  color: var(--border);
  opacity: 0.5;
  pointer-events: none;
  letter-spacing: -0.05em;
}

/* ========================================
   PROGRAMS — REDESIGN with tingkat filter
   ======================================== */
/* Search bar above tabs */
.prog-toolbar {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.prog-search {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}
.prog-search input {
  width: 100%;
  padding: 12px 44px 12px 44px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.prog-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 80, 232, 0.15), var(--shadow-sm);
}
.prog-search input::placeholder { color: var(--fg-soft); }
.prog-search .ps-ico {
  position: absolute;
  left: 16px;
  color: var(--fg-soft);
  pointer-events: none;
}
.prog-search .ps-clear {
  position: absolute;
  right: 10px;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--bg-3);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background 0.15s;
}
.prog-search .ps-clear:hover { background: var(--border-strong); }

.prog-search-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--fg-soft);
  padding: 0 6px;
}
.prog-search-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg);
  box-shadow: 0 1px 0 var(--border-strong);
}

.prog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.prog-tab {
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.prog-tab:hover { color: var(--fg); background: var(--bg-3); }
.prog-tab.active {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  color: white;
  box-shadow: 0 4px 12px -2px rgba(30, 58, 138, 0.4);
}
.prog-tab .tab-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.prog-tab.active .tab-count {
  background: rgba(255,255,255,0.22);
}
[data-theme="dark"] .prog-tab .tab-count { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .prog-tab:hover { background: var(--bg-3); }

.prog-count-label {
  margin-bottom: 28px;
  font-size: 0.86rem;
  color: var(--fg-soft);
}
.prog-count-label strong { color: var(--fg); font-weight: 700; }

.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .prog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .prog-grid { grid-template-columns: 1fr; } }

/* Equal-height chain: CSS Grid stretches the immediate children (Reveal
   divs) to row height by default, but the <a>/<article> inside don't pick
   that up unless we propagate `height: 100%` down. With these rules every
   card in a row matches the tallest sibling's height regardless of title
   line count. */
.prog-grid > .reveal { height: 100%; }
.prog-card-link { height: 100%; display: block; }

.prog-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.85, 0.3, 1);
  cursor: pointer;
  min-height: 220px;
  height: 100%;
}
.prog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(249,115,22,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.prog-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-300);
  box-shadow: 0 12px 32px -12px rgba(249,115,22,0.25), 0 4px 12px -4px rgba(30, 58, 138, 0.12);
}
.prog-card:hover::before { opacity: 1; }
.prog-card:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Level ribbon */
.prog-level-ribbon {
  position: absolute;
  top: 14px;
  right: -28px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 32px;
  pointer-events: none;
}
.prog-card[data-level="sarjana"]   .prog-level-ribbon { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); }
.prog-card[data-level="magister"]  .prog-level-ribbon { background: linear-gradient(135deg, #6366f1, #4338ca); }
.prog-card[data-level="doktor"]    .prog-level-ribbon { background: linear-gradient(135deg, #9333ea, #6b21a8); }
.prog-card[data-level="profesi"]   .prog-level-ribbon { background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); }
.prog-card[data-level="spesialis"] .prog-level-ribbon { background: linear-gradient(135deg, #db2777, #9f1239); }

.prog-card .p-faculty-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: 0.04em;
  /* In the .p-top-row flex container we want this pill to shrink (truncate
     its text) when the row is tight — so the DIBUKA badge stays inline
     next to it instead of wrapping below. */
  min-width: 0;
  flex: 0 1 auto;
}
/* Inner text node — actual ellipsis target. The dot stays full-size; only
   the faculty name is allowed to truncate. */
.prog-card .p-faculty-pill .p-faculty-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
[data-theme="dark"] .prog-card .p-faculty-pill { color: var(--blue-200); }
.prog-card .p-faculty-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  flex-shrink: 0;
}

.prog-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  /* clamp() lets very long prodi names ("Magister Perencanaan Wilayah dan
     Kota") shrink slightly instead of forcing the card taller than its
     siblings, without ever truncating the text. */
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
  line-height: 1.2;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.018em;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.prog-card .p-faculty-name {
  font-size: 0.82rem;
  color: var(--fg-soft);
  margin-top: -8px;
  font-weight: 500;
}

.prog-card .p-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.prog-card .p-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-3);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--fg);
  font-weight: 600;
}
.prog-card .p-meta-item svg { color: var(--fg-soft); flex-shrink: 0; }

.prog-card .p-accred {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-800);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .prog-card .p-accred { background: var(--blue-900); color: var(--blue-200); }
.prog-card .p-accred.unggul { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
[data-theme="dark"] .prog-card .p-accred.unggul { background: linear-gradient(135deg, #78350f, #92400e); color: #fef3c7; }

/* Top row holding the faculty pill + (when registration is open) the
   "DIBUKA" badge side-by-side. We pad-right to leave clearance for the
   diagonal `.prog-level-ribbon` that sits in the top-right corner. */
.prog-card .p-top-row {
  display: flex;
  align-items: center;
  /* `nowrap` keeps DIBUKA on the same line as the faculty pill. The faculty
     pill shrinks with text-overflow ellipsis when fakultas name is long
     (e.g. "Tarbiyah dan Keguruan") so the row never breaks into two. */
  flex-wrap: nowrap;
  gap: 8px;
  padding-right: 72px;
  min-width: 0;
}

/* "DIBUKA" status badge — only rendered when at least one jenis_pmb is
   currently within its registration window. Sits inline next to the
   faculty pill so it never overlaps other card chrome. */
.prog-card .p-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
  /* Lock width — only the faculty pill is allowed to shrink in the row. */
  flex-shrink: 0;
}
[data-theme="dark"] .prog-card .p-open-badge {
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.35);
  border-color: rgba(110, 231, 183, 0.4);
}
.prog-card .p-open-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: p-open-pulse 1.8s ease-out infinite;
}
@keyframes p-open-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Jenis-PMB chip row — compact pills at the bottom of each card listing the
   admission tracks (USM, PMDK, Foreign…) the prodi participates in. Open
   chips get a tinted background + pulsing dot to draw attention. */
.prog-card .p-jenis-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.prog-card .p-jenis-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}
.prog-card .p-jenis-chip.open {
  color: #047857;
  background: #d1fae5;
  border-color: #6ee7b7;
}
[data-theme="dark"] .prog-card .p-jenis-chip.open {
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.3);
  border-color: rgba(110, 231, 183, 0.35);
}
.prog-card .p-jenis-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: p-open-pulse 1.8s ease-out infinite;
}

/* Empty state */
.prog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-soft);
}
.prog-empty .empty-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: var(--fg-soft);
}

/* ========== TIMELINE / STEPS ========== */
.timeline-wrap {
  background: linear-gradient(180deg, var(--blue-800) 0%, var(--blue-950) 100%);
  color: white;
  border-radius: var(--radius-2xl);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .timeline-wrap { padding: 50px 28px; border-radius: var(--radius-lg); } }
.timeline-wrap::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-500), transparent 70%);
  opacity: 0.4;
}
.timeline-wrap h2, .timeline-wrap .sub { color: white; }
.timeline-wrap .sub { color: rgba(255,255,255,0.75); }
.timeline-wrap .eyebrow { color: var(--orange-400); }
.timeline-wrap .eyebrow::before { background: var(--orange-400); }

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 0 0;
}
.step::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
}
.step.done::before { background: var(--orange-400); }
@media (max-width: 900px) { .step::before { display: none; } }
.step .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-700);
  border: 2px solid var(--orange-400);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.step.active .dot { background: var(--orange-500); border-color: var(--orange-300); }
.step h4 {
  margin: 56px 0 6px;
  font-size: 1.05rem;
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.5; }
.step .date {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-300);
  padding: 3px 10px;
  background: rgba(249,115,22,0.15);
  border-radius: 999px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .testimonial-row { grid-template-columns: 1fr; } }
.tcard {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.3s;
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tcard .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--orange-200);
  line-height: 0.8;
  height: 28px;
}
[data-theme="dark"] .tcard .quote-mark { color: var(--orange-700); }
.tcard blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.01em;
  flex: 1;
}
.tcard .who {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.tcard .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.tcard .who-text strong { display: block; color: var(--fg); font-size: 0.92rem; }
.tcard .who-text span { font-size: 0.8rem; color: var(--fg-soft); }

/* ========== FAQ ========== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .a-body {
  padding: 0 24px 22px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 65ch;
}

/* ========== CTA / FORM ========== */
.cta-band {
  background: var(--bg-3);
  border-radius: var(--radius-2xl);
  padding: 70px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; border-radius: var(--radius-lg); }
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -40%; left: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--orange-400), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.cta-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}
.cta-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.cta-form label .req { color: var(--orange-600); margin-left: 2px; }
.cta-form input, .cta-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.cta-form input:focus, .cta-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,80,232,0.15);
}
.cta-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) { .cta-form .field-row { grid-template-columns: 1fr; } }
.cta-form .err {
  display: none;
  color: var(--orange-700);
  font-size: 0.8rem;
  margin-top: 4px;
}
.cta-form .invalid input { border-color: var(--orange-600); }
.cta-form .invalid .err { display: block; }
.cta-form .success-msg {
  text-align: center;
  padding: 28px;
  color: var(--fg);
}
.cta-form .success-msg svg {
  margin: 0 auto 12px;
  color: var(--blue-700);
}

/* ========== FOOTER ========== */
.site-footer {
  /* margin-top removed — the previous section already provides padding-bottom,
   * so stacking another 80px margin made the footer feel disconnected. The
   * border-top + bg change is enough visual separation. */
  padding: 56px 0 28px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-col h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--primary); }
.foot-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-soft);
}

/* ========================================
   A11Y PANEL V2 — Professional side drawer
   ======================================== */
.a11y-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px -20px rgba(19,29,68,0.25);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.85, 0.3, 1);
  overflow: hidden;
}
.a11y-drawer.open { transform: translateX(0); }
.a11y-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 29, 68, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.a11y-backdrop.show { opacity: 1; pointer-events: auto; }

.ad-head {
  padding: 22px 24px 16px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: white;
  position: relative;
}
.ad-head::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-400), transparent);
}
.ad-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: white;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ad-head h2 .ad-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--orange-500);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ad-head p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}
.ad-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.ad-close:hover { background: rgba(255,255,255,0.22); }

.ad-search {
  margin-top: 14px;
  position: relative;
}
.ad-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  min-height: 40px;
}
.ad-search input::placeholder { color: rgba(255,255,255,0.55); }
.ad-search input:focus { border-color: var(--orange-400); background: rgba(255,255,255,0.18); }
.ad-search .ad-search-ico {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}

.ad-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 20px;
  scroll-behavior: smooth;
}
.ad-body::-webkit-scrollbar { width: 8px; }
.ad-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.ad-body::-webkit-scrollbar-thumb:hover { background: var(--fg-soft); }

.ad-section {
  padding: 16px 24px 4px;
}
.ad-section-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-soft);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ad-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 6px;
}

/* Profile presets grid */
.ad-profiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ad-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  transition: all 0.18s;
  min-height: 88px;
}
.ad-profile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ad-profile.active {
  border-color: var(--orange-500);
  background: linear-gradient(135deg, var(--orange-50), var(--bg-2));
  color: var(--orange-700);
}
[data-theme="dark"] .ad-profile.active {
  background: linear-gradient(135deg, var(--orange-800), var(--bg-2));
  color: var(--orange-100);
}
.ad-profile .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-800);
  flex-shrink: 0;
}
.ad-profile.active .ico { background: var(--orange-500); color: white; }
[data-theme="dark"] .ad-profile .ico { background: var(--blue-900); color: var(--blue-200); }
.ad-profile .label { line-height: 1.2; }

/* Tile grid for toggles */
.ad-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ad-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--fg);
  transition: all 0.18s;
  min-height: 96px;
}
.ad-tile:hover { border-color: var(--primary); }
.ad-tile.active {
  border-color: var(--orange-500);
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--orange-500), inset 0 0 0 1px var(--orange-100);
}
[data-theme="dark"] .ad-tile.active {
  box-shadow: 0 0 0 1px var(--orange-500), inset 0 0 0 1px var(--orange-800);
}
.ad-tile .t-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  color: var(--fg);
  transition: all 0.2s;
}
.ad-tile.active .t-ico { background: var(--orange-500); color: white; }
.ad-tile .t-label {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}
.ad-tile .t-state {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
}
.ad-tile.active .t-state { color: var(--orange-600); }
.ad-tile.has-level .t-state {
  background: var(--orange-500);
  color: white;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Stepper inside tile (for multi-level) */
.ad-tile-steps {
  display: flex;
  gap: 3px;
  margin-top: auto;
}
.ad-tile-steps span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}
.ad-tile-steps span.on { background: var(--orange-500); }

/* Inline slider */
.ad-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.ad-slider-row label {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
}
.ad-slider-row input[type="range"] {
  flex: 1.4;
  height: 4px;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.ad-slider-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange-500);
  cursor: pointer;
  border: 3px solid var(--bg-2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ad-slider-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange-500);
  cursor: pointer;
  border: 3px solid var(--bg-2);
}
.ad-slider-row .val {
  min-width: 40px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange-500);
  font-variant-numeric: tabular-nums;
}

/* Footer */
.ad-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ad-foot button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}
.ad-foot button:hover { background: var(--bg-3); }
.ad-foot button.primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.ad-foot button.primary:hover { background: var(--blue-700); }
.ad-foot .flex { flex: 1; }
.ad-foot .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--blue-100);
  color: var(--blue-800);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
[data-theme="dark"] .ad-foot .badge { background: var(--blue-900); color: var(--blue-200); }

/* ========================================
   A11Y APPLIED STYLES (data attributes)
   ======================================== */

/* Big cursor */
[data-a-big-cursor="on"] * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'><path d='M2 2 L2 36 L10 28 L14 44 L20 42 L16 26 L28 26 Z' fill='%23f97316' stroke='white' stroke-width='2' stroke-linejoin='round'/></svg>") 2 2, auto !important; }
[data-a-big-cursor="on"] a, [data-a-big-cursor="on"] button, [data-a-big-cursor="on"] input, [data-a-big-cursor="on"] select, [data-a-big-cursor="on"] [role="button"] { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'><path d='M12 4 L12 28 L8 28 L16 40 L24 28 L20 28 L20 4 Z' fill='%232550e8' stroke='white' stroke-width='2' stroke-linejoin='round'/></svg>") 16 8, pointer !important; }

/* Hide images */
[data-a-hide-images="on"] img,
[data-a-hide-images="on"] svg:not(.skip-svg),
[data-a-hide-images="on"] .img-placeholder,
[data-a-hide-images="on"] .g-bg,
[data-a-hide-images="on"] .slide-bg,
[data-a-hide-images="on"] .orb,
[data-a-hide-images="on"] .hero-pattern,
[data-a-hide-images="on"] .partner-dot,
[data-a-hide-images="on"] .brand-mark { visibility: hidden !important; }

/* Highlight titles */
[data-a-highlight-titles="on"] h1,
[data-a-highlight-titles="on"] h2,
[data-a-highlight-titles="on"] h3,
[data-a-highlight-titles="on"] h4,
[data-a-highlight-titles="on"] h5 {
  outline: 2px dashed var(--orange-500) !important;
  outline-offset: 4px !important;
  background: rgba(249,115,22,0.06);
  padding: 4px 8px !important;
  border-radius: 4px;
}

/* Highlight links */
[data-a-highlight-links="on"] a:not(.brand) {
  background: rgba(37, 80, 232, 0.08) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  outline: 1px dashed var(--blue-700) !important;
  outline-offset: 2px !important;
  padding: 2px 4px !important;
  border-radius: 3px;
}

/* Text alignment */
[data-a-text-align="left"] p, [data-a-text-align="left"] li, [data-a-text-align="left"] h1, [data-a-text-align="left"] h2, [data-a-text-align="left"] h3 { text-align: left !important; }
[data-a-text-align="center"] p, [data-a-text-align="center"] li, [data-a-text-align="center"] h1, [data-a-text-align="center"] h2, [data-a-text-align="center"] h3 { text-align: center !important; }
[data-a-text-align="right"] p, [data-a-text-align="right"] li, [data-a-text-align="right"] h1, [data-a-text-align="right"] h2, [data-a-text-align="right"] h3 { text-align: right !important; }

/* Saturation */
[data-a-saturation="low"] body { filter: saturate(0.5) !important; }
[data-a-saturation="high"] body { filter: saturate(1.8) !important; }
[data-a-saturation="mono"] body { filter: saturate(0) !important; }

/* Reading mask: dim everything outside cursor band */
.reading-mask-top, .reading-mask-bot {
  position: fixed;
  left: 0; right: 0;
  background: rgba(0,0,0,0.65);
  z-index: 80;
  pointer-events: none;
  transition: height 0.05s linear;
}
.reading-mask-top { top: 0; }
.reading-mask-bot { bottom: 0; }

/* Line height + letter spacing applied via inline style on body */

/* ========================================
   Accessibility Statement modal
   ======================================== */
.statement-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 29, 68, 0.5);
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.statement-backdrop.show { opacity: 1; pointer-events: auto; }
.statement-modal {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s;
}
.statement-backdrop.show .statement-modal { transform: scale(1); }
.statement-modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.statement-modal .sub {
  color: var(--fg-soft);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.statement-modal h4 {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  margin: 18px 0 6px;
  color: var(--fg);
}
.statement-modal p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 6px; }
.statement-modal ul { padding-left: 18px; font-size: 0.92rem; line-height: 1.7; }
.statement-modal .close-btn {
  margin-top: 20px;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Hide old a11y-panel styles when drawer is in use */
.a11y-panel { display: none !important; }
.a11y-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  border: 3px solid var(--bg);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}
.a11y-fab:hover { transform: scale(1.05) rotate(8deg); }
.a11y-fab::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.a11y-panel {
  position: fixed;
  bottom: 96px;
  left: 24px;
  z-index: 95;
  width: 360px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.a11y-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.a11y-panel h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.a11y-panel .a-sub {
  font-size: 0.82rem;
  color: var(--fg-soft);
  margin-bottom: 18px;
}
.a11y-panel .a-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.a11y-panel .a-section h4 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 10px;
}
.a-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.a-toggle-row .lbl { font-size: 0.92rem; color: var(--fg); flex: 1; }
.a-toggle-row .lbl small { display: block; font-size: 0.75rem; color: var(--fg-soft); margin-top: 2px; }

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left 0.2s;
}
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { left: 22px; }

.a-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.a-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.a-chip:hover { border-color: var(--primary); }
.a-chip.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

.a-reset {
  margin-top: 18px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.a-reset:hover { background: var(--bg-3); }

/* Reading guide bar */
.reading-guide-bar {
  position: fixed;
  left: 0; right: 0;
  height: 60px;
  background: rgba(249, 115, 22, 0.15);
  border-top: 2px solid rgba(249,115,22,0.4);
  border-bottom: 2px solid rgba(249,115,22,0.4);
  pointer-events: none;
  z-index: 80;
  display: none;
}
[data-reading-guide="on"] .reading-guide-bar { display: block; }

/* ========== Marquee ========== */
.partner-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
}
.marquee {
  display: flex;
  gap: 56px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
[data-motion="reduced"] .marquee { animation: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-soft);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9rem;
}
.partner-item .partner-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-100), var(--orange-100));
  display: grid;
  place-items: center;
  color: var(--blue-800);
  font-weight: 800;
  font-size: 0.85rem;
}
.partner-item .partner-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: none;
}
[data-theme="dark"] .partner-item .partner-logo {
  filter: brightness(0.95) saturate(0.9);
}
[data-a-hide-images="on"] .partner-item .partner-logo { display: none; }
[data-theme="dark"] .partner-item .partner-dot {
  background: linear-gradient(135deg, var(--blue-900), var(--orange-800));
  color: var(--orange-200);
}

/* Image placeholder */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--blue-100), var(--orange-100));
  display: grid;
  place-items: center;
  color: var(--blue-800);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}
[data-theme="dark"] .img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--blue-800), var(--orange-800));
  color: var(--blue-100);
}

/* SR only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   NEW: HERO BENTO LAYOUT (redesign)
   ======================================== */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero-v2 .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 60% at 90% 10%, rgba(249,115,22,0.25), transparent 55%),
    radial-gradient(60% 70% at 5% 95%, rgba(37,80,232,0.22), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--bg-3) 100%);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 16px;
}
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
}
.bento-cell {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s;
  min-width: 0;
}
.bento-cell.alt { background: var(--bg-3); }
.bento-cell.primary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: white;
  border-color: transparent;
}
.bento-cell.primary h2, .bento-cell.primary h3 { color: white; }
.bento-cell.accent {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  color: white;
  border-color: transparent;
}
.bento-cell.accent h3 { color: white; }
.bento-cell.span-headline {
  grid-column: span 8;
  grid-row: span 3;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}
.bento-cell.span-slider {
  grid-column: span 4;
  grid-row: span 3;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: transparent;
  border: none;
}
.bento-cell.span-slider .hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  transform: none;
}
.bento-cell.span-slider:hover .hero-slider {
  transform: none;
}
.bento-cell.span-countdown {
  grid-column: span 4;
  grid-row: span 1;
  display: flex;
  align-items: center;
  gap: 18px;
}
.bento-cell.span-quick {
  grid-column: span 4;
  grid-row: span 1;
}
.bento-cell.span-stats {
  grid-column: span 4;
  grid-row: span 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px 18px;
  align-items: center;
  padding: 22px 26px;
}
.bento-cell.span-stats .stat { padding: 0; }
.bento-cell.span-stats .stat .num { font-size: clamp(1.4rem, 1.8vw, 1.8rem); }
.bento-cell.span-stats .stat .lbl { font-size: 0.76rem; }
@media (max-width: 980px) {
  .bento-cell.span-headline { grid-column: span 6; grid-row: span 1; padding: 32px; min-height: auto; }
  .bento-cell.span-slider { grid-column: span 6; grid-row: span 1; aspect-ratio: 16/10; position: relative; }
  .bento-cell.span-slider .hero-slider { position: absolute; inset: 0; height: 100%; }
  .bento-cell.span-countdown,
  .bento-cell.span-quick,
  .bento-cell.span-stats { grid-column: span 6; grid-row: span 1; }
  .bento-cell.span-stats { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
}

.hero-v2 .hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--fg);
  margin: 18px 0 28px;
}
.hero-v2 .hero-headline .rotator {
  display: inline;
}
.hero-v2 .hero-headline .rotator-word {
  display: inline-block;
  background: linear-gradient(120deg, var(--orange-600), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 500;
  animation: rotIn 0.6s ease both;
}
[data-theme="dark"] .hero-v2 .hero-headline .rotator-word {
  background: linear-gradient(120deg, var(--orange-300), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}
.cd-blocks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cd-block {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 50px;
  text-align: center;
  backdrop-filter: blur(8px);
  flex: 0 0 auto;
}
.cd-block .n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  display: block;
  color: white;
  font-variant-numeric: tabular-nums;
}
.cd-block .l {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
  display: block;
}
.cd-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1 1 140px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cd-label strong { color: white; font-size: 0.92rem; }
.cd-label span { color: rgba(255,255,255,0.7); font-size: 0.78rem; }

/* Slider dot navigation for the countdown when there are 2+ active jadwal */
.cd-dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cd-dots button {
  border: none;
  padding: 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
  width: 8px;
}
.cd-dots button[aria-selected='true'] {
  width: 22px;
  background: rgba(255,255,255,0.95);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
}
.qa-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.qa-btn .qa-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-800);
  flex-shrink: 0;
}
[data-theme="dark"] .qa-btn .qa-ico { background: var(--blue-900); color: var(--blue-200); }
.qa-btn:nth-child(2) .qa-ico { background: var(--orange-100); color: var(--orange-700); }
[data-theme="dark"] .qa-btn:nth-child(2) .qa-ico { background: var(--orange-800); color: var(--orange-100); }

/* ========================================
   VOICE OVER UI
   ======================================== */
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px dashed var(--border-strong);
  color: var(--fg-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  vertical-align: middle;
  margin-left: 12px;
}
.voice-btn:hover { border-color: var(--primary); color: var(--primary); }
.voice-btn.playing { background: var(--primary); color: var(--primary-fg); border-style: solid; border-color: var(--primary); }
.voice-btn .pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.voice-btn.playing .pulse { animation: voicePulse 0.8s ease-in-out infinite; }
@keyframes voicePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(1.6); } }

.voice-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  max-width: 90vw;
}
.voice-bar.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.voice-bar .v-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange-500);
  display: grid; place-items: center;
  color: white;
}
.voice-bar .v-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-size: 0.82rem;
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.voice-bar .v-text strong { font-size: 0.72rem; color: var(--orange-300); text-transform: uppercase; letter-spacing: 0.08em; }
.voice-bar .v-text span { overflow: hidden; text-overflow: ellipsis; }
.voice-bar button {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--bg);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s;
}
.voice-bar button:hover { background: rgba(255,255,255,0.3); }

/* Reading word highlight */
.voice-word-highlight {
  background: rgba(249,115,22,0.45);
  border-radius: 3px;
  padding: 0 2px;
}

/* ========================================
   UKT CALCULATOR (improved)
   ======================================== */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 800px) {
  .calc-wrap { grid-template-columns: 1fr; padding: 24px; }
}
.calc-howto {
  background: linear-gradient(135deg, var(--blue-50), var(--orange-50));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
[data-theme="dark"] .calc-howto {
  background: linear-gradient(135deg, var(--blue-950), var(--bg-3));
}
.calc-howto-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.calc-howto-title .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--orange-500);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.calc-howto ol {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  counter-reset: step;
}
.calc-howto ol li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg);
}
.calc-howto ol li::before {
  content: counter(step);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .calc-howto { grid-template-columns: 1fr; gap: 14px; }
  .calc-howto ol { flex-direction: column; gap: 10px; }
}

.calc-field {
  margin-bottom: 24px;
}
.calc-field-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.calc-field-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.calc-field-head label {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--fg);
  margin: 0;
}
.calc-field-help {
  font-size: 0.78rem;
  color: var(--fg-soft);
  margin: 0 0 10px 34px;
  line-height: 1.4;
}
.calc-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 44px;
}
.calc-field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 80, 232, 0.18); }

/* Income slider with marks */
.income-slider-wrap {
  padding: 12px 8px 4px;
}
.income-slider-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.income-slider-value .v-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--orange-500);
  color: white;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.income-slider-value .v-tier {
  font-size: 0.78rem;
  color: var(--fg-soft);
  font-weight: 500;
}
.income-slider-track {
  position: relative;
  padding: 0 0 24px;
}
.income-slider-track input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--blue-300), var(--orange-400));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.income-slider-track input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 3px solid var(--orange-500);
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
  transition: transform 0.15s;
}
.income-slider-track input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.income-slider-track input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 3px solid var(--orange-500);
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}
[data-theme="dark"] .income-slider-track input[type="range"]::-webkit-slider-thumb {
  background: var(--bg-2);
}
.income-slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
}
.income-slider-marks span {
  font-size: 0.66rem;
  color: var(--fg-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.income-slider-marks span::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: var(--border-strong);
  transform: translateX(-50%);
}
.income-slider-marks span.active {
  color: var(--orange-600);
  font-weight: 800;
}
[data-theme="dark"] .income-slider-marks span.active { color: var(--orange-300); }

/* Beasiswa chip improvements — show discount */
.b-chip {
  position: relative;
  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.b-chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.b-chip .b-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.18s;
}
.b-chip.active {
  background: var(--orange-500);
  color: white;
  border-color: var(--orange-500);
}
.b-chip.active .b-check {
  background: white;
  border-color: white;
  color: var(--orange-500);
}
.b-chip.active::before { content: none; }
.b-chip .b-disc {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-700);
  margin-left: 2px;
}
.b-chip.active .b-disc { background: rgba(255,255,255,0.25); color: white; }
[data-theme="dark"] .b-chip .b-disc { background: var(--orange-800); color: var(--orange-100); }

/* RESULT - empty + filled */
.calc-result {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.calc-result::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-500), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
/* Empty state — explicit flex centering on both axes so the content
   cluster sits dead-center of the panel regardless of how tall the
   left column grows the row. The inner wrapper stacks icon/title/copy
   with a single `gap` instead of per-element margins so vertical
   rhythm stays balanced. */
.calc-result.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.calc-result.empty > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 36ch;
}
.calc-result.empty .empty-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center;
  margin: 0;
  color: var(--orange-300);
}
.calc-result.empty h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.2;
}
.calc-result.empty p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.55;
}
.calc-result .r-head {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-result .r-head .r-pill {
  font-size: 0.62rem;
  padding: 2px 8px;
  background: rgba(249,115,22,0.25);
  color: var(--orange-200);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}
.calc-result .r-prodi {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--orange-300);
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 4px;
}
.calc-result .r-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin: 8px 0 4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc-result .r-amount .currency { font-size: 0.5em; opacity: 0.7; margin-right: 6px; font-weight: 500; }
.calc-result .r-sub { font-size: 0.82rem; opacity: 0.7; }
.calc-result .r-breakdown {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}
.calc-result .r-breakdown .row {
  display: flex; justify-content: space-between;
  font-variant-numeric: tabular-nums;
}
.calc-result .r-breakdown .row.discount { color: var(--orange-300); font-weight: 600; }
.calc-result .r-breakdown .row.total { padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.15); font-weight: 700; font-size: 0.95rem; }
.calc-result .r-cta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.calc-result .r-cta .btn { flex: 1; min-width: 160px; }

/* old chip-row class (used elsewhere) reset */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chip::before { content: none; }

/* ========================================
   QUIZ V2 — Professional redesign
   ======================================== */
.quiz-shell {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quiz-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
@media (max-width: 700px) {
  .quiz-card { padding: 28px 22px; border-radius: 22px; }
}
.quiz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 30% at 100% 0%, rgba(249,115,22,0.12), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(37,80,232,0.08), transparent 60%);
  pointer-events: none;
}
.quiz-card > * { position: relative; z-index: 1; }

/* --- INTRO --- */
.quiz-intro {
  text-align: center;
  display: grid;
  gap: 32px;
}
.quiz-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--blue-100), var(--orange-100));
  color: var(--blue-800);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 auto;
  width: fit-content;
}
[data-theme="dark"] .quiz-intro-badge { background: linear-gradient(135deg, var(--blue-900), var(--orange-800)); color: var(--blue-100); }

.quiz-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.025em;
}
.quiz-intro-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0;
}
@media (max-width: 700px) { .quiz-intro-features { grid-template-columns: repeat(2, 1fr); } }
.quiz-intro-feat {
  background: var(--bg-3);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid var(--border);
}
.quiz-intro-feat:hover { transform: translateY(-2px); }
.quiz-intro-feat .feat-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: white;
}
.quiz-intro-feat:nth-child(2) .feat-ico { background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); }
.quiz-intro-feat:nth-child(3) .feat-ico { background: linear-gradient(135deg, #6366f1, #4338ca); }
.quiz-intro-feat:nth-child(4) .feat-ico { background: linear-gradient(135deg, #db2777, #9f1239); }
.quiz-intro-feat .feat-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.quiz-intro-feat .feat-s {
  font-size: 0.78rem;
  color: var(--fg-soft);
  margin-top: 4px;
}

.quiz-intro-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.6;
}
.quiz-intro-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--fg-soft);
  margin: 0 auto;
  padding: 8px 16px;
  background: var(--bg-3);
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* --- QUESTION SHELL --- */
.quiz-stage {
  display: grid;
  gap: 28px;
}
.quiz-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.quiz-step-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.quiz-step-label .step-num {
  font-family: var(--font-display);
  color: var(--orange-500);
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: -0.02em;
  vertical-align: -2px;
}
.quiz-step-label .step-total {
  color: var(--border-strong);
}
.quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-soft);
}
.quiz-timer svg { color: var(--orange-500); }

.quiz-progress-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.quiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--orange-500));
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.2, 0.85, 0.3, 1);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.quiz-q-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 8px;
  text-wrap: balance;
}
.quiz-q-help {
  font-size: 0.92rem;
  color: var(--fg-soft);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Question type: scenario (6 options) */
.qopts-scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) { .qopts-scenario { grid-template-columns: 1fr; } }
.qopt-scenario {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 64px;
  line-height: 1.4;
  position: relative;
}
.qopt-scenario:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.qopt-scenario .qopt-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  color: var(--blue-800);
  flex-shrink: 0;
  transition: all 0.2s;
}
[data-theme="dark"] .qopt-scenario .qopt-ico { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: var(--blue-200); }
.qopt-scenario:hover .qopt-ico {
  background: var(--orange-500);
  color: white;
  transform: rotate(-4deg) scale(1.05);
}
.qopt-scenario.selected {
  border-color: var(--orange-500);
  background: linear-gradient(135deg, var(--orange-50), var(--bg));
}
.qopt-scenario.selected .qopt-ico {
  background: var(--orange-500);
  color: white;
}
[data-theme="dark"] .qopt-scenario.selected { background: linear-gradient(135deg, var(--orange-800), var(--bg)); }

/* Question type: this-or-that */
.qopts-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 600px) { .qopts-vs { grid-template-columns: 1fr; } }
.qopt-vs {
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  display: grid;
  gap: 14px;
  align-content: center;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.qopt-vs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(249,115,22,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.qopt-vs:hover {
  border-color: var(--orange-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.qopt-vs:hover::before { opacity: 1; }
.qopt-vs .vs-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--blue-100), var(--orange-100));
  color: var(--blue-800);
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .qopt-vs .vs-ico { background: linear-gradient(135deg, var(--blue-900), var(--orange-800)); color: var(--blue-100); }
.qopt-vs .vs-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--fg);
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}
.qopt-vs.selected {
  border-color: var(--orange-500);
  background: linear-gradient(135deg, var(--orange-50), var(--bg));
}
.qopt-vs.selected .vs-ico {
  background: var(--orange-500);
  color: white;
}
[data-theme="dark"] .qopt-vs.selected { background: linear-gradient(135deg, var(--orange-800), var(--bg)); }
.qopts-vs .vs-or {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg-soft);
  font-size: 1.4rem;
  font-style: italic;
}
@media (max-width: 600px) { .qopts-vs .vs-or { padding: 4px 0; } }

/* Question type: multi-select chips */
.qopts-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qopt-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.qopt-chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.qopt-chip .chk {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  background: var(--bg-2);
  transition: all 0.18s;
}
.qopt-chip.selected {
  background: var(--orange-500);
  color: white;
  border-color: var(--orange-500);
}
.qopt-chip.selected .chk {
  background: white;
  color: var(--orange-500);
  border-color: white;
}

/* Question type: sliders */
.qopts-sliders {
  display: grid;
  gap: 18px;
}
.qopt-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.qopt-slider .qs-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
}
.qopt-slider .qs-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--orange-500);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}
.qopt-slider input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  appearance: none;
  background: linear-gradient(90deg, var(--blue-200), var(--orange-400));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.qopt-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 3px solid var(--orange-500);
  box-shadow: 0 2px 6px rgba(249,115,22,0.4);
}
.qopt-slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 3px solid var(--orange-500);
}
[data-theme="dark"] .qopt-slider input[type="range"]::-webkit-slider-thumb { background: var(--bg-2); }

/* Footer with back/next */
.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.quiz-footer .btn-ghost svg { transition: transform 0.2s; }
.quiz-footer .btn-back:hover svg { transform: translateX(-3px); }
.quiz-footer .btn-next:hover svg { transform: translateX(3px); }
.quiz-footer .answers-status {
  font-size: 0.78rem;
  color: var(--fg-soft);
}

/* Question slide animation */
.quiz-slide-enter {
  animation: quizSlideIn 0.45s cubic-bezier(0.2, 0.85, 0.3, 1) both;
}
@keyframes quizSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- RESULT --- */
.quiz-result-v2 {
  display: grid;
  gap: 28px;
}
.quiz-archetype {
  text-align: center;
  display: grid;
  gap: 14px;
  padding-bottom: 14px;
}
.quiz-archetype .arch-badge {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-700));
  color: white;
  box-shadow: 0 12px 32px -10px rgba(249, 115, 22, 0.55);
  position: relative;
}
.quiz-archetype .arch-badge::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--orange-300);
  animation: archSpin 18s linear infinite;
}
@keyframes archSpin { to { transform: rotate(360deg); } }
[data-motion="reduced"] .quiz-archetype .arch-badge::after { animation: none; }
.quiz-archetype .arch-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-500);
}
.quiz-archetype h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.025em;
}
.quiz-archetype p {
  max-width: 54ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.55;
}

/* Dimension radar / bars */
.quiz-dims {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 700px) { .quiz-dims { grid-template-columns: 1fr; } }
.quiz-dims h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.quiz-radar svg { display: block; margin: 0 auto; max-width: 280px; }
.quiz-bars { display: grid; gap: 10px; }
.quiz-bar { display: grid; grid-template-columns: 90px 1fr 30px; gap: 10px; align-items: center; font-size: 0.84rem; }
.quiz-bar .b-name { color: var(--fg-muted); font-weight: 600; }
.quiz-bar .b-track {
  height: 10px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.quiz-bar .b-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.2, 0.85, 0.3, 1);
  box-shadow: 0 0 8px rgba(249,115,22,0.35);
}
.quiz-bar .b-fill.lvl-low  { background: linear-gradient(90deg, #94a3b8, #cbd5e1); box-shadow: none; }
.quiz-bar .b-fill.lvl-mid  { background: linear-gradient(90deg, #fbbf24, #fb923c); box-shadow: 0 0 6px rgba(251, 146, 60, 0.4); }
.quiz-bar .b-fill.lvl-high { background: linear-gradient(90deg, #fb923c, #f97316, #ea580c); box-shadow: 0 0 8px rgba(249, 115, 22, 0.5); }
.quiz-bar .b-fill.lvl-top  { background: linear-gradient(90deg, #f97316, #2550e8); box-shadow: 0 0 12px rgba(37, 80, 232, 0.5); }
.quiz-bar .b-val { font-family: var(--font-display); font-weight: 700; color: var(--orange-500); text-align: right; font-variant-numeric: tabular-nums; }
.quiz-bar.lvl-top .b-val  { color: var(--blue-600); }
.quiz-bar.lvl-low .b-val  { color: var(--fg-soft); }
.quiz-bar.lvl-mid .b-val  { color: var(--orange-400); }
.quiz-bar .b-name { display: inline-flex; align-items: center; gap: 6px; }
.quiz-bar.lvl-top .b-name::after  {
  content: "TOP";
  background: linear-gradient(135deg, #2550e8, #f97316);
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Recommendations */
.quiz-recs-section h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.quiz-recs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.quiz-recs-filter button {
  padding: 6px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.18s;
}
.quiz-recs-filter button:hover { border-color: var(--primary); }
.quiz-recs-filter button.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.quiz-recs-list { display: grid; gap: 10px; }
.rec-card-v2 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.rec-card-v2:hover {
  border-color: var(--orange-300);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.rec-card-v2 .rec-match-ring {
  position: relative;
  width: 54px; height: 54px;
}
.rec-card-v2 .rec-match-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.rec-card-v2 .rec-match-ring .match-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--orange-600);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}
[data-theme="dark"] .rec-card-v2 .rec-match-ring .match-num { color: var(--orange-300); }
.rec-card-v2 .rec-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.rec-card-v2 .rec-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--fg-soft);
  margin-top: 4px;
}
.rec-card-v2 .rec-meta .rec-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rec-card-v2 .rec-cta-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
}
.rec-card-v2 .rec-cta-mini:hover { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

.quiz-final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* old quiz styles cleanup */
.quiz-progress, .quiz-q, .quiz-options, .quiz-opt, .quiz-result, .quiz-wrap, .quiz-recs, .rec-card { /* leave for compat */ }
.quiz-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) { .quiz-wrap { padding: 28px 22px; } }
.quiz-progress {
  display: flex; gap: 6px;
  margin-bottom: 28px;
}
.quiz-progress span {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.quiz-progress span.done { background: var(--accent); }
.quiz-progress span.current { background: var(--primary); }
.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--fg);
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 56px;
}
.quiz-opt:hover { border-color: var(--primary); transform: translateX(4px); }
.quiz-opt .opt-letter {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-3);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg-soft);
  flex-shrink: 0;
  transition: all 0.2s;
}
.quiz-opt:hover .opt-letter { background: var(--primary); color: var(--primary-fg); }
.quiz-result {
  text-align: center;
}
.quiz-result .badge-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  display: grid; place-items: center;
  color: white;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px -8px rgba(249,115,22,0.6);
}
.quiz-result h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.quiz-recs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
  text-align: left;
}
.rec-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.rec-card .rec-rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.rec-card .rec-name strong { display: block; color: var(--fg); }
.rec-card .rec-name span { font-size: 0.82rem; color: var(--fg-soft); }
.rec-card .rec-score {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   BEASISWA EXPLORER
   ======================================== */
.scholar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.scholar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.scholar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scholar-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, var(--accent), transparent 70%);
  opacity: 0.18;
}
.scholar-card .s-discount {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.scholar-card .s-discount .pct { font-size: 0.5em; vertical-align: super; }
.scholar-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 12px 0 6px;
  letter-spacing: -0.015em;
}
.scholar-card p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.55; }
.scholar-card .s-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--fg-soft);
}
.scholar-card .s-meta strong { color: var(--fg); }
.scholar-card .s-cta {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.scholar-card .s-cta:hover { gap: 8px; }

/* ========================================
   CAMPUS LIFE GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
}
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }
.g-cell {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.g-cell:hover { transform: scale(1.02); }
.g-cell.size-2x2 { grid-column: span 2; grid-row: span 2; }
.g-cell.size-2x1 { grid-column: span 2; }
.g-cell.size-3x1 { grid-column: span 3; }
.g-cell.size-1x2 { grid-row: span 2; }
@media (max-width: 800px) {
  .g-cell.size-2x2, .g-cell.size-2x1, .g-cell.size-3x1 { grid-column: span 2; grid-row: span 1; }
  .g-cell.size-1x2 { grid-row: span 1; }
}
.g-bg {
  position: absolute; inset: 0;
  background-size: cover;
  transition: transform 0.6s ease;
}
.g-cell:hover .g-bg { transform: scale(1.08); }
.g-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.g-overlay strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: block;
}
.g-overlay span { font-size: 0.78rem; opacity: 0.85; }

/* ========================================
   COMPARISON: Why Unisba
   ======================================== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } }
.compare-card {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.compare-card .big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.compare-card .big .suf { color: var(--accent); font-size: 0.6em; }
.compare-card h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.compare-card p { font-size: 0.84rem; color: var(--fg-soft); line-height: 1.5; }

/* ========================================
   CHAT WIDGET (Live PMB)
   ======================================== */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 90;
  transition: transform 0.25s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .chat-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--blue-600);
  border: 2px solid var(--bg);
  border-radius: 50%;
  font-size: 9px;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.chat-fab.open { background: var(--fg); }

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head {
  padding: 16px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange-500);
  display: grid;
  place-items: center;
  font-weight: 700;
  position: relative;
}
.chat-head .av::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: #22c55e;
  border: 2px solid var(--blue-800);
  border-radius: 50%;
}
.chat-head .info { line-height: 1.2; flex: 1; }
.chat-head .info strong { display: block; font-size: 0.95rem; }
.chat-head .info span { font-size: 0.75rem; opacity: 0.8; }
.chat-head .close-btn {
  background: rgba(255,255,255,0.15);
  border: none; color: white;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.chat-msg.bot {
  background: var(--bg-3);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--primary);
  color: var(--primary-fg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}
.chat-quick button {
  padding: 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.chat-quick button:hover { background: var(--bg-3); }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 40px;
}
.chat-input button {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chat-typing {
  display: inline-flex;
  gap: 3px;
  padding: 14px;
  background: var(--bg-3);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-soft);
  animation: typingDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Adjust a11y FAB so it does not collide with chat FAB */
.a11y-fab { left: 24px; right: auto; }

/* ========================================
   GENERIC: Section accent strip
   ======================================== */
.accent-stripe {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  top: 0;
}

/* ========================================
   PARALLAX & SCROLL EFFECTS
   ======================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 110;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--orange-500));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.08s linear;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.parallax-layer { will-change: transform; }
.float-blob { will-change: transform; }

/* Reduce-motion: kill parallax shifts */
[data-motion="reduced"] .parallax-layer,
[data-motion="reduced"] .float-blob {
  transform: none !important;
}

/* Section dividers — decorative SVG ribbons between sections */
.section-divider {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}
.section-divider.top { top: 0; }
.section-divider.bot { bottom: 0; }

/* Subtle parallax grid pattern background for sections */
.parallax-grid {
  position: absolute;
  inset: -10% -5%;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Card animation variants for scroll-in */
.reveal.tilt-l { transform: translateY(30px) translateX(-30px) rotate(-2deg); }
.reveal.tilt-l.in { transform: translateY(0) translateX(0) rotate(0); }
.reveal.tilt-r { transform: translateY(30px) translateX(30px) rotate(2deg); }
.reveal.tilt-r.in { transform: translateY(0) translateX(0) rotate(0); }
.reveal.zoom { transform: scale(0.92) translateY(20px); }
.reveal.zoom.in { transform: scale(1) translateY(0); }

/* Pin-on-scroll dot trail */
.scroll-trail {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
  z-index: 0;
}

/* Section accent — large rotated word in background */
.bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--border);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  font-style: italic;
}
[data-theme="dark"] .bg-watermark { opacity: 0.08; }

/* Make sections able to layer with absolute children cleanly */
section.section { overflow: hidden; }
section.section > .container { position: relative; z-index: 2; }

/* Style for stat counters */
.stat .num { display: inline-flex; align-items: baseline; gap: 0; }

/* Toast */
.toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--fg);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
