@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0B1221;
  --panel: #121D33;
  --line: #212830;
  --ink: #EDEFF2;
  --dim: hsl(0, 0%, 100%);
  --cyan: #4FD1C5;
  --blue: #c6bfff;
  --glow: rgba(79, 209, 197, 0.18);

  /* mock dashboard (inside .sim widgets) — mirrors the real StreamCast UI */
  --sim-bg: #F2F4F7;
  --sim-border: #DBDFE5;
  --sim-label: #132147;
  --sim-text-dim: #5C6675;
  --sim-accent: #0D8F84;
  --sim-input-bg: #10141A;
  --sim-input-border: #262B33;
  --sim-input-text: #E7E9ED;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* ---------- HERO ---------- */
header.hero {
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 15ch;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.hero p.lede {
  margin: 22px auto 0;
  font-size: 1.05rem;
  color: var(--dim);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.wrap {
  max-width: 90vw !important;
}

.lm {
  display: flex;
  gap: 20px;
  min-height: 80vh
}

.lm-aside {
  align-items: center !important;
  width: 293px;
  background: #1a2230;
  border: 1px solid #263042;
  padding: 16px;
  position: sticky;
  margin-left: 75px;
  top: 20px
}

.lm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #132147;
  flex-direction: column
}

.lm-logo img {
  width: 228px;
  height: 104px
}

.lm-nav {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  width: 260px;
  left: 95px;
  gap: 8px
}

.lm-btn {
  text-align: left;
  border: 1px solid #263042;
  background: #0e1218;
  color: #cfe2ff;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  width: 260px;
  transition: box-shadow .15s ease, background .15s ease
}

.lm-btn:hover {
  background: #e1e1e1
}

.lm-btn.active {
  background: #1a2230;
  color: #fff;
  border-color: #3770ff;
  box-shadow: inset 0 0 0 1px #3770ff;
  position: relative
}

.lm-btn.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #3770ff;
  border-radius: 2px
}

.lm-main {
  flex: 1;
  min-width: 0
}

.lm-iframe {
  width: 100%;
  height: 100vh;
  border: 0px solid #263042;
  border-radius: 12px;
  background: #0e1218
}

.lm-editbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px
}

@media(max-width:900px) {
  .wrap {
    max-width: 95vw !important
  }

  .lm {
    flex-direction: column
  }

  .lm-aside {
    position: static;
    width: auto
  }

  .lm-iframe {
    height: 100vh
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.3), 0 8px 24px -8px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.5), 0 12px 28px -6px var(--glow);
}

.btn-ghost {
  background: #121D33;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--dim);
}

.btn-dark {
  background: #1a2230;
  color: #cfe2ff;
  border: 1px solid #2a3446;
  border-radius: 10px;
  padding: 11px 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-dark:hover:not(:disabled)  { background: #232d40; }
.btn-dark:active:not(:disabled) { background: #141a26; }
.btn-dark:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== Simulasi "Welcome!" pembuatan profil Chrome (Setup langkah 1) ===== */
.cp {
  --cp-bg: #ffdbd0;
  --cp-fg: #d93b00;
  --cp-tint: #f7ddd5;

  background: #ffffff;
  padding: 26px 32px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: "Google Sans", Roboto, "Segoe UI", Arial, sans-serif;
  color: #1f1f1f;
}

.cp-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto;
}
.cp-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--cp-bg);
  color: var(--cp-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.cp-edit {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.cp-edit:hover { background: #f1f3f4; }
.cp-edit:disabled { opacity: 0.5; cursor: not-allowed; }

.cp-title {
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  margin: 18px 0 20px;
  color: #1f1f1f;
}

.step-visual .cp .cp-label {
  display: block;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.step-visual .cp .cp-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background: var(--cp-tint);
  color: #1f1f1f;
  border: none;
  border-bottom: 1px solid #5f5a58;
  border-radius: 6px 6px 0 0;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: background 0.2s ease;
}

/* Font: Figtree untuk teks, Outfit untuk judul */
.step-visual .cp,
.step-visual .cp * {
  font-family: "Google Sans", "Figtree", Roboto, "Segoe UI", Arial, sans-serif;
}
.step-visual .cp .cp-title,
.step-visual .cp .cp-title * {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Avatar: ikon orang lebih tipis */
.step-visual .cp .cp-avatar svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.9;
}

/* Tombol pensil: lebih besar */
.cp-edit {
  width: 30px;
  height: 30px;
  right: -8px;
  bottom: -6px;
}
.step-visual .cp .cp-edit svg {
  width: 18px;
  height: 18px;
}

.step-visual .cp .cp-input::placeholder { color: rgba(31, 31, 31, 0.5); }
.step-visual .cp .cp-input:focus { border-bottom: 2px solid var(--cp-fg); }
.step-visual .cp .cp-input:disabled { opacity: 0.7; }

/* ===== Simulasi popup Surfshark (Setup langkah 3) ===== */
.ss {
  background: #ffffff;
  padding: 44px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step-visual .ss,
.step-visual .ss * {
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

.ss-title {
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  color: #151a1e;
  letter-spacing: -0.2px;
}
.ss-sub {
  text-align: center;
  font-size: 13.5px;
  color: #5b6167;
  margin: 10px 0 44px;
}

.ss-btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ss-login {
  background: #151a1e;
  color: #ffffff;
  border: 1px solid #151a1e;
  font-weight: 700;
  margin-bottom: 14px;
}
.ss-login:hover:not(:disabled) { background: #2a3238; }
.ss-login:disabled { opacity: 0.6; cursor: default; }

.ss-create {
  background: #ffffff;
  color: #151a1e;
  border: 1px solid #151a1e;
  font-weight: 700;
}
.ss-create:hover { background: #f3f4f5; }

.ss-divider {
  height: 1px;
  background: #e3e5e7;
  margin-top: 20px;
}

/* tinggi tetap: tombol tidak bergeser saat pesan muncul */
.ss-status {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: #5b6167;
}
.ss-status.ok { color: #0d8f84; font-weight: 500; }

/* footer: tinggi tetap, tombol tidak bergeser saat pesan muncul */
.cp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  margin-top: 14px;
}
.cp-status {
  font-size: 12px;
  color: #5c6675;
  min-width: 0;
}
.cp-status.ok { color: #0d8f84; font-weight: 500; }
.cp-status.error { color: #c0392b; font-weight: 500; }

.cp-done {
  flex-shrink: 0;
  padding: 9px 22px;
  border: none;
  border-radius: 999px;
  background: #0b57d0;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cp-done:hover:not(:disabled) { background: #0a4cb8; }
.cp-done:disabled {
  background: #e3e3e3;
  color: #8a8a8a;
  cursor: not-allowed;
}

/* ===== Simulasi kartu koneksi VPN Surfshark (Setup langkah 4) ===== */
.vpn-card {
  background: #2b2e34;
  padding: 24px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.step-visual .vpn-card,
.step-visual .vpn-card * {
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

.vpn-server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1px solid #e6e8ea;
  border-radius: 8px;
  padding: 12px 14px 12px 16px;
  color: #ffffff;
}

.vpn-server-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vpn-flag {
  font-size: 22px;
  line-height: 1;
}

.vpn-country {
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
}

.vpn-city {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}

.step-visual .vpn-server-row svg.vpn-server-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #ffffff;
}

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

.vpn-pause-btn {
  flex: 1;
  height: 44px;
  background: #1eb5b0;
  color: #14201f;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.vpn-pause-btn:hover { filter: brightness(1.08); }

.vpn-power-btn {
  width: 48px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #1eb5b0;
  background: transparent;
  color: #1eb5b0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vpn-power-btn:hover { background: rgba(30, 181, 176, 0.14); }
.step-visual .vpn-power-btn svg {
  width: 22px;
  height: 22px;
}

/* Font mirip Google Sans */
.step-visual .cp,
.step-visual .cp * {
  font-family: "Google Sans", "DM Sans", Roboto, "Segoe UI", Arial, sans-serif;
}

/* Kunci ukuran SVG, lawan aturan .step-visual svg { width:100% } */
.step-visual .cp .cp-avatar svg {
  display: block;
  width: 40px;
  height: 40px;
  stroke-width: 2.2;
}
.step-visual .cp .cp-edit svg {
  display: block;
  width: 15px;
  height: 15px;
}

/* Judul dan label mengikuti aslinya */
.step-visual .cp .cp-title {
  font-size: 21px;
  font-weight: 600;
}
.step-visual .cp .cp-label {
  font-size: 13px;
}

/* Tombol pensil: hitam seperti aslinya, termasuk saat terkunci */
.cp-edit,
.cp-edit:disabled {
  color: #1f1f1f;
}
.cp-edit:disabled {
  opacity: 1;
  cursor: default;
}

/* Tombol di kiri, tepat di tengah vertikal */
.ql-live-body {
  position: relative;
  display: block;            /* bukan flex, supaya posisi absolut mudah dikunci */
  min-height: 210px;
  height: 210px;
  padding: 0 18px;
}

/* Pesan error: tepat di bawah tombol */
.ql-live-status {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 84px;
  min-height: 0;
  white-space: nowrap;
}

.ql-live-actions {
  position: absolute;
  left: 18px;
  top: 34px;                 /* posisi tombol, ubah kalau mau lebih naik/turun */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buka & Copy tersembunyi sampai Buat Live ditekan */
.ql-extra {
  display: none;
}
.ql-live-actions.done .ql-extra {
  display: inline-block;
}
#ql-copy-link {
  min-width: 70px;     /* lebar tetap saat teks berubah jadi "Tersalin" */
}

/* Kolom link publik: di bawah tombol, ada ruang di bawahnya */
.ql-result {
  display: none;
  position: absolute;
  left: 18px;
  right: 18px;
  top: 88px;
  flex-direction: column;
  gap: 6px;
}
.ql-result.show {
  display: flex;
}

#ql-title,
#ql-feed,
#ql-link {
  color: #cfe2ff;
}

/* route cards on landing page */
.route-grid {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  text-align: left;
}

.route-grid .route-card {
  flex: 0 1 300px;
}

.route-card {
  display: block;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.route-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.route-card.primary {
  border-color: var(--cyan);
  background: #121D33;
}

.route-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--cyan);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(79, 209, 197, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.route-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.route-card p {
  font-size: 0.88rem;
  color: var(--dim);
}

.route-arrow {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- SECTION / DETAIL PAGES ---------- */
section {
  padding: 56px 300px 76px;
}
@media (max-width: 1300px) {
  section { padding: 56px 120px 76px; }
}
@media (max-width: 1000px) {
  section { padding: 48px 40px 60px; }
}
@media (max-width: 600px) {
  section { padding: 40px 16px 48px; }
}

.section-head {
  margin-bottom: 44px;
}

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.98rem;
  max-width: 52ch;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--ink);
}

/* ---------- STEP CARDS (with visual) ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 22px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s ease;
  align-items: start;
}

.step:hover {
  border-color: #2A3440;
}

.step-visual {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sim-bg);
}

.step-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.sim-actions {
  position: relative;
}

/* Tema popup Sign in Chrome (dark), khusus step 4 */
.sim.sim-chrome {
  --g-bg: #1f1f1f;
  --g-border: #444746;
  --g-text: #e3e3e3;
  --g-muted: #c4c7c5;
  --g-input-border: #8e918f;
  --g-accent: #a8c7fa;

  background: var(--g-bg);
  border: 1px solid var(--g-border);
  color: var(--g-text);
}

.sim-chrome .sim-bar {
  background: var(--g-bg);
  border-bottom: 1px solid var(--g-border);
}
.sim-chrome .sim-bar span {
  background: #5f6368;
}

.sim-chrome .sim-body {
  background: var(--g-bg);
}

.sim-chrome .sim-input {
  background: transparent;
  color: var(--g-text);
  border: 1px solid var(--g-input-border);
  border-radius: 10px;
  outline: none;
}
.sim-chrome .sim-input::placeholder {
  color: var(--g-muted);
}
.sim-chrome .sim-input:focus {
  border-color: var(--g-accent);
  box-shadow: 0 0 0 1px var(--g-accent);
}

.sim-chrome .sim-btn {
  background: var(--g-accent);
  border: none;
  border-radius: 999px;
  font-weight: 600;
}
.sim-chrome .sim-btn:hover {
  filter: brightness(1.08);
}

.sim-chrome .sim-status {
  color: var(--g-muted);
}

/* Font khusus popup Chrome */
.step-visual .sim.sim-chrome,
.step-visual .sim.sim-chrome * {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Baris label + input: lebar label dikunci */
.step-visual .sim.sim-chrome .sim-row {
  display: flex !important;
  align-items: center;
  gap: 0;
  margin: 0;
}

.step-visual .sim.sim-chrome .sim-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #e3e3e3;
}

.step-visual .sim.sim-chrome .sim-url {
  font-size: 13px;
  font-weight: 400;
  color: #e3e3e3;
  margin-bottom: 6px;
}

.step-visual .sim.sim-chrome .sim-row label {
  flex: 0 0 74px;
  width: 82px;
  margin: 0;
  padding: 0;
  color: #e3e3e3;
  font-size: 13px;
  line-height: 1;
  text-align: left;
}

.step-visual .sim.sim-chrome .sim-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.step-visual .sim.sim-chrome .sim-btn {
  width: auto;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #062e6f;
  background: #a8c7fa;
  border: none;
}

.step-visual .sim.sim-chrome .sim-row .sim-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 38px;
  margin: 0;
  box-sizing: border-box;
}

.step-visual .sim.sim-chrome .sim-btn-secondary,
.step-visual .sim.sim-chrome .sim-btn.secondary {
  background: #004a77;
  color: #c2e7ff;
  border: none;
}

/* Jaga-jaga: buang sisa titlebar lama kalau masih ada */
.step-visual .sim.sim-chrome .sim-bar {
  display: none;
}

/* ---------- INTERACTIVE SIMULATION WIDGETS ---------- */
/* styled to mirror the real StreamCast dashboard: light panel, dark inputs */
.sim {
  display: flex;
  flex-direction: column;
  background: var(--sim-bg);
}

.sim-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sim-border);
}

.sim-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C7CCD3;
}

.sim-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 168px;
  justify-content: center;
}

.sim label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sim-label);
  letter-spacing: 0;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-input,
.sim-select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--sim-input-border);
  border-radius: 6px;
  background: var(--sim-input-bg);
  color: var(--sim-input-text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
}

.sim-input::placeholder {
  color: #6A7280;
}

.sim-input:focus,
.sim-select:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.sim-input:disabled,
.sim-select:disabled {
  opacity: 0.5;
}

textarea.sim-input {
  min-height: 91px;
  resize: vertical;      /* bisa ditarik lebih tinggi, hapus kalau tidak mau */
  line-height: 1.45;
  vertical-align: top;
  display: block;
}

textarea.sim-input,
textarea.sim-input::placeholder {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

.sim-row {
  display: flex;
  gap: 8px;
}

.sim-btn {
  padding: 9px 15px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--cyan);
  color: #06110F;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.sim-btn:hover {
  filter: brightness(1.08);
}

.sim-btn:active {
  transform: scale(0.98);
}

.sim-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: none;
}

.sim-btn.secondary {
  background: transparent;
  color: var(--sim-label);
  border-color: var(--sim-border);
}

.sim-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  color: var(--sim-text-dim);
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-status.ok {
  color: var(--sim-accent);
  font-weight: 500;
}

.sim-status.processing {
  color: #3B6FE0;
  font-weight: 500;
}

.sim-status.error {
  color: #C0392B;
  font-weight: 500;
}

.sim-check {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(13, 143, 132, 0.14);
  color: var(--sim-accent);
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.sim-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sim-accent);
  box-shadow: 0 0 0 0 rgba(13, 143, 132, 0.6);
  animation: sim-pulse 1.4s infinite;
}

@keyframes sim-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 143, 132, 0.5);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(13, 143, 132, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(13, 143, 132, 0);
  }
}

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(13, 143, 132, 0.12);
  color: var(--sim-accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  align-self: flex-start;
}

.sim-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid var(--sim-border);
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  color: var(--sim-label);
}

.sim-list-item .sim-mini-btns {
  display: flex;
  gap: 2px;
}

.sim-mini-btn {
  background: none;
  border: none;
  color: var(--sim-text-dim);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 5px;
  border-radius: 4px;
}

.sim-mini-btn:hover {
  color: var(--sim-label);
  background: var(--sim-border);
}

.sim-checkbox-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--sim-text-dim);
}

.sim-checkbox-row input {
  accent-color: var(--sim-accent);
}

.sim-hint {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  color: var(--sim-text-dim);
}

/* combobox (Nama Liga): text input that can also be picked from a list */
.sim-combo {
  position: relative;
}

.sim-combo .sim-input {
  padding-right: 10px;
}

/* the browser already draws its own indicator for inputs with a list=
   attribute — hide that native one so only our custom ▾ shows */
.sim-combo .sim-input::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

/* confirm modal (e.g. "Nama Liga belum ada, buat liga baru?") */
.sim-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 16, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.sim-modal {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px 26px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.sim-modal p {
  color: var(--sim-label);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
}
.sim-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.sim-modal-ok, .sim-modal-cancel {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.sim-modal-ok {
  background: #6B3F2A;
  color: #fff;
  border-color: #6B3F2A;
}
.sim-modal-ok:hover { filter: brightness(1.12); }
.sim-modal-cancel {
  background: #FBE0D2;
  color: #6B3F2A;
}
.sim-modal-cancel:hover { filter: brightness(0.96); }

.step-body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-auto-rows: auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
}

.step-index {
  grid-column: 1;
  grid-row: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--cyan);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(79, 209, 197, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.02rem;
  font-weight: 600;
}

.step p {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 0.92rem;
}

.step code {
  background: rgba(139, 127, 232, 0.12);
  color: var(--blue);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

/* ---------- TOPIC GROUPS (landing) ---------- */
.topic-group {
  margin-top: 52px;
  text-align: left;
}

.topic-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.route-grid.secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.route-grid.secondary .route-card {
  flex: initial;
}

/* ---------- FIELD LIST (publish) ---------- */
.field-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.field-row:first-child {
  border-top: 1px solid var(--line);
}

.field-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--blue);
}

.field-desc {
  font-size: 0.92rem;
  color: var(--dim);
}

.field-desc .ex {
  display: block;
  margin-top: 4px;
  color: #5A6472;
  font-size: 0.85rem;
}

/* ---------- EDIT PANEL ---------- */
.edit-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.edit-panel .note h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.edit-panel .note p {
  color: var(--dim);
  font-size: 0.92rem;
}

/* Edit Live: kolom selalu di tengah, pesan melayang tepat di bawahnya */
.ed-center {
  position: relative;
  justify-content: center;
  min-height: 168px;
}
.ed-msg {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(50% + 28px);   /* setengah tinggi kolom + jarak kecil */
  bottom: auto;
  min-height: 0;
}

/* Tampilan terkunci khusus halaman Edit Live */
#ed-code-quick:disabled,
#ed-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#ed-load-btn:disabled,
#ed-save-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Step 3: terkunci (pudar) sebelum menu Edit Live ditekan */
#ed-code.ed-locked {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Setelah menu ditekan: tampil normal, tapi tetap tidak bisa diketik */
#ed-code {
  cursor: default;
}

.mock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 6px;
}

.mock-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--ink);
}

.mock-field input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.page-nav {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.page-nav a {
  text-decoration: none;
}

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
}

.btn-publish {
  background: #13304b; 
  color: #fff; 
  padding: 8px 12px;
  border-radius: 8px;
  width: 67.73px;
  border: none;
  cursor: pointer;
}

.hint {
    color: #13304b;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
}

.btn-publish:active {
  transform: translateY(1px);
}

@media (max-width: 1000px) {
  .edit-panel {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .route-grid .route-card {
    flex-basis: 100%;
  }

  .route-grid.secondary {
    grid-template-columns: 1fr;
  }

  .page-nav {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-visual {
    max-width: 100%;
  }
}

@media (max-width: 1000px) {
  .lm-aside {
    width: auto;
    margin-left: 0;
    position: static;
  }
  .lm-nav,
  .lm-btn {
    width: 100%;
  }
  .lm-logo img {
    max-width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* =========================================================
   THEMES — 3 skins: default, live.nonton.cc (BBM88), lagatv.com
   Switch by setting data-theme on <html>. Only the palette and
   background texture change; layout stays identical.
   ========================================================= */

/* ---- Theme: live.nonton.cc (BBM88) — white background, red accent ---- */
html[data-theme="nonton"] {
  --bg: #F4F5F7;
  --panel: #13304b;
  --line: #26272C;
  --ink: white;
  --dim: #ebf2ff;
  --cyan: #3273b1;
  --glow: rgba(226, 59, 76, 0.2);
}
html[data-theme="nonton"] body::before {
  opacity: 0.18;
}

html[data-theme="nonton"] .topic-group-label,
html[data-theme="nonton"] .back-link,
html[data-theme="nonton"] .section-head h2,
html[data-theme="nonton"] h1, h2 {
  color: var(--panel);
}

html[data-theme="nonton"] .section-head p,
html[data-theme="nonton"] .hero p.lede {
  color: var(--panel) !important;
}

html[data-theme="nonton"] nav, footer {
  background: #0E1218;
}

html[data-theme="nonton"] .step-index,
html[data-theme="nonton"] .route-num {
  color: var(--ink);
}

html[data-theme="nonton"] .btn-ghost,
html[data-theme="nonton"] .route-card.primary,
html[data-theme="nonton"] .eyebrow {
  color: var(--ink);
  background-color: var(--panel);
}

html[data-theme="nonton"] .lm-logo img {
  width: 250px;
  height: 83.5px
}

/* ---- Theme: lagatv.com — blue gradient, dotted/circuit texture ---- */
html[data-theme="lagatv"] {
  --bg: #23507E;
  --panel: #2C5F92;
  --line: #000000;
  --ink: #F5F9FF;
  --cyan: #05ccff;
  --blue: #FFC94D;
  --glow: rgba(255, 90, 95, 0.25);
}
html[data-theme="lagatv"] body {
  background: linear-gradient(180deg, #2b4f5e 0%, #4c7081 45%, #6a9cb3 100%);
}

html[data-theme="lagatv"] body::before {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 0 0;
  opacity: 0.55;
  mask-image: none;
  -webkit-mask-image: none;
}

html[data-theme="lagatv"] h1, h2 {
  color: var(--ink);
}

html[data-theme="lagatv"] .btn-publish,
html[data-theme="lagatv"] footer,
html[data-theme="lagatv"] nav {
  background: #254a7d url(https://lagatv.gambar.site/h.png);
}

html[data-theme="lagatv"] .route-card,
html[data-theme="lagatv"] .step,
html[data-theme="lagatv"] .eyebrow,
html[data-theme="lagatv"] .btn-primary,
html[data-theme="lagatv"] .btn-ghost,
html[data-theme="lagatv"] .edit-panel {
  color: var(--ink);
  background: linear-gradient(#0094ba 0%, #007998 100%);
}

html[data-theme="lagatv"] .step:hover {
  border-color: var(--cyan);
}

html[data-theme="lagatv"] .step code,
html[data-theme="lagatv"] .step-index {
  background-color: #22769c;
}

html[data-theme="lagatv"] .lm-logo img {
  width: 250px;
  height: 83.5px
}

/* ---- theme switcher widget (injected by theme.js on every page) ---- */
#theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
#theme-switcher button {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
#theme-switcher button:hover {
  color: var(--ink);
}
#theme-switcher button.active {
  background: var(--cyan);
  color: #06110F;
}
@media (max-width: 720px) {
  #theme-switcher {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }
}