/* Kurox — Notebook Zine Theme, v4
   Design System & Tokens
   Warna gelap bawaan (default dark).
   Biru (--color-link) HANYA untuk tautan teks.
*/

:root {
  /* Kontrol seragam */
  --control-height: 40px;
  --navbar-height: 56px;
  --navbar-height-scrolled: 48px;
  --navbar-z: 1000;
  --backdrop-z: 999;
  --transition-speed: 150ms;
  --border-width: 2px;
  --radius-sm: 4px;

  /* Tipografi */
  --font-pixel: 'Silkscreen', monospace;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-hand: 'Caveat', cursive;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* === TEMA GELAP (DEFAULT BAWAAN) === */
  --color-paper: #17161A;
  --color-on-paper: #F4F0E6;
  --color-surface: #211F26;
  --color-on-surface: #F4F0E6;
  --color-desk: #100F13;
  --color-on-desk: #F4F0E6;
  --color-nav: #17161A;
  --color-on-nav: #F4F0E6;

  --color-text: #F4F0E6;
  --color-muted: #A39E93;
  --color-link: #7B9EFF;
  --color-hover-bg: rgba(255, 255, 255, 0.08);

  /* Aksen */
  --color-yellow: #F5C542;
  --color-on-yellow: #1B1A17;
  --color-green: #2FB67C;
  --color-on-green: #1B1A17;
  --color-pink: #F0568D;
  --color-on-pink: #1B1A17;
  --color-cobalt: #7B9EFF;
  --color-on-cobalt: #17161A;
  --color-orange: #EA580C;
  --color-on-orange: #FFFFFF;

  /* Tombol */
  --color-btn-primary-bg: #F4F0E6;
  --color-btn-primary-text: #17161A;
  --color-btn-secondary-bg: #211F26;
  --color-btn-secondary-text: #F4F0E6;
  --color-btn-danger-bg: #EF4444;
  --color-btn-danger-text: #FFFFFF;

  /* Border & Shadow */
  --color-border: #3A3840;
  --color-border-light: #2E2C34;
  --shadow-hard: 3px 3px 0 #000000;
  --shadow-hard-sm: 2px 2px 0 #000000;
  --shadow-hard-lg: 5px 5px 0 #000000;

  /* Paper line */
  --color-paper-line: #222029;
  --color-tape: rgba(245, 197, 66, 0.15);
  --color-tape-border: rgba(245, 197, 66, 0.25);

  /* Sticky Notes */
  --color-sticky-yellow: #3D3200;
  --color-on-sticky-yellow: #F4F0E6;
  --color-sticky-pink: #3D0820;
  --color-on-sticky-pink: #F4F0E6;
  --color-sticky-cyan: #002233;
  --color-on-sticky-cyan: #F4F0E6;
  --color-sticky-green: #002B14;
  --color-on-sticky-green: #F4F0E6;
}

/* === MODE TERANG (OPSIONAL) === */
[data-theme="light"] {
  --color-paper: #FAF7F0;
  --color-on-paper: #1B1A17;
  --color-surface: #FFFFFF;
  --color-on-surface: #1B1A17;
  --color-desk: #E8E4D9;
  --color-on-desk: #1B1A17;
  --color-nav: #FAF7F0;
  --color-on-nav: #1B1A17;

  --color-text: #1B1A17;
  --color-muted: #6B6660;
  --color-link: #2D5BFF;
  --color-hover-bg: rgba(0, 0, 0, 0.05);

  --color-yellow: #F5C542;
  --color-on-yellow: #1B1A17;
  --color-green: #2FB67C;
  --color-on-green: #1B1A17;
  --color-pink: #F0568D;
  --color-on-pink: #1B1A17;
  --color-cobalt: #2D5BFF;
  --color-on-cobalt: #FFFFFF;
  --color-orange: #EA580C;
  --color-on-orange: #FFFFFF;

  --color-btn-primary-bg: #1B1A17;
  --color-btn-primary-text: #FAF7F0;
  --color-btn-secondary-bg: #FFFFFF;
  --color-btn-secondary-text: #1B1A17;
  --color-btn-danger-bg: #DC2626;
  --color-btn-danger-text: #FFFFFF;

  --color-border: #1B1A17;
  --color-border-light: #D6D0C4;
  --shadow-hard: 3px 3px 0 #1B1A17;
  --shadow-hard-sm: 2px 2px 0 #1B1A17;
  --shadow-hard-lg: 5px 5px 0 #1B1A17;

  --color-paper-line: #E8E2D0;
  --color-tape: rgba(245, 197, 66, 0.55);
  --color-tape-border: rgba(214, 160, 10, 0.3);

  --color-sticky-yellow: #FEF3C7;
  --color-on-sticky-yellow: #1B1A17;
  --color-sticky-pink: #FCE7F3;
  --color-on-sticky-pink: #1B1A17;
  --color-sticky-cyan: #E0F2FE;
  --color-on-sticky-cyan: #1B1A17;
  --color-sticky-green: #DCFCE7;
  --color-on-sticky-green: #1B1A17;
}

/* =====================================================
   RESET & DASAR
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button, a, input, select, textarea {
  touch-action: manipulation;
}
button:focus, a:focus {
  outline: none;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-border);
  outline-offset: 1px;
}
html {
  color-scheme: dark light;
  scroll-padding-top: calc(var(--navbar-height) + 12px);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--color-paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 27px,
    var(--color-paper-line) 28px
  );
  background-size: 100% 28px;
  color: var(--color-text);
  font: 16px/1.6 var(--font-sans);
  min-height: 100vh;
}

a { color: var(--color-link); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* Skip Link */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  background: var(--color-yellow);
  color: var(--color-on-yellow);
  padding: 0.5rem 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard);
  z-index: 2000;
  transition: top 0.15s ease;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--color-text); }

/* =====================================================
   STICKY NAVBAR PUBLIK (SATU ELEMEN UNTUK SEMUA UKURAN)
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--navbar-height);
  background: var(--color-nav);
  border-bottom: var(--border-width) solid var(--color-border);
  z-index: var(--navbar-z);
  transition: height var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  padding-top: env(safe-area-inset-top, 0);
}
.site-header.scrolled {
  height: var(--navbar-height-scrolled);
  box-shadow: 0 3px 0 var(--color-border);
}
.header-container {
  max-width: 1140px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-left { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.nav-brand {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-on-yellow);
  background: var(--color-yellow);
  padding: 0 12px;
  height: var(--control-height);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
}
.nav-brand:hover { text-decoration: none; filter: brightness(1.05); }

/* Satu wadah site-nav di DOM */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 1.5rem;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 6px 10px;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.12s ease;
  white-space: nowrap;
}
.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  background-color: var(--color-hover-bg);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
/* Kuning HANYA untuk item aktif di server melalui [aria-current="page"] */
.site-nav-links a[aria-current="page"] {
  background-color: var(--color-yellow) !important;
  color: var(--color-on-yellow) !important;
  border: var(--border-width) solid var(--color-border) !important;
  box-shadow: var(--shadow-hard-sm) !important;
  text-decoration: none !important;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* KONTROL SERAGAM: Token tinggi 40px */
.nav-icon-btn,
.theme-toggle-btn {
  width: var(--control-height);
  height: var(--control-height);
  min-width: var(--control-height);
  min-height: var(--control-height);
  background: var(--color-surface);
  color: var(--color-on-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.nav-icon-btn:hover { filter: brightness(0.95); }
.nav-icon-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border); }

.nav-cta-btn {
  height: var(--control-height);
  min-height: var(--control-height);
  line-height: calc(var(--control-height) - 4px);
  padding: 0 1.25rem;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.nav-cta-btn:hover {
  text-decoration: none;
  color: var(--color-btn-primary-text);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}
.nav-cta-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border); }

.nav-menu-btn {
  display: none;
  width: var(--control-height);
  height: var(--control-height);
  min-width: var(--control-height);
  min-height: var(--control-height);
  background: var(--color-surface);
  color: var(--color-on-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.site-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

/* Responsif Mobile Navbar (Single element transforms to drawer panel) */
@media (max-width: 768px) {
  .nav-menu-btn { display: inline-flex; }
  .site-nav-backdrop { display: block; }
  body.nav-open { overflow: hidden !important; }
  body.nav-open .site-nav-backdrop { opacity: 1; pointer-events: auto; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--color-surface);
    border-left: var(--border-width) solid var(--color-border);
    box-shadow: -4px 0 0 var(--color-border);
    z-index: 1005;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    margin-left: 0;
  }
  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    width: 100%;
  }
  .site-nav-links a {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    display: block;
    box-sizing: border-box;
  }
  .site-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 1rem;
    border-top: var(--border-width) solid var(--color-border);
  }
  .site-nav-actions .nav-cta-btn {
    width: 100%;
    height: 44px;
  }
  .site-nav-actions .theme-toggle-btn {
    width: 100%;
    height: 44px;
  }
}

/* =====================================================
   WRAPPER KONTEN & TIPOGRAFI
   ===================================================== */
.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  position: relative;
}

/* Judul Hero Clamp seimbang (maks 2 baris desktop, 3 baris mobile) */
.hero-title,
.hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(1.55rem, 3.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 760px;
  margin: 0.5rem auto 1rem;
  color: var(--color-text);
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.pixel-title {
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0.4rem 0 0.8rem;
  word-break: normal;
  overflow-wrap: break-word;
}
h1 { font-family: var(--font-pixel); font-size: 1.8rem; margin: 0.5rem 0 0.8rem; }
h2 {
  font-family: var(--font-pixel);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.5rem 0 0.6rem;
  letter-spacing: 0;
}
h3 { font-size: 1.1rem; margin: 0.8rem 0 0.4rem; font-weight: 700; color: var(--color-text); }
p { margin: 0.6rem 0; }
.handwriting { font-family: var(--font-hand); font-size: 1.3rem; color: var(--color-muted); line-height: 1.2; }

/* =====================================================
   SISTEM TOMBOL
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
  min-height: var(--control-height);
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard-lg);
  text-decoration: none;
  color: var(--color-btn-primary-text);
}
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border); }
.btn:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn.ghost, .btn.secondary {
  background: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
}
.btn.ghost:hover, .btn.secondary:hover {
  color: var(--color-btn-secondary-text);
  filter: brightness(0.96);
}
.btn.danger {
  background: var(--color-btn-danger-bg);
  color: var(--color-btn-danger-text);
}

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

/* =====================================================
   KARTU & KOMPONEN EDITORIAL
   ===================================================== */
.card, .step-card, .plan-card {
  background: var(--color-surface);
  color: var(--color-on-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid var(--color-border);
  box-shadow: 1.5px 1.5px 0 var(--color-border);
  background: var(--color-surface);
  color: var(--color-on-surface);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}
.badge.ok { background: var(--color-green); color: var(--color-on-green); }
.badge.warn { background: var(--color-yellow); color: var(--color-on-yellow); }
.badge.info { background: #38BDF8; color: #0C4A6E; }

/* Grid & Statistik Dashboard */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
.stats { grid-template-columns: repeat(2, 1fr); }
.stats .card h2 { font-size: 1.5rem; margin: 0 0 0.2rem; font-family: var(--font-mono); }
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stats .card p.mono, .stats .card .site-url {
  font-size: 0.82rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

/* =====================================================
   FORMULIR & ISIAN RETRO UNIVERSAL (SEMUA INPUT & DROPDOWN)
   ===================================================== */
.form { display: flex; flex-direction: column; gap: 0.9rem; margin: 1rem 0 1.4rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; font-size: 0.9rem; color: var(--color-text); }

/* Universal Form Controls across ALL pages */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.form input,
.form textarea,
.form select,
.form-input,
.input-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-surface) !important;
  color: var(--color-text) !important;
  border: var(--border-width) solid var(--color-border) !important;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-hard-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-muted) !important;
  opacity: 0.85;
}

input:focus,
textarea:focus,
select:focus,
.form input:focus,
.form textarea:focus,
.form select:focus,
.form-input:focus,
.input-control:focus {
  border-color: var(--color-yellow) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px var(--color-yellow), var(--shadow-hard-sm) !important;
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

/* Custom Retro Dropdown (Select) */
select,
.form select,
.select-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F4F0E6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 16px 16px !important;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

[data-theme="light"] select,
[data-theme="light"] .form select,
[data-theme="light"] .select-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B1A17' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

select option {
  background-color: var(--color-surface);
  color: var(--color-text);
  padding: 0.5rem;
}

/* =====================================================
   BREADCRUMBS & JEJAK HALAMAN
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  width: fit-content;
}
.breadcrumb a {
  color: var(--color-link);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .bc-sep {
  color: var(--color-muted);
}
.breadcrumb .bc-repo {
  color: var(--color-yellow);
}
.breadcrumb .bc-current {
  color: var(--color-text);
}

/* =====================================================
   GOOGLE SIGN-IN & AUTH DIVIDER
   ===================================================== */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.2rem 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 2px dashed var(--color-border);
}
.auth-divider span {
  padding: 0 0.75rem;
}

.btn-google {
  width: 100%;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s ease;
}
.btn-google:hover {
  text-decoration: none;
  background: var(--color-hover-bg);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}
.btn-google:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--color-border);
}

/* =====================================================
   DAFTAR POSTINGAN & KONTEN
   ===================================================== */
.posts { list-style: none; margin: 1rem 0; padding: 0; }
.post {
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  color: var(--color-on-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.post-title { font-weight: 700; font-size: 1.05rem; color: var(--color-text); }

/* Code & Terminal */
code {
  background: var(--color-desk);
  color: #FFA066;
  border: 1px solid var(--color-border-light);
  padding: 0.1em 0.35em;
  font-family: var(--font-mono);
  font-size: 0.88em;
  border-radius: 3px;
}
[data-theme="light"] code { color: #EA580C; }
pre, .cli-box {
  background: #18181b;
  color: #93C5FD;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 1em; }

/* Notifikasi */
.flash {
  background: var(--color-sticky-green);
  color: var(--color-on-sticky-green);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  margin: 1rem 0;
}
.err, .flash.err {
  background: #450A0A;
  color: #FCA5A5;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  margin: 1rem 0;
}
[data-theme="light"] .err, [data-theme="light"] .flash.err {
  background: #FEE2E2;
  color: #991B1B;
}

.muted { color: var(--color-muted); }
.mono { font-family: var(--font-mono); overflow-wrap: anywhere; }
.hint { color: var(--color-muted); font-size: 0.85rem; margin: -0.2rem 0 0.3rem; }
.empty { color: var(--color-muted); font-style: italic; }
form.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; color: var(--color-link); font: inherit; cursor: pointer; padding: 0; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }

/* Footer */
.foot { text-align: center; color: var(--color-muted); font-size: 0.85rem; padding: 2rem 0 2.5rem; }
.foot a { color: var(--color-text); font-weight: 700; }
.foot-links a { color: var(--color-text); font-weight: 600; }

/* Steps */
.steps-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--color-yellow);
  color: var(--color-on-yellow);
  font-weight: 800;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

/* =====================================================
   PAKET & HARGA (2 KOLOM DI MOBILE 320PX - 480PX)
   ===================================================== */
.pricing-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 1.5rem 0;
}
.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-card.featured {
  border-color: var(--color-yellow);
  box-shadow: var(--shadow-hard-lg);
}
.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0.4rem 0;
  font-family: var(--font-mono);
}
.plan-period { font-size: 0.82rem; color: var(--color-muted); font-weight: 400; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--color-on-surface);
  font-size: 0.88rem;
  line-height: 1.35;
}
.plan-features li .fi-check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-green);
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .plan-card {
    padding: 0.75rem 0.5rem !important;
    font-size: 13px !important;
  }
  .plan-card h3 {
    font-size: 0.95rem !important;
    margin: 0 0 0.2rem !important;
  }
  .plan-price {
    font-size: 1.15rem !important;
    margin: 0.2rem 0 !important;
  }
  .plan-period {
    font-size: 0.72rem !important;
  }
  .plan-features {
    font-size: 13px !important;
    margin: 0.4rem 0 0.8rem !important;
    gap: 0.35rem !important;
  }
  .plan-features li {
    font-size: 13px !important;
    line-height: 1.25 !important;
    gap: 0.3rem !important;
  }
  .plan-features li .fi-check {
    width: 13px !important;
    height: 13px !important;
  }
  .plan-card .btn {
    width: 100% !important;
    padding: 0.35rem 0.25rem !important;
    font-size: 13px !important;
    min-height: 36px !important;
    text-align: center;
  }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.faq-item {
  background: var(--color-surface);
  color: var(--color-on-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-on-surface);
  gap: 0.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-on-surface);
}
.faq-item[open] summary .faq-arrow { transform: rotate(180deg); }
.faq-item p { margin: 0.6rem 0 0; color: var(--color-on-surface); font-size: 0.92rem; }

/* =====================================================
   DASHBOARD ARSITEKTUR SIDEBAR KIRI 100dvh
   Tidak ada navbar publik, tidak ada bottom nav
   ===================================================== */
.dash-body {
  min-height: 100dvh;
  margin: 0;
  background: var(--color-paper);
}
.dash-shell {
  display: flex;
  min-height: 100dvh;
  width: 100%;
}
.dash-sidebar {
  width: 240px;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  border-right: var(--border-width) solid var(--color-border);
  flex-shrink: 0;
  z-index: 50;
  transition: width 0.2s ease, transform 0.25s ease;
}
.dash-sidebar-header {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: var(--border-width) solid var(--color-border);
}
.sidebar-collapse-btn {
  background: transparent;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.sidebar-collapse-btn:hover {
  color: var(--color-text);
  background: var(--color-hover-bg);
}
.dash-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color 0.12s ease;
  border: var(--border-width) solid transparent;
}
.dash-nav-item:hover {
  background: var(--color-hover-bg);
  text-decoration: underline;
}
.dash-nav-item.active,
.dash-nav-item[aria-current="page"] {
  background: var(--color-yellow) !important;
  color: #1B1A17 !important;
  border-color: var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  text-decoration: none !important;
}
.dash-sidebar-footer {
  padding: 0.75rem;
  border-top: var(--border-width) solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-logout-btn {
  width: 100%;
  height: var(--control-height);
  background: var(--color-btn-danger-bg);
  color: #FFFFFF;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Sidebar collapsed di desktop */
body.sidebar-collapsed .dash-sidebar { width: 64px; }
body.sidebar-collapsed .dash-sidebar .nav-label,
body.sidebar-collapsed .dash-sidebar .nav-brand { display: none; }
body.sidebar-collapsed .dash-sidebar-header { justify-content: center; padding: 0; }
body.sidebar-collapsed .dash-nav-item { justify-content: center; padding: 0.6rem 0; }
body.sidebar-collapsed .dash-sidebar-footer { flex-direction: column; padding: 0.5rem; }

.dash-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.dash-mobile-bar { display: none; }
.dash-content-container {
  padding: 1.5rem;
  flex: 1;
  max-width: 1200px;
  width: 100%;
}

@media (max-width: 768px) {
  .dash-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 1rem;
    border-bottom: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .dash-mobile-toggle {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dash-mobile-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    z-index: 1002;
    transform: translateX(-100%);
    box-shadow: var(--shadow-hard);
  }
  body.dash-sidebar-open .dash-sidebar { transform: translateX(0); }
  .dash-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.dash-sidebar-open .dash-backdrop { opacity: 1; pointer-events: auto; }
  body.dash-sidebar-open { overflow: hidden; }
  .dash-content-container { padding: 1rem 0.85rem; }
}

/* =====================================================
   AUTENTIKASI (app.kurox.web.id)
   Sesuai susunan foto #6 & gaya retro Kurox
   ===================================================== */
.auth-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
}
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.auth-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.auth-back-link {
  font-size: 0.88rem;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
}
.auth-back-link:hover { color: var(--color-text); text-decoration: underline; }

.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}
.auth-card {
  max-width: 420px;
  width: 100%;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.auth-icon-badge {
  width: 52px;
  height: 52px;
  background: var(--color-yellow);
  color: #1B1A17;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.auth-subtitle {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  line-height: 1.45;
}
.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.label-link {
  font-size: 0.8rem;
  color: var(--color-link);
  text-decoration: none;
}
.label-link:hover { text-decoration: underline; }

.password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-group input {
  width: 100%;
  padding-right: 42px;
  height: 42px;
  min-height: 42px;
  background: var(--color-surface);
  color: var(--color-on-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  padding-left: 0.75rem;
}
.password-input-group input:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 1px;
}
.password-toggle-btn {
  position: absolute;
  right: 4px;
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
}
.password-toggle-btn:hover { color: var(--color-text); }

.form-group-checkbox {
  margin: 0.2rem 0;
}
.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500 !important;
  cursor: pointer;
  line-height: 1.35;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.btn-auth-submit {
  width: 100%;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--color-yellow);
  color: #1B1A17;
  border: var(--border-width) solid var(--color-border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.btn-auth-submit:hover { filter: brightness(1.05); box-shadow: var(--shadow-hard); }
.btn-auth-submit:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--color-border); }

.auth-footer-nav {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}
.auth-foot {
  text-align: center;
  padding: 1.5rem 1rem;
}

/* =====================================================
   PENYESUAIAN MOBILE LAINNYA
   ===================================================== */
@media (max-width: 768px) {
  :root {
    --border-width: 1.5px;
    --shadow-hard: 2px 2px 0 #000000;
    --shadow-hard-sm: 1.5px 1.5px 0 #000000;
    --shadow-hard-lg: 3px 3px 0 #000000;
  }
  body {
    background-size: 100% 20px;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 19px,
      var(--color-paper-line) 20px
    );
  }
}
