/* ============================================================
   AutoGoPay — UI mengikuti desain autogopay.site
   (Tailwind Zinc + Blue-600, font Geist, dark mode)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-hover: #f4f4f5;
  --card: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-secondary: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-active: #1e40af;
  --primary-subtle: #eff6ff;
  --primary-ring: rgba(37, 99, 235, 0.15);

  --green: #16a34a;
  --green-subtle: #f0fdf4;
  --red: #dc2626;
  --red-subtle: #fef2f2;
  --amber: #d97706;
  --amber-subtle: #fffbeb;

  --code-bg: #fafafa;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --bg-subtle: #18181b;
    --bg-hover: #27272a;
    --card: #09090b;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --text-secondary: #e4e4e7;
    --muted: #a1a1aa;
    --faint: #71717a;

    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-active: #1d4ed8;
    --primary-subtle: #0f172a;
    --primary-ring: rgba(59, 130, 246, 0.2);

    --green: #22c55e;
    --green-subtle: #052e16;
    --red: #f87171;
    --red-subtle: #450a0a;
    --amber: #fbbf24;
    --amber-subtle: #451a03;

    --code-bg: #18181b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #18181b;
  --bg-hover: #27272a;
  --card: #09090b;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-secondary: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #71717a;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-active: #1d4ed8;
  --primary-subtle: #0f172a;
  --primary-ring: rgba(59, 130, 246, 0.2);

  --green: #22c55e;
  --green-subtle: #052e16;
  --red: #f87171;
  --red-subtle: #450a0a;
  --amber: #fbbf24;
  --amber-subtle: #451a03;

  --code-bg: #18181b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; }
code, pre, .mono {
  font-family: 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace;
}
img { max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.hidden { display: none !important; }

/* ---------- text helpers ---------- */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-size: 12.5px; color: var(--muted); }
.code {
  font-family: 'Geist Mono Variable', ui-monospace, monospace;
  font-size: 12.5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}
.tag {
  font-family: 'Geist Mono Variable', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.right { text-align: right; }
.wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-subtle); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--primary-hover); text-decoration: none; }
.seg {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-left: 12px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.seg button.on {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.nav-menu-btn { display: none; }
@media (max-width: 768px) {
  .nav-links .nav-link-wrap { display: none; }
  .nav-menu-btn { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  background: var(--bg-subtle);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none !important;
}
.btn:hover { background: var(--bg-hover); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-outline {
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--faint); background: var(--bg-subtle); }
.btn-danger { background: var(--red-subtle); color: var(--red); border: 1px solid transparent; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- forms ---------- */
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
input::placeholder { color: var(--faint); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

.alert-tg {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--amber-subtle);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.alert-tg b { color: var(--amber); }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-pending { background: var(--amber-subtle); color: var(--amber); }
.pill-paid { background: var(--green-subtle); color: var(--green); }
.pill-expired { background: var(--bg-subtle); color: var(--muted); border: 1px solid var(--border); }
.pill-cancelled { background: var(--red-subtle); color: var(--red); }

.mode-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
}
.mode-gopay { background: var(--green-subtle); color: var(--green); }
.mode-demo { background: var(--amber-subtle); color: var(--amber); }

.banner-merchant {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--primary-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.banner-merchant b { color: var(--primary); }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--bg-subtle); }

/* ---------- dashboard layout ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand { padding: 2px 10px 18px; }
.side-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.side-item:hover { background: var(--bg-subtle); color: var(--text); text-decoration: none; }
.side-item.active { background: var(--primary-subtle); color: var(--primary); font-weight: 600; }
.side-item .ico {
  width: 17px; text-align: center; font-size: 15px; flex-shrink: 0;
}
.side-footer {
  margin-top: auto;
  padding: 14px 12px 4px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.main { padding: 26px; overflow: hidden; min-width: 0; }
.page { display: none; animation: fadein 0.18s ease; }
.page.active { display: block; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px; }
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .v { font-size: 24px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.stat:hover { border-color: var(--border-strong); }
.stat .l {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat svg { color: var(--primary); }

/* ---------- QR ---------- */
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr-box {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  width: 252px;
  height: 252px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
}
.qr-box img { width: 100%; height: 100%; image-rendering: pixelated; border-radius: 6px; }
.qr-box.placeholder { background: var(--bg-subtle); color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.qr-box .qr-done { color: var(--green); font-size: 52px; }

/* ---------- status hero (pay page) ---------- */
.hero-status {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
}
.status-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.status-icon.pending { background: var(--amber-subtle); color: var(--amber); }
.status-icon.paid { background: var(--green-subtle); color: var(--green); }
.status-icon.expired { background: var(--bg-subtle); color: var(--muted); }

/* ---------- modal ---------- */
#cashierModal {
  position: fixed; inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(2px);
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 16px;
  display: none;
}
#cashierModal:not(.hidden) { display: flex; }
.modal-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 999;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%); }
.toast-box {
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; align-items: center;
}

/* ============================================================
   LANDING — meniru autogopay.site
   ============================================================ */
.hero { border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-bottom: 5rem;
  padding-top: 6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 6fr 6fr; }
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.hero-api-word { position: relative; display: inline-block; color: var(--primary); }
.hero-underline {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 65%, transparent);
}
.hero-sub { margin-top: 1.5rem; max-width: 56ch; font-size: 18px; line-height: 1.625; color: var(--muted); }
.hero-cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }
.hero-cta .btn { padding: 12px 24px; }
.hero-caption { margin-top: 1.25rem; font-size: 12px; color: var(--faint); }
.hero-logo { text-align: center; }
@media (max-width: 1023px) { .hero-logo { display: none; } }

.stat-band { border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.stat-band-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .stat-band-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat-cell { padding: 2.5rem 1.5rem; text-align: center; }
@media (max-width: 639px) { .stat-cell { border-bottom: 1px solid var(--border); } .stat-cell:last-child { border-bottom: 0; } }
@media (min-width: 640px) { .stat-cell + .stat-cell { border-left: 1px solid var(--border); } }
.stat-cell .num { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-cell .lbl { margin-top: 4px; font-size: 14px; color: var(--muted); }

.section { padding: 6rem 0; }
.section h2 {
  max-width: 34rem;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section .sub { margin-top: 1.5rem; max-width: 58ch; font-size: 16px; color: var(--muted); }
.section-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }

.provider-grid {
  margin-top: 3rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.provider-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}
.provider-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.provider-card .topline {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.provider-card:hover .topline { opacity: 1; }
.provider-card .plogo { display: flex; align-items: center; height: 56px; }
.provider-card .plogo img { height: 44px; width: auto; object-fit: contain; object-position: left; }
.provider-card .ptext { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.provider-card .pcode {
  display: block;
  font-family: 'Geist Mono Variable', ui-monospace, monospace;
  font-size: 12px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
}
.provider-card.coming { opacity: 0.6; }
.provider-card.coming .pc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.feature-grid { margin-top: 3rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 2rem; }
.feature-card.wide { grid-column: span 2; }
.feature-card.accent { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--primary-subtle); }
.feature-card.full { grid-column: 1 / -1; }
.f-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
}
.feature-card.accent .f-icon { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.f-icon svg { width: 16px; height: 16px; }
.feature-card h3 { margin-top: 1.25rem; font-size: 16px; font-weight: 600; }
.feature-card p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.feature-card p code { font-size: 12PX; }

.dash-preview { position: relative; margin-top: 3rem; }
.dash-preview .glow {
  position: absolute; inset: -1rem;
  border-radius: 16px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--primary) 10%, transparent), transparent);
}
.dash-preview img {
  position: relative;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--primary) 40%, transparent);
}

.steps-grid { margin-top: 3rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 1px solid var(--border-strong); padding-top: 1.5rem; }
.step .num { font-size: 12px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 8px; font-size: 16px; font-weight: 600; }
.step p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.steps-note { margin-top: 2.5rem; font-size: 14px; color: var(--muted); }

.code-example-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .code-example-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.code-example-grid h2 { max-width: none; }
.code-window { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.code-window .cw-head {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 8px 16px;
  font-family: 'Geist Mono Variable', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}
.code-window .cw-head .dot {
  width: 7px; height: 7px; flex-shrink: 0;
  border-radius: 999px;
}
.code-window pre {
  padding: 16px;
  overflow-x: auto;
  font-family: 'Geist Mono Variable', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--card);
}
.code-window pre .tok-s { color: var(--green); }
.code-window pre .tok-k { color: var(--primary); }
.code-window pre .tok-c { color: var(--faint); }
.code-window pre .tok-kw { color: #7c3aed; }
.code-window pre .tok-n { color: #be185d; }

.footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; color: var(--muted); font-size: 13px; background: var(--bg); }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- auth ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-subtle);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.auth-card .brand { margin-bottom: 20px; }
.auth-card h2 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-foot { margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-foot a { font-weight: 500; }

/* ---------- pagination hint ---------- */
.copy-hint { cursor: pointer; }
.flash { animation: flash 1.2s ease 3; }
@keyframes flash { 0%, 100% { background: var(--card); } 50% { background: var(--primary-subtle); } }