/* ============================================================
   Rynkz API — Design System
   Modern minimalist: satu accent, border tipis, tanpa gradient
   mesh/glow, whitespace lega, tipografi netral (Inter + mono).
   ============================================================ */

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

:root {
  --bg: #0a0a0d;
  --surface: #131316;
  --surface-2: #1b1b1f;
  --surface-3: #232329;
  --border: #26262c;
  --border-soft: #1c1c21;
  --text: #f1f1f4;
  --text-muted: #90909a;
  --text-faint: #57575f;
  --accent: #6d5efc;
  --accent-hover: #7f72fd;
  --accent-soft: #1e1a3d;
  --accent-2: #22d3ee;
  --success: #22c55e;
  --success-bg: #12200f;
  --success-border: #1e3a24;
  --error: #f87171;
  --error-bg: #24141a;
  --error-border: #3a2129;
  --warn: #f59e0b;
  --warn-bg: #241c10;
  --warn-border: #3a2c17;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
code, .mono { font-family: var(--mono); }
a { color: var(--accent); }
button, input { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout shells ---------- */
.shell {
  width: 100%; max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero {
  padding: 40px 36px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface-2);
}
.hero-brand { display: flex; align-items: center; gap: 10px; }
.hero-brand .mark, .brand .mark, .mark {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--accent), var(--accent-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.brand-word, .brand span { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.hero-copy { margin-top: 28px; }
.hero-copy h1 { font-size: 23px; line-height: 1.4; }
.hero-copy p { margin-top: 10px; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; max-width: 32ch; }
.hero-features, .hero-steps { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.hero-feature, .hero-step { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--text); }
.hero-feature i, .hero-step i {
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); flex-shrink: 0;
}
.hero-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.hero-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.hero-uptime, .hero-stat { font-size: 12.5px; color: var(--text-muted); }

.panel { padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.panel-head, .panel-heading { margin-bottom: 22px; }
.panel-head h2, .panel-heading { font-size: 20px; font-weight: 600; }
.panel-head p, .page-sub { color: var(--text-muted); font-size: 13px; margin-top: 6px; line-height: 1.6; }

@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; max-width: 420px; }
  /* Sebelumnya .hero { display:none } di mobile — jadi brand "Rynkz API"
     ilang total, form login/register/reset kelihatan gak jelas punya
     siapa. Sekarang cuma bagian brand-nya yang tetap kelihatan, sisanya
     (copy panjang, fitur, footer) yang disembunyiin. */
  .hero {
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 20px 26px 16px; justify-content: flex-start;
  }
  .hero-copy, .hero-features, .hero-steps, .hero-foot { display: none; }
  .panel { padding: 30px 26px; }
}

/* ---------- Forms ---------- */
label, .field-label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; margin-top: 15px;
}
label:first-of-type, .field-label:first-of-type { margin-top: 0; }
.field { position: relative; }
input, .input-box, textarea, select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s;
}
input:focus, .input-box:focus, textarea:focus { border-color: var(--accent); }
input.valid { border-color: var(--success); }
input.invalid { border-color: var(--error); }
.hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.hint.ok { color: var(--success); }
.hint.bad { color: var(--error); }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-faint); padding: 8px 9px; cursor: pointer; font-size: 13px;
}
.pw-toggle:hover { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-submit {
  width: 100%; margin-top: 22px; background: var(--accent);
  border: none; border-radius: var(--radius); padding: 12px; color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover, .btn-submit:hover { background: var(--accent-hover); }
.btn-primary:disabled, .btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary, .ghost {
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 16px; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover, .ghost:hover { border-color: var(--accent); background: var(--surface-2); }
.btn-raw, .btn-refresh, .icon-btn {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 11px; color: var(--text-muted); font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: color .15s, border-color .15s;
}
.btn-raw:hover, .btn-refresh:hover, .icon-btn:hover { color: var(--text); border-color: var(--accent); }
.go-dash, .plan-cta {
  display: block; text-align: center; text-decoration: none; margin-top: 4px;
  background: var(--accent); border-radius: var(--radius); padding: 12px;
  color: #fff; font-weight: 600; font-size: 14px;
}
.go-dash:hover, .plan-cta:hover { background: var(--accent-hover); }

.switch-link { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.switch-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.switch-link a:hover { text-decoration: underline; }

/* ---------- Messages / states ---------- */
.msg {
  margin-top: 14px; font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm);
  display: none; align-items: center; gap: 8px;
}
.msg.error { display: flex; background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
.msg.success { display: flex; background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.msg.info, .msg.hint, .msg.warn { display: flex; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); margin-bottom: 14px; margin-top: 0; }
.note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; padding: 10px 12px; border-radius: var(--radius-sm); margin-top: 12px; }
.note.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }
.note.info { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.form-box.hide { display: none; }
.result-box { display: none; text-align: center; }
.result-box.show { display: block; }
.success-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; color: var(--success); font-weight: 600; margin-bottom: 10px; }
.result-box p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }

/* ---------- History request (profile & dashboard) ---------- */
.history-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.history-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2);
  font-size: 12.5px;
}
.history-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-endpoint { font-weight: 600; color: var(--text); }
.history-who { font-size: 11px; color: var(--text-faint); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.history-row-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.history-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.history-status.ok { color: var(--success); }
.history-status.blocked { color: var(--warn); }
.history-status.error { color: var(--error); }
.history-time { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.card-title { font-size: 15px; font-weight: 600; }
.section-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.section-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* API key display "pass" card */
.pass {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 10px; overflow: hidden;
}
.pass-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.pass-top .lbl { font-size: 11px; font-weight: 600; color: var(--text-faint); letter-spacing: 0.03em; }
.chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.pass-notch { display: none; }
.pass-divider { height: 1px; background: var(--border); }
.pass-bottom { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 10px; }
.pass-bottom code { font-size: 13px; word-break: break-all; }
.pass-bottom button { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; flex-shrink: 0; }
.pass-bottom button:hover { color: var(--accent); }
/* Sama seperti .submenu dan .endpoint-dropdown: gak ada state "hidden by
   default" jadi teks "Disalin ke clipboard." nongol terus dari awal,
   padahal harusnya cuma muncul sesaat setelah tombol copy diklik. */
.copied-hint { display: none; font-size: 11px; color: var(--success); margin-top: 6px; }
.copied-hint.show { display: block; }

/* ---------- Navbar / dashboard chrome ---------- */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface);
  position: sticky; top: 0; z-index: 30;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 14px; }
.menu-btn {
  background: none; border: none; color: var(--text); font-size: 16px; cursor: pointer;
  width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center; transition: background .15s;
}
.menu-btn:hover { background: var(--surface-2); }
.search-box {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 8px 14px; min-width: 220px; transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box i { color: var(--text-faint); font-size: 12.5px; }
.search-box input { background: none; border: none; padding: 0; font-size: 13px; }
.search-box input:focus { border: none; }

.nav-icon {
  color: var(--text-muted); cursor: pointer; font-size: 15px; transition: color .15s, background .15s;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.nav-icon:hover { color: var(--text); background: var(--surface-2); }
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px; display: none; z-index: 20; box-shadow: var(--shadow);
}
.nav-dropdown.open { display: block; }
.nav-dropdown-title { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); padding: 8px 10px 6px; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: 13px; cursor: pointer;
}
.nav-dropdown-item:hover { background: var(--surface-3); }
.nav-dropdown-empty { padding: 12px 10px; color: var(--text-faint); font-size: 12.5px; text-align: center; }
.nav-dropdown-right { right: 0; left: auto; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
  border: 1px solid var(--border-soft);
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 254px; z-index: 50;
  border-right: 1px solid var(--border); background: var(--surface); padding: 16px 12px 18px;
  overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar.active { transform: translateX(0); }

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border-soft);
}
.sidebar-brand .mark {
  width: 32px; height: 32px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.sidebar-brand-text { line-height: 1.25; }
.sidebar-brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.sidebar-brand-tag { font-size: 11px; color: var(--text-faint); }

.sidebar-section-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-faint); padding: 10px 10px 6px;
}

/* Sidebar list items were rendering with default browser bullets and blue
   underlined links because .sidebar-menu / .submenu (both <ul>s) never had
   list-style reset, and .submenu a had no color/decoration rule at all in
   dark mode (only body.light-theme .submenu a existed). Fixed below. */
.sidebar-menu, .submenu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu { display: flex; flex-direction: column; gap: 2px; }
.sidebar-menu li { margin: 0; }

.menu-link, .submenu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.menu-link > i:first-child, .submenu a > i { width: 16px; text-align: center; color: var(--text-faint); flex-shrink: 0; transition: color .15s; }
.menu-link .chevron { margin-left: auto; color: var(--text-faint); font-size: 11px; }
.menu-link:hover, .submenu a:hover { background: var(--surface-2); color: var(--text); }
.menu-link.active, .submenu a.active {
  background: var(--accent-soft); color: var(--text); border-left-color: var(--accent);
}
.menu-link.active > i:first-child, .submenu a.active > i { color: var(--accent); }

/* Submenu is a real collapsible accordion now (was always visually open
   before since nothing hid it when .open was missing). */
.submenu {
  margin: 2px 0 0 12px; padding-left: 12px; border-left: 1px solid var(--border);
  max-height: 0; overflow: hidden; transition: max-height .2s ease;
}
.submenu a { font-size: 13px; padding: 8px 10px; }
.submenu.open { max-height: 480px; }

.chevron { transition: transform .15s; }
.chevron.open { transform: rotate(180deg); }
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(1px); z-index: 40;
  display: none; opacity: 0; transition: opacity .2s ease;
}
.overlay.active { display: block; opacity: 1; }

/* ---------- Badges / chips / status ---------- */
.badge {
  font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.badge-checking { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.badge-online { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.badge-offline { background: var(--error-bg); color: var(--error); border-color: var(--error-border); }
/* JS toggle pakai class .offline (lihat dashboard.html), tapi CSS di sini
   sebelumnya cuma ngatur .active yang gak pernah dipasang oleh JS manapun
   — jadi dot-nya cuma diem abu-abu terus, gak pernah ijo pas online atau
   merah pas offline. Disamain ke class yang beneran dipakai. */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.status-dot.offline { background: var(--error); }
.status-title { font-size: 14px; font-weight: 600; }
.status-sub { font-size: 12.5px; color: var(--text-muted); }
.status-copy { color: var(--text-muted); font-size: 13px; }

/* ---------- Readouts / stats / quota ---------- */
.readout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.readout-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-faint); margin-bottom: 10px; }
.readout-label i {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.readout-value { font-size: 20px; font-weight: 600; font-family: var(--mono); }
.quota-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.quota-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.quota-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }

/* ---------- Result panels (downloader tools) ----------
   Semua tool downloader sekarang cuma nampilin response API-nya apa
   adanya sebagai JSON — gak ada lagi kartu cover/title/tombol custom. */
.result-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.result-loading, .result-error, .placeholder-msg, .route-empty { color: var(--text-muted); font-size: 13.5px; text-align: center; padding: 24px 12px; }
.result-error { color: var(--error); }
.result-quota { font-size: 12px; color: var(--text-faint); margin-top: 10px; }
.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; }

.json-result-head {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 10px;
}
.json-result-head.is-ok { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.json-result-head.is-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
.json-result-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  color: var(--text); overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}

/* ---------- Status page (hero summary + per-provider sections) ---------- */
.status-hero { display: flex; flex-direction: column; gap: 18px; }
.status-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status-hero-label { font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; }
.status-hero-value .badge { font-size: 13.5px; padding: 6px 12px; }
.status-hero-ratio { text-align: right; }
.status-hero-ratio-value { display: block; font-size: 26px; font-weight: 700; font-family: var(--mono); line-height: 1.2; }
.status-hero-ratio-label { font-size: 11px; color: var(--text-faint); }

.status-hero-stats { display: flex; gap: 10px; }
.status-hero-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 8px;
}
.stat-value { font-size: 18px; font-weight: 700; font-family: var(--mono); }
.stat-valid { color: var(--success); }
.stat-error { color: var(--error); }
.stat-waiting { color: var(--warn); }
.stat-label { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }

.status-hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--text-muted);
  padding-top: 14px; border-top: 1px solid var(--border-soft);
}
.status-hero-meta b { color: var(--text); font-weight: 600; }
.status-hero-meta i { color: var(--text-faint); width: 14px; text-align: center; margin-right: 2px; }

.status-hero-actions { display: flex; gap: 10px; }
.btn-refresh, .btn-auto {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer;
  background: var(--surface-2); color: var(--text); transition: background .15s, border-color .15s;
}
.btn-refresh:hover, .btn-auto:hover { background: var(--surface-3); }
.btn-auto { color: var(--success); border-color: var(--success-border); }
.btn-auto.is-off { color: var(--text-faint); border-color: var(--border); }

.status-sections { display: flex; flex-direction: column; gap: 16px; }
.status-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.status-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.status-section-name { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.status-section-name i { color: var(--text-faint); width: 16px; text-align: center; }
.status-section-count { font-size: 11.5px; color: var(--text-faint); }

.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.status-card { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px; }
.status-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.status-card-name { font-size: 12.5px; font-weight: 600; }
.status-card-type { font-size: 11px; color: var(--text-faint); }

/* ---------- Profile page ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
}
.profile-username { font-size: 16px; font-weight: 600; }
.profile-joined { font-size: 12.5px; color: var(--text-muted); }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.page-head-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); }
.page-title { font-size: 20px; font-weight: 600; }
.page-note { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; }

/* ---------- Pricing page ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.plan-name { font-size: 15px; font-weight: 600; }
.plan-chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.plan-name .plan-chip { margin-left: 7px; vertical-align: middle; }
.plan-tagline { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }
.plan-limit { display: flex; align-items: baseline; gap: 6px; font-size: 26px; font-weight: 700; font-family: var(--mono); margin-bottom: 4px; }
/* <b>20</b><span>request/hari</span> di HTML nggak ada spasi/pembeda
   ukuran, jadi kegabung jadi "20request/hari". Kasih gap + turunin ukuran
   unit-nya biar kebaca "20  request/hari". */
.plan-limit span { font-size: 12.5px; font-weight: 500; font-family: var(--font); color: var(--text-muted); }
.plan-features { list-style: none; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-muted); }

/* ---------- Guest / info cards ---------- */
.guest-card, .info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
/* .guest-card cuma dikasih padding doang, gak ada styling buat icon/teks
   di dalamnya — jadi kelihatan mentah (icon nempel teks, gak center).
   Ini yang pertama diliat orang belum login pas buka /profile.html. */
.guest-card { text-align: center; padding: 34px 24px; }
.guest-card > i { display: block; font-size: 26px; color: var(--text-faint); margin-bottom: 14px; }
.guest-card > p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; max-width: 32ch; margin: 0 auto; }
.info-card-title { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.docs-link {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.docs-link:hover { color: var(--accent-hover); text-decoration: underline; }
.guest-actions, .actions { display: flex; gap: 10px; margin-top: 14px; }
.guest-actions { justify-content: center; }
.spotify-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }

/* ---------- Page container (non-shell pages: index, dashboard, tools) ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 24px; }

/* ---------- Hero stat panel (index/dashboard) ---------- */
.hero-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.readout {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 14px 16px; box-shadow: var(--shadow-sm);
}

/* Numbered step indicator (only where content really is a sequence) */
.num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}

/* Plan CTA modifier for the featured/primary plan */
.plan-cta.primary { background: var(--accent); }
.plan-cta.primary:hover { background: var(--accent-hover); }

.sub, .muted { color: var(--text-muted); }
.val { font-family: var(--mono); }
.warn { color: var(--warn); }
.lbl { color: var(--text-faint); }

/* Desktop: sidebar jadi kolom permanen, bukan drawer; overlay gak pernah dipakai.
   Ditaruh di paling akhir file biar menang di cascade atas rule .navbar/.container di atas. */
@media (min-width: 900px) {
  .sidebar { transform: translateX(0); }
  .overlay { display: none !important; }
  .menu-btn { display: none; }
  .navbar { margin-left: 250px; }
  .container { margin-left: 250px; max-width: none; }
}
