/* ============================================================================
 * GOLDVEST — BULLION PRIVATE DESK DESIGN SYSTEM (Pure CSS, Lighthouse 95+)
 * Deep Navy #131B36 · Metallic Gold #CFA84A · Warm Cream #F8F6EE
 * ============================================================================ */

:root {
  --primary: #131B36;
  --on-primary: #FFFFFF;
  --primary-dark: #0C1226;
  --accent: #CFA84A;
  --on-accent: #131B36;
  --accent-hover: #B89036;
  --accent-soft: #FBF5E6;
  --bg: #F8F6EE;
  --surface: #FFFFFF;
  --surface-alt: #F4EFE2;
  --surface-subtle: #FAF8F2;
  --text: #0F172A;
  --muted: #526077;
  --outline: #E6E1D3;
  --outline-admin: #E2E8F0;

  --success-bg: #DCFCE7;
  --success-fg: #166534;
  --warning-bg: #FEF3C7;
  --warning-fg: #92400E;
  --info-bg: #DBEAFE;
  --info-fg: #1E40AF;
  --neutral-bg: #F1F5F9;
  --neutral-fg: #475569;
  --error-bg: #FEE2E2;
  --error-fg: #991B1B;
  --error: #DC2626;

  --r-sm: 8px;
  --r-md: 10px;
  --r-panel: 12px;
  --r-lg: 16px;
  --r-pill: 9999px;

  --shadow-card: 0 4px 20px rgba(19, 27, 54, 0.06);
  --shadow-hover: 0 8px 28px rgba(19, 27, 54, 0.11);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-md);
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Layout Containers */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1160px; width: 100%; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.container-narrow { max-width: 780px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page-main { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-gap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Demo Banner */
.demo-bar {
  background: var(--warning-bg);
  color: var(--warning-fg);
  border-bottom: 1px solid rgba(146, 64, 14, 0.2);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Public Top Navbar */
.pub-navbar {
  position: sticky; top: 0; z-index: 40;
  height: 64px; background: var(--surface);
  border-bottom: 1px solid var(--outline);
}
.pub-navbar-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--accent);
  border: 1px solid rgba(207, 168, 74, 0.45);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-name { font-size: 16px; font-weight: 800; color: var(--primary); letter-spacing: -0.2px; line-height: 1.1; }
.brand-sub { font-size: 11px; font-weight: 500; color: var(--muted); display: block; margin-top: 2px; }
.pub-nav-links { display: flex; align-items: center; gap: 24px; height: 100%; }
.pub-nav-link {
  height: 100%; display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color 150ms ease, border-color 150ms ease;
}
.pub-nav-link:hover { color: var(--primary); }
.pub-nav-link.active { color: var(--primary); border-bottom-color: var(--accent); }

/* Hero Banner (Deep Navy) */
.hero {
  background: var(--primary);
  color: var(--on-primary);
  border-bottom: 1px solid rgba(207, 168, 74, 0.25);
  background-image: radial-gradient(circle at 78% 18%, rgba(207, 168, 74, 0.2), transparent 55%);
  padding: 36px 0;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 8px;
}
.hero h1 {
  font-size: 32px; line-height: 1.22; font-weight: 800;
  letter-spacing: -0.5px; margin: 0 0 8px; color: #fff;
}
.hero p { font-size: 15px; color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--primary-dark); border: 1px solid rgba(207, 168, 74, 0.35);
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.92);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; display: inline-block; }

/* Typography */
.h1-page { font-size: 28px; font-weight: 800; color: var(--primary); margin: 0; letter-spacing: -0.4px; }
.h2-title { font-size: 20px; font-weight: 700; color: var(--primary); margin: 0; letter-spacing: -0.25px; }
.h3-title { font-size: 16px; font-weight: 700; color: var(--primary); margin: 0; }
.muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2-always { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.grid-split-62 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.grid-split-52 { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; align-items: start; }
.grid-prices-poster { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }

/* Compact Weight Grid & Clean Mobile Price List */
.weight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.weight-grid .pill { justify-content: center; padding: 8px 6px; width: 100%; font-size: 12.5px; }
.area-cascade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 768px) {
  .weight-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .weight-grid .pill { padding: 7px 4px; font-size: 12px; }
  .area-cascade { grid-template-columns: 1fr; gap: 8px; }
}

.brand-tabs-scroll {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.brand-tabs-scroll .pill { flex-shrink: 0; }

.opt-upload {
  border: 1px dashed var(--outline); border-radius: var(--r-md);
  background: var(--surface-subtle); padding: 10px 14px;
}
.opt-upload summary {
  font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.opt-upload summary::-webkit-details-marker { display: none; }
.opt-upload[open] summary { margin-bottom: 12px; }

.trust-inline {
  text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 6px 8px; letter-spacing: 0.1px;
}

.price-desktop-only { display: block; }
.price-mobile-only { display: none; }

.price-mobile-list {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-card);
}
.price-m-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--surface-alt); border-bottom: 1px solid var(--outline);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted);
}
.price-m-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--outline);
  width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; transition: background-color 140ms ease;
}
.price-m-row:last-child { border-bottom: none; }
.price-m-row:active, .price-m-row:hover { background: var(--surface-subtle); }
.price-m-gram { font-size: 15px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.price-m-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.price-m-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.price-m-gv { font-size: 15.5px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.price-m-bonus {
  display: inline-flex; align-items: center; padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--success-bg); color: var(--success-fg); font-size: 10.5px; font-weight: 700;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card-admin {
  background: var(--surface);
  border: 1px solid var(--outline-admin);
  border-radius: var(--r-panel);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.card-hover { transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--outline);
}
.sand-box {
  background: var(--surface-alt);
  border: 1px solid var(--outline);
  border-radius: var(--r-panel);
  padding: 18px;
}
.gold-callout {
  background: var(--accent-soft);
  border: 1px solid rgba(207, 168, 74, 0.45);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-panel);
  padding: 16px 20px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-gold { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn-gold:hover:not(:disabled) { background: var(--accent-hover); }
.btn-navy { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.btn-navy:hover:not(:disabled) { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); }
.btn-outline-gold { background: transparent; border-color: var(--accent); color: var(--primary); }
.btn-outline-gold:hover:not(:disabled) { background: var(--accent-soft); }
.btn-outline-green { background: transparent; border-color: var(--success-fg); color: var(--success-fg); }
.btn-outline-green:hover:not(:disabled) { background: var(--success-bg); }
.btn-ghost { background: transparent; border-color: var(--outline-admin); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-subtle); border-color: var(--primary); }
.btn-danger { background: var(--error-bg); color: var(--error-fg); }
.btn-danger:hover:not(:disabled) { background: #FECACA; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn-full { width: 100%; }

/* Inputs & Form Controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted);
}
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: var(--r-md); border: 1px solid var(--outline);
  background: var(--surface); color: var(--text); font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input-sm, .select-sm { min-height: 36px; padding: 6px 10px; font-size: 13px; border-radius: var(--r-sm); }
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(207, 168, 74, 0.25);
}
.field-err { font-size: 12px; color: var(--error); font-weight: 600; }

/* Pills & Badges */
.pills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--outline); background: var(--accent-soft);
  color: var(--muted); font-size: 13px; font-weight: 600;
  transition: all 150ms ease;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pill-white { background: var(--surface); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success-fg); }
.badge-warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge-info { background: var(--info-bg); color: var(--info-fg); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.badge-error { background: var(--error-bg); color: var(--error-fg); }
.badge-navy { background: var(--primary); color: var(--on-primary); }
.badge-gold { background: var(--accent); color: var(--on-accent); }
.badge-gold-soft { background: var(--accent-soft); color: var(--primary); border: 1px solid rgba(207,168,74,0.45); }

/* Estimation Box */
.est-number {
  font-size: 32px; line-height: 1.15; font-weight: 800;
  color: var(--primary); margin: 4px 0 8px; letter-spacing: -0.5px;
}

/* Upload Dropzones & Camera Capture */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 12px; border: 1.5px dashed var(--outline); border-radius: var(--r-md);
  background: var(--surface-subtle); text-align: center; cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-preview { width: 100%; max-height: 110px; object-fit: cover; border-radius: var(--r-sm); }
.photo-slot {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border: 1px solid var(--outline); border-radius: var(--r-md);
  background: var(--surface);
}
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cam-video {
  width: 100%; border-radius: var(--r-md); background: #0B1124;
  aspect-ratio: 4/3; object-fit: cover;
}

/* Tables */
.table-wrap {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--r-panel); overflow-x: auto; box-shadow: var(--shadow-card);
}
table { width: 100%; border-collapse: collapse; text-align: left; }
thead tr { background: var(--surface-alt); border-bottom: 1px solid var(--outline); }
th {
  padding: 12px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--outline); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-subtle); }
.col-highlight { background: rgba(251, 245, 230, 0.72); font-weight: 800; color: var(--primary); }
.table-center th, .table-center td { text-align: center; }

/* Admin Price Editor Table (anti-terpotong untuk angka hingga 10 digit) */
.price-admin-table th, .price-admin-table td { padding: 8px 5px; }
.price-admin-table th:first-child, .price-admin-table td:first-child { padding-left: 10px; }
.price-admin-table th:last-child, .price-admin-table td:last-child { padding-right: 10px; }
.price-admin-table .price-tbl-input {
  width: 106px; min-width: 100px; padding: 6px 7px; font-size: 12.5px;
  text-align: right; -moz-appearance: textfield; appearance: textfield;
}
.price-admin-table .price-tbl-input::-webkit-outer-spin-button,
.price-admin-table .price-tbl-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Product Catalog Cards */
.prod-thumb {
  position: relative; aspect-ratio: 16/10; border-radius: var(--r-panel);
  background: linear-gradient(135deg, #131B36 0%, #243058 60%, #41341B 100%);
  border: 1px solid var(--outline); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-badge-tl { position: absolute; top: 10px; left: 10px; }
.prod-badge-tr { position: absolute; top: 10px; right: 10px; }

/* Segmented Tabs */
.seg-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
  padding: 5px; background: var(--surface-alt); border: 1px solid var(--outline);
  border-radius: var(--r-pill);
}
.seg-tab {
  padding: 10px 14px; border-radius: var(--r-pill); border: none;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 13px;
  transition: all 150ms ease;
}
.seg-tab.active { background: var(--primary); color: var(--on-primary); }

.line-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--outline-admin); overflow-x: auto; }
.line-tab {
  padding: 10px 4px; border: none; background: transparent;
  border-bottom: 2px solid transparent; font-weight: 600; font-size: 14px; color: var(--muted);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.line-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* Stepper (Track Status) */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neutral-bg); color: var(--neutral-fg); font-weight: 700; font-size: 12px;
}
.step-item.done .step-dot { background: var(--success-bg); color: var(--success-fg); }
.step-item.active .step-dot {
  background: var(--primary); color: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 168, 74, 0.35);
}

/* Public Footer & Mobile Bottom Nav */
.pub-footer {
  background: var(--primary); color: var(--on-primary);
  border-top: 1px solid rgba(207, 168, 74, 0.25);
  padding: 36px 0; margin-top: auto;
}
.pub-footer a { color: rgba(255, 255, 255, 0.8); display: block; margin-top: 6px; }
.pub-footer a:hover { color: var(--accent); }

.mobile-bnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  height: 64px; background: var(--surface); border-top: 1px solid var(--outline);
  grid-template-columns: repeat(5, 1fr);
}
.mobile-bnav-item {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.mobile-bnav-item.active { color: var(--primary); font-weight: 700; }
.mobile-bnav-item.active::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px;
  height: 3px; background: var(--accent); border-radius: 0 0 4px 4px;
}

/* Admin Login Shell */
.auth-shell {
  min-height: 100vh; background: var(--primary);
  background-image: radial-gradient(circle at 50% 22%, rgba(207, 168, 74, 0.18), transparent 58%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-card { width: 100%; max-width: 410px; }

/* Admin Cockpit Shell */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 232px; flex-shrink: 0; background: var(--primary); color: var(--on-primary);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid rgba(207, 168, 74, 0.22);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sb-head {
  height: 64px; padding: 0 18px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-nav { padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 18px; color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px; font-weight: 600; border-left: 3px solid transparent;
  transition: all 140ms ease;
}
.admin-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.11); color: #fff;
  border-left-color: var(--accent);
}
.admin-nav-left { display: inline-flex; align-items: center; gap: 10px; }
.admin-sb-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-x: hidden; }
.admin-topbar {
  position: sticky; top: 0; z-index: 30;
  height: 64px; background: var(--surface); border-bottom: 1px solid var(--outline-admin);
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.admin-body { padding: 24px; flex: 1; }
.mobile-menu-btn { display: none; }

/* KPI & Progress Bar */
.kpi-card { border-top: 3px solid transparent; }
.kpi-card.gold-top { border-top-color: var(--accent); }
.kpi-val { font-size: 24px; font-weight: 800; color: var(--primary); margin: 4px 0; }
.prog-track { width: 100%; height: 9px; border-radius: var(--r-pill); background: var(--neutral-bg); overflow: hidden; }
.prog-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--accent), var(--primary)); }

/* Kanban Pipeline (1 Layar Penuh di Desktop, Tanpa Scroll Samping) */
.kanban-wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding-bottom: 8px; }
.kanban-col {
  background: rgba(244, 239, 226, 0.78); border-radius: var(--r-panel);
  padding: 10px; border-top: 4px solid var(--neutral-fg); min-height: 420px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.kanban-col.st-nego { border-top-color: var(--warning-fg); }
.kanban-col.st-terkunci { border-top-color: var(--accent); }
.kanban-col.st-cod { border-top-color: var(--info-fg); }
.kanban-col.st-selesai { border-top-color: var(--success-fg); }
.kanban-card {
  background: var(--surface); border: 1.5px solid var(--outline); border-radius: var(--r-md);
  padding: 10px; cursor: pointer; transition: all 140ms ease; word-break: break-word;
}
.kanban-card:hover { border-color: var(--accent); }
.kanban-card.selected { border: 2px solid var(--primary); box-shadow: var(--shadow-hover); }

/* Checklist Items */
.chk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--outline-admin); background: var(--surface); cursor: pointer;
}
.chk-row.checked { background: rgba(220, 252, 231, 0.45); border-color: rgba(22, 101, 52, 0.25); }
.chk-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }

/* Toggle Switch */
.switch {
  position: relative; display: inline-flex; width: 40px; height: 22px;
  border-radius: var(--r-pill); background: #CBD5E1; border: none; padding: 2px;
  transition: background-color 150ms ease;
}
.switch.on { background: var(--success-fg); justify-content: flex-end; }
.switch-knob { width: 18px; height: 18px; border-radius: 50%; background: #fff; }

/* Poster Canvas Preview */
.poster-canvas-box {
  background: var(--primary-dark); border-radius: var(--r-panel);
  padding: 14px; border: 2px solid rgba(207, 168, 74, 0.5);
  display: flex; justify-content: center; align-items: center;
}
.poster-canvas-box canvas { width: 100%; height: auto; border-radius: 8px; max-height: 520px; object-fit: contain; cursor: zoom-in; }

/* Charts */
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 16px; border-bottom: 1px solid var(--outline-admin); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-stick { width: 100%; max-width: 38px; border-radius: 6px 6px 0 0; background: var(--primary); transition: height 250ms ease; }
.bar-stick.accent { background: var(--accent); }

/* Modal & Toast (Header & Tombol X selalu menempel di atas saat isi di-scroll) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(19, 27, 54, 0.62); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cam-backdrop { z-index: 75; }
.modal-dialog {
  width: 100%; max-width: 540px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--outline); padding: 0; box-shadow: var(--shadow-hover);
}
.modal-header {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: nowrap; padding: 16px 22px 14px;
  border-bottom: 1px solid var(--outline); background: var(--surface);
}
.modal-title { margin: 0; min-width: 0; font-size: 17px; line-height: 1.3; }
.modal-close-btn { flex-shrink: 0; }
.modal-body { flex: 1; overflow-y: auto; padding: 18px 22px 22px; }
.toast-root {
  position: fixed; top: 18px; right: 18px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  padding: 12px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-hover); display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent; animation: toastIn 180ms ease-out;
}
.toast-success { background: var(--success-bg); color: var(--success-fg); border-color: rgba(22,101,52,0.25); }
.toast-error { background: var(--error-bg); color: var(--error-fg); border-color: rgba(153,27,27,0.25); }
.toast-info { background: var(--info-bg); color: var(--info-fg); border-color: rgba(30,64,175,0.25); }
.toast-warning { background: var(--warning-bg); color: var(--warning-fg); border-color: rgba(146,64,14,0.25); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Accordion FAQ */
details.faq-item {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: var(--r-panel); padding: 16px 18px;
}
details.faq-item summary {
  font-weight: 700; color: var(--primary); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.faq-item p { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--outline); color: var(--muted); }

/* Skeleton Shimmer */
.skel {
  background: linear-gradient(90deg, #EFECE2 25%, #F8F6EE 50%, #EFECE2 75%);
  background-size: 200% 100%; border-radius: 6px; animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Responsive Breakpoints */
@media (max-width: 1260px) {
  .grid-prices-poster { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .grid-2, .grid-split-62, .grid-split-52 { grid-template-columns: 1fr; }
  .kanban-wrap { grid-template-columns: repeat(5, minmax(195px, 1fr)); overflow-x: auto; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-sidebar {
    position: fixed; left: -250px; z-index: 55; transition: left 200ms ease;
  }
  .admin-sidebar.open { left: 0; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .pub-navbar { height: 58px; }
  .pub-navbar-inner { gap: 10px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 10.5px; }
  .pub-nav-links { display: none; }
  .mobile-bnav { display: grid; }
  .app-shell.is-public { padding-bottom: 68px; }
  .container, .container-narrow { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 18px; padding-bottom: 20px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 4px; }
  .hero h1 { font-size: 21px; margin-bottom: 5px; }
  .hero p { font-size: 13px; line-height: 1.45; }
  .h1-page { font-size: 21px; }
  .h2-title { font-size: 17px; }
  .page-main { padding-top: 18px; padding-bottom: 32px; }
  .stack-lg { gap: 18px; }
  .stack-md { gap: 14px; }
  .card { padding: 18px; border-radius: 14px; }
  .sand-box { padding: 15px; }
  .est-number { font-size: 26px; margin: 2px 0 6px; }
  .grid-2 { gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tabs-scroll {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
    scrollbar-width: none;
  }
  .brand-tabs-scroll::-webkit-scrollbar { display: none; }
  .brand-tabs-scroll .pill { padding: 7px 14px; font-size: 12.5px; }
  .price-desktop-only { display: none; }
  .price-mobile-only { display: block; }
  .gold-callout { padding: 16px; }
  .gold-callout .btn { width: 100%; }
  .admin-topbar { padding: 0 18px; }
  .admin-body { padding: 18px; }
}
