@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:      #FAF9F5;
  --bg-2:    #FFFFFF;
  --bg-3:    #F3F1EB;
  --bg-4:    #EAE6DC;

  /* Borders */
  --border:  #E2DDD4;
  --border-2:#CECA BE;

  /* Brand — Odisha Saffron */
  --brand:        #C47A10;
  --brand-lt:     #E09020;
  --brand-dk:     #9A5A08;
  --brand-bg:     rgba(196,122,16,.09);
  --brand-border: rgba(196,122,16,.22);

  /* Navy */
  --navy:    #1A2E52;
  --navy-lt: #2A4678;

  /* Status */
  --green:      #1A7040;
  --green-bg:   rgba(26,112,64,.09);
  --green-bdr:  rgba(26,112,64,.22);
  --red:        #C03030;
  --red-bg:     rgba(192,48,48,.09);
  --red-bdr:    rgba(192,48,48,.22);
  --blue:       #2450A0;
  --blue-bg:    rgba(36,80,160,.09);

  /* Text */
  --text:    #1C1814;
  --text-2:  #4A4035;
  --muted:   #7A6E5E;
  --muted-2: #9A8E7E;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 14px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.07);

  /* Radius */
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-pill: 100px;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;

  /* Sidebar */
  --sidebar-w: 248px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ─── App Shell (Authenticated Dashboard) ──────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform .25s ease;
}

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  height: 58px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  flex: 1;
}

.content { padding: 24px; flex: 1; }

/* Hamburger toggle (mobile) */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo .wordmark {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  line-height: 1.2;
}
.sidebar-logo .wordmark span { color: var(--brand); }
.sidebar-logo .sub {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

.sidebar-nav { flex: 1; padding: 12px 10px; }
.nav-section { margin-bottom: 18px; }
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted-2);
  padding: 0 8px;
  margin-bottom: 4px;
  display: block;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r);
  color: var(--muted);
  text-decoration: none;
  transition: all .14s;
  font-size: 13.5px;
  position: relative;
  cursor: pointer;
}
.nav-item:hover { background: var(--bg-3); color: var(--text); }
.nav-item.active {
  background: var(--brand-bg);
  color: var(--brand-dk);
  font-weight: 500;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 3px;
  background: var(--brand);
  border-radius: 0 2px 2px 0;
}
.nav-icon { width: 17px; text-align: center; flex-shrink: 0; font-size: 14px; }
.nav-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
  font-family: var(--font-mono);
}
.nav-badge.danger { background: var(--red); }

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r);
  text-decoration: none;
  transition: background .14s;
}
.user-row:hover { background: var(--bg-3); }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dk), var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.2; }
.user-role { font-size: 11px; color: var(--muted); }
.otp-indicator {
  margin-left: auto;
  font-size: 10px;
  color: var(--green);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 3px;
}
.otp-indicator::before { content: '●'; font-size: 7px; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,122,16,.30);
}
.btn-primary:hover { background: var(--brand-lt); box-shadow: 0 4px 14px rgba(196,122,16,.38); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted-2); background: var(--bg-3); }
.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-bdr);
}
.btn-danger:hover { background: rgba(192,48,48,.15); }
.btn-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-bdr);
}
.btn-green:hover { background: rgba(26,112,64,.15); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-lt); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}
.card-body { padding: 20px; }

/* ─── Stats Cards ────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}
.stat-card.c-amber::after { background: linear-gradient(90deg, var(--brand-dk), var(--brand-lt)); }
.stat-card.c-green::after  { background: var(--green); }
.stat-card.c-blue::after   { background: var(--blue); }
.stat-card.c-red::after    { background: var(--red); }
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.stat-sub .up { color: var(--green); }
.stat-sub .down { color: var(--red); }

/* ─── Status Pills ───────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.pill::before { content: '●'; font-size: 7px; }
.pill-live     { background: var(--green-bg); color: var(--green); }
.pill-pending  { background: var(--brand-bg); color: var(--brand-dk); }
.pill-draft    { background: rgba(122,110,94,.1); color: var(--muted); }
.pill-rejected { background: var(--red-bg); color: var(--red); }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-3); }
.td-title { font-weight: 500; color: var(--text); font-size: 13.5px; }
.td-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.td-mono  { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  background: var(--bg-3);
  overflow-x: auto;
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .14s;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-dk); border-bottom-color: var(--brand); }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-grid   { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-group.span-2 { grid-column: 1 / -1; }
.form-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 500;
}
.form-input, .form-select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border .15s, box-shadow .15s;
  width: 100%;
}
textarea.form-input { resize: vertical; }
.form-input::placeholder { color: var(--muted-2); }
.form-input:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
  background: var(--bg-2);
}
.form-select option { background: var(--bg-2); }
.form-error { font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 4px; }
.form-hint  { font-size: 12px; color: var(--muted); }

/* OTP input */
.otp-input {
  font-family: var(--font-mono) !important;
  font-size: 32px !important;
  letter-spacing: 16px;
  text-align: center;
  padding: 16px 20px !important;
  border-radius: var(--r-lg) !important;
}

/* ─── Notices ─────────────────────────────────────────────────────────────── */
.notice {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r);
  margin-bottom: 16px;
  border-left: 3px solid;
  font-size: 13.5px;
  align-items: flex-start;
}
.notice-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.notice-title { font-weight: 600; margin-bottom: 2px; font-size: 13px; }
.notice-warn  { background: var(--brand-bg); border-color: var(--brand); }
.notice-warn  .notice-title { color: var(--brand-dk); }
.notice-error { background: var(--red-bg);   border-color: var(--red); }
.notice-error .notice-title { color: var(--red); }
.notice-ok    { background: var(--green-bg); border-color: var(--green); }
.notice-ok    .notice-title { color: var(--green); }
.notice-info  { background: var(--blue-bg);  border-color: var(--blue); }
.notice-info  .notice-title { color: var(--blue); }

/* ─── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.auth-brand {
  width: 420px;
  flex-shrink: 0;
  background: linear-gradient(155deg, #1A2E52 0%, #0F1D38 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: 'ଓ';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 440px;
  color: rgba(255,255,255,.04);
  bottom: -80px;
  right: -80px;
  line-height: 1;
  pointer-events: none;
}
.auth-brand-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
  line-height: 1.2;
}
.auth-brand-logo span { color: var(--brand-lt); }
.auth-brand-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}
.auth-brand-headline {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.auth-brand-headline span { color: var(--brand-lt); }
.auth-brand-sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
.auth-brand-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.auth-badge-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
}
.auth-box { width: 100%; max-width: 420px; }
.auth-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.auth-link { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.auth-link a { color: var(--brand); font-weight: 500; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted-2);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Public Navbar ──────────────────────────────────────────────────────── */
.pub-navbar {
  height: 64px;
  background: rgba(250,249,245,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.pub-wordmark {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-wordmark span { color: var(--brand); }
.pub-nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  margin-left: 20px;
}
.pub-nav-link {
  padding: 6px 12px;
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: all .14s;
  white-space: nowrap;
}
.pub-nav-link:hover { background: var(--bg-3); color: var(--text); }
.pub-nav-link.active { color: var(--brand-dk); font-weight: 500; }

/* Navbar search */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0 14px;
  gap: 8px;
  width: 220px;
  transition: width .2s ease, border-color .15s;
}
.nav-search:focus-within {
  width: 280px;
  border-color: var(--brand);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--brand-bg);
}
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text);
  padding: 8px 0;
  width: 100%;
}
.nav-search input::placeholder { color: var(--muted-2); }
.nav-search-icon { color: var(--muted-2); font-size: 14px; flex-shrink: 0; }
.pub-navbar-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ─── Landing Page ───────────────────────────────────────────────────────── */
/* Hero */
.hero {
  padding: 100px 28px 80px;
  text-align: center;
  background: linear-gradient(160deg, #FFFDF8 0%, #FDF4E2 55%, #FAF9F5 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: 'ଓ';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 480px;
  color: rgba(196,122,16,.05);
  top: -60px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-bg);
  color: var(--brand-dk);
  border: 1px solid var(--brand-border);
  border-radius: var(--r-pill);
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.13;
  margin-bottom: 20px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title span { color: var(--brand); }
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Hero search */
.hero-search {
  max-width: 560px;
  margin: 0 auto 32px;
  display: flex;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-bg), var(--shadow);
}
.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text);
  padding: 14px 22px;
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .14s;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.hero-search button:hover { background: var(--brand-lt); }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  overflow-x: auto;
}
.stats-bar-item {
  padding: 20px 44px;
  text-align: center;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.stats-bar-label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Sections */
.section { padding: 72px 28px; max-width: 1140px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-decoration: none;
  transition: all .18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cat-icon { font-size: 28px; }
.cat-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.cat-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* Featured grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* How it works */
.how-section {
  background: linear-gradient(135deg, #FFFDF8, #FDF4E2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 28px;
}
.how-inner { max-width: 1140px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  position: relative;
}
.step-num {
  width: 38px; height: 38px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(196,122,16,.3);
}
.step-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.step-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* CTA */
.cta-section {
  padding: 90px 28px;
  text-align: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.cta-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.cta-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--navy);
  padding: 40px 28px 28px;
}
.footer-top {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand .wordmark {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
}
.footer-brand .wordmark span { color: var(--brand-lt); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 8px; max-width: 240px; line-height: 1.6; }
.footer-links-group { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); margin-bottom: 12px; }
.footer-link { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 8px; transition: color .14s; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ─── Marketplace Browse ─────────────────────────────────────────────────── */
.pub-hero {
  background: linear-gradient(135deg, #FFFDF8 0%, #FDF4E2 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 28px 40px;
}
.pub-hero-inner { max-width: 1140px; margin: 0 auto; }
.pub-hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.pub-hero-title span { color: var(--brand); }
.pub-hero-sub { font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

/* Browse search bar */
.browse-search {
  display: flex;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  max-width: 560px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.browse-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}
.browse-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text);
  padding: 11px 20px;
}
.browse-search input::placeholder { color: var(--muted-2); }
.browse-search button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .14s;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.browse-search button:hover { background: var(--brand-lt); }

/* Category filters */
.pub-filters {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pub-filters::-webkit-scrollbar { display: none; }
.pub-filter {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .14s;
  display: inline-block;
}
.pub-filter:hover { color: var(--text); }
.pub-filter.active { color: var(--brand-dk); border-bottom-color: var(--brand); font-weight: 500; }

/* Search result info bar */
.search-bar-meta {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search-meta-text { font-size: 13px; color: var(--muted); }
.search-meta-text strong { color: var(--text); font-weight: 600; }
.active-tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  color: var(--brand-dk);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
}
.active-tag-filter a { color: var(--brand-dk); margin-left: 4px; font-weight: 700; }

.pub-container { max-width: 1140px; margin: 0 auto; padding: 28px; }
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Listing cards */
.listing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.listing-card-top { padding: 20px 20px 14px; flex: 1; }
.listing-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--brand-bg);
  color: var(--brand-dk);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.listing-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.listing-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.listing-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.listing-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-3);
}
.listing-card-price {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.listing-card-seller { font-size: 12px; color: var(--muted); }

/* Tag links */
.tag-link {
  padding: 2px 9px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-decoration: none;
  transition: all .14s;
  white-space: nowrap;
}
.tag-link:hover {
  background: var(--brand-bg);
  border-color: var(--brand-border);
  color: var(--brand-dk);
}
.tag-link.active {
  background: var(--brand-bg);
  border-color: var(--brand-border);
  color: var(--brand-dk);
  font-weight: 500;
}

/* ─── Marketplace Detail ─────────────────────────────────────────────────── */
.pub-detail { max-width: 1100px; margin: 0 auto; padding: 36px 28px; }
.pub-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
  text-decoration: none;
  transition: color .14s;
}
.pub-detail-back:hover { color: var(--text); }
.pub-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.pub-detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--brand-bg);
  color: var(--brand-dk);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pub-detail-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.22;
}
.pub-detail-short { font-size: 16px; color: var(--muted); margin-bottom: 18px; line-height: 1.65; }
.pub-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.pub-meta-item { display: flex; align-items: center; gap: 6px; }

/* Description */
.pub-description { font-size: 15px; line-height: 1.8; color: var(--text-2); }
.pub-description h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 28px 0 10px;
  color: var(--text);
}
.pub-description h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 22px 0 8px;
}
.pub-description ul, .pub-description ol { padding-left: 22px; margin: 12px 0; }
.pub-description li { margin-bottom: 6px; }
.pub-description code {
  font-family: var(--font-mono);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.pub-description pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--r);
  overflow-x: auto;
  margin: 16px 0;
}

/* Detail sidebar */
.pub-sidebar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  margin-bottom: 16px;
}
.pub-price {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pub-tag {
  padding: 3px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-decoration: none;
  transition: all .14s;
  display: inline-block;
}
.pub-tag:hover {
  background: var(--brand-bg);
  border-color: var(--brand-border);
  color: var(--brand-dk);
}

/* Contact seller form */
.contact-form .form-input { margin-bottom: 0; }
.contact-form-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}

/* ─── Layout Helpers ─────────────────────────────────────────────────────── */
.two-col     { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.stack       { display: flex; flex-direction: column; gap: 16px; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }  .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }.mb-4 { margin-bottom: 16px; }.mb-6 { margin-bottom: 24px; }
.text-muted  { color: var(--muted); }
.text-brand  { color: var(--brand); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.mono        { font-family: var(--font-mono); }
.serif       { font-family: var(--font-serif); }
.divider     { height: 1px; background: var(--border); margin: 20px 0; }
.fw-500      { font-weight: 500; }
.fw-600      { font-weight: 600; }

/* Empty state */
.empty-state { text-align: center; padding: 72px 24px; color: var(--muted); }
.empty-icon  { font-size: 40px; margin-bottom: 16px; opacity: .4; }
.empty-title { font-size: 17px; font-family: var(--font-serif); margin-bottom: 6px; color: var(--text-2); }

/* Activity dots */
.dot-brand  { background: var(--brand); }
.dot-green  { background: var(--green); }
.dot-red    { background: var(--red); }
.dot-muted  { background: var(--muted); }
.dot-blue   { background: var(--blue); }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }

/* QR code box (kept for any remaining TOTP UI) */
.qr-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* Scrollbars */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ─── Mobile Responsive ──────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid   { grid-template-columns: repeat(2, 1fr); }
  .feat-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col    { grid-template-columns: 1fr; }
  .pub-detail-layout { grid-template-columns: 1fr 280px; gap: 24px; }

  .auth-brand { width: 360px; }
  .auth-brand-headline { font-size: 26px; }
  .hero-title { font-size: 44px; }
  .section-title { font-size: 28px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Sidebar collapses */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .main { margin-left: 0; }
  .content { padding: 16px; }

  /* Overlay when sidebar open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 190;
  }
  .sidebar-overlay.open { display: block; }

  /* Auth */
  .auth-page { flex-direction: column; }
  .auth-brand { width: 100%; min-height: auto; padding: 32px 24px; }
  .auth-brand::before { font-size: 200px; bottom: -20px; right: -20px; }
  .auth-brand-headline { font-size: 24px; }
  .auth-form-side { padding: 32px 20px; }

  /* Public nav */
  .pub-navbar { padding: 0 16px; gap: 8px; }
  .pub-nav-links { display: none; }
  .nav-search { display: none; }

  /* Hero */
  .hero { padding: 64px 20px 56px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-search { max-width: 100%; }
  .hero::before { font-size: 240px; }

  /* Stats */
  .stats-bar-item { padding: 16px 20px; }
  .stats-bar-num { font-size: 22px; }

  /* Sections */
  .section { padding: 48px 20px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 14px; }

  /* Grids */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid   { grid-template-columns: repeat(2, 1fr); }
  .feat-grid  { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pub-grid   { grid-template-columns: 1fr; }

  /* Detail */
  .pub-detail { padding: 20px 16px; }
  .pub-detail-layout {
    grid-template-columns: 1fr;
  }
  .pub-detail-sidebar { order: -1; }
  .pub-detail-title { font-size: 26px; }

  /* Tables → scroll */
  .table-wrap { overflow-x: auto; }

  /* Forms */
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links-group { gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* CTA */
  .cta-title { font-size: 28px; }
  .cta-section { padding: 56px 20px; }

  /* Topbar */
  .topbar { padding: 0 16px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid   { grid-template-columns: 1fr 1fr; }
  .btn-lg     { font-size: 14px; padding: 11px 20px; }
  .pub-hero-title { font-size: 26px; }
  .auth-brand { padding: 24px 20px; }
  .stat-value { font-size: 26px; }
}

/* ─── Markdown body ────────────────────────────────────────────── */
.md-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.md-body h1,
.md-body h2,
.md-body h3,
.md-body h4,
.md-body h5,
.md-body h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin: 1.6em 0 0.5em;
  line-height: 1.3;
}
.md-body h1 { font-size: 24px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.md-body h2 { font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.md-body h3 { font-size: 17px; color: var(--brand); }
.md-body h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

.md-body p  { margin: 0 0 1em; }

.md-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.md-body a:hover { color: var(--brand-dk); }

.md-body strong { font-weight: 700; color: var(--text); }
.md-body em     { font-style: italic; }
.md-body del    { text-decoration: line-through; color: var(--muted); }

.md-body ul,
.md-body ol {
  margin: 0 0 1em 1.4em;
  padding: 0;
}
.md-body li { margin-bottom: .35em; }
.md-body li > ul,
.md-body li > ol { margin-top: .3em; margin-bottom: 0; }

.md-body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--brand);
  background: var(--bg-2);
  color: var(--muted);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
}
.md-body blockquote p { margin: 0; }

.md-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--brand-dk);
}
.md-body pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 1em 0;
}
.md-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 13px;
}

.md-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.8em 0;
}

/* Tables */
.md-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}
.md-body thead tr {
  background: var(--bg-2);
  border-bottom: 2px solid var(--border);
}
.md-body th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  padding: 10px 14px;
}
.md-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.md-body tbody tr:hover { background: var(--bg-2); }

/* ─── Enquiries ────────────────────────────────────────────────── */
.enquiry-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.enquiry-row:last-child { border-bottom: none; }
.enquiry-row:hover { background: var(--bg-2); }
.enquiry-unread { background: color-mix(in srgb, var(--brand) 4%, var(--bg)); }
.enquiry-unread:hover { background: color-mix(in srgb, var(--brand) 7%, var(--bg)); }

.enquiry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.enquiry-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.enquiry-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.enquiry-email {
  color: var(--brand);
  text-decoration: none;
}
.enquiry-email:hover { text-decoration: underline; }
.enquiry-listing-link {
  color: var(--muted);
  text-decoration: none;
}
.enquiry-listing-link:hover { color: var(--brand); text-decoration: underline; }

.enquiry-message {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.unread-dot {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.nav-badge-alert {
  background: var(--red) !important;
  color: #fff !important;
}

/* ─── Live Search Dropdown ─────────────────────────────────────── */
.live-search-wrap {
  position: relative;
}
.live-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 460px;
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  z-index: 9999;
  overflow: hidden;
  max-height: 540px;
  overflow-y: auto;
}
.live-search-dropdown.open { display: block; }

.ls-item {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .12s;
}
.ls-item:last-of-type { border-bottom: none; }
.ls-item:hover { background: var(--bg-2); }

.ls-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.ls-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--brand);
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.ls-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ls-tag {
  font-size: 10px;
  color: var(--muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
}
.ls-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-meta {
  font-size: 11.5px;
  color: var(--muted-2, var(--muted));
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ls-price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-dk);
  background: var(--brand-bg);
  padding: 1px 8px;
  border-radius: var(--r-pill);
}
.ls-all {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-decoration: none;
  text-align: center;
}
.ls-all:hover { background: var(--bg-3); }
.ls-all strong { font-weight: 700; }

.ls-empty {
  padding: 18px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.ls-empty strong { color: var(--text); }

/* Keep dropdown inside viewport on small screens */
@media (max-width: 768px) {
  .live-search-dropdown {
    min-width: 0;
    left: -60px;
    right: -10px;
  }
}
