/* ==========================================================================
   SEGER WARAS v6 — Cyber-Biomechanical & Kinetic Elegance
   MTsN 3 Tulungagung | Desain: Modern, Futuristik, Elegan & High-Contrast Ready
   ========================================================================== */

:root {
  /* Palet Utama: Deep Space Obsidian & Biometric Neon */
  --bg-main: #060B14;
  --bg-alt: #0A1220;
  --bg-card: rgba(15, 25, 42, 0.65);
  --bg-glass: rgba(10, 18, 32, 0.78);
  
  --fg: #F0F6FC;
  --fg2: #8B9EB7;
  --ink: #060B14;
  --ink-2: #8B9EB7;
  --mist: rgba(255, 255, 255, 0.05);
  
  --acc: #00F5A0;
  --mint: #00F5A0;       /* Neon Emerald */
  --acc-2: #00D9F5;     /* Cyber Cyan */
  --sun: #FFB800;       /* Amber Telemetry */
  --ln: rgba(255, 255, 255, 0.09);
  --ln-glow: rgba(0, 245, 160, 0.28);

  /* Warna Kanvas Simulasi */
  --cv-ink: #E2E8F0;
  --cv-ok: #00F5A0;
  --cv-no: #FFB800;
  --cv-arm: #00D9F5;

  /* Tipografi */
  --display: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --body: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  /* Efek & Bayangan */
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --glow-acc: 0 0 28px rgba(0, 245, 160, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
}

/* Penyesuaian Class Section Eksisting */
.sk, .lt, .dk {
  background-color: var(--bg-main);
  color: var(--fg);
}

.lt {
  background-color: var(--bg-alt);
  position: relative;
}

/* Mode Lapangan (Kontras Tinggi di Bawah Sinar Matahari) */
body.outdoor-mode {
  --bg-main: #FFFFFF;
  --bg-alt: #F4F7FA;
  --bg-card: #FFFFFF;
  --bg-glass: #FFFFFF;
  --fg: #000000;
  --fg2: #1E293B;
  --ink: #000000;
  --ink-2: #000000;
  --mist: #E2E8F0;
  --acc: #0047AB;
  --acc-2: #0047AB;
  --sun: #B45309;
  --ln: #000000;
  --ln-glow: #000000;
  --cv-ink: #000000;
  --cv-ok: #006644;
  --cv-no: #9A3412;
  --cv-arm: #003A8C;
  --shadow-lg: none;
  --glow-acc: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--fg);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Tipografi Presisi Tinggi */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 0.45em;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  max-width: 16ch;
  background: linear-gradient(135deg, #FFFFFF 35%, var(--acc) 100%);
  -webkit-background-clip: text;
  background-clip: text; /* Tambahkan baris ini untuk mengatasi warning */
  -webkit-text-fill-color: transparent;
}

body.outdoor-mode h1 {
  background: none;
  -webkit-text-fill-color: #000;
  color: #000;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 20ch;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  transition: color 0.2s ease, all 0.2s ease;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.fg2 {
  color: var(--fg2);
}

.sr {
  position: absolute;
  left: -9999px;
}

section {
  padding: 108px 0;
  border-bottom: 1px solid var(--ln);
}

/* Tagline Solusi C di atas judul */
.tag{display:flex;align-items:center;gap:12px;font:500 .95rem var(--mono);letter-spacing:.06em;color:var(--fg2);margin:0 0 20px}
.tag::before{content:"";width:34px;height:2px;background:var(--acc);flex-shrink:0}
.tag b{font-weight:700;font-size:1.08rem}
.tag b:first-of-type{color:#5BA3FF}
.tag b:last-of-type{color:var(--mint)}
body.outdoor-mode .tag b:first-of-type{color:#0b3a8a}
body.outdoor-mode .tag b:last-of-type{color:#005c43}

/* Tombol Interaktif */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 0.92rem/1 var(--body);
  padding: 14px 26px;
  border-radius: 99px;
  border: 1px solid var(--acc);
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%);
  color: #041019;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--glow-acc);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body.outdoor-mode .btn {
  background: #0047AB;
  color: #FFFFFF;
  border: 2px solid #000;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 245, 160, 0.45);
}

.btn.alt {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  border: 1px solid var(--ln);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body.outdoor-mode .btn.alt {
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
}

.btn.alt:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(0, 245, 160, 0.06);
}

.btn.sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   NAVIGASI GLASSMORPHISM
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ln);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 700 1.2rem/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--fg);
}

.brand img {
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.3);
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.menu > a, .dd > button {
  font: 500 0.9rem var(--body);
  color: var(--fg2);
  background: none;
  border: 0;
  padding: 10px 15px;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.menu > a:hover, .dd > button:hover, .menu > a.on {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.menu > a.on {
  color: var(--acc);
}

.dd {
  position: relative;
}

.dd > button::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: -2px;
}

.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 310px;
  background: #0D1728;
  border: 1px solid var(--ln);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

body.outdoor-mode .dd-menu {
  background: #FFFFFF;
  border: 2px solid #000000;
}

.dd.open .dd-menu {
  display: block;
  animation: fadeDown 0.18s ease-out;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dd-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.dd-menu a:hover {
  background: rgba(0, 245, 160, 0.09);
}

.dd-menu b {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--fg);
  margin-bottom: 2px;
}

.dd-menu span {
  font-size: 0.8rem;
  color: var(--fg2);
}

.nav-end {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.pill {
  font: 500 0.82rem var(--mono);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border: 1px solid var(--ln);
  border-radius: 99px;
  padding: 9px 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.pill:hover {
  border-color: var(--acc);
}

.pill.active {
  background: #FFD83B;
  color: #000000;
  border-color: #000000;
  font-weight: 700;
}

.burger {
  display: none;
  margin-left: auto;
  font: 500 0.9rem var(--body);
  background: none;
  border: 1px solid var(--ln);
  border-radius: 99px;
  padding: 8px 16px;
  color: var(--fg);
}

/* ==========================================================================
   HERO & TELEMETRI KANVAS
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(0, 245, 160, 0.11), transparent 42%),
    radial-gradient(circle at 82% 45%, rgba(0, 217, 245, 0.11), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

body.outdoor-mode .hero {
  background: #FFFFFF;
}

.hero-in {
  position: relative;
  z-index: 2;
  padding: 92px 28px 84px;
  max-width: 1240px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-txt {
  max-width: 540px;
  pointer-events: auto;
}

.hero .lead {
  font-size: 1.12rem;
  color: var(--fg2);
  max-width: 46ch;
  line-height: 1.7;
}

/* Input Tanya Cepat di Hero */
.ask {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 470px;
  margin: 30px 0 24px;
  padding: 6px 6px 6px 18px;
  background: rgba(15, 25, 42, 0.78);
  border: 1px solid var(--ln);
  border-radius: 99px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.outdoor-mode .ask {
  background: #FFFFFF;
  border: 2px solid #000000;
}

.ask input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
  padding: 8px 0;
  color: var(--fg);
}

.ask input::placeholder {
  color: var(--fg2);
}

.ask input:focus {
  outline: none;
}

.ask:focus-within {
  border-color: var(--acc);
  box-shadow: var(--glow-acc);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.priv {
  margin-top: 22px;
  font-size: 0.82rem;
  font-family: var(--mono);
  color: var(--fg2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.priv::before {
  content: "🔒";
  font-size: 0.9rem;
}

.hero-view {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 108px;
  width: 60%;
}

.hero-view canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Bar Telemetri Bawah Hero */
.bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 14, 26, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--ln);
  color: var(--fg);
}

body.outdoor-mode .bar {
  background: #F8FAFC;
  border-top: 2px solid #000000;
}

.bar > div {
  padding: 20px 28px;
  border-left: 1px solid var(--ln);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 108px;
}

.bar > div:first-child {
  border-left: 0;
}

.bar small {
  color: var(--fg2);
  font: 500 0.76rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.bar b {
  font: 600 2.1rem/1.1 var(--mono);
  letter-spacing: -0.03em;
  color: var(--fg);
}

.bar .st {
  font: 600 0.98rem var(--mono);
  color: var(--sun);
  display: inline-flex;
  align-items: center;
}

.bar .st::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 9px;
  box-shadow: 0 0 10px currentColor;
}

.bar .st.ok {
  color: var(--acc);
}

.bar .pill {
  align-self: flex-start;
  margin-top: 4px;
}

/* ==========================================================================
   ALUR KERJA (3 LANGKAH BENTO CARDS)
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 52px;
}

.node {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--ln);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.node:hover {
  transform: translateY(-5px);
  border-color: var(--ln-glow);
  box-shadow: var(--shadow-lg);
}

.node .id {
  display: inline-block;
  font: 600 0.76rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--acc);
  background: rgba(0, 245, 160, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.node h3 {
  margin: 14px 0 8px;
}

.node p {
  color: var(--fg2);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.chs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chs span {
  font: 500 0.74rem var(--mono);
  border: 1px solid var(--ln);
  border-radius: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}

.node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 48px;
  border-top: 1.5px dashed var(--ln-glow);
}

.node:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(50% - 4.5px);
  left: 100%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
  animation: pulse 2.2s linear infinite;
}

@keyframes pulse {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(40px); opacity: 0.2; }
}

/* ==========================================================================
   POHON KEBAIKAN (KURIKULUM BERBASIS CINTA)
   ========================================================================== */
.lt.tree-sec {
  background:
    radial-gradient(circle at 85% 50%, rgba(0, 245, 160, 0.12), transparent 50%),
    var(--bg-main);
}

body.outdoor-mode .lt.tree-sec {
  background: #F0FDF4;
}

.tree {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--ln-glow);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.total {
  font: 700 clamp(3rem, 6.5vw, 5rem)/1 var(--mono);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--acc);
  text-shadow: 0 0 28px rgba(0, 245, 160, 0.3);
}

body.outdoor-mode .total {
  color: #006644;
  text-shadow: none;
}

.dots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  margin: 28px 0 20px;
}

.dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s;
}

.dots span.on {
  background: var(--acc);
  border-color: var(--acc);
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.5);
}

/* ==========================================================================
   DAFTAR AKTIVITAS INTERAKTIF (Scoped strictly to .rows container on index)
   ========================================================================== */
.rows {
  margin-top: 44px;
  display: grid;
  gap: 16px;
}

.rows .row {
  display: grid;
  grid-template-columns: 150px 1fr 56px;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--ln);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rows .row .k {
  color: var(--acc-2);
  font: 600 0.8rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rows .row h3 {
  margin: 0 0 6px;
  transition: color 0.2s;
}

.rows .row p {
  margin: 0;
  color: var(--fg2);
  max-width: 58ch;
}

.rows .row .go {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.rows .row:hover {
  transform: translateX(6px);
  border-color: var(--acc);
  background: rgba(15, 25, 42, 0.9);
}

body.outdoor-mode .rows .row:hover {
  background: #F1F5F9;
}

.rows .row:hover h3 {
  color: var(--acc);
}

.rows .row:hover .go {
  background: var(--acc);
  border-color: var(--acc);
  color: #041019;
  box-shadow: var(--glow-acc);
}

/* ==========================================================================
   COACH AI TERMINAL
   ========================================================================== */
.cgrid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chat {
  background: #0A1324;
  color: var(--fg);
  border: 1px solid var(--ln);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

body.outdoor-mode .chat {
  background: #FFFFFF;
  border: 2px solid #000000;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--ln);
  font: 600 0.92rem var(--mono);
}

.chat-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chat-head span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}

.chat-head button {
  background: none;
  border: 1px solid var(--ln);
  border-radius: 99px;
  padding: 4px 12px;
  color: var(--fg2);
  cursor: pointer;
  font: 500 0.78rem var(--body);
  transition: all 0.2s;
}

.chat-head button:hover {
  color: var(--fg);
  border-color: var(--fg2);
}

.chat-msgs {
  height: 380px;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg {
  max-width: 85%;
  padding: 13px 18px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border: 1px solid var(--ln);
}

body.outdoor-mode .msg {
  background: #F1F5F9;
  color: #000000;
  border: 1px solid #000000;
}

.msg.ai {
  align-self: flex-start;
  border-top-left-radius: 4px;
}

.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.18), rgba(0, 217, 245, 0.18));
  border-color: var(--ln-glow);
  color: var(--fg);
  border-top-right-radius: 4px;
}

body.outdoor-mode .msg.user {
  background: #0047AB;
  color: #FFFFFF;
}

.msg .who {
  font: 600 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--acc);
  margin-bottom: 4px;
}

body.outdoor-mode .msg.user .who {
  color: #FFD83B;
}

.chat-in {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--ln);
}

.chat-in input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ln);
  border-radius: 99px;
  padding: 12px 18px;
  font: inherit;
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg);
}

body.outdoor-mode .chat-in input {
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
}

.chat-in input:focus {
  outline: none;
  border-color: var(--acc);
}

.typing-dot {
  opacity: 0.75;
  font-style: italic;
}

/* ==========================================================================
   PROFIL PENGEMBANG & FOOTER
   ========================================================================== */
.dev {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 44px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--ln);
  border-radius: 24px;
  padding: 40px;
}

.dev img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--acc);
  box-shadow: var(--glow-acc);
}

.foot {
  padding: 76px 0 36px;
  background: #040810;
  border-top: 1px solid var(--ln);
  font-size: 0.92rem;
}

body.outdoor-mode .foot {
  background: #F8FAFC;
  border-top: 2px solid #000000;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.foot h4 {
  font: 600 0.96rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin: 0 0 1em;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.foot a {
  text-decoration: none;
  color: var(--fg2);
}

.foot a:hover {
  color: var(--acc);
}

.legal {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--ln);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--fg2);
  font: 400 0.82rem var(--mono);
}


/* ==========================================================================
   SPLIT SECTION: INOVASI DARI MADRASAH & TESTIMONI LAPANGAN
   ========================================================================== */
.split-dev-testi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.dev-card, .testi-card {
  background: var(--bg-card);
  border: 1px solid var(--ln);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dev-header {
  display: flex;
  gap: 18px;
  align-items: center;
}
.dev-header img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--acc);
  box-shadow: var(--glow-acc);
  flex-shrink: 0;
}
.dev-author {
  font-size: 0.85rem;
  color: var(--fg2);
  line-height: 1.35;
}
.dev-author b {
  display: block;
  color: var(--fg);
  font-size: 0.95rem;
}

/* Testimoni Card */
.testi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.testi-slider {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ln);
  border-radius: 18px;
  padding: 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.testi-quote-icon {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--acc);
  opacity: 0.5;
  margin-bottom: -10px;
}
.testi-quote {
  font-size: 0.94rem;
  color: var(--fg);
  line-height: 1.5;
  margin: 0 0 16px;
  font-style: italic;
}
.testi-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 245, 160, 0.12);
  color: var(--acc);
  border: 1px solid var(--ln-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.95rem;
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-meta b {
  display: block;
  font-size: 0.92rem;
  color: var(--fg);
}
.testi-meta span {
  font-size: 0.78rem;
  color: var(--fg2);
  font-family: var(--mono);
}
.testi-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.testi-dots {
  display: flex;
  gap: 6px;
}
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.testi-dot.active {
  background: var(--acc);
  width: 20px;
  border-radius: 99px;
}
.testi-arrows {
  display: flex;
  gap: 8px;
}
.testi-arrows button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
}

/* Modal Kirim Testimoni */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-dialog {
  background: var(--bg-alt);
  border: 1px solid var(--ln);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalFadeIn 0.22s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ln);
}
.modal-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(0, 245, 160, 0.12);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close {
  background: none;
  border: 0;
  color: var(--fg2);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.modal-close:hover { color: var(--fg); }
.modal-form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.f-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.f-group label {
  font: 600 0.78rem var(--mono);
  color: var(--fg2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.f-group input, .f-group select, .f-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  outline: none;
  border-color: var(--acc);
  background: rgba(255, 255, 255, 0.08);
}
.f-group select option {
  background: #0A1220;
  color: #fff;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.testi-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.testi-alert.success {
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--acc);
  color: var(--acc);
}
.testi-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

@media (max-width: 960px) {
  .split-dev-testi { grid-template-columns: 1fr; }
  .dev-header { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  section { padding: 76px 0; }
  .hero-in { padding: 52px 24px 24px; }
  .hero-view { position: relative; width: 100%; height: 430px; bottom: auto; }
  .bar { grid-template-columns: 1fr 1fr; }
  .bar > div:nth-child(3) { border-left: 0; }
  .bar > div:nth-child(n+3) { border-top: 1px solid var(--ln); }
  .tree, .cgrid { grid-template-columns: 1fr; gap: 36px; }
  .tree { padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .burger { display: block; }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #08101E;
    border-bottom: 1px solid var(--ln);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow-lg);
  }
  body.outdoor-mode .menu { background: #FFFFFF; }
  .nav.open .menu { display: flex; }
  .dd-menu { position: static; border: 0; background: none; padding: 0 0 0 12px; box-shadow: none; }
  .nav-end { margin: 12px 0 0; }
}

@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .node::before, .node::after { display: none; }
  .rows .row { grid-template-columns: 1fr 48px; gap: 14px; padding: 22px; }
  .rows .row .k { grid-column: 1 / -1; }
  .rows .row .go { width: 44px; height: 44px; }
  .dev { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 20px; }
  .dev img { width: 136px; height: 136px; }
  .foot-grid { grid-template-columns: 1fr; }
  .dots { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .node::before { animation: none; }
}


/* ==========================================================================
   PENYELARASAN DESAIN SUBHALAMAN (DARK ATHLETIC SYSTEM)
   ========================================================================== */
body {
  background-color: var(--bg-main) !important;
  color: var(--fg) !important;
  font-family: var(--body) !important;
}

/* Page Headers on Subpages */
.subpage-hero, section.py-5.position-relative {
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.95) 0%, rgba(6, 11, 20, 0.98) 100%) !important;
  border-bottom: 1px solid var(--ln) !important;
  padding: 48px 0 32px !important;
}

/* Harmonized Subpage Dark Cards */
.card, .sport-card, .ai-motion-box, .video-item, .hud-console, .station-card, .quiz-card, .station-box, .quiz-container, .quiz-setup {
  background: var(--bg-card) !important;
  border: 1px solid var(--ln) !important;
  border-radius: 20px !important;
  color: var(--fg) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
.card-header, .card-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--ln) !important;
  color: var(--fg) !important;
}
.card-body {
  color: var(--fg) !important;
}

/* Form Inputs on Subpages */
.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--ln) !important;
  color: var(--fg) !important;
  border-radius: 12px !important;
}
.form-control:focus, .form-select:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--acc) !important;
  color: #fff !important;
  box-shadow: var(--glow-acc) !important;
}
.form-control::placeholder {
  color: var(--fg2) !important;
}
.form-select option {
  background-color: #0A1220 !important;
  color: #fff !important;
}

/* Tables */
.table {
  color: var(--fg) !important;
  border-color: var(--ln) !important;
}
.table > :not(caption) > * > * {
  background-color: transparent !important;
  color: var(--fg) !important;
  border-bottom-color: var(--ln) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255, 255, 255, 0.02) !important;
}
.table-hover > tbody > tr:hover > * {
  background-color: rgba(0, 245, 160, 0.05) !important;
}

/* Badges & Pills */
.badge-athletic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font: 600 0.78rem var(--mono);
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ln);
  color: var(--fg);
}
.badge-mint {
  border-color: rgba(0, 245, 160, 0.35) !important;
  color: var(--acc) !important;
  background: rgba(0, 245, 160, 0.08) !important;
}
.badge-sky, .badge-cyan {
  border-color: rgba(0, 217, 245, 0.35) !important;
  color: var(--acc-2) !important;
  background: rgba(0, 217, 245, 0.08) !important;
}
.badge-gold, .badge-amber {
  border-color: rgba(255, 184, 0, 0.35) !important;
  color: var(--sun) !important;
  background: rgba(255, 184, 0, 0.08) !important;
}

/* Buttons */
.btn-athletic {
  border-radius: 99px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.btn-athletic-mint, .btn-primary {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%) !important;
  color: #041019 !important;
  border: none !important;
}
.btn-athletic-mint:hover, .btn-primary:hover {
  box-shadow: var(--glow-acc) !important;
  color: #041019 !important;
  transform: translateY(-1px) !important;
}
.btn-athletic-outline {
  background: transparent !important;
  border: 1px solid var(--ln) !important;
  color: var(--fg) !important;
}
.btn-athletic-outline:hover {
  border-color: var(--acc) !important;
  color: var(--acc) !important;
}

/* Breadcrumbs */
.breadcrumb-item a { color: var(--acc-2) !important; text-decoration: none !important; }
.breadcrumb-item.active { color: var(--fg2) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--fg2) !important; }

/* Filter Pills on Practice Page */
.filter-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--ln) !important;
  color: var(--fg2) !important;
  border-radius: 99px !important;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--acc) !important;
  color: #041019 !important;
  border-color: var(--acc) !important;
  box-shadow: var(--glow-acc) !important;
}

/* Exercise Guide Boxes */
.exercise-guide {
  background: rgba(0, 217, 245, 0.08) !important;
  border-left: 4px solid var(--acc-2) !important;
  border-radius: 10px !important;
  color: var(--fg) !important;
}

/* Video Items */
.video-item {
  border: 1px solid var(--ln) !important;
}
.video-item .p-4 {
  background: var(--bg-card) !important;
}

/* Modals */
.modal-content {
  background-color: var(--bg-alt) !important;
  border: 1px solid var(--ln) !important;
  color: var(--fg) !important;
  border-radius: 20px !important;
}
.modal-header, .modal-footer {
  border-color: var(--ln) !important;
}
.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Back to Top */
.back-to-top {
  background: var(--acc) !important;
  color: #041019 !important;
  border-radius: 50% !important;
  border: none !important;
}

/* Outdoor Mode Overrides for Subpages */
body.outdoor-mode {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}
body.outdoor-mode .card,
body.outdoor-mode .sport-card,
body.outdoor-mode .ai-motion-box,
body.outdoor-mode .video-item,
body.outdoor-mode .station-card,
body.outdoor-mode .quiz-card,
body.outdoor-mode .quiz-container,
body.outdoor-mode .quiz-setup {
  background: #FFFFFF !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  box-shadow: none !important;
}
body.outdoor-mode .form-control,
body.outdoor-mode .form-select {
  background: #FFFFFF !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}


/* Universal Subpage Athletic Harmonization */
.bg-light {
  background-color: var(--bg-alt) !important;
  color: var(--fg) !important;
}
.bg-white {
  background-color: var(--bg-card) !important;
  color: var(--fg) !important;
}
.text-dark {
  color: var(--fg) !important;
}
.text-muted {
  color: var(--fg2) !important;
}
.border {
  border-color: var(--ln) !important;
}

/* Alert Boxes Dark Athletic Theme */
.alert-warning {
  background: rgba(255, 184, 0, 0.08) !important;
  border: 1px solid rgba(255, 184, 0, 0.32) !important;
  color: #FFD166 !important;
  border-radius: 14px !important;
}
.alert-warning strong, .alert-warning a, .alert-warning .alert-link {
  color: #FFE699 !important;
  font-weight: 700;
  text-decoration: underline;
}
.alert-info {
  background: rgba(0, 217, 245, 0.08) !important;
  border: 1px solid rgba(0, 217, 245, 0.32) !important;
  color: #80E9FF !important;
  border-radius: 14px !important;
}
.alert-info strong, .alert-info a, .alert-info .alert-link {
  color: #BAF2FF !important;
  font-weight: 700;
  text-decoration: underline;
}

/* Button Refinements for Bootstrap Modifiers */
.btn-sm, .btn.sm {
  padding: 8px 16px !important;
  font-size: 0.84rem !important;
}
.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--ln) !important;
  color: var(--fg2) !important;
  box-shadow: none !important;
}
.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.btn-outline-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #FF6B6B !important;
  box-shadow: none !important;
}
.btn-outline-danger:hover {
  background: #DC2626 !important;
  color: #fff !important;
}
.btn-outline-cyan {
  background: rgba(0, 217, 245, 0.06) !important;
  border: 1px solid rgba(0, 217, 245, 0.4) !important;
  color: var(--acc-2) !important;
  box-shadow: none !important;
}
.btn-outline-cyan.active, .btn-outline-cyan:hover {
  background: var(--acc-2) !important;
  color: #041019 !important;
}

/* Stat Box & History Box */
.stat-box {
  background: rgba(10, 18, 32, 0.85) !important;
  border: 1px solid var(--ln) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
.history-box {
  background: var(--bg-card) !important;
  border: 1px solid var(--ln) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
