/* ============================================================
   Kweetee — App Stylesheet  v2.0
   Design: Dark-capable, premium, glassmorphism accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

/* ── CSS Tokens ────────────────────────────────────────────── */
:root {
  --brand:        #7c3aed;
  --brand-light:  #a78bfa;
  --brand-dark:   #5b21b6;
  --brand-glow:   rgba(124,58,237,.25);
  --accent:       #f97316;
  --accent-glow:  rgba(249,115,22,.2);
  --success:      #10b981;
  --danger:       #ef4444;
  --warning:      #ea580c;
  --info:         #3b82f6;

  /* Light mode */
  --bg:           #f8f7ff;
  --surface:      #ffffff;
  --surface-2:    #f1f0fa;
  --border:       #e5e3f5;
  --text:         #1a1630;
  --text-2:       #6b6893;
  --text-3:       #a09ec4;
  --shadow-sm:    0 1px 3px rgba(124,58,237,.08);
  --shadow:       0 4px 16px rgba(124,58,237,.12);
  --shadow-lg:    0 12px 40px rgba(124,58,237,.18);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --radius-full:  9999px;
  --transition:   .2s cubic-bezier(.4,0,.2,1);
  --nav-h:        64px;
  --bottom-h:     68px;
  --header-h:     72px;
}

[data-theme="dark"] {
  --bg:           #0d0b1a;
  --surface:      #16132a;
  --surface-2:    #1f1b36;
  --border:       #2e2850;
  --text:         #f0eeff;
  --text-2:       #9b96c8;
  --text-3:       #5c5880;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
  --shadow:       0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.6);
}

/* ── Reset ─────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout Shell ───────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: var(--bottom-h);
}

/* ── Top Announcement Bar ────────────────────────────────────── */
.top-bar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #8b5cf6);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: .3px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.top-bar a { color: rgba(255,255,255,.9); text-decoration: underline; margin-left: 15px; }

/* ── Header ──────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.header > .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}
.logo i { font-size: 20px; }

/* Search bar */
.search-section {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 520px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-section:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.location-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
}
.search-box { flex: 1; display: flex; align-items: center; }
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box button {
  padding: 10px 16px;
  background: var(--brand);
  border: none;
  color: white;
  font-size: 14px;
  transition: background var(--transition);
}
.search-box button:hover { background: var(--brand-dark); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-actions a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.header-actions a:hover { color: var(--brand); background: var(--surface-2); }
.btn-sell {
  background: linear-gradient(135deg, var(--accent), var(--warning)) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: all var(--transition) !important;
}
.btn-sell:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow) !important; }

/* ── Bottom Nav ──────────────────────────────────────────────── */
.bottom-shortcuts {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(124,58,237,.08);
}
.bottom-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.bottom-shortcut:hover,
.bottom-shortcut.is-active { color: var(--brand); }
.shortcut-symbol { font-size: 20px; }
.shortcut-symbol.has-badge { position: relative; }
.shortcut-symbol.has-badge::after {
  content: '';
  position: absolute;
  top: -2px; right: -4px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.shortcut-sell .shortcut-symbol {
  background: linear-gradient(135deg, var(--accent), var(--warning));
  color: white;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ── Container ───────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--warning));
  color: white;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); color: white; }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-primary.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 4px 14px var(--accent-glow)} 50%{box-shadow:0 4px 28px var(--accent-glow),0 0 0 8px rgba(124,58,237,.08)} }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-hover:hover { transform: translateY(-2px); }

/* ── Metric Cards ────────────────────────────────────────────── */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.metric-card span { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .6px; }
.metric-card strong { font-size: 28px; font-weight: 800; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; }
.metric-card .metric-sub { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 4px; }

/* ── Listing / Ad cards ──────────────────────────────────────── */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-light); }
.listing-card-img {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.listing-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.listing-card-price { font-size: 18px; font-weight: 800; color: var(--brand); font-family: 'Plus Jakarta Sans', sans-serif; }
.listing-card-meta { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-top: auto; }
.listing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
}
.listing-badge.verified { background: rgba(16,185,129,.12); color: var(--success); }
.listing-badge.featured { background: rgba(245,158,11,.12); color: var(--accent); }

/* ── Notices & Alerts ────────────────────────────────────────── */
.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice.success { background: rgba(16,185,129,.12); color: #065f46; border-left: 4px solid var(--success); }
.notice.error, .notice.danger   { background: rgba(239,68,68,.1);   color: #991b1b; border-left: 4px solid var(--danger); }
.notice.info    { background: rgba(59,130,246,.1);   color: #1e40af; border-left: 4px solid var(--info); }
.notice.warning { background: rgba(245,158,11,.1);   color: #92400e; border-left: 4px solid var(--warning); }
[data-theme="dark"] .notice.success { color: #6ee7b7; }
[data-theme="dark"] .notice.error, [data-theme="dark"] .notice.danger   { color: #fca5a5; }
[data-theme="dark"] .notice.info    { color: #93c5fd; }
[data-theme="dark"] .notice.warning { color: #fcd34d; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="url"],
input[type="date"], select, textarea {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { min-height: 100px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c3aed' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-help { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.form-desc { font-size: 14px; color: var(--text-2); margin-bottom: 20px; line-height: 1.7; }

/* Color picker */
.color-picker-row { display: flex; align-items: center; gap: 12px; }
.color-picker-row input[type="color"] {
  width: 48px; height: 48px;
  padding: 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* File upload */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-2);
}
.file-upload-area:hover { border-color: var(--brand); background: rgba(124,58,237,.04); }
.file-upload-area.dragover { border-color: var(--brand); background: var(--accent-glow); }
.file-upload-icon { font-size: 36px; color: var(--text-3); margin-bottom: 10px; }
.file-upload-area input[type="file"] { display: none; }

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100dvh - var(--header-h) - var(--bottom-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg) 0%, #ede9fe 100%);
}
[data-theme="dark"] .auth-page { background: linear-gradient(135deg, var(--bg) 0%, #1a1030 100%); }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 4px;
}

/* ── Dashboard ───────────────────────────────────────────────── */
.dashboard-main { padding: 28px 0 0; }
.dashboard-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dashboard-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}
.dashboard-hero p { font-size: 14px; color: var(--text-2); margin-top: 6px; max-width: 480px; }
.dashboard-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.panel-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) { .panel-grid { grid-template-columns: 1fr; } }

/* ── Panels ──────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.section-header h2 i { color: var(--brand); }
.view-all { font-size: 13px; font-weight: 600; color: var(--brand); }
.view-all:hover { text-decoration: underline; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--surface-2); }
.list-row > div { display: flex; flex-direction: column; gap: 2px; }
.list-row strong { font-size: 14px; font-weight: 600; color: var(--text); }
.list-row span  { font-size: 12px; color: var(--text-2); }
.list-row b     { font-size: 15px; font-weight: 700; color: var(--brand); }
.muted { color: var(--text-3); font-size: 14px; padding: 20px; text-align: center; }

/* ── Status / Badge chips ────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.chip-green  { background: rgba(16,185,129,.12); color: #065f46; }
.chip-red    { background: rgba(239,68,68,.1);   color: #991b1b; }
.chip-amber  { background: rgba(245,158,11,.1);   color: #92400e; }
.chip-purple { background: rgba(124,58,237,.12);  color: #5b21b6; }
.chip-blue   { background: rgba(59,130,246,.1);   color: #1e40af; }
[data-theme="dark"] .chip-green  { color: #6ee7b7; }
[data-theme="dark"] .chip-red    { color: #fca5a5; }
[data-theme="dark"] .chip-amber  { color: #fcd34d; }
[data-theme="dark"] .chip-purple { color: #c4b5fd; }
[data-theme="dark"] .chip-blue   { color: #93c5fd; }

/* ── Badge Tiers ─────────────────────────────────────────────── */
.badge-bronze  { background: linear-gradient(135deg,#cd7f32,#a0522d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.badge-silver  { background: linear-gradient(135deg,#9ca3af,#6b7280); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.badge-gold    { background: linear-gradient(135deg,#f59e0b,#d97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.badge-octal   { background: linear-gradient(135deg,#06b6d4,#0284c7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.badge-diamond { background: linear-gradient(135deg,#7c3aed,#ec4899,#f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }

/* ── Package / Pricing Cards ─────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(160deg, rgba(124,58,237,.05) 0%, var(--surface) 100%);
}
.pricing-card .featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--warning));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-card h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.pricing-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--brand); }
.pricing-price sup { font-size: 18px; vertical-align: top; margin-top: 8px; }
.pricing-price span { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.pricing-features li i { color: var(--brand); font-size: 12px; }
.pricing-card .btn-primary { margin-top: auto; }

/* ── Ad cards (marketplace-style) ───────────────────────────── */
.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.ad-card:hover { box-shadow: var(--shadow); border-color: var(--brand-light); }
.ad-card-media { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.ad-card-media img, .ad-card-media video { width: 100%; height: 100%; object-fit: cover; }
.ad-card-body { padding: 14px 16px; }
.ad-card-brand { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; }
.ad-card-title { font-size: 15px; font-weight: 600; color: var(--text); margin: 4px 0; }
.ad-card-desc  { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ad-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

/* ── Product card (no-media) ─────────────────────────────────── */
.product-card { padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; }
.product-card-brand-bar {
  height: 6px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.product-card h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.product-card .product-price { font-size: 22px; font-weight: 800; color: var(--brand); margin: 8px 0; }
.product-card p { font-size: 13px; color: var(--text-2); }

/* ── Login Popup Overlay ─────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .3s;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
.popup-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideUp { from { transform: translateY(30px); opacity:0 } to { transform: translateY(0); opacity:1 } }
.popup-progress {
  height: 4px;
  background: var(--surface-2);
}
.popup-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transition: width 1s linear;
}
.popup-body { padding: 28px; }
.popup-skip {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,.3);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Revenue page ────────────────────────────────────────────── */
.revenue-bar {
  background: var(--surface-2);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  margin: 6px 0;
}
.revenue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: var(--radius-full);
  transition: width .6s ease;
}

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }

/* ── Wallet ──────────────────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), #8b5cf6);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  color: white;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.wallet-hero::after {
  content: '💰';
  position: absolute;
  right: -10px; top: -10px;
  font-size: 120px;
  opacity: .08;
  transform: rotate(-15deg);
}
.wallet-balance { font-size: 42px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.wallet-currency { font-size: 14px; opacity: .8; margin-top: 4px; }
.wallet-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.wallet-action-btn {
  background: rgba(255,255,255,.15);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wallet-action-btn:hover { background: rgba(255,255,255,.25); color: white; }

/* ── Page hero ───────────────────────────────────────────────── */
.page-hero {
  padding: 40px 0 24px;
}
.page-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}
.page-hero p { font-size: 15px; color: var(--text-2); margin-top: 8px; max-width: 560px; }

/* ── Marketplace Grid ────────────────────────────────────────── */
.marketplace-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 24px 0 48px;
  align-items: start;
}
@media (max-width: 900px) { .marketplace-layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-2); margin-bottom: 14px; }
.category-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  transition: all var(--transition);
}
.category-link:hover, .category-link.active { background: var(--surface-2); color: var(--brand); }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Profile ─────────────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 28px 0 48px;
  align-items: start;
}
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-avatar-wrap { text-align: center; }
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin: 0 auto 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.profile-name { font-size: 20px; font-weight: 800; color: var(--text); }
.profile-ref { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.progress-ring { margin: 16px auto; }
.progress-label { font-size: 13px; color: var(--text-2); }

/* ── Transaction & Coin Burn Logs List ────────────────────────── */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.tx-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.tx-row:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tx-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tx-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.tx-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.tx-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.tx-date {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}

.tx-details-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.tx-badge-burned {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tx-badge-earned {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tx-row {
    padding: 14px;
  }
  .tx-header-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .tx-date {
    font-size: 11px;
  }
  .tx-details-line {
    justify-content: flex-start;
  }
}

/* ── Admin ───────────────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-stat-num { font-size: 36px; font-weight: 800; color: var(--brand); font-family: 'Plus Jakarta Sans', sans-serif; }
.admin-stat-label { font-size: 13px; color: var(--text-2); margin-top: 4px; font-weight: 600; }

/* ── Checkout ─────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 32px 0 48px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: calc(var(--header-h) + 16px); }

/* ── Sections ────────────────────────────────────────────────── */
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.section-subtitle { font-size: 14px; color: var(--text-2); }
.section { padding: 36px 0; }

/* ── Dividers ────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
  margin: 8px 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

/* ── Referral link row ───────────────────────────────────────── */
.ref-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-2);
  font-family: monospace;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.ref-link-box span {
  font-size: 14px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  display: block;
}
.ref-link-box button {
  margin-left: auto;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header > .container { gap: 8px; }
  .search-section { display: none; }
  .header-actions a:not(.btn-sell) { display: none; }
  .auth-card { padding: 28px 20px; }
  .wallet-balance { font-size: 32px; }
  .page-hero h1 { font-size: 26px; }
  .dashboard-hero { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Tooltips ────────────────────────────────────────────────── */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1630;
  color: white;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 10;
}
[data-tip]:hover::after { opacity: 1; }

/* ── Chat bubble (rule-based bot) ────────────────────────────── */
.chat-fab {
  position: fixed;
  bottom: calc(var(--bottom-h) + 16px);
  right: 20px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--warning));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  z-index: 300;
  border: none;
  transition: transform var(--transition);
}
.chat-fab:hover { transform: scale(1.1); }
.chat-window {
  position: fixed;
  bottom: calc(var(--bottom-h) + 78px);
  right: 20px;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: none;
  flex-direction: column;
  max-height: 440px;
  overflow: hidden;
}
.chat-window.open { display: flex; animation: slideUp .25s; }
.chat-header { padding: 14px 16px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: white; font-weight: 700; font-size: 14px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { padding: 8px 12px; border-radius: 12px; font-size: 13px; max-width: 80%; line-height: 1.5; }
.chat-msg.bot { background: var(--surface-2); color: var(--text); align-self: flex-start; }
.chat-msg.user { background: var(--brand); color: white; align-self: flex-end; }
.chat-input { display: flex; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; border: none; background: transparent; padding: 12px 14px; font-size: 14px; color: var(--text); outline: none; }
.chat-input button { padding: 12px 16px; background: var(--brand); border: none; color: white; cursor: pointer; }

/* ── Admin ──────────────────────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.admin-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 4px;
}

/* ── FAQ / Help ─────────────────────────────────────────────── */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--brand); font-weight: 700; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item[open] summary { background: rgba(124,58,237,.06); color: var(--brand); }
.faq-item > div {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: -1px;
  animation: slideDown .2s;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  padding: 28px 0 48px;
}
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { position: static; } }

/* ── Wallet hero ────────────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(124,58,237,.35);
}
.wallet-balance {
  font-size: 44px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 4px 0 6px;
  letter-spacing: -.5px;
}
.wallet-currency { font-size: 14px; opacity: .8; }
.wallet-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.wallet-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
  text-decoration: none;
}
.wallet-action-btn:hover { background: rgba(255,255,255,.25); }

/* ── Profile layout ─────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px 0 60px;
  align-items: start;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.profile-name { font-size: 18px; font-weight: 700; color: var(--text); }
.profile-ref { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.progress-label { font-size: 12px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 768px) { .profile-layout { grid-template-columns: 1fr; } }

/* ── File upload ────────────────────────────────────────────── */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--surface-2);
  position: relative;
}
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--brand); background: rgba(124,58,237,.04); }
.file-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-icon { font-size: 32px; color: var(--brand); margin-bottom: 12px; }

/* ── Product card ───────────────────────────────────────────── */
.product-card { padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; }
.product-card-brand-bar {
  height: 4px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 8px 0;
}

/* ── Referral link box ──────────────────────────────────────── */
.ref-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  gap: 12px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.ref-link-box span { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; display: block; }
.ref-link-box button { flex-shrink: 0; white-space: nowrap; background: var(--brand); color: white; border: none; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.ref-link-box button:hover { background: var(--brand-dark); }

/* ── Colour picker row ──────────────────────────────────────── */
.color-picker-row { display: flex; gap: 8px; align-items: center; }
.color-picker-row input[type="color"] { width: 48px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; padding: 2px; background: var(--surface); }

/* ── btn-danger ─────────────────────────────────────────────── */
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-danger.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Panel grid (dashboard 2-col) ──────────────────────────── */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Dashboard hero ─────────────────────────────────────────── */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 20px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.dashboard-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 8px;
}
.dashboard-hero p { font-size: 15px; color: var(--text-2); }
.dashboard-main { padding-bottom: 60px; }

/* ── Notice types ───────────────────────────────────────────── */
.notice { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; border-left: 4px solid; }
.notice i { flex-shrink: 0; }
.notice.success { background: rgba(16,185,129,.1); border-color: var(--success); color: #065f46; }
.notice.error, .notice.danger   { background: rgba(239,68,68,.1);  border-color: var(--danger);  color: #991b1b; }
.notice.info    { background: rgba(59,130,246,.1); border-color: var(--info);    color: #1e40af; }
.notice.warning { background: rgba(245,158,11,.1); border-color: var(--warning); color: #92400e; }
[data-theme="dark"] .notice.success { color: #6ee7b7; }
[data-theme="dark"] .notice.error, [data-theme="dark"] .notice.danger   { color: #fca5a5; }
[data-theme="dark"] .notice.info    { color: #93c5fd; }
[data-theme="dark"] .notice.warning { color: #fcd34d; }

/* ── Missing spinner ────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Eyebrow text ───────────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--brand);
}

/* ── Page hero ──────────────────────────────────────────────── */
.page-hero { padding: 0 0 24px; }
.page-hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 32px; font-weight: 800; color: var(--text); margin: 4px 0 10px; }
.page-hero p { font-size: 15px; color: var(--text-2); max-width: 600px; }

/* ── Popup ──────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn .3s;
}
.popup-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: slideUp .35s;
}
.popup-progress { height: 4px; background: var(--surface-2); }
.popup-progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); transition: width 1s linear; }
.popup-skip { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,.3); border: none; color: white; border-radius: var(--radius-full); padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.popup-skip:disabled { opacity: .5; cursor: not-allowed; }
.popup-body { padding: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Homepage Specific Styles ─────────────────────────────── */
        .hero {
            background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, #4c1d95 100%);
            padding: 60px 0;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            background: rgba(255,255,255,0.03);
            border-radius: 50%;
        }

                .hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -5%;
            width: 400px;
            height: 400px;
            background: rgba(255,255,255,0.02);
            border-radius: 50%;
        }

        .hero .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1;
        }

        .hero-content {
            color: var(--surface);
            max-width: 500px;
        }

        .hero-content h1 {
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 15px;
            line-height: 1.2;
        }

        .hero-content p {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .hero-stats {
            display: flex;
            gap: 30px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-item .number {
            font-size: 28px;
            font-weight: 800;
            color: var(--accent);
        }

        .stat-item .label {
            font-size: 13px;
            opacity: 0.8;
        }

        .hero-image {
            display: flex;
            gap: 15px;
        }

        .hero-image .person {
            width: 180px;
            height: 220px;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
        }

        .hero-image .person i {
            font-size: 60px;
            color: rgba(255,255,255,0.3);
            margin-bottom: 10px;
        }

        .hero-image .person span {
            color: rgba(255,255,255,0.6);
            font-size: 14px;
        }

        /* Main Content */
        .home-layout {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
            display: grid;
            grid-template-columns: minmax(180px, 260px) 1fr minmax(200px, 280px);
            gap: 20px;
        }

        /* Sidebar Categories */
        .sidebar-categories {
            background: var(--surface);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        .sidebar-categories h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sidebar-categories h3 i {
            color: var(--brand);
        }

        .category-list {
            list-style: none;
        }

        .category-list li {
            margin-bottom: 2px;
        }

        .category-list a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            text-decoration: none;
            color: var(--text);
            font-size: 14px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .category-list a:hover {
            background: var(--accent-glow);
            color: var(--brand);
        }

        .category-list a i {
            width: 20px;
            text-align: center;
            color: var(--text-2);
            font-size: 15px;
        }

        .category-list a:hover i {
            color: var(--brand);
        }

        .category-list .count {
            margin-left: auto;
            font-size: 12px;
            color: var(--text-2);
            background: var(--bg);
            padding: 2px 8px;
            border-radius: 10px;
        }

        /* Center Content */
        .center-content {
            display: flex;
            flex-direction: column;
            gap: 25px;
            min-width: 0;
        }

                .hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -5%;
            width: 400px;
            height: 400px;
            background: rgba(255,255,255,0.02);
            border-radius: 50%;
        }

        .hero .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1;
        }

        .hero-content {
            color: var(--surface);
            max-width: 500px;
        }

        .hero-content h1 {
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 15px;
            line-height: 1.2;
        }

        .hero-content p {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .hero-stats {
            display: flex;
            gap: 30px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-item .number {
            font-size: 28px;
            font-weight: 800;
            color: var(--accent);
        }

        .stat-item .label {
            font-size: 13px;
            opacity: 0.8;
        }

        .hero-image {
            display: flex;
            gap: 15px;
        }

        .hero-image .person {
            width: 180px;
            height: 220px;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
        }

        .hero-image .person i {
            font-size: 60px;
            color: rgba(255,255,255,0.3);
            margin-bottom: 10px;
        }

        .hero-image .person span {
            color: rgba(255,255,255,0.6);
            font-size: 14px;
        }

        /* Main Content */
        .home-layout {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
            display: grid;
            grid-template-columns: minmax(180px, 260px) 1fr minmax(200px, 280px);
            gap: 20px;
        }

        /* Sidebar Categories */
        .sidebar-categories {
            background: var(--surface);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        .sidebar-categories h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sidebar-categories h3 i {
            color: var(--brand);
        }

        .category-list {
            list-style: none;
        }

        .category-list li {
            margin-bottom: 2px;
        }

        .category-list a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            text-decoration: none;
            color: var(--text);
            font-size: 14px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .category-list a:hover {
            background: var(--accent-glow);
            color: var(--brand);
        }

        .category-list a i {
            width: 20px;
            text-align: center;
            color: var(--text-2);
            font-size: 15px;
        }

        .category-list a:hover i {
            color: var(--brand);
        }

        .category-list .count {
            margin-left: auto;
            font-size: 12px;
            color: var(--text-2);
            background: var(--bg);
            padding: 2px 8px;
            border-radius: 10px;
        }

        /* Center Content */
        .center-content {
            display: flex;
            flex-direction: column;
            gap: 25px;
            min-width: 0;
        }

        /* Promo Banner */
        .promo-banner {
            background: linear-gradient(135deg, var(--accent-glow) 0%, #ddd6fe 100%);
            border-radius: 12px;
            padding: 25px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .promo-text h3 {
            font-size: 20px;
            color: var(--brand-dark);
            margin-bottom: 5px;
        }

        .promo-text p {
            color: var(--text-2);
            font-size: 14px;
        }

        .promo-btn {
            background: var(--brand);
            color: var(--surface);
            padding: 10px 24px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: background 0.3s;
            z-index: 1;
        }

        .promo-btn:hover {
            background: var(--brand-dark);
        }

        .promo-banner::before {
            content: '';
            position: absolute;
            right: -20px;
            top: -20px;
            width: 150px;
            height: 150px;
            background: rgba(124, 58, 237, 0.1);
            border-radius: 50%;
        }

        /* Section Header */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .section-header h2 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-header h2 i {
            color: var(--brand);
        }

        .view-all {
            color: var(--brand);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: gap 0.3s;
        }

        .view-all:hover {
            gap: 10px;
        }

        /* Product Grid */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }
        @media (max-width: 700px) {
            .product-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }
        }

        .product-card {
            background: var(--surface);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--accent);
            color: var(--surface);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            z-index: 2;
        }

        .product-badge.boosted {
            background: var(--brand);
        }

        .product-wishlist {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 32px;
            height: 32px;
            background: rgba(255,255,255,0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            z-index: 2;
            border: none;
        }

        .product-wishlist:hover {
            background: var(--brand);
            color: var(--surface);
        }

                        .product-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
            background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-2);
            font-size: 50px;
        }

        .product-info {
            padding: 15px;
        }

        .product-price {
            font-size: 18px;
            font-weight: 800;
            color: var(--brand);
            margin-bottom: 5px;
        }

        .product-title {
            font-size: 14px;
            color: var(--text);
            margin-bottom: 8px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: var(--text-2);
        }

        .product-meta .location {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .product-meta .time {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Right Sidebar */
        .right-sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sell-card {
            background: linear-gradient(135deg, var(--accent) 0%, var(--warning) 100%);
            border-radius: 12px;
            padding: 30px 20px;
            text-align: center;
            color: var(--surface);
            box-shadow: var(--shadow);
        }

        .sell-card i {
            font-size: 48px;
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .sell-card h3 {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .sell-card p {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 20px;
        }

        .sell-card .btn-post {
            display: inline-block;
            background: var(--surface);
            color: var(--accent);
            padding: 12px 30px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
            font-size: 15px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .sell-card .btn-post:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .safety-tips {
            background: var(--surface);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
        }

        .safety-tips h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .safety-tips h3 i {
            color: var(--accent);
        }

        .tip-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 12px;
            font-size: 13px;
            color: var(--text-2);
        }

        .tip-item i {
            color: var(--brand);
            margin-top: 2px;
            font-size: 14px;
        }

        .safety-tips h3 i {
            color: var(--accent);
        }

        .location-tag {
            display: inline-block;
            background: var(--accent-glow);
            color: var(--brand);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            margin: 4px;
            text-decoration: none;
            transition: all 0.2s;
        }

        .location-tag:hover {
            background: var(--brand);
            color: var(--surface);
        }

        /* Categories Section */
        .categories-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px 40px;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 15px;
        }

        .category-card {
            background: var(--surface);
            border-radius: 12px;
            padding: 25px 15px;
            text-align: center;
            box-shadow: var(--shadow);
            text-decoration: none;
            color: var(--text);
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .category-card:hover {
            border-color: var(--brand);
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        .category-card i {
            font-size: 32px;
            color: var(--brand);
            margin-bottom: 10px;
            display: block;
        }

        .category-card span {
            font-size: 13px;
            font-weight: 600;
        }




/* ── Header and Top Bar Override ─────────────────────────────── */
        .top-bar .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-bar a {
            color: var(--surface);
            text-decoration: none;
            margin-left: 20px;
            transition: opacity 0.3s;
        }

        .top-bar a:hover {
            opacity: 0.8;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
            padding: 20px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow-lg);
        }

        .header .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--surface);
            text-decoration: none;
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -1px;
        }

        .logo i {
            font-size: 32px;
            color: var(--accent);
        }

        .search-section {
            flex: 1;
            max-width: 700px;
        }

        .location-selector {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: var(--surface);
            font-size: 14px;
            margin-bottom: 8px;
            cursor: pointer;
        }

        .search-box {
            display: flex;
            background: var(--surface);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .search-box input {
            flex: 1;
            border: none;
            padding: 14px 20px;
            font-size: 15px;
            outline: none;
        }

        .search-box input::placeholder {
            color: var(--text-2);
        }

        .search-box button {
            background: var(--accent);
            color: var(--surface);
            border: none;
            padding: 14px 28px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: background 0.3s;
        }

        .search-box button:hover {
            background: var(--warning);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .header-actions a {
            color: var(--surface);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: opacity 0.3s;
        }

        .header-actions a:hover {
            opacity: 0.8;
        }

        .btn-sell {
            background: var(--accent);
            color: var(--surface) !important;
            padding: 10px 24px;
            border-radius: 6px;
        }

/* ── Responsive Overrides ─────────────────────────────── */
        .social-links a {
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: background 0.3s;
        }

        .social-links a:hover {
            background: var(--violet-primary);
        }

        /* Mobile Menu Toggle */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--white);
            font-size: 24px;
            cursor: pointer;
        }

        /* Responsive */
        
        @media (max-width: 1200px) {
            .home-layout {
                grid-template-columns: minmax(180px, 220px) 1fr minmax(200px, 240px);
                gap: 15px;
                padding: 30px 15px;
            }
            .header .container {
                gap: 15px;
            }
            .search-section {
                max-width: 450px;
            }
            .header-actions {
                gap: 10px;
            }
        }

                @media (max-width: 1024px) {
            .header {
                height: auto;
                padding: 10px 0;
            }
            .header .container {
                flex-wrap: wrap;
                gap: 15px;
            }
            .search-section {
                order: 3;
                width: 100%;
                max-width: 100%;
                margin-top: 5px;
            }
            .home-layout {
                grid-template-columns: 220px 1fr;
            }
            .right-sidebar {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .header .container {
                flex-wrap: wrap;
            }
            .search-section {
                order: 3;
                width: 100%;
                max-width: 100%;
            }
            .home-layout {
                grid-template-columns: 1fr;
            }
            .sidebar-categories {
                display: none;
            }
            .hero .container {
                flex-direction: column;
                text-align: center;
            }
            .hero-content {
                margin-bottom: 30px;
            }
            .hero-stats {
                justify-content: center;
            }
        }

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .bottom-shortcuts {
    display: none !important;
  }
}



.main-content { flex: 1; }


.dashboard-hero, .dashboard-grid, .panel-grid { width: 100%; }
