/* EksporIn design system | Convix-inspired, orange primary */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* Force flag-emoji rendering on Windows (which lacks native flag glyphs).
   The unicode-range limits this font to regional-indicator + tag characters so
   normal text still uses Inter. */
@font-face {
  font-family: 'TwemojiCountryFlags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}

:root {
  /* Primary palette */
  --orange: #ef4d23;
  --orange-light: #fdece7;
  --orange-dark: #c43a17;
  --dark: #0b0f1a;
  --bg-page: #fafafa;
  --bg-hero: #d9d9d9;
  --bg-tray: #f5f2ee;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #f6f6f4;
  --border-default: #ececec;
  --border-subtle: #f2f2f0;
  /* App shell inner surface — pure white for the dashboard content area */
  --bg-content: #ffffff;
  --text-primary: #0f0f0f;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9a9a9a;
  --text-inverse: #fff;

  /* Semantic */
  --success-bg: #D1FAE5; --success-text: #059669;
  --warning-bg: #FEF3C7; --warning-text: #B45309;
  --danger-bg: #FEE2E2; --danger-text: #B91C1C;
  --info-bg: #DBEAFE; --info-text: #1D4ED8;

  /* Viz */
  --viz-1: #ef4d23; --viz-2: #10B981; --viz-3: #F59E0B; --viz-4: #8B5CF6; --viz-5: #06B6D4; --viz-6: #EC4899;
  --viz-grid: #f0f0ee; --viz-axis: #9a9a9a;

  /* Radius */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-2xl: 28px; --radius-full: 999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-focus: 0 0 0 3px rgba(239,77,35,.2);

  --font: "TwemojiCountryFlags", "Inter", -apple-system, "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 20px; color: var(--text-primary); background: var(--bg-page); -webkit-font-smoothing: antialiased; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* ---------- boot ---------- */
.boot-splash { display: flex; align-items: center; justify-content: center; height: 100vh; background: var(--bg-page); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--orange-light); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- typography ---------- */
.display { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; }
h1, .h1 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; }
h2, .h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
h3, .h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
h4, .h4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-sm { font-size: 13px; line-height: 18px; }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; }
.overline { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .3px; color: var(--text-secondary); }
.numeric-xl { font-size: 32px; line-height: 36px; font-weight: 600; font-feature-settings: "tnum"; }
.numeric-lg { font-size: 24px; line-height: 32px; font-weight: 600; font-feature-settings: "tnum"; }
.muted { color: var(--text-secondary); }
.muted-3 { color: var(--text-tertiary); }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 10px 20px; border-radius: var(--radius-full); border: none; font-size: 14px; font-weight: 500; transition: all .15s ease-out; white-space: nowrap; }
.btn-sm { height: 32px; padding: 6px 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 12px 28px; font-size: 15px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1a1f2e; }
.btn-secondary { background: #fff; border: 1px solid var(--orange); color: var(--orange); }
.btn-secondary:hover { background: var(--orange-light); }
.btn-ghost { background: transparent; color: var(--orange); }
.btn-ghost:hover { background: var(--orange-light); }
.btn-neutral { background: #fff; border: 1px solid var(--border-default); color: var(--text-primary); }
.btn-neutral:hover { background: var(--bg-surface-alt); }
.btn-danger { background: var(--danger-text); color: #fff; border-radius: var(--radius-md); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-upgrade { background: var(--orange); color: #fff; }
.btn-upgrade:hover { filter: brightness(1.08); }

/* ---------- inputs ---------- */
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 10px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: #fff; color: var(--text-primary); outline: none; transition: border .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 90px; resize: vertical; }
.input::placeholder { color: var(--text-tertiary); }
.input:focus { border-color: var(--orange); box-shadow: var(--shadow-focus); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.field .help { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius-full); padding: 4px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill-success { background: var(--success-bg); color: var(--success-text); }
.pill-warning { background: var(--warning-bg); color: var(--warning-text); }
.pill-danger { background: var(--danger-bg); color: var(--danger-text); }
.pill-info { background: var(--info-bg); color: var(--info-text); }
.pill-neutral { background: var(--bg-surface-alt); color: var(--text-secondary); border: 1px solid var(--border-default); }
.pill-violet { background: #EDE9FE; color: #6D28D9; }
.pill-orange { background: var(--orange-light); color: var(--orange); }
.tag { display: inline-block; background: var(--bg-surface-alt); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 2px 8px; font-size: 12px; color: var(--text-secondary); }

/* ---------- layout ---------- */
.app-shell { display: flex; min-height: 100vh; position: relative; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(11, 15, 26, .5); z-index: 40; animation: fade-in .15s ease-out; }
.sidebar-backdrop.open { display: block; }
.sidebar-close { display: none; position: absolute; top: 14px; right: 14px; background: transparent; border: none; padding: 6px; border-radius: 8px; color: var(--text-secondary); cursor: pointer; z-index: 1; }
.sidebar-close:hover { background: var(--bg-surface-alt); color: var(--text-primary); }
.sidebar { width: 260px; min-width: 260px; background: #fff; border-right: 1px solid var(--border-default); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 24px 20px 18px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.sidebar-brand .logo { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--orange); display: flex; align-items: center; justify-content: center; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  margin: 0 14px 18px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: #fff;
}
.sidebar-user .avatar { background: #fff5f0; color: var(--orange); font-weight: 600; }
.sidebar-user .avatar { width: 36px; height: 36px; min-width: 36px; }
.sidebar-user .nm { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .em { font-size: 11px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { padding: 0 14px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  position: relative;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: #f5f5f4; color: var(--text-primary); text-decoration: none; }
.nav-item.active {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #fff5f0;
  z-index: -1;
}
.nav-item.active { isolation: isolate; }
.nav-item.active svg { color: var(--orange); }
.nav-item svg { width: 18px; height: 18px; min-width: 18px; color: var(--text-tertiary); }
.nav-item:hover svg { color: var(--text-secondary); }
.nav-item.active:hover svg { color: var(--orange); }
.nav-item .cnt { margin-left: auto; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; border-radius: var(--radius-full); padding: 1px 6px; }
.nav-sep { margin: 20px 16px 8px; }
.sidebar-cta {
  margin: auto 14px 18px;
  background: linear-gradient(135deg, #ef4d23 0%, #d63f1a 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(239, 77, 35, 0.18);
}
.sidebar-cta h4 { color: #fff; margin-bottom: 4px; font-size: 14px; }
.sidebar-cta p { font-size: 12px; opacity: .92; line-height: 1.4; margin-bottom: 12px; }
.sidebar-cta .btn {
  background: #fff; color: var(--orange);
  height: 32px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  width: 100%; border-radius: 8px;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg-content); }
.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; gap: 16px;
  padding: 0 32px;
  position: sticky; top: 0; z-index: 30;
}
.topbar .input { border: 1px solid var(--border-default); background: var(--bg-page); }
.topbar .input:focus { background: #fff; border-color: var(--orange); }
.topbar-menu { display: none; background: transparent; border: 1px solid var(--border-default); width: 40px; height: 40px; border-radius: var(--radius-md); align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); }
.topbar-menu:hover { background: var(--bg-surface-alt); }
.topbar-menu svg { width: 20px; height: 20px; }
.topbar-brand-mobile { display: none; align-items: center; gap: 8px; font-size: 15px; }
.topbar-brand-mobile svg { width: 18px; height: 18px; }
.topbar .search-wrap { position: relative; flex: 1; max-width: 480px; }
.topbar .search-wrap svg { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; color: var(--text-tertiary); }
.topbar .search-wrap .input { padding-left: 38px; border-radius: var(--radius-full); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bell { position: relative; width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--border-default); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.bell:hover { background: var(--bg-surface-alt); }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.content { padding: 24px 32px 64px; max-width: 1440px; width: 100%; margin: 0 auto; background: var(--bg-content); min-height: calc(100vh - 64px); }

/* ---------- cards (clean, neutral for dashboard) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: 0 4px 12px rgba(15, 15, 15, 0.05); }
.card-compact { padding: 18px; }
.metric-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: none;
}
.metric-card .numeric-lg { color: var(--text-primary); letter-spacing: -0.01em; }

/* ---------- Falcon-style feature cards (landing) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 233, 218, 0.96);
  border-radius: 20px;
  box-shadow:
    4px 14px 24px rgba(44, 35, 29, 0.08),
    0 2px 6px rgba(44, 35, 29, 0.03);
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 320px;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow:
    6px 20px 32px rgba(44, 35, 29, 0.12),
    0 3px 8px rgba(44, 35, 29, 0.04);
}
.feature-panel {
  margin: 12px 12px 0;
  border-radius: 16px 16px 12px 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 75%, rgba(255, 225, 207, 0.35), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 243, 0.94));
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-copy {
  position: relative;
  padding: 22px 24px 22px;
}
.feature-copy h3 {
  margin: 0 0 8px;
  color: #292929;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.feature-copy p {
  margin: 0;
  color: #777;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  padding-right: 36px;
}
.feature-corner {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffdfca;
  color: #ef4d23;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-corner svg { width: 14px; height: 14px; }
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.metric-card .lbl { font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.metric-card .delta-up { color: var(--success-text); font-size: 12px; font-weight: 600; }
.metric-card .delta-down { color: var(--danger-text); font-size: 12px; font-weight: 600; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.hero-card {
  background:
    radial-gradient(circle at 90% 20%, rgba(239, 77, 35, 0.05), transparent 60%),
    #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.03);
}
.hero-card h1 { color: var(--text-primary); letter-spacing: -0.02em; }
.hero-card .hs-code-chip {
  background: #fff5f0;
  color: var(--orange);
  border: 1px solid #ffdcd0;
}

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th { background: var(--bg-surface-alt); color: var(--text-secondary); font-size: 12px; font-weight: 600; letter-spacing: .2px; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-default); white-space: nowrap; cursor: default; }
.tbl thead th.sortable { cursor: pointer; user-select: none; }
.tbl thead th.sortable:hover { color: var(--text-primary); }
.tbl tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--bg-surface-alt); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl .r { text-align: right; }
.row-blurred td { filter: blur(5px); pointer-events: none; user-select: none; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--border-default); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--text-secondary); border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 600; }

/* ---------- avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--orange-light); color: var(--orange); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; border: 1px solid var(--border-default); border-left: 3px solid var(--orange); border-radius: var(--radius-md); padding: 12px 16px; box-shadow: var(--shadow-md); font-size: 13px; max-width: 380px; animation: toast-in .2s ease-out; }
.toast.err { border-left-color: var(--danger-text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,15,26,.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade-in .15s ease-out; }
.modal { background: #fff; border-radius: var(--radius-xl); max-width: 560px; width: 100%; padding: 32px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; animation: modal-in .2s ease-out; position: relative; }
.modal-wide { max-width: 760px; }
.modal .close-x { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-tertiary); width: 32px; height: 32px; border-radius: var(--radius-md); }
.modal .close-x:hover { background: var(--bg-surface-alt); color: var(--text-primary); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: scale(.95); } }

/* ---------- misc components ---------- */
.empty { text-align: center; padding: 48px 24px; }
.empty .ic { font-size: 40px; margin-bottom: 12px; }
.skeleton { background: linear-gradient(90deg, var(--border-subtle) 25%, var(--bg-surface-alt) 50%, var(--border-subtle) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.banner { display: flex; align-items: center; gap: 10px; border-radius: var(--radius-md); padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.banner-warning { background: var(--warning-bg); color: var(--warning-text); }
.banner-info { background: var(--info-bg); color: var(--info-text); }
.progressbar { height: 6px; background: var(--border-subtle); border-radius: 3px; overflow: hidden; }
.progressbar > div { height: 100%; background: var(--orange); border-radius: 3px; transition: width .3s; }
.progressbar.warn > div { background: var(--warning-text); }
.flag { font-size: 16px; }
.divider { border: none; border-top: 1px dotted var(--border-default); margin: 20px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-tertiary); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--orange); }

/* score gauge */
.gauge-wrap { display: flex; align-items: center; gap: 16px; }
.score-bars .sb-row { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.score-bars .sb-track { height: 8px; background: var(--border-subtle); border-radius: 4px; overflow: hidden; }
.score-bars .sb-fill { height: 100%; border-radius: 4px; background: var(--orange); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.kanban-col { background: var(--bg-surface-alt); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 14px; min-height: 120px; }
.kanban-col h5 { font-size: 12px; font-weight: 600; letter-spacing: .2px; color: var(--text-secondary); margin-bottom: 10px; display: flex; justify-content: space-between; }
.kanban-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 8px; box-shadow: var(--shadow-xs); cursor: pointer; transition: all .12s; }
.kanban-card:hover { box-shadow: var(--shadow-sm); border-color: var(--orange); transform: translateY(-1px); }
.kanban-card .knm { font-weight: 600; font-size: 13px; margin-bottom: 4px; }

/* HS explorer */
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hs-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 22px; cursor: pointer; transition: all .15s; }
.hs-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.hs-code-chip { display: inline-block; background: var(--orange-light); color: var(--orange); font-weight: 700; font-size: 13px; border-radius: var(--radius-sm); padding: 3px 8px; font-feature-settings: "tnum"; }

/* search layout */
.search-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.filter-panel { position: sticky; top: 88px; }
.filter-group { margin-bottom: 18px; }
.filter-group h5 { font-size: 12px; font-weight: 600; letter-spacing: .2px; color: var(--text-secondary); margin-bottom: 8px; }

/* auth pages */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  min-height: 100vh;
}
.auth-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
}
.auth-bg-tint {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 12, 6, 0.15) 0%, rgba(20, 12, 6, 0.55) 100%),
    radial-gradient(circle at 25% 25%, rgba(239, 77, 35, 0.25), transparent 55%);
}
.auth-brand {
  position: relative;
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px;
  color: #fff;
  align-self: flex-start;
  order: -1;
  margin-bottom: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.auth-brand svg circle { fill: #fff !important; }

/* Glassmorphism copy card */
.auth-glass {
  position: relative;
  z-index: 2;
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
  max-width: 480px;
}
.auth-glass h1 {
  color: #fff;
  font-size: 32px;
  line-height: 38px;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.auth-glass h1 .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #ffdfca;
}
.auth-glass p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 22px;
  margin: 0 0 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.auth-checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.auth-checklist li {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.chk-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  backdrop-filter: blur(4px);
}
.chk-dot::before {
  content: '';
  width: 8px; height: 4px;
  border-left: 1.8px solid var(--orange);
  border-bottom: 1.8px solid var(--orange);
  transform: rotate(-45deg) translate(1px, -1px);
}
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg-page); }
.auth-card { width: 100%; max-width: 420px; }

/* onboarding */
.wizard { max-width: 640px; margin: 40px auto; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.wizard-steps > div { flex: 1; height: 4px; border-radius: 2px; background: var(--border-default); }
.wizard-steps > div.done { background: var(--orange); }
.option-card { border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; background: #fff; transition: all .12s; }
.option-card:hover { border-color: var(--orange); }
.option-card.selected { border-color: var(--orange); background: var(--orange-light); }

/* plan cards */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card { border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 24px; background: #fff; display: flex; flex-direction: column; }
.plan-card.current { border-color: var(--orange); box-shadow: var(--shadow-focus); }
.plan-card .pr { font-size: 26px; font-weight: 700; margin: 8px 0 2px; }
.plan-card ul { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-secondary); flex: 1; }
.plan-card ul li::before { content: '\2713  '; color: var(--orange); font-weight: 700; }

/* alerts */
.alert-row { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border-subtle); background: #fff; }
.alert-row.unread { background: var(--orange-light); }
.alert-ic { width: 38px; height: 38px; min-width: 38px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 17px; }

/* mask chip */
.masked-chip { background: var(--bg-surface-alt); border: 1px dashed var(--border-default); border-radius: var(--radius-sm); padding: 2px 8px; color: var(--text-tertiary); font-size: 12px; }

/* ---------- Landing page ---------- */
.landing-wrap { min-height: 100vh; width: 100%; background: #ededed; padding: 12px; }
@media (min-width: 640px) { .landing-wrap { padding: 16px; } }

/* Hero container — clipped, rounded, background video */
.landing-hero-container { position: relative; width: 100%; height: calc(100vh - 24px); overflow: hidden; background: #d9d9d9; border-radius: 16px; display: flex; flex-direction: column; }
@media (min-width: 640px) { .landing-hero-container { height: calc(100vh - 32px); border-radius: 24px; } }
.landing-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.landing-video-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.1); }
.landing-fg { position: relative; z-index: 10; display: flex; flex-direction: column; height: 100%; }

/* Floating pill navbar */
.pill-nav-wrap { display: flex; justify-content: center; padding: 16px 12px 0; }
@media (min-width: 640px) { .pill-nav-wrap { padding: 24px 16px 0; } }
.pill-nav { background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid #e5e5e5; padding: 8px 8px 8px 8px; display: flex; align-items: center; width: 100%; max-width: 760px; position: relative; }
.pill-logo { display: flex; align-items: center; gap: 8px; padding: 0 8px; flex-shrink: 0; font-weight: 700; font-size: 15px; color: #0f0f0f; }
.pill-logo .flower-logo { width: 28px; height: 28px; }
@media (min-width: 640px) { .pill-logo .flower-logo { width: 32px; height: 32px; } }
.pill-nav-links { display: none; gap: 24px; margin: 0 auto; font-size: 14px; font-weight: 500; }
@media (min-width: 768px) { .pill-nav-links { display: flex; } }
.pill-nav-links a { color: #0f0f0f; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pill-nav-links a:hover { color: var(--orange); text-decoration: none; }
.pill-nav-links a.chev { color: var(--orange); }
.pill-nav-links a.active .dot { width: 6px; height: 6px; border-radius: 50%; background: #0f0f0f; display: inline-block; margin-right: 4px; }
.pill-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pill-signin { display: none; font-size: 13px; font-weight: 500; color: #0f0f0f; text-decoration: none; padding: 0 8px; }
.pill-signin:hover { color: var(--orange); text-decoration: none; }
@media (min-width: 768px) { .pill-signin { display: inline-flex; } }
.pill-cta { background: var(--orange); color: #fff; border: none; border-radius: 999px; padding: 6px 6px 6px 16px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.pill-cta:hover { background: var(--orange-dark); text-decoration: none; color: #fff; }
.pill-cta .arrow-circle { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.pill-cta .cta-full { display: none; }
.pill-cta .cta-short { display: inline; }
@media (min-width: 640px) { .pill-cta .cta-full { display: inline; } .pill-cta .cta-short { display: none; } }
.pill-menu { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 6px; cursor: pointer; color: #0f0f0f; border-radius: 8px; }
.pill-menu:hover { background: #f5f5f5; }
@media (min-width: 768px) { .pill-menu { display: none; } }
.pill-menu-panel { display: none; position: absolute; top: 100%; left: 8px; right: 8px; margin-top: 8px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.12); border: 1px solid #e5e5e5; padding: 12px; z-index: 20; flex-direction: column; gap: 2px; }
.pill-menu-panel.open { display: flex; }
.pill-menu-panel a { color: #0f0f0f; text-decoration: none; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.pill-menu-panel a:hover { background: #f5f5f5; color: var(--orange); text-decoration: none; }
.pill-menu-panel .dot { width: 6px; height: 6px; border-radius: 50%; background: #0f0f0f; display: inline-block; }

/* Hero content */
.hero-content { display: flex; flex-direction: column; align-items: center; padding: 40px 16px 32px; text-align: center; flex-shrink: 0; }
@media (min-width: 640px) { .hero-content { padding: 64px 16px 48px; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 13px; font-weight: 500; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-headline { margin-top: 20px; max-width: 900px; font-size: clamp(36px, 8vw, 72px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; color: #0f0f0f; }
@media (min-width: 640px) { .hero-headline { margin-top: 24px; } }
.hero-headline .serif-italic { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.hero-sub { margin-top: 16px; color: #404040; font-size: clamp(13px, 3.5vw, 16px); max-width: 560px; padding: 0 8px; line-height: 1.5; }
@media (min-width: 640px) { .hero-sub { margin-top: 24px; } }
.hero-cta { margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; background: #0b0f1a; color: #fff; border-radius: 999px; padding: 8px 8px 8px 24px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; text-decoration: none; }
.hero-cta:hover { background: #1a1f2e; text-decoration: none; color: #fff; }
@media (min-width: 640px) { .hero-cta { margin-top: 32px; padding: 10px 10px 10px 28px; } }
.hero-cta .arrow-circle { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
@media (min-width: 640px) { .hero-cta .arrow-circle { width: 28px; height: 28px; } }
.hero-demo-hint { margin-top: 12px; font-size: 12px; color: rgba(15,15,15,.6); }
.hero-demo-hint a { color: #0f0f0f; font-weight: 500; text-decoration: underline; }

/* Dashboard preview tray */
.dash-preview-wrap { padding: 0 12px; margin-top: auto; }
@media (min-width: 640px) { .dash-preview-wrap { padding: 0 16px; } }
.dash-preview-tray { background: #f5f2ee; border-radius: 24px; padding: 16px; width: 100%; max-width: 880px; margin: 0 auto; }
@media (min-width: 640px) { .dash-preview-tray { padding: 24px; } }
.dash-preview-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .dash-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .dash-preview-grid { grid-template-columns: repeat(3, 1fr); } }
.preview-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.preview-card:hover { box-shadow: 0 4px 12px rgba(15, 15, 15, 0.05); }
.preview-card .pc-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.preview-card .pc-header .label { color: var(--orange); font-weight: 600; }
.preview-card .pc-header .muted { color: #737373; }
.preview-card .pc-big { font-size: 28px; font-weight: 600; margin-bottom: 4px; color: #0f0f0f; }
.preview-card .pc-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.preview-card .pc-small { font-size: 11px; color: #737373; margin-bottom: 12px; }
.pc-pill-danger { display: inline-flex; align-items: center; gap: 4px; background: #fef2f2; color: #dc2626; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 500; }
.pc-pill-neutral { display: inline-flex; align-items: center; gap: 4px; background: #f5f5f5; color: #525252; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 500; }
.pc-target-label { text-align: center; font-size: 11px; color: #737373; margin-bottom: 4px; }

/* Preview form card */
.preview-form { display: flex; flex-direction: column; gap: 12px; }
.pc-form-group { display: flex; flex-direction: column; gap: 4px; }
.pc-form-group label { font-size: 12px; color: #404040; font-weight: 500; }
.pc-select, .pc-input { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid #e5e5e5; border-radius: 8px; padding: 8px 12px; font-size: 13px; background: #fff; color: #0f0f0f; text-align: left; cursor: pointer; }
.pc-select { width: 100%; }
.pc-input { color: #0f0f0f; }
.pc-input .pc-hash { color: var(--orange); font-weight: 600; }
.pc-form-footer { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pc-save { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 8px 20px; font-size: 13px; font-weight: 500; cursor: pointer; }
.pc-save:hover { background: var(--orange-dark); }
.pc-cancel { text-decoration: underline; color: #404040; font-size: 13px; cursor: pointer; }
.pc-x { margin-left: auto; background: transparent; border: none; color: #737373; cursor: pointer; padding: 4px; display: inline-flex; }
.pc-x:hover { color: #0f0f0f; }

/* Arc gauge */
.arc-gauge { display: flex; flex-direction: column; align-items: center; }
.arc-gauge-labels { display: flex; justify-content: space-between; width: 100%; max-width: 200px; font-size: 11px; color: #737373; }

/* toggle pill */
.toggle-pill { display: flex; background: #f5f5f5; border-radius: 999px; padding: 3px; gap: 2px; margin-top: 10px; }
.toggle-pill button { border: none; background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 500; color: #737373; cursor: pointer; flex: 1; }
.toggle-pill button.active { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); color: #0f0f0f; }

/* Landing sections (below hero) */
.landing-section { padding: 64px 24px; }
.landing-section-inner { max-width: 1100px; margin: 0 auto; }
/* ---------- Hero commodity search demo ---------- */
.hero-try { width: 100%; max-width: 620px; margin: 32px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-try-label { text-align: center; }
.hero-try-label b { display: block; font-size: 18px; color: #0f0f0f; font-weight: 600; letter-spacing: -0.01em; }
.hero-search {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px;
  background: #0b0f1a;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(11, 15, 26, 0.18);
  color: #fff;
}
.hero-search svg { color: rgba(255,255,255,0.55); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 10px 4px;
  font-family: inherit;
}
.hero-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.hero-search button {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s ease;
}
.hero-search button:hover:not(:disabled) { background: var(--orange-dark); }
.hero-search button:disabled { opacity: 0.7; cursor: wait; }

.hero-results { width: 100%; background: #fff; border: 1px solid var(--border-default); border-radius: 16px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); text-align: left; }
.hero-results-head { font-size: 12px; color: var(--text-tertiary); padding: 6px 10px 10px; border-bottom: 1px dashed var(--border-subtle); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }
.hero-results-list { display: flex; flex-direction: column; gap: 4px; }
.hero-result-row { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; transition: background .1s; }
.hero-result-row:hover { background: #fafaf8; }
.hero-result-hs { background: #fff5f0; color: var(--orange); font-weight: 700; font-size: 12px; padding: 4px 8px; border-radius: 6px; text-align: center; font-feature-settings: "tnum"; }
.hero-result-desc { font-size: 13px; color: var(--text-primary); line-height: 1.35; }
.hero-result-blur { filter: blur(4px); user-select: none; pointer-events: none; opacity: 0.65; }
.hero-results-lock { margin-top: 10px; padding: 10px 12px; background: #fff5f0; border: 1px dashed var(--orange); border-radius: 10px; font-size: 12px; color: var(--orange); font-weight: 500; text-align: center; }
.hero-results-loading, .hero-results-empty { padding: 20px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.hero-cta-below { margin-top: 8px; display: inline-flex; }

/* ---------- Landing section shared ---------- */
.landing-section-alt { background: var(--bg-surface); }
.section-eyebrow { text-align: center; margin-bottom: 10px; font-size: 12px; color: var(--orange); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.section-title { text-align: center; font-size: 32px; line-height: 1.15; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.section-lead { text-align: center; max-width: 560px; margin: 0 auto 40px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* Cara Kerja */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-card { background: #fff; border: 1px solid var(--border-default); border-radius: 16px; padding: 24px; transition: box-shadow .15s ease, border-color .15s ease; }
.how-card:hover { border-color: #d4d4d4; box-shadow: 0 4px 16px rgba(15,15,15,0.05); }
.how-num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--orange); background: #fff5f0; padding: 4px 10px; border-radius: 8px; margin-bottom: 14px; font-feature-settings: "tnum"; letter-spacing: 0.02em; }
.how-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--text-primary); letter-spacing: -0.01em; }
.how-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.how-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.how-chips span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--bg-surface-alt); color: var(--text-secondary); font-weight: 500; }
@media (max-width: 1100px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .how-grid { grid-template-columns: 1fr; } }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: 28px; background: linear-gradient(180deg, #fff5f0 0%, #ffffff 100%); border: 1px solid var(--border-default); border-radius: 20px; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--orange); letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.stats-strip p { color: var(--text-secondary); font-size: 13px; margin: 4px 0 0; }
@media (max-width: 640px) { .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px; } .stat-num { font-size: 26px; } }

/* Testimoni */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { position: relative; background: #fff; border: 1px solid var(--border-default); border-radius: 16px; padding: 28px 24px 22px; }
.testi-quote-mark { position: absolute; top: 12px; right: 18px; font-family: Georgia, serif; font-size: 48px; line-height: 1; color: var(--orange); opacity: 0.4; font-weight: 700; }
.testi-text { color: var(--text-primary); font-size: 14px; line-height: 1.6; margin: 0 0 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff5f0; color: var(--orange); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.testi-author b { display: block; font-size: 13px; color: var(--text-primary); }
.testi-author div div { font-size: 12px; color: var(--text-secondary); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card { position: relative; background: #fff; border: 1px solid var(--border-default); border-radius: 16px; padding: 28px 22px; display: flex; flex-direction: column; }
.price-card-featured { border-color: var(--orange); box-shadow: 0 8px 24px rgba(239,77,35,0.12); transform: translateY(-4px); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em; text-transform: uppercase; }
.price-name { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.price-desc { font-size: 12px; color: var(--text-secondary); margin: 2px 0 16px; }
.price-amt { margin-bottom: 20px; }
.price-amt b { font-size: 26px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.price-amt span { font-size: 12px; color: var(--text-secondary); margin-left: 4px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.price-feats li { padding: 6px 0 6px 22px; position: relative; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.price-feats li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--orange); font-weight: 700; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } .price-card-featured { transform: none; } }

/* Landing CTA */
.landing-cta { padding: 64px 24px; background: linear-gradient(135deg, #0b0f1a 0%, #1a1f2e 100%); color: #fff; }
.landing-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; max-width: 1100px; margin: 0 auto; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 40px 48px; }
.landing-cta-inner h2 { color: #fff; font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.landing-cta-inner p { color: rgba(255,255,255,0.7); max-width: 480px; font-size: 14px; line-height: 1.5; margin: 0; }
.landing-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) { .landing-cta-inner { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; } .landing-cta-actions { justify-content: center; } }

/* ---------- Admin live activity feed ---------- */
.admin-feed-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-default);
}
.admin-feed-row:last-child { border-bottom: none; }
.admin-feed-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #fff5f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.admin-feed-body { flex: 1; min-width: 0; }
.admin-feed-body .body-sm { color: var(--text-primary); word-break: break-word; }
.admin-feed-body .caption { margin-top: 3px; }

/* ---------- Legal pages (Terms, Privacy, Refund) ---------- */
.legal-page {
  min-height: 100vh;
  background: var(--bg-page);
  padding: 32px 20px 80px;
}
.legal-topbar {
  max-width: 780px;
  margin: 0 auto 24px;
}
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 14px; text-decoration: none;
  padding: 8px 14px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border-default);
  transition: color .15s ease, border-color .15s ease;
}
.legal-back:hover { color: var(--orange); border-color: #ffdcd0; }
.legal-article {
  max-width: 780px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 48px 56px;
  box-shadow: 0 1px 3px rgba(15,15,15,0.03);
}
.legal-header { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--border-default); }
.legal-header h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--text-primary); }
.legal-updated { color: var(--text-tertiary); font-size: 13px; margin: 0; }
.legal-body h2 { font-size: 18px; margin: 32px 0 12px; color: var(--text-primary); letter-spacing: -0.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--text-secondary); line-height: 1.7; font-size: 15px; margin: 0 0 14px; }
.legal-body ul { color: var(--text-secondary); line-height: 1.7; font-size: 15px; padding-left: 20px; margin: 0 0 14px; }
.legal-body ul li { margin-bottom: 6px; }
.legal-body a { color: var(--orange); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-foot {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-default);
  color: var(--text-tertiary); font-size: 13px;
}
.legal-foot p { margin: 0; }
.legal-foot a { color: var(--orange); text-decoration: none; }
@media (max-width: 720px) {
  .legal-article { padding: 32px 24px; border-radius: 16px; }
  .legal-header h1 { font-size: 26px; }
}

/* ---------- Admin Login (dedicated /admin/login page) ---------- */
.admin-login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 20% 20%, #fff5f0 0%, transparent 55%),
              radial-gradient(circle at 80% 80%, #fef0e8 0%, transparent 50%),
              var(--bg-page);
}
.admin-login-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 10px 40px rgba(15,15,15,0.06), 0 2px 8px rgba(15,15,15,0.04);
}
.admin-login-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border-default);
}
.admin-login-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-login-logo svg { width: 22px; height: 22px; }
.admin-login-title { font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.admin-login-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--orange); margin-top: 2px; }
.admin-login-h { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--text-primary); }
.admin-login-sub { color: var(--text-secondary); font-size: 13px; margin: 0 0 20px; }
.admin-login-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-default);
  text-align: center;
}
.admin-login-foot a { color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.admin-login-foot a:hover { color: var(--orange); }

/* ---------- Admin Console (matches user dashboard UI/UX) ---------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg-page);
}
.admin-side {
  width: 260px; min-width: 260px;
  background: #fff;
  border-right: 1px solid var(--border-default);
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.admin-side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 16px;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.admin-side-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.admin-side-brand b { display: block; font-size: 17px; color: var(--text-primary); font-weight: 700; }
.admin-side-role {
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}
.admin-side-user {
  display: flex; align-items: center; gap: 10px;
  margin: 0 14px 18px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: #fff;
}
.admin-side-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff5f0;
  color: var(--orange);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-side-name {
  color: var(--text-primary);
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-side-email {
  color: var(--text-tertiary);
  font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-nav {
  padding: 0 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  position: relative;
  transition: background .12s, color .12s;
}
.admin-nav-item:hover {
  background: #f5f5f4;
  color: var(--text-primary);
  text-decoration: none;
}
.admin-nav-item.active {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  isolation: isolate;
}
.admin-nav-item.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #fff5f0;
  z-index: -1;
}
.admin-nav-ic { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); flex-shrink: 0; }
.admin-nav-ic svg { width: 18px; height: 18px; }
.admin-nav-item.active .admin-nav-ic { color: var(--orange); }

.admin-side-foot {
  margin-top: auto;
  padding: 16px 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border-subtle);
}
.admin-side-back {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  border-radius: 8px;
}
.admin-side-back:hover { color: var(--text-primary); background: #f5f5f4; text-decoration: none; }
.admin-side-logout {
  display: block;
  padding: 8px 12px;
  color: var(--danger-text);
  font-size: 12px;
  text-decoration: none;
  border-radius: 8px;
}
.admin-side-logout:hover { background: rgba(239, 68, 68, 0.08); text-decoration: none; }

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column;
  background: var(--bg-content);
}
.admin-topbar {
  height: 64px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--border-default);
  position: sticky; top: 0; z-index: 30;
}
.admin-topbar-left { min-width: 0; }
.admin-crumb {
  font-size: 11px; font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-h1 {
  margin: 2px 0 0;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.admin-topbar-right { display: flex; gap: 10px; align-items: center; }
.admin-pill {
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500;
}

.admin-content {
  padding: 24px 32px 64px;
  max-width: 1440px; width: 100%;
  margin: 0 auto;
}
.admin-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
}
.admin-loading .spinner { width: 18px; height: 18px; border-width: 2px; }

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.admin-kpi {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 18px 20px;
  transition: box-shadow .15s ease;
}
.admin-kpi:hover { box-shadow: 0 4px 12px rgba(15, 15, 15, 0.05); }
.admin-kpi-hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(239, 77, 35, 0.08), transparent 55%),
    #fff;
  border: 1px solid #ffdcd0;
}
.admin-kpi-hero .admin-kpi-num { color: var(--orange); }
.admin-kpi-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  font-weight: 600;
}
.admin-kpi-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0 2px;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.admin-kpi-hint { font-size: 11px; color: var(--text-tertiary); }

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-panel {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
}
.admin-panel h3 {
  font-size: 15px;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.admin-count {
  color: var(--text-secondary);
  font-size: 12px;
  margin-left: auto;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr 90px;
  gap: 12px; align-items: center;
  padding: 4px 0;
}
.admin-bar {
  height: 8px;
  background: var(--bg-page);
  border-radius: 4px;
  overflow: hidden;
}
.admin-bar > div {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
  transition: width .3s;
}

.admin-list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dotted var(--border-subtle);
  font-size: 13px;
}
.admin-list-row:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-side {
    position: fixed;
    left: 0; top: 0;
    height: 100dvh;
    width: min(300px, 88vw);
    z-index: 50;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform .25s ease-out;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .admin-side.open { transform: translateX(0); }
  .admin-topbar { padding: 0 16px; height: 60px; }
  .admin-content { padding: 16px 14px 48px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Quick Search preview page ---------- */
.qs-page { max-width: 1120px; margin: 0 auto; padding: 20px 24px 80px; background: #fff; min-height: 100vh; }
.qs-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 24px; border-bottom: 1px solid var(--border-default); margin-bottom: 32px; }
.qs-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text-primary); text-decoration: none; }
.qs-brand svg { width: 28px; height: 28px; }
.qs-nav-right { display: flex; gap: 10px; align-items: center; }
.qs-back { display: inline-block; margin-bottom: 12px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.qs-back:hover { color: var(--orange); text-decoration: none; }
.qs-header h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; color: var(--text-primary); }
.qs-header .qs-query { color: var(--orange); }
.qs-sub { color: var(--text-secondary); font-size: 14px; line-height: 1.5; max-width: 640px; margin: 0 0 20px; }
.qs-search {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 16px;
  background: #0b0f1a;
  border-radius: 999px;
  max-width: 640px;
  color: #fff;
}
.qs-search svg { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.qs-search input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: #fff; font-size: 15px; padding: 10px 4px; font-family: inherit;
}
.qs-search input::placeholder { color: rgba(255,255,255,0.4); }
.qs-search button {
  background: var(--orange); color: #fff;
  border: none; border-radius: 999px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.qs-search button:hover { background: var(--orange-dark); }

.qs-body { margin: 32px 0 24px; }
.qs-loading { padding: 60px 20px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.qs-loading .spinner { display: inline-block; width: 18px; height: 18px; border-width: 2px; margin-right: 8px; vertical-align: middle; }

.qs-hs-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding: 20px; background: #fff5f0; border: 1px solid #ffdcd0; border-radius: 14px; margin-bottom: 24px; }
.qs-hs-summary h3 { font-size: 16px; margin: 8px 0 0; color: var(--text-primary); font-weight: 500; }
.qs-hs-summary .hs-code-chip { margin-right: 8px; }
.qs-hs-alts { display: flex; flex-wrap: wrap; gap: 6px; max-width: 500px; justify-content: flex-end; }
.qs-hs-alt-chip { background: #fff; border: 1px solid var(--border-default); color: var(--text-secondary); font-size: 11px; padding: 4px 10px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: all .12s; }
.qs-hs-alt-chip:hover { border-color: var(--orange); color: var(--orange); }

.qs-buyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; }
.qs-buyer-card { background: #fff; border: 1px solid var(--border-default); border-radius: 16px; padding: 20px; transition: box-shadow .15s ease; position: relative; overflow: hidden; }
.qs-buyer-card:hover { box-shadow: 0 4px 16px rgba(15,15,15,0.06); }
.qs-buyer-card.is-blurred { position: relative; }
.qs-buyer-card.is-blurred .qs-buyer-name,
.qs-buyer-card.is-blurred .qs-buyer-meta,
.qs-buyer-card.is-blurred .qs-buyer-stats,
.qs-buyer-card.is-blurred .qs-buyer-contact { filter: blur(5px); user-select: none; pointer-events: none; }
.qs-buyer-card.is-blurred::after {
  content: '🔒 Daftar untuk lihat';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  filter: none !important;
}
.qs-buyer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qs-buyer-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff5f0; color: var(--orange); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qs-buyer-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.qs-buyer-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.qs-buyer-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-bottom: 14px; padding: 12px; background: var(--bg-page); border-radius: 10px; }
.qs-buyer-stats span { display: block; font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2px; }
.qs-buyer-stats b { font-size: 13px; color: var(--text-primary); font-feature-settings: "tnum"; }
.qs-buyer-contact { border-top: 1px dashed var(--border-default); padding-top: 12px; }
.qs-buyer-contact-masked { font-size: 12px; color: var(--text-tertiary); font-family: monospace; margin-top: 4px; }

.qs-unlock { text-align: center; padding: 14px 20px; background: #fff5f0; border: 1px dashed var(--orange); border-radius: 12px; font-size: 13px; color: var(--orange); font-weight: 500; margin-top: 20px; }
.qs-unlock b { font-weight: 700; }

.qs-cta {
  margin-top: 40px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b0f1a 0%, #1a1f2e 100%);
  color: #fff;
}
.qs-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.qs-cta-inner h2 { color: #fff; font-size: 22px; margin: 0 0 6px; letter-spacing: -0.02em; }
.qs-cta-inner p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; max-width: 520px; line-height: 1.5; }
@media (max-width: 900px) {
  .qs-cta { padding: 28px 20px; }
  .qs-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .qs-hs-summary { flex-direction: column; }
  .qs-hs-alts { justify-content: flex-start; }
}

/* Footer */
.landing-footer { padding: 56px 24px 32px; border-top: 1px solid var(--border-default); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border-default); display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all .12s; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; text-decoration: none; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin: 0 0 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; color: var(--text-primary); padding: 4px 0; text-decoration: none; }
.footer-col a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border-default); text-align: center; font-size: 12px; color: var(--text-tertiary); line-height: 1.5; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; max-width: none; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Discovery engine pipeline */
.pipeline-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; position: relative; }
.pipeline-step { padding: 16px; border-radius: var(--radius-lg); background: var(--bg-surface-alt); text-align: center; position: relative; }
.pipeline-step.active { background: var(--orange-light); border: 1px solid var(--orange); }
.pipeline-step.done { background: var(--success-bg); }
.pipeline-step .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pipeline-step.done .step-num { background: var(--success-text); }
.pipeline-connector { position: absolute; top: 50%; right: -8px; width: 14px; height: 2px; background: var(--border-default); z-index: 1; }

/* Lead card */
.lead-card {
  position: relative;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.lead-card:hover { box-shadow: 0 4px 12px rgba(15, 15, 15, 0.05); border-color: #ddd; }
/* Hot/warm variants: no left bar, no colored bg — just a tiny chip in the header. */
.lead-card.hot::before,
.lead-card.warm::before {
  content: attr(data-badge);
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
}
.lead-card.hot::before { content: 'HOT'; background: #fef2f2; color: #b91c1c; }
.lead-card.warm::before { content: 'WARM'; background: #fef3c7; color: #b45309; }
.lead-pitch {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fafaf8;
  border: 1px solid var(--border-default);
}

@media (max-width: 1100px) {
  .grid-4, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .search-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .pipeline-steps { grid-template-columns: repeat(2, 1fr); }
  .dash-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* Auth pages: show hero as a compact top banner (150px tall) then the form */
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero {
    min-height: 200px;
    max-height: 240px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 24px 24px 20px;
    justify-content: center;
  }
  .auth-glass { padding: 16px 18px; }
  .auth-glass h1 { font-size: 22px; line-height: 26px; margin-bottom: 6px; }
  .auth-glass p { font-size: 12px; line-height: 18px; margin-bottom: 10px; }
  .auth-checklist { display: none; }
  .auth-brand { font-size: 14px; padding: 6px 12px; }
  .auth-form-side { padding: 24px 16px; }

  /* Sidebar becomes a slide-in drawer */
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100dvh;
    width: min(300px, 88vw);
    z-index: 50;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform .25s ease-out;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-flex; }

  /* Topbar: show hamburger + hide plan-pill to save space */
  .topbar { padding: 0 14px; gap: 10px; height: 60px; }
  .topbar-menu { display: inline-flex; }
  .topbar-brand-mobile { display: inline-flex; }
  .topbar .search-wrap { display: none; }
  .plan-pill { display: none; }

  /* Content */
  .content { padding: 16px 14px 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .dash-preview-grid { grid-template-columns: 1fr; }
  .pipeline-steps { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(28px, 8vw, 44px); }
  .hero-sub { font-size: 14px; }

  /* Kanban: horizontal scroll with narrower columns */
  .kanban { grid-template-columns: repeat(7, 78vw); }

  /* Feature grid */
  .feature-grid { gap: 14px; }
  .feature-card { min-height: 280px; }

  /* Tables (auto scroll via .tbl-wrap overflow-x) */
  .tbl thead th, .tbl tbody td { padding: 10px 12px; font-size: 12px; }

  /* Hero on landing */
  .landing-nav-inner { padding: 12px 16px; }
  .landing-section { padding: 40px 16px; }
  .landing-section-inner { padding: 0; }
  .hero-content { padding: 32px 16px 20px; }
  .dash-preview-wrap { padding: 0 12px; margin-top: 24px; }
  .dash-preview-tray { padding: 12px; border-radius: 18px; }
  .preview-card { padding: 16px; }

  /* Cards: smaller radius */
  .card { padding: 18px; border-radius: 16px; }
  .card-compact { padding: 14px; }
  .card-header h3, .card h3 { font-size: 15px; }

  /* HS grid: single column */
  .hs-grid { grid-template-columns: 1fr; }

  /* Onboarding wizard */
  .wizard { padding: 20px 12px 40px; margin: 20px auto; }

  /* Buyer profile: stack tabs */
  .tabs { gap: 18px; }
  .tab { font-size: 13px; padding: 10px 0; }

  /* Modal: full-width bottom sheet on very small screens */
  .modal { max-width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-bottom: 0; margin-top: auto; padding: 24px 20px; max-height: 85vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }

  /* Toast: full width */
  #toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: 100%; }
}
@media (max-width: 480px) {
  .grid-4, .plan-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .content { padding: 12px 10px 32px; }
  .kanban { grid-template-columns: repeat(7, 86vw); }
  .hero-headline { font-size: clamp(26px, 9vw, 40px); }
  .btn-lg { height: 44px; padding: 10px 20px; font-size: 14px; }
  h1, .h1 { font-size: 22px; line-height: 28px; }
  h2, .h2 { font-size: 18px; line-height: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
