/* ==========================================================================
   592Markit.com — Design System v3 (performance-tuned, no blur)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@700;800&display=swap');

:root {
  --teal-50:  #EAF6F5;
  --teal-100: #C7E5E3;
  --teal-300: #6CB0AC;
  --teal-500: #0E5C5C;
  --teal-600: #0A4545;
  --teal-700: #062F2F;
  --teal-900: #031A1A;

  --gold-50:  #FFF7E8;
  --gold-100: #FEEBC5;
  --gold-500: #F2A93B;
  --gold-600: #E0912A;
  --gold-700: #B87319;

  --coral:    #E5533D;
  --coral-50: #FDEEEB;
  --green:    #25D366;
  --green-dark: #1BA855;

  --ink:      #0A1616;
  --ink-2:    #2C4343;
  --ink-3:    #4A5D5D;
  --muted:    #6B7A7A;
  --muted-2:  #9AA5A5;

  --bg:       #FBF9F6;
  --bg-2:     #F4F0EA;
  --card:     #FFFFFF;
  --border:   #ECE7DF;
  --border-2: #DFD8CC;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 999px;

  /* Single-layer shadows only — cheap to render */
  --shadow-xs: 0 1px 2px rgba(10,22,22,.05);
  --shadow-sm: 0 2px 6px rgba(10,22,22,.06);
  --shadow-md: 0 8px 20px rgba(10,22,22,.08);
  --shadow-lg: 0 16px 36px rgba(10,22,22,.10);
  --shadow-xl: 0 24px 48px rgba(10,22,22,.15);
  --shadow-teal: 0 8px 20px rgba(14,92,92,.22);
  --shadow-gold: 0 8px 20px rgba(242,169,59,.30);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }
svg { display: block; width: 1em; height: 1em; }
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 1em; height: 1em; }

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.03em; }

/* ==========================================================================
   NAV — solid background, no blur
   ========================================================================== */

#nav {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  will-change: auto;
}

.nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 12px 32px;
  display: flex; align-items: center; gap: 14px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 900; font-size: 20px;
  box-shadow: var(--shadow-teal);
  position: relative; overflow: hidden;
}
.logo-mark::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 80%; height: 80%;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 19px;
  letter-spacing: -0.04em;
}
.logo-text .teal { color: var(--teal-500); }
.logo-text .gold { color: var(--gold-500); }

.nav-search { flex: 1; max-width: 560px; position: relative; }
.nav-search input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  font-size: 14px;
  transition: border-color .15s, background .15s;
  outline: none;
}
.nav-search input::placeholder { color: var(--muted-2); }
.nav-search input:focus {
  border-color: var(--teal-500);
  background: white;
}

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--ink);
  font-weight: 700; padding: 11px 18px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  box-shadow: var(--shadow-gold);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(242,169,59,.4); }

.btn-ghost-sm {
  color: var(--teal-500); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: var(--r-full);
  transition: background .15s;
}
.btn-ghost-sm:hover { background: var(--teal-50); }

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-teal);
  transition: transform .15s;
  flex-shrink: 0;
}
.avatar:hover { transform: scale(1.05); }
.avatar-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}

/* Avatar dropdown — solid bg, no blur */
.user-menu-wrap { position: relative; }

.avatar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  transform: translateY(-8px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 200;
}
.avatar-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.avatar-menu a, .avatar-menu button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  transition: background .12s;
  width: 100%; text-align: left; color: var(--ink-2);
}
.avatar-menu a:hover, .avatar-menu button:hover { background: var(--bg-2); color: var(--ink); }
.avatar-menu .icon { font-size: 17px; color: var(--teal-500); }
.avatar-menu .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.avatar-menu .head {
  padding: 10px 12px 6px;
  font-size: 12px; color: var(--muted);
  word-break: break-all;
}
.avatar-menu .head strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; word-break: normal; }
.avatar-menu .danger { color: var(--coral); }
.avatar-menu .danger .icon { color: var(--coral); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

main { max-width: 1600px; margin: 0 auto; padding: 28px 32px 80px; }

h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 44px 0 20px;
}
.section-head h2 {
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2 .icon { color: var(--gold-500); font-size: 22px; }
.section-head .link {
  font-size: 13px; font-weight: 700;
  color: var(--teal-500);
  display: flex; align-items: center; gap: 4px;
  transition: gap .15s;
}
.section-head .link:hover { gap: 8px; }

/* ==========================================================================
   HERO — no blur, no zoom animation
   ========================================================================== */

/* HERO — full viewport width, edge to edge */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  margin-bottom: 44px;
  overflow: hidden;
  background: linear-gradient(135deg, #0E5C5C 0%, #073333 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(6,47,47,0.94) 0%, rgba(6,47,47,0.78) 45%, rgba(6,47,47,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1600px;
  margin: 0 auto;
  padding: 72px 32px 68px;
  color: white;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(242,169,59,.16);
  border: 1px solid rgba(242,169,59,.35);
  color: var(--gold-500);
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.hero-eyebrow .icon { font-size: 14px; }

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 58px; line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: white;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-500), #FFD98A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 12px 28px rgba(242,169,59,.35);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(242,169,59,.45); }

.btn-hero-secondary {
  background: rgba(255,255,255,0.14);
  color: white;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.28);
  transition: background .15s, border-color .15s;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
}

.hero-stats {
  display: flex; gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--gold-500);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--card);
  padding: 24px 16px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.category-card:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.category-card .cat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-50), #D4E9E7);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: background .2s, color .2s, transform .2s;
}
.category-card:hover .cat-icon {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  transform: scale(1.08);
}
.category-card .cat-name {
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ==========================================================================
   LISTING CARDS
   ========================================================================== */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-img {
  aspect-ratio: 1;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease-out);
  backface-visibility: hidden;
}
.card:hover .card-img img { transform: scale(1.06); }

.no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
  background: linear-gradient(135deg, #F0EDE7, #E8E2D5);
}
.no-img .icon { font-size: 44px; opacity: 0.35; }

.boost-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  font-size: 10px; font-weight: 900;
  padding: 6px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 4px 10px rgba(242,169,59,.4);
}
.boost-badge .icon { font-size: 11px; }

.photo-count {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(10,22,22,0.78);
  color: white;
  font-size: 11px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-full);
  display: flex; align-items: center; gap: 4px;
}
.photo-count .icon { font-size: 11px; }

.fav-btn {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 17px;
  transition: transform .15s, color .15s;
  transform: scale(0);
  box-shadow: 0 3px 10px rgba(10,22,22,.15);
}
.card:hover .fav-btn { transform: scale(1); }
.fav-btn:hover { transform: scale(1.1) !important; color: var(--coral); }
.fav-btn.active { color: var(--coral); transform: scale(1) !important; }

.card-body { padding: 14px 16px 16px; }
.card-title {
  font-size: 14px; font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  min-height: 38px;
}
.card-price {
  font-family: 'Sora', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--teal-500);
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
}
.card-price .usd {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
}
.card-price .neg {
  font-size: 10px; font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: 3px 7px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-price.free { color: var(--gold-600); }

.card-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.card-meta .icon { font-size: 13px; }
.card-meta .dot { color: var(--muted-2); }

.card-seller {
  display: flex; align-items: center; gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
}
.card-seller .icon { font-size: 12px; color: var(--gold-500); flex-shrink: 0; }
.card-seller .verified { color: var(--teal-500); font-weight: 700; display: flex; align-items: center; gap: 4px; min-width: 0; }
.card-seller .verified span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-seller .seller-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14,92,92,.32);
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary .icon { font-size: 18px; }

.btn-full { width: 100%; }

.btn-ghost {
  background: white; color: var(--teal-500);
  padding: 13px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--teal-500); background: var(--teal-50); }

/* ==========================================================================
   MODALS — solid overlay, no blur
   ========================================================================== */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,20,20,0.72);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: white;
  border-radius: var(--r-2xl);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96) translateY(12px);
  transition: transform .25s var(--ease-out);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal.modal-lg { max-width: 720px; }
.modal.modal-xl { max-width: 960px; }
.modal.modal-full { max-width: 1100px; padding: 0; background: transparent; box-shadow: none; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); font-size: 18px;
  transition: background .15s, transform .15s;
  z-index: 10;
}
.modal-close:hover { background: var(--border); transform: rotate(90deg); }

.modal-body { padding: 36px 32px 32px; }
.modal-body-lg { padding: 40px 40px 36px; }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header .logo-mark {
  width: 68px; height: 68px;
  font-size: 32px;
  border-radius: 20px;
  margin: 0 auto 18px;
}
.modal-header h2 {
  font-size: 26px; font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}
.modal-header p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.modal-tabs {
  display: flex; gap: 6px;
  background: var(--bg-2);
  padding: 5px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.modal-tab {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: 14px;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
  text-align: center;
}
.modal-tab:hover { color: var(--ink); }
.modal-tab.active {
  background: white;
  color: var(--teal-500);
  box-shadow: var(--shadow-sm);
}

/* Lightbox */
.lightbox {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  max-height: 90vh;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
}
.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
  box-shadow: var(--shadow-lg);
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-nav.prev { left: -70px; }
.lightbox-nav.next { right: -70px; }
.lightbox-close {
  position: absolute; top: -56px; right: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal-500); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

.input-wrap { position: relative; }
.input-wrap .toggle-pw {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 18px;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: color .15s;
}
.input-wrap .toggle-pw:hover { color: var(--ink); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 14px; cursor: pointer;
  user-select: none;
}
.check-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--teal-500);
  cursor: pointer;
}

.form-error {
  background: var(--coral-50);
  color: var(--coral);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.form-error .icon { font-size: 16px; }

/* ==========================================================================
   FILE UPLOAD
   ========================================================================== */

.file-drop {
  border: 2px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bg-2);
  display: block;
}
.file-drop:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
}
.file-drop .icon {
  font-size: 40px;
  color: var(--teal-500);
  margin-bottom: 10px;
  display: inline-flex;
}
.file-drop p { font-size: 15px; font-weight: 700; color: var(--ink); }
.file-drop span { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }

.file-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.file-thumbs .thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.file-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.file-thumbs .remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(10,22,22,.7);
  color: white; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.file-thumbs .remove:hover { background: var(--coral); }

/* ==========================================================================
   FILTERS
   ========================================================================== */

.filters-bar {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 78px;
  z-index: 40;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chip:hover { background: white; border-color: var(--border-2); }
.filter-chip.active {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: white;
}
.filter-chip .icon { font-size: 15px; }
.filter-chip select {
  border: none; background: transparent;
  font-size: 13px; font-weight: 600;
  color: inherit; outline: none; cursor: pointer;
  padding-right: 4px;
}
.filter-chip select option { color: var(--ink); }

/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr);
  gap: 36px;
  align-items: start;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-main .no-img { font-size: 90px; }

.gallery-badge {
  position: absolute; top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  font-size: 11px; font-weight: 900;
  padding: 7px 12px; border-radius: var(--r-full);
  display: flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 6px 16px rgba(242,169,59,.5);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumbs img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color .15s, opacity .15s;
  opacity: 0.75;
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { border-color: var(--teal-500); opacity: 1; }

.detail-sidebar { position: sticky; top: 100px; }

.price-block {
  background: linear-gradient(135deg, var(--teal-50), #DCEAE9);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--teal-100);
}
.price-large {
  font-family: 'Sora', sans-serif;
  font-size: 44px; font-weight: 800;
  color: var(--teal-500);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.price-large.free { color: var(--gold-600); }
.price-secondary { font-size: 14px; color: var(--muted); font-weight: 500; }
.negotiable-tag {
  display: inline-block;
  background: var(--gold-500);
  color: var(--ink);
  font-size: 11px; font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--r-full);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-list {
  display: flex; flex-direction: column; gap: 12px;
  margin: 20px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.info-list-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.info-list-item .icon { color: var(--teal-500); font-size: 18px; flex-shrink: 0; }

.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px;
  background: linear-gradient(135deg, #25D366, var(--green-dark));
  color: white; border-radius: var(--r-md);
  font-weight: 700; font-size: 16px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(37,211,102,.32);
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.42); }
.wa-btn .icon { font-size: 22px; }

.call-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: white;
  border: 1.5px solid var(--border-2);
  color: var(--ink);
  border-radius: var(--r-md);
  font-weight: 600; font-size: 15px;
  margin-top: 10px;
  transition: border-color .15s, color .15s;
}
.call-btn:hover { border-color: var(--teal-500); color: var(--teal-500); }

.fav-btn-lg {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: white;
  border: 1.5px solid var(--border-2);
  color: var(--ink);
  border-radius: var(--r-md);
  font-weight: 600; font-size: 15px;
  margin-top: 10px;
  transition: border-color .15s, color .15s, background .15s;
}
.fav-btn-lg:hover { border-color: var(--coral); color: var(--coral); }
.fav-btn-lg.active { background: var(--coral-50); border-color: var(--coral); color: var(--coral); }
.fav-btn-lg .icon { font-size: 18px; }

.boost-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  border: 1.5px solid var(--gold-500);
  color: var(--gold-700);
  border-radius: var(--r-md);
  font-weight: 700; font-size: 15px;
  margin-top: 10px;
  transition: background .15s, color .15s;
}
.boost-btn:hover { background: var(--gold-500); color: var(--ink); }
.boost-btn .icon { font-size: 18px; }

.seller-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.seller-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-teal);
}
.seller-info { flex: 1; min-width: 0; }
.seller-name {
  font-weight: 800; font-size: 16px;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 3px;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}
.seller-name .verified-badge {
  color: var(--teal-500); font-size: 16px;
  background: var(--teal-50);
  border-radius: 50%;
  padding: 2px;
}
.seller-meta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.seller-meta .icon { color: var(--gold-500); font-size: 13px; }

.section-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-top: 24px;
  box-shadow: var(--shadow-xs);
}
.section-box h2 { font-size: 17px; margin-bottom: 16px; }

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.kv-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}
.kv-value {
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
}

/* ==========================================================================
   SKELETON
   ========================================================================== */

.skel {
  background: linear-gradient(90deg, #F0EDE7 0%, #E8E2D5 50%, #F0EDE7 100%);
  background-size: 200% 100%;
  animation: skel-pulse 1.6s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes skel-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skel-card .skel-img { aspect-ratio: 1; width: 100%; }
.skel-card .skel-body { padding: 16px; }
.skel-line { height: 12px; margin-bottom: 8px; }
.skel-line.w-80 { width: 80%; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-40 { width: 40%; }
.skel-line.tall { height: 20px; }

/* ==========================================================================
   EMPTY
   ========================================================================== */

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: white;
  border-radius: var(--r-2xl);
  border: 2px dashed var(--border-2);
}
.empty-icon {
  width: 96px; height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-50), #D4E9E7);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-500); font-size: 44px;
}
.empty h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.03em; }
.empty p { color: var(--muted); font-size: 15px; margin-bottom: 24px; max-width: 400px; margin-inline: auto; line-height: 1.55; }

/* ==========================================================================
   TOASTS
   ========================================================================== */

#toasts {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .3s var(--spring);
  max-width: 360px;
  pointer-events: auto;
}
.toast.success { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); }
.toast.error { background: linear-gradient(135deg, var(--coral), #C43E28); }
.toast.gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: var(--ink); }
.toast .icon { font-size: 18px; flex-shrink: 0; }
@keyframes toast-in {
  0% { transform: translateY(30px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.toast.out { animation: toast-out .2s ease forwards; }
@keyframes toast-out {
  to { transform: translateX(30px); opacity: 0; }
}

/* ==========================================================================
   ACCOUNT
   ========================================================================== */

.tabs {
  display: flex; gap: 4px;
  background: var(--bg-2);
  padding: 5px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
  width: fit-content;
}
.tab {
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: 14px;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
  display: flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--ink); }
.tab.active { background: white; color: var(--teal-500); box-shadow: var(--shadow-sm); }
.tab .icon { font-size: 16px; }

.profile-header {
  background: white;
  border-radius: var(--r-xl);
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-xs);
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 40px;
  flex-shrink: 0;
  box-shadow: var(--shadow-teal);
}
.profile-info h1 { font-size: 26px; margin-bottom: 4px; }
.profile-info .email { font-size: 14px; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.stat-card .val {
  font-family: 'Sora', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--teal-500);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-card .label {
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 20px 36px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo-mark {
  box-shadow: none;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
}
.footer-brand .logo-text { color: white; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .hero h1 { font-size: 42px; }
  .hero { min-height: 440px; }
  .hero-content { padding: 44px 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .price-large { font-size: 36px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

@media (max-width: 640px) {
  main { padding: 20px 16px 60px; }
  .nav-inner { padding: 10px 14px; gap: 10px; }
  .logo-text { display: none; }
  .nav-search { max-width: none; }
  .btn-gold span:not(.icon) { display: none; }
  .btn-gold { padding: 10px 14px; }
  .btn-ghost-sm { display: none; }
   .hero { min-height: 400px; }
  .hero-content { padding: 32px 20px 28px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 22px; padding-top: 20px; margin-top: 26px; }
  .hero-stat strong { font-size: 20px; }
  h1 { font-size: 26px; }
  .section-head h2 { font-size: 19px; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 18px 12px; }
  .category-card .cat-icon { width: 46px; height: 46px; font-size: 22px; }
  .card-body { padding: 12px; }
  .card-title { font-size: 13px; min-height: 34px; }
  .card-price { font-size: 17px; }
  .card-meta, .card-seller { font-size: 11px; }
  .row { grid-template-columns: 1fr; }
  #toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .modal-body, .modal-body-lg { padding: 28px 22px 24px; }
  .modal-header h2 { font-size: 22px; }
  .profile-header { padding: 24px; flex-direction: column; text-align: center; gap: 16px; }
  .filters-bar { position: static; }
}

/* Reduce motion for accessibility + battery */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   NAV CATEGORIES MEGA-DROPDOWN
   ========================================================================== */

.nav-cats-wrap { position: relative; flex-shrink: 0; }

.nav-cats-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: var(--r-full);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 14px; font-weight: 700;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.nav-cats-btn:hover { background: white; border-color: var(--border-2); }
.nav-cats-btn.open {
  background: var(--teal-500); color: white;
}
.nav-cats-btn .icon { font-size: 17px; }
.nav-cats-btn .chev { font-size: 14px; transition: transform .2s; }
.nav-cats-btn.open .chev { transform: rotate(180deg); }

.nav-cats-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 640px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.nav-cats-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.nav-cat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  transition: background .12s, color .12s;
}
.nav-cat-item:hover { background: var(--teal-50); color: var(--teal-500); }
.nav-cat-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.nav-cat-item:hover .nav-cat-icon { background: var(--teal-500); color: white; }
.nav-cat-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav-cats-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.nav-cats-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--teal-500);
  padding: 6px 8px; border-radius: var(--r-sm);
}
.nav-cats-all:hover { background: var(--teal-50); }
.nav-cats-all .icon { font-size: 14px; }

/* ==========================================================================
   HERO ADVANCED SEARCH
   ========================================================================== */

.hero-search {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: var(--r-full);
  padding: 8px;
  max-width: 1000px;
  margin: 32px 0 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.hero-search-field {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  display: flex; flex-direction: column;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--r-full);
  transition: background .15s;
}
.hero-search-field:hover { background: var(--bg-2); }

.hero-search-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  cursor: pointer;
}

.hero-search-field input,
.hero-search-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.hero-search-field input::placeholder { color: var(--muted-2); font-weight: 400; }
.hero-search-field input[type="text"] { cursor: text; }

.hero-search-query { flex: 1.4; }
.hero-search-price { flex: 1; }

.hero-price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-price-inputs input {
  width: 100%;
  min-width: 0;
  padding: 0;
}
.hero-price-inputs span { color: var(--muted-2); font-size: 12px; }

.hero-search-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
}

.hero-search-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  font-weight: 800; font-size: 15px;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 22px rgba(242,169,59,.4);
  margin-left: 4px;
}
.hero-search-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(242,169,59,.5); }
/* Hero search button icon */
.hero-search-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.hero-search-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Quick links */
.hero-quick-links {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.hero-quick-links span { font-weight: 600; }
.hero-quick-links a {
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 600;
  transition: background .15s;
}
.hero-quick-links a:hover { background: rgba(255,255,255,0.22); }

/* ==========================================================================
   POST-CTA STRIP
   ========================================================================== */

.cta-post {
  margin-top: 60px;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--teal-50), #DCEAE9);
  border-radius: var(--r-xl);
  border: 1px solid var(--teal-100);
}
.cta-post-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-post h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 4px;
}
.cta-post p { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   RESPONSIVE FOR SEARCH
   ========================================================================== */

@media (max-width: 900px) {
  .hero-search {
    flex-direction: column;
    border-radius: var(--r-xl);
    padding: 12px;
    margin: 24px 0 14px;
  }
  .hero-search-field {
    padding: 12px 14px;
    border-radius: var(--r-md);
  }
  .hero-search-field:hover { background: var(--bg-2); }
  .hero-search-divider { display: none; }
  .hero-search-btn {
    margin: 8px 0 0;
    padding: 16px;
    justify-content: center;
    width: 100%;
  }
  .nav-cats-panel { width: 500px; }
  .nav-cats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-cats-btn span:not(.icon) { display: none; }
  .nav-cats-btn .chev { display: none; }
  .nav-cats-btn { padding: 10px 12px; }
  .nav-cats-panel {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .nav-cats-grid { grid-template-columns: 1fr; }
  .hero-quick-links { font-size: 12px; }
  .hero-quick-links a { padding: 4px 10px; }
  .cta-post { padding: 24px; }
  .cta-post h3 { font-size: 19px; }
}

/* ==========================================================================
   LOGO IMAGE
   ========================================================================== */

.logo-mark {
  background: none !important;
  padding: 0;
  overflow: visible;
  box-shadow: none;
  position: relative;
}
.logo-mark::before { display: none; }
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

/* Smaller logo in footer */
.footer-brand .logo-mark {
  width: 40px;
  height: 40px;
  background: none !important;
}

/* Icon wrapper — fixed 20px box, positioned 16px from left */
.nav-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}
/* The inner .icon span + SVG must be exactly the same size */
.nav-search-icon .icon,
.nav-search-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

/* ==========================================================================
   NAV SEARCH — final, bulletproof. Icon is a background image.
   ========================================================================== */

.nav-search {
  flex: 1;
  max-width: 560px;
}

.nav-search input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 48px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 18px 18px;
  font-size: 14px;
  line-height: 1;
  outline: none;
  transition: border-color .15s, background-color .15s;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--ink);
}
.nav-search input::placeholder { color: var(--muted-2); }
.nav-search input:focus {
  border-color: var(--teal-500);
  background-color: white;
}

/* ==========================================================================
   OWNER ACTIONS PANEL (on listing detail page)
   ========================================================================== */

.owner-panel {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-50), #FFF3DA);
  border: 1.5px solid var(--gold-100);
  border-radius: var(--r-lg);
}

.owner-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.owner-panel-label .icon { font-size: 15px; }

.owner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.owner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.owner-btn .icon { font-size: 16px; }
.owner-btn:hover { transform: translateY(-1px); }

.owner-btn-edit { border-color: var(--border-2); }
.owner-btn-edit:hover { border-color: var(--teal-500); color: var(--teal-500); }

.owner-btn-sold { border-color: var(--green); color: var(--green-dark); background: white; }
.owner-btn-sold:hover { background: var(--green); color: white; border-color: var(--green); }

.owner-btn-active { border-color: var(--teal-500); color: var(--teal-500); background: white; }
.owner-btn-active:hover { background: var(--teal-500); color: white; }

.owner-btn-delete {
  background: white;
  border-color: var(--coral-50);
  color: var(--coral);
}
.owner-btn-delete:hover { background: var(--coral-50); border-color: var(--coral); }

/* ==========================================================================
   GALLERY CAROUSEL — arrows, animation, dots
   ========================================================================== */

.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-empty .no-img {
  font-size: 90px;
  color: var(--muted-2);
  opacity: 0.4;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(10, 22, 22, 0.18);
  cursor: pointer;
  transition: transform .2s var(--spring), background .15s, box-shadow .15s;
  z-index: 5;
  border: none;
}
.gallery-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}
.gallery-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 26px rgba(10, 22, 22, 0.25);
}
.gallery-arrow:active { transform: translateY(-50%) scale(0.95); }
.gallery-arrow-prev { left: 16px; }
.gallery-arrow-next { right: 16px; }

/* Counter */
.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10, 22, 22, 0.78);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: var(--r-full);
  z-index: 4;
  pointer-events: none;
}

/* Dots */
.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(10, 22, 22, 0.55);
  border-radius: var(--r-full);
  z-index: 4;
  max-width: 70%;
  overflow: hidden;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform .2s var(--spring), background .15s, width .2s;
  flex-shrink: 0;
}
.gallery-dot:hover { background: rgba(255, 255, 255, 0.75); transform: scale(1.2); }
.gallery-dot.active {
  background: white;
  width: 22px;
  border-radius: var(--r-full);
}

/* Zoom button (bottom-left) */
.gallery-zoom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(10, 22, 22, 0.2);
  z-index: 5;
  border: none;
  cursor: pointer;
  transition: transform .15s var(--spring), background .15s;
}
.gallery-zoom svg { width: 18px; height: 18px; }
.gallery-zoom:hover { background: white; transform: scale(1.08); }

/* Badge override (was top-left, keep it above the arrows) */
.gallery-badge {
  z-index: 6;
}

/* Thumbnails strip — subtle animation when active changes */
.gallery-thumbs img {
  transition: border-color .15s, opacity .15s, transform .2s;
}
.gallery-thumbs img:hover { transform: scale(1.04); }
.gallery-thumbs img.active {
  border-color: var(--teal-500);
  opacity: 1;
  transform: scale(1.02);
}

/* Small screens — arrows smaller, dots tighter */
@media (max-width: 640px) {
  .gallery-arrow {
    width: 40px;
    height: 40px;
  }
  .gallery-arrow svg { width: 18px; height: 18px; }
  .gallery-arrow-prev { left: 10px; }
  .gallery-arrow-next { right: 10px; }
  .gallery-counter { bottom: 12px; right: 12px; font-size: 11px; padding: 5px 10px; }
  .gallery-dots { bottom: 12px; gap: 5px; padding: 6px 10px; }
  .gallery-dot { width: 7px; height: 7px; }
  .gallery-dot.active { width: 18px; }
  .gallery-zoom { bottom: 12px; left: 12px; width: 36px; height: 36px; }
  .gallery-zoom svg { width: 16px; height: 16px; }
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-header h1 { font-size: 30px; margin: 0; }

.admin-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.admin-stats .stat-card .val {
  font-size: 26px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--teal-500);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.admin-stats .stat-card-alert {
  border-color: var(--gold-500);
  background: linear-gradient(135deg, var(--gold-50), #FFF1D4);
}
.admin-stats .stat-card-alert .val { color: var(--gold-700); }

.admin-tabs { margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs .tab { position: relative; }
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--coral);
  color: white;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
}

.admin-table-wrap {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg-2);
  color: var(--ink-2);
  margin-right: 4px;
}
.admin-pill-active { background: var(--teal-50); color: var(--teal-500); }
.admin-pill-sold { background: var(--gold-50); color: var(--gold-700); }
.admin-pill-pending { background: var(--gold-100); color: var(--gold-700); }
.admin-pill-flagged { background: var(--coral-50); color: var(--coral); }
.admin-pill-open { background: var(--coral-50); color: var(--coral); }
.admin-pill-reviewing { background: var(--gold-50); color: var(--gold-700); }
.admin-pill-resolved,
.admin-pill-dismissed { background: var(--teal-50); color: var(--teal-500); }

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: all .15s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  background: white;
  font-family: inherit;
  color: var(--ink-2);
}
.admin-btn .icon { font-size: 13px; }
.admin-btn:hover { transform: translateY(-1px); }

.admin-btn-approve {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.admin-btn-approve:hover { background: var(--green-dark); border-color: var(--green-dark); }

.admin-btn-reject {
  background: white;
  color: var(--coral);
  border-color: var(--coral-50);
}
.admin-btn-reject:hover { background: var(--coral-50); border-color: var(--coral); }

.admin-btn-ghost {
  background: var(--bg-2);
  color: var(--ink-2);
  border-color: transparent;
}
.admin-btn-ghost:hover { background: var(--border); }

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-search {
  flex: 1;
  min-width: 240px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  font-size: 14px;
  outline: none;
  background: white;
  transition: border-color .15s;
  font-family: inherit;
}
.admin-search:focus { border-color: var(--teal-500); }

.admin-empty {
  text-align: center;
  padding: 64px 24px;
  background: white;
  border-radius: var(--r-lg);
  border: 2px dashed var(--border-2);
}
.admin-empty .empty-icon {
  width: 72px;
  height: 72px;
  font-size: 32px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal-50), #D4E9E7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500);
}
.admin-empty h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.admin-empty p { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .admin-table { font-size: 12px; }
  .admin-table thead th,
  .admin-table tbody td { padding: 10px 12px; }
}

@media (max-width: 640px) {
  .admin-table-wrap { overflow-x: auto; }
  .admin-table { min-width: 720px; }
}

.revenue-reset {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.revenue-reset:hover {
  background: var(--gold-50);
  border-color: var(--gold-500);
  color: var(--gold-700);
  transform: rotate(45deg);
}
.revenue-reset .icon,
.revenue-reset svg {
  width: 14px !important;
  height: 14px !important;
}

/* ==========================================================================
   BANNER ADS
   ========================================================================== */
.banner-ad {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .2s;
}
.banner-ad:hover { transform: translateY(-2px); }
.banner-ad img { width: 100%; height: auto; display: block; }
.banner-ad-label {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   REPORT BUTTON
   ========================================================================== */
.report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  transition: color .15s;
  font-family: inherit;
  cursor: pointer;
}
.report-btn:hover { color: var(--coral); }
.report-btn .icon { font-size: 15px; }

/* ==========================================================================
   BUSINESS / PLANS
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.plan-card {
  position: relative;
  background: white;
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.plan-card:hover { border-color: var(--teal-300); transform: translateY(-2px); }
.plan-card.active { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.plan-featured { border-color: var(--gold-500); }
.plan-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.plan-name {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.plan-price {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--teal-500);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
}
.plan-features li { padding-left: 18px; position: relative; }
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-500);
  font-weight: 900;
}

/* ==========================================================================
   STOREFRONT
   ========================================================================== */
.store-header {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}
.store-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: 40px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-teal);
}
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-info { flex: 1; min-width: 240px; }
.store-info h1 {
  font-size: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal-50);
  color: var(--teal-500);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.verified-pill svg { width: 12px; height: 12px; }
.store-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
  max-width: 640px;
  line-height: 1.5;
}
.store-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.store-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-2);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.store-contact:hover { background: var(--teal-500); color: white; }
.store-contact .icon { font-size: 15px; }

@media (max-width: 640px) {
  .store-header { padding: 24px; }
  .store-logo { width: 72px; height: 72px; font-size: 30px; border-radius: 18px; }
  .store-info h1 { font-size: 22px; }
}

/* ==========================================================================
   PROFILE EDIT
   ========================================================================== */

.profile-edit-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.profile-edit-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .15s;
}
.profile-edit-avatar:hover { transform: scale(1.03); }

.profile-edit-avatar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: white;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  overflow: hidden;
}
.profile-edit-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 22, 0.55);
  color: white;
  font-size: 28px;
  opacity: 0;
  transition: opacity .15s;
}
.profile-edit-avatar:hover .profile-edit-avatar-overlay { opacity: 1; }

/* Avatar in nav as image */
.avatar.avatar-img {
  padding: 0;
  overflow: hidden;
  background: var(--bg-2);
}
.avatar.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Avatar on account profile header */
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar { overflow: hidden; }

/* Business CTA on account page */
.business-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--teal-50), #DCEAE9);
  border: 1.5px solid var(--teal-100);
  border-radius: var(--r-lg);
  margin-top: 24px;
  transition: transform .15s, box-shadow .15s;
}
.business-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.business-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-teal);
}
.business-cta-body { flex: 1; min-width: 0; }
.business-cta-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.business-cta-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.business-cta-arrow {
  font-size: 22px;
  color: var(--teal-500);
  font-weight: 800;
  transition: transform .15s;
}
.business-cta:hover .business-cta-arrow { transform: translateX(4px); }

/* ==========================================================================
   SELLER AVATAR (image variant)
   ========================================================================== */

.seller-avatar-img {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-2);
}
.seller-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   BUSINESS BANNER + COVER
   ========================================================================== */

.biz-cover {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
}
.biz-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.biz-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
}

.store-banner {
  width: 100%;
  height: 220px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
}
.store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .biz-cover { height: 120px; }
  .store-banner { height: 160px; }
}

/* ==========================================================================
   BUSINESS EDIT MODAL
   ========================================================================== */

.biz-edit-banner-wrap { margin-bottom: 20px; }

.biz-edit-banner {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  border: 2px dashed var(--border-2);
  transition: border-color .15s, background .15s;
}
.biz-edit-banner:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
}

.biz-edit-banner-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.biz-edit-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 22, 0.5);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity .15s;
}
.biz-edit-banner:hover .biz-edit-banner-overlay { opacity: 1; }

.biz-edit-banner-hint {
  padding: 6px 14px;
  background: white;
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   TABS — responsive, scrollable on mobile
   ========================================================================== */

.tabs {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   CARD BOX — never overflow its parent
   ========================================================================== */

.card-box {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}

.card-box h2 {
  flex-wrap: wrap;
  word-break: break-word;
}

/* ==========================================================================
   TAB CONTENT — full width, safe
   ========================================================================== */

#bizTabContent,
#tabContent,
#tabContent,
[id$="TabContent"] {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Text inside cards should never force a wider parent */
.card-box p,
.card-box div,
.card-box span {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* ==========================================================================
   BUSINESS DASHBOARD — header wraps nicely on mobile
   ========================================================================== */

@media (max-width: 640px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px 20px;
  }
  .profile-header > div:last-child {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }
  .profile-header .btn-primary,
  .profile-header .btn-ghost {
    flex: 1;
    min-width: 0;
  }

  .tabs {
    width: 100%;
    border-radius: var(--r-md);
    padding: 4px;
  }
  .tab {
    padding: 10px 14px;
    font-size: 13px;
  }
  .tab .icon { font-size: 14px; }
}

/* ==========================================================================
   CARD BOX — MISSING (used on post.html, edit.html, business.html, account.html)
   ========================================================================== */

.card-box {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  max-width: 100%;
  overflow-wrap: break-word;
}

.card-box h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card-box h2 .icon { color: var(--teal-500); font-size: 18px; }

.card-box p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .card-box { padding: 18px 16px; }
  .card-box h2 { font-size: 15px; }
}

/* ==========================================================================
   DANGER ZONE (business dashboard)
   ========================================================================== */

.danger-zone {
  border-color: var(--coral-50);
  background: linear-gradient(135deg, #FFFFFF, #FFF9F7);
}
.danger-zone h2 { color: var(--coral); }


/* ==========================================================================
   LISTING TYPE TOGGLE
   ========================================================================== */

.listing-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.listing-type-option {
  position: relative;
  padding: 18px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  background: white;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
  text-align: center;
}
.listing-type-option:hover { border-color: var(--teal-300); transform: translateY(-1px); }
.listing-type-option.active {
  border-color: var(--teal-500);
  background: var(--teal-50);
}
.listing-type-option input { display: none; }
.listing-type-option .icon {
  font-size: 24px;
  color: var(--teal-500);
  margin-bottom: 8px;
  display: inline-flex;
}
.listing-type-option .lt-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.listing-type-option .lt-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   STOCK DISPLAY
   ========================================================================== */

.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(14,92,92,.35);
}
.stock-badge.low { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--ink); }

/* When boost-badge is present too, offset the stock badge */
.card-img .boost-badge ~ .stock-badge { top: 52px; }

.stock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--teal-50);
  border: 1.5px solid var(--teal-100);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-700);
}
.stock-info.low {
  background: var(--gold-50);
  border-color: var(--gold-100);
  color: var(--gold-700);
}
.stock-info .icon { font-size: 18px; flex-shrink: 0; }
.stock-info .count { font-family: 'Sora', sans-serif; font-weight: 800; }

/* Archive button in owner panel */
.owner-btn-archive {
  background: white;
  border-color: var(--border-2);
  color: var(--ink-2);
}
.owner-btn-archive:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-2);
}

/* Owner actions with 3 buttons */
.owner-actions-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

/* ==========================================================================
   LISTING STATUS BANNER (owner panel)
   ========================================================================== */

.status-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.status-banner .icon { font-size: 16px; flex-shrink: 0; }

.status-banner-sold {
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1.5px solid var(--teal-100);
}

.status-banner-archived {
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1.5px solid var(--border-2);
}

/* Live indicator */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 0 rgba(14, 92, 92, 0.5);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 92, 92, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(14, 92, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 92, 92, 0); }
}

/* ==========================================================================
   MOBILE — comprehensive responsive layer
   ========================================================================== */

/* ---------- Prevent iOS zoom on input focus ---------- */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ---------- iOS safe areas (notch, home indicator) ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  footer {
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
  }
  #toasts {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .modal {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ---------- Touch targets — minimum 44x44 ---------- */
@media (hover: none) {
  button, a.btn-primary, a.btn-ghost, a.btn-gold,
  .owner-btn, .admin-btn, .tab, .modal-tab,
  .nav-cat-item, .filter-chip, .avatar-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Show heart + action buttons always on touch (no hover) */
  .fav-btn {
    transform: scale(1) !important;
  }

  /* Remove hover-only effects that don't work on touch */
  .card:hover { transform: none; }
  .card:hover .card-img img { transform: none; }
  .card:active { transform: scale(0.98); transition: transform .1s; }
}

/* ---------- Kill tap highlight on mobile ---------- */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   NAV — Mobile layout
   ========================================================================== */

@media (max-width: 640px) {
  #nav {
    position: sticky;
  }

  .nav-inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .logo { gap: 0; }
  .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .logo-text { display: none; }

  .nav-cats-wrap { flex-shrink: 0; }
  .nav-cats-btn {
    padding: 10px;
    border-radius: 10px;
  }
  .nav-cats-btn span:not(.icon),
  .nav-cats-btn .chev { display: none; }
  .nav-cats-btn .icon { font-size: 20px; margin: 0; }

  .nav-search {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .nav-search input {
    height: 40px;
    padding: 0 14px 0 40px;
    font-size: 15px;
    background-size: 16px 16px;
    background-position: 12px center;
  }

  .nav-actions { gap: 6px; }
  .btn-gold {
    padding: 10px 12px;
    min-width: 44px;
    gap: 0;
  }
  .btn-gold span:not(.icon) { display: none; }

  .btn-ghost-sm {
    padding: 10px 12px;
    font-size: 13px;
  }

  .avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Categories panel — fixed overlay */
  .nav-cats-panel {
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    border-radius: 16px;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-cats-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .nav-cat-item {
    padding: 12px;
    min-height: 44px;
  }

  /* Avatar dropdown — full width sheet */
  .avatar-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .avatar-menu.open {
    transform: translateY(0);
  }
  .avatar-menu::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-2);
    border-radius: var(--r-full);
    margin: 6px auto 10px;
  }
  .avatar-menu .head { text-align: center; padding: 4px 12px 12px; }
  .avatar-menu a, .avatar-menu button {
    padding: 14px 14px;
    font-size: 15px;
    border-radius: 12px;
  }
  .avatar-menu .icon { font-size: 20px; }
}

/* ==========================================================================
   HERO — Mobile
   ========================================================================== */

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    margin-bottom: 20px;
  }
  .hero-content {
    padding: 32px 20px 28px;
  }
  .hero-eyebrow {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.05;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  /* Hero search — stack into card */
  .hero-search {
    flex-direction: column;
    padding: 12px;
    border-radius: 18px;
    margin: 20px 0 12px;
    gap: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  }
  .hero-search-field {
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 56px;
    border-bottom: 1px solid var(--border);
  }
  .hero-search-field:last-of-type { border-bottom: none; }
  .hero-search-field label {
    font-size: 10px;
    margin-bottom: 3px;
  }
  .hero-search-field input,
  .hero-search-field select {
    font-size: 15px !important;
  }
  .hero-search-divider { display: none; }

  .hero-search-btn {
    margin: 8px 0 0;
    padding: 16px;
    width: 100%;
    font-size: 16px;
    border-radius: 12px;
    justify-content: center;
  }

  .hero-quick-links {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 24px;
  }
  .hero-quick-links a {
    padding: 6px 12px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .hero-stats {
    gap: 20px;
    padding-top: 18px;
    margin-top: 24px;
  }
  .hero-stat strong { font-size: 18px; }
  .hero-stat span { font-size: 10px; letter-spacing: 0.05em; }
}

/* ==========================================================================
   LISTING GRID — Mobile
   ========================================================================== */

@media (max-width: 640px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card { border-radius: 14px; }

  .card-body { padding: 10px 12px 12px; }

  .card-title {
    font-size: 13px;
    line-height: 1.3;
    min-height: 34px;
    margin-bottom: 6px;
  }

  .card-price { font-size: 16px; gap: 4px; }
  .card-price .usd { font-size: 11px; }
  .card-price .neg {
    font-size: 9px;
    padding: 2px 6px;
  }

  .card-meta,
  .card-seller {
    font-size: 11px;
    gap: 4px;
    margin-top: 6px;
  }
  .card-seller { padding-top: 6px; }

  /* Always show fav button on mobile (no hover) */
  .fav-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
  }

  .boost-badge,
  .stock-badge {
    font-size: 9px;
    padding: 5px 8px;
    top: 8px;
    left: 8px;
  }

  .photo-count {
    font-size: 10px;
    padding: 4px 8px;
    bottom: 8px;
    left: 8px;
  }
}

@media (max-width: 380px) {
  .listing-grid { gap: 8px; }
  .card-body { padding: 8px 10px 10px; }
  .card-title { font-size: 12px; }
  .card-price { font-size: 15px; }
}

/* ==========================================================================
   MODALS — Bottom sheet on mobile
   ========================================================================== */

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal,
  .modal.modal-lg,
  .modal.modal-xl {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-backdrop.open .modal {
    transform: translateY(0);
  }

  /* Drag handle indicator */
  .modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--border-2);
    border-radius: var(--r-full);
    z-index: 20;
  }

  .modal-close {
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.05);
  }

  .modal-body,
  .modal-body-lg {
    padding: 30px 20px 24px;
  }

  .modal-header { margin-bottom: 20px; }
  .modal-header h2 { font-size: 21px; }
  .modal-header p { font-size: 13px; }

  .modal-tabs { margin-bottom: 18px; }
  .modal-tab { padding: 12px 14px; font-size: 14px; }

  .lightbox img {
    max-height: 80vh;
    border-radius: 0;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   FORMS — Mobile
   ========================================================================== */

@media (max-width: 640px) {
  .form-group { margin-bottom: 14px; }
  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 14px;
    min-height: 50px;
    border-radius: 12px;
  }
  .form-group textarea { min-height: 100px; }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .check-row {
    min-height: 44px;
    padding: 4px 0;
  }
  .check-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .input-wrap .toggle-pw {
    padding: 12px;
    font-size: 20px;
  }

  .file-drop {
    padding: 28px 16px;
    border-radius: 14px;
  }
  .file-drop .icon { font-size: 34px; }
  .file-drop p { font-size: 14px; }

  .file-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }

  /* Listing type toggle — stack on small */
  .listing-type-toggle {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .listing-type-option {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .listing-type-option .icon {
    margin: 0;
    font-size: 22px;
    flex-shrink: 0;
  }
  .listing-type-option .lt-title { font-size: 14px; margin: 0; }
  .listing-type-option .lt-desc { font-size: 12px; }

  /* Buttons full width in forms */
  .btn-primary,
  .btn-ghost,
  .btn-full {
    min-height: 50px;
    font-size: 16px;
  }

  .card-box {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
  }
  .card-box h2 {
    font-size: 15px;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   DETAIL PAGE — Mobile
   ========================================================================== */

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-sidebar { position: static; }
}

@media (max-width: 640px) {
  main { padding: 16px 12px 60px; }

  .section-box {
    padding: 18px 16px;
    border-radius: 16px;
    margin-top: 16px;
  }

  .price-block {
    padding: 18px 16px;
    margin-bottom: 16px;
  }
  .price-large {
    font-size: 34px;
    line-height: 1;
  }
  .price-secondary { font-size: 13px; }

  .info-list {
    gap: 10px;
    margin: 14px 0;
    padding: 14px 0;
  }
  .info-list-item { font-size: 13px; }

  .wa-btn,
  .call-btn,
  .fav-btn-lg,
  .boost-btn,
  .owner-btn {
    min-height: 50px;
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
  }

  .owner-actions-3 {
    grid-template-columns: 1fr 1fr;
  }
  .owner-actions {
    grid-template-columns: 1fr 1fr;
  }
  .owner-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .seller-card {
    padding: 14px;
    gap: 12px;
  }
  .seller-avatar { width: 48px; height: 48px; font-size: 20px; }
  .seller-name { font-size: 15px; }

  .report-btn { min-height: 44px; }

  .kv-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .kv-value { font-size: 14px; }

  /* Gallery */
  .gallery-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
  }
  .gallery-arrow svg { width: 18px; height: 18px; }
  .gallery-arrow-prev { left: 8px; }
  .gallery-arrow-next { right: 8px; }

  .gallery-counter {
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    padding: 5px 10px;
  }
  .gallery-dots {
    bottom: 10px;
    gap: 5px;
    padding: 6px 10px;
    max-width: 60%;
  }
  .gallery-dot { width: 7px; height: 7px; }
  .gallery-dot.active { width: 16px; }

  .gallery-zoom {
    bottom: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
  }
}

/* ==========================================================================
   FILTERS BAR — Mobile
   ========================================================================== */

@media (max-width: 640px) {
  .filters-bar {
    position: sticky;
    top: 56px;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 14px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters-bar::-webkit-scrollbar { display: none; }

  .filter-chip {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .filter-chip select { font-size: 13px; }

  /* Search & result count */
  h1 { font-size: 22px; }
  #resultCount { font-size: 13px !important; margin-bottom: 14px !important; }
}

/* ==========================================================================
   BUSINESS DASHBOARD + STORE + ACCOUNT — Mobile
   ========================================================================== */

@media (max-width: 640px) {
  /* Profile header */
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 18px;
    gap: 14px;
    border-radius: 20px;
  }
  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  .profile-info h1 { font-size: 22px; }
  .profile-info .email { font-size: 13px; }

  .profile-header > div:last-child {
    margin-left: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .profile-header .btn-primary,
  .profile-header .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .stat-card .val { font-size: 22px; }
  .stat-card .label { font-size: 10px; letter-spacing: 0.03em; }

  /* Tabs — horizontal scroll */
  .tabs {
    width: 100%;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .tab .icon { font-size: 15px; }

  /* Business cover */
  .biz-cover { height: 100px; border-radius: 16px; margin-bottom: 14px; }

  /* Business CTA */
  .business-cta {
    padding: 16px;
    gap: 12px;
    border-radius: 16px;
  }
  .business-cta-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 12px;
  }
  .business-cta-title { font-size: 15px; }
  .business-cta-sub { font-size: 12px; }

  /* Store header */
  .store-header {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .store-logo {
    width: 72px;
    height: 72px;
    font-size: 28px;
    border-radius: 18px;
  }
  .store-info h1 { font-size: 20px; justify-content: center; }
  .store-info { text-align: center; min-width: 0; }
  .store-desc { font-size: 13px; }
  .store-meta { justify-content: center; }

  /* Plans grid */
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .plan-card { padding: 20px 16px; }
  .plan-price { font-size: 22px; }

  /* Danger zone */
  .danger-zone { border-radius: 16px; }
}

/* ==========================================================================
   ADMIN — Mobile tables
   ========================================================================== */

@media (max-width: 900px) {
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 12px;
    width: 100%;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tabs .tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 9px 12px;
    white-space: nowrap;
  }
  .admin-header { gap: 12px; }
  .admin-header h1 { font-size: 22px; }
  .admin-header p { font-size: 13px; }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .admin-stats .stat-card { padding: 14px 12px; }
  .admin-stats .stat-card .val { font-size: 20px; }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    margin: 0 -12px;
    padding: 0 12px;
  }
  .admin-table {
    min-width: 700px;
    font-size: 12px;
  }
  .admin-table thead th { padding: 10px 10px; font-size: 10px; }
  .admin-table tbody td { padding: 12px 10px; }

  .admin-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .admin-search {
    min-height: 44px;
    font-size: 15px !important;
  }
  .admin-toolbar { gap: 8px; }
}

@media (max-width: 640px) {
  .admin-empty { padding: 48px 20px; }
  .admin-empty .empty-icon { width: 60px; height: 60px; font-size: 26px; }
  .admin-empty h3 { font-size: 17px; }
}

/* ==========================================================================
   TOASTS — Mobile
   ========================================================================== */

@media (max-width: 640px) {
  #toasts {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .toast {
    max-width: none;
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* ==========================================================================
   FOOTER — Mobile
   ========================================================================== */

@media (max-width: 640px) {
  footer {
    padding: 32px 16px calc(24px + env(safe-area-inset-bottom));
    margin-top: 40px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
  }
  .footer-brand .logo-mark { margin: 0 auto; }
  .footer-copy { font-size: 11px; }
}

/* ==========================================================================
   MISC MOBILE POLISH
   ========================================================================== */

@media (max-width: 640px) {
  /* Prevent long URLs / words breaking layout */
  * { overflow-wrap: break-word; word-wrap: break-word; }

  /* Make h1/h2 look right on mobile */
  h1 { font-size: 24px; line-height: 1.2; }
  h2 { font-size: 18px; }

  /* Section head tighter */
  .section-head {
    margin: 28px 0 14px;
  }
  .section-head h2 { font-size: 17px; }
  .section-head .link { font-size: 12px; }

  /* CTA strip */
  .cta-post {
    padding: 20px;
    border-radius: 18px;
    margin-top: 32px;
  }
  .cta-post-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .cta-post h3 { font-size: 17px; }
  .cta-post .btn-gold { width: 100%; justify-content: center; }

  /* Empty state */
  .empty {
    padding: 48px 20px;
    border-radius: 20px;
  }
  .empty-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }
  .empty h3 { font-size: 18px; }
  .empty p { font-size: 14px; }
}

/* ==========================================================================
   LANDSCAPE PHONES (max-height 500)
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .modal { max-height: 96vh; }
  .hero-content { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
}

/* ==========================================================================
   TABLET — 641px to 900px
   ========================================================================== */

@media (min-width: 641px) and (max-width: 900px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .nav-inner { padding: 10px 20px; }
  main { padding: 20px 20px 60px; }
  .hero-content { padding: 48px 32px; }
  .hero h1 { font-size: 44px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   FOOTER — Rich multi-column + WhatsApp link
   ========================================================================== */

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 20px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, transform .15s;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--gold-500);
  transform: translateX(2px);
}

/* Brand column */
.footer-col-brand { max-width: 340px; }

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand-lockup .logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)) !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  flex-shrink: 0;
}
.footer-brand-lockup .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-lockup .logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  font-weight: 500;
}

.footer-blurb {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  max-width: 320px;
}

/* Powered by */
.footer-powered {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-powered-label {
  font-size: 10.5px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.footer-powered-brand {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-500);
  letter-spacing: -0.01em;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}
.footer-dot { color: rgba(255,255,255,0.2); }

/* WhatsApp pill in bottom bar */
.footer-bottom-right { display: flex; align-items: center; }
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(37,211,102,0.12);
  color: #4ade80;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background .15s, color .15s, transform .15s;
  text-decoration: none;
}
.footer-wa:hover {
  background: #25D366;
  color: white;
  transform: translateY(-1px);
}
.footer-wa svg { flex-shrink: 0; }

/* ==========================================================================
   FOOTER — Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  footer {
    padding: 40px 16px calc(20px + env(safe-area-inset-bottom));
    margin-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding-bottom: 28px;
  }

  .footer-col-brand { grid-column: 1 / -1; }

  .footer-brand-lockup .logo-mark { width: 38px; height: 38px; }
  .footer-brand-lockup .logo-text { font-size: 17px; }
  .footer-blurb { max-width: none; }

  .footer-col h4 { font-size: 11.5px; margin-bottom: 12px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 13.5px; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding-top: 20px;
  }
  .footer-bottom-left {
    justify-content: center;
    text-align: center;
    font-size: 11.5px;
    gap: 6px;
  }
  .footer-dot { display: none; }

  .footer-wa {
    padding: 9px 18px;
    font-size: 13px;
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LEGAL / POLICY PAGES
   ========================================================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.legal-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.15;
}

.legal-header p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.legal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.legal-meta-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.legal-meta-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Table of contents */
.legal-toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-toc h3 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.legal-toc ol {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-toc li {
  font-size: 14px;
}
.legal-toc a {
  color: var(--teal-500);
  font-weight: 600;
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }

/* Body content */
.legal-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.legal-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  scroll-margin-top: 80px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 10px;
  letter-spacing: -0.01em;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content a {
  color: var(--teal-500);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14,92,92,.3);
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-color: var(--teal-500); }

.legal-content code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--coral);
}

/* Callouts */
.legal-callout {
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gold-700);
}
.legal-callout strong { color: var(--gold-700); }

.legal-warn {
  background: var(--coral-50);
  border: 1px solid #F5C8BF;
  border-left: 4px solid var(--coral);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #A5341F;
}
.legal-warn strong { color: #A5341F; }

/* Contact block at bottom */
.legal-contact {
  background: linear-gradient(135deg, var(--teal-50), #DCEAE9);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-top: 48px;
}
.legal-contact h3 {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-contact p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.legal-contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.legal-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: white;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-500);
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.legal-contact-links a:hover {
  background: var(--teal-500);
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .legal-page { padding: 24px 16px 60px; }
  .legal-header h1 { font-size: 28px; }
  .legal-header p { font-size: 14px; }
  .legal-content { font-size: 15px; line-height: 1.7; }
  .legal-content h2 { font-size: 19px; margin-top: 32px; }
  .legal-content h3 { font-size: 15px; }
  .legal-toc { padding: 16px 20px; }
  .legal-contact { padding: 20px; }
}

/* ==========================================================================
   LEGAL / POLICY PAGES — powers all 10 legal pages
   (terms, privacy, cookies, prohibited, disputes, safety,
    guidelines, report, accessibility, dmca)
   ========================================================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.legal-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.15;
}

.legal-header p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.legal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.legal-meta-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.legal-meta-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Table of contents */
.legal-toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-toc h3 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.legal-toc ol {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-toc li {
  font-size: 14px;
}
.legal-toc a {
  color: var(--teal-500);
  font-weight: 600;
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }

/* Body content */
.legal-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.legal-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  scroll-margin-top: 80px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 10px;
  letter-spacing: -0.01em;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content a {
  color: var(--teal-500);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14,92,92,.3);
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-color: var(--teal-500); }

.legal-content code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--coral);
}

/* Callouts */
.legal-callout {
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gold-700);
}
.legal-callout strong { color: var(--gold-700); }

.legal-warn {
  background: var(--coral-50);
  border: 1px solid #F5C8BF;
  border-left: 4px solid var(--coral);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #A5341F;
}
.legal-warn strong { color: #A5341F; }

/* Contact block at bottom */
.legal-contact {
  background: linear-gradient(135deg, var(--teal-50), #DCEAE9);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-top: 48px;
}
.legal-contact h3 {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.legal-contact p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.legal-contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.legal-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: white;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-500);
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.legal-contact-links a:hover {
  background: var(--teal-500);
  color: white;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 640px) {
  .legal-page { padding: 24px 16px 60px; }
  .legal-header h1 { font-size: 28px; }
  .legal-header p { font-size: 14px; }
  .legal-content { font-size: 15px; line-height: 1.7; }
  .legal-content h2 { font-size: 19px; margin-top: 32px; }
  .legal-content h3 { font-size: 15px; }
  .legal-toc { padding: 16px 20px; }
  .legal-contact { padding: 20px; }
  .legal-contact-links a {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }
}

/* ==========================================================================
   ADMIN ANALYTICS
   ========================================================================== */

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.analytics-span-2 { grid-column: 1 / -1; }

.analytics-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.analytics-stats .stat-card {
  padding: 18px 16px;
}
.analytics-stats .stat-card .val {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--teal-500);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.analytics-stats .stat-card .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.analytics-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.analytics-card-head h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.analytics-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hourly bars */
.hourly-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  padding: 4px 0;
}
.hourly-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  border-radius: 4px;
  transition: background .15s;
}
.hourly-bar:hover { background: var(--bg-2); }
.hourly-bar-fill {
  width: 100%;
  min-height: 2px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  border-radius: 4px 4px 0 0;
  transition: height .3s var(--ease-out);
}
.hourly-bar-label {
  position: absolute;
  bottom: -20px;
  font-size: 9px;
  color: var(--muted-2);
  font-weight: 600;
}
.hourly-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  padding: 0 4px;
}

/* Donut */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.donut-legend {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donut-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.donut-label {
  flex: 1;
  color: var(--ink-2);
  font-weight: 600;
}
.donut-val {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--ink);
}
.donut-val em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

/* Horizontal bar rows */
.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.5fr) 2fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.bar-label {
  color: var(--ink-2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-label-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.bar-track {
  background: var(--bg-2);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
  border-radius: 999px;
  transition: width .4s var(--ease-out);
}
.bar-fill-gold {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
}
.bar-value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  min-width: 50px;
  text-align: right;
}
.bar-value em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 3px;
}

/* Recent activity feed */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.recent-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .15s;
}
.recent-row:hover { background: var(--bg-2); }
.recent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}
.recent-dot-mobile { background: var(--teal-500); }
.recent-dot-desktop { background: var(--gold-500); }
.recent-dot-tablet { background: #6CB0AC; }
.recent-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 900px) {
  .analytics-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .analytics-grid { grid-template-columns: 1fr; gap: 12px; }
  .analytics-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .analytics-stats .stat-card .val { font-size: 22px; }
  .analytics-card { padding: 16px; }
  .bar-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .bar-track { grid-column: 1 / -1; order: 3; }
  .hourly-bar-label { display: none; }
  .recent-row {
    grid-template-columns: 8px 1fr;
    gap: 8px;
  }
  .recent-meta { grid-column: 2; font-size: 10px; }
}

/* ==========================================================================
   FORGOT PASSWORD LINK
   ========================================================================== */

.forgot-link {
  display: block;
  width: 100%;
  text-align: right;
  margin-top: 6px;
  padding: 4px 0;
  background: none;
  border: none;
  color: var(--teal-500);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s;
  font-family: inherit;
}
.forgot-link:hover { color: var(--teal-700); text-decoration: underline; }

/* Back link in forgot form */
#backToLogin {
  text-align: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
#backToLogin:hover { color: var(--teal-500); }

@media (max-width: 640px) {
  .forgot-link {
    font-size: 14px;
    padding: 8px 0;
    min-height: 32px;
  }
}

/* ==========================================================================
   BUSINESS — Payment pending banner
   ========================================================================== */

.payment-pending-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--gold-50), #FFF1D4);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ppb-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(242,169,59,.35);
}

.ppb-body { flex: 1; min-width: 200px; }

.ppb-title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-700);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.ppb-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ppb-sub b { color: var(--gold-700); }

.ppb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--ink);
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(242,169,59,.4);
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.ppb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(242,169,59,.5);
}
.ppb-btn .icon { font-size: 16px; }

@media (max-width: 640px) {
  .payment-pending-banner {
    padding: 14px 16px;
    gap: 12px;
  }
  .ppb-icon { width: 38px; height: 38px; font-size: 18px; }
  .ppb-title { font-size: 14px; }
  .ppb-sub { font-size: 12px; }
  .ppb-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 14px;
  }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */

/* Stars — read-only display */
.stars-display {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
}
.star svg { width: 100%; height: 100%; }
.star.empty { color: var(--border-2); }
.star.filled { color: var(--gold-500); }

/* Review summary (avg) */
.review-summary {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--gold-50), #FFF1D4);
  border: 1.5px solid var(--gold-100);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}
.review-avg {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.review-avg-number {
  font-family: 'Sora', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-700);
  letter-spacing: -0.03em;
  line-height: 1;
}
.review-avg-label {
  font-size: 13px;
  color: var(--gold-700);
  font-weight: 600;
}

/* Review count badge */
.review-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  background: var(--bg-2);
  color: var(--muted);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

/* Reviews list */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }

.review-meta { flex: 1; min-width: 0; }

.review-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.review-name .verified-badge {
  display: inline-flex;
  color: var(--teal-500);
  background: var(--teal-50);
  border-radius: 50%;
  padding: 2px;
}
.review-name .verified-badge svg { width: 12px; height: 12px; }

.review-date {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.review-stars { flex-shrink: 0; }

.review-comment {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  white-space: pre-wrap;
}

.reviews-empty {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  font-size: 13.5px;
  color: var(--muted);
}

/* Star picker in modal */
.review-form-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 8px;
}

.review-star {
  width: 44px;
  height: 44px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--border-2);
  cursor: pointer;
  transition: transform .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-star svg { width: 100%; height: 100%; }
.review-star.active,
.review-star.preview { color: var(--gold-500); }
.review-star:hover { transform: scale(1.15); }
.review-star:active { transform: scale(0.95); }

.review-star-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  min-height: 20px;
}

/* Seller profile link on listing */
.seller-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-500);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-full);
  transition: background .15s;
}
.seller-profile-link:hover { background: var(--teal-50); }

/* ==========================================================================
   SELLER PROFILE PAGE
   ========================================================================== */

.seller-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}

.seller-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 40px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-teal);
}
.seller-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.seller-profile-info { flex: 1; min-width: 220px; }

.seller-profile-info h1 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.verified-badge-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500);
  background: var(--teal-50);
  border-radius: 50%;
  padding: 3px;
}
.verified-badge-lg svg { width: 16px; height: 16px; }

.seller-profile-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 10px;
  max-width: 600px;
}

.seller-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.seller-profile-meta b { color: var(--ink); font-weight: 700; }
.seller-profile-meta .dot { color: var(--muted-2); }

.seller-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Seller tabs */
.seller-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  padding: 5px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  width: fit-content;
}
.seller-tab {
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}
.seller-tab:hover { color: var(--ink); }
.seller-tab.active { background: white; color: var(--teal-500); box-shadow: var(--shadow-sm); }

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  background: var(--bg-2);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
}
.seller-tab.active .tab-count {
  background: var(--teal-50);
  color: var(--teal-500);
}

/* Mobile */
@media (max-width: 640px) {
  .seller-profile {
    padding: 20px;
    gap: 14px;
    text-align: center;
    flex-direction: column;
  }
  .seller-profile-info { text-align: center; }
  .seller-profile-info h1 { justify-content: center; font-size: 22px; }
  .seller-profile-meta { justify-content: center; }
  .seller-profile-avatar { width: 80px; height: 80px; font-size: 32px; }
  .seller-profile-actions { justify-content: center; }
  .seller-profile-actions .btn-primary,
  .seller-profile-actions .btn-ghost,
  .seller-profile-actions .wa-btn { width: 100%; justify-content: center; }

  .review-card { padding: 14px; }
  .review-form-stars { gap: 4px; }
  .review-star { width: 40px; height: 40px; }
  .review-avg-number { font-size: 28px; }

  .seller-profile-link { font-size: 11px; padding: 4px 8px; }
}