/* ============================================================
   buga.ng — Main Stylesheet v5
   Extracted from React preview — pixel-perfect match
   Mobile-first. No overlaps. No hacks.
   ============================================================ */

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

/* ── 2. DESIGN TOKENS (Dark Gold default) ────────────────── */
:root {
  /* backgrounds */
  --bg:          #0A0A0A;
  --bg2:         #111111;
  --card:        #181818;
  /* borders */
  --border:      #2A2A2A;
  --border-h:    #3A3A3A;
  /* text */
  --text:        #F0EDE6;
  --muted:       #7A7A7A;
  /* accent palette */
  --gold:        #C9A84C;
  --gold-l:      #E8C96A;
  --gold-dim:    rgba(201,168,76,0.14);
  --red:         #FF4D4D;
  --green:       #2ECC71;
  --purple:      #9090FF;
  /* layout */
  --nav-h:       56px;
  --sidebar-w:   200px;
  --rpanel-w:    256px;
  --mobnav-h:    64px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  /* typography */
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  /* shadow */
  --shadow:      0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.55);
  /* nav bg */
  --nav-bg:      rgba(10,10,10,0.92);
  --nav-blur:    blur(16px);
}

/* ── 3. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a  { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── 4. TYPOGRAPHY ────────────────────────────────────────── */
.font-head { font-family: var(--font-head); }
h1, h2, h3, h4, .h-font { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

/* ── 5. TOP NAV ───────────────────────────────────────────── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  cursor: pointer;
}
.logo span { color: var(--gold); }
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 20px;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-search {
  flex: 1;
  max-width: 340px;
  display: none; /* shown on tablet+ */
}
.nav-search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.nav-search-input:focus { border-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.nav-icon-btn:hover { border-color: var(--gold); }
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-avatar-letter {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.badge-dot {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--red);
  color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 8px;
  padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}

/* ── 6. PAGE LAYOUT ───────────────────────────────────────── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
}
/* MOBILE: full width, bottom nav padding */
.page-content {
  flex: 1;
  padding: 14px 12px calc(var(--mobnav-h) + 14px);
  min-width: 0;
  width: 100%;
}

/* ── 7. SIDEBAR ───────────────────────────────────────────── */
/* Hidden on mobile — shown via drawer instead */
.sidebar {
  display: none;
}
/* Sidebar inner content — shared by both sidebar and drawer */
.sidebar-inner {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.sidebar-section-label {
  padding: 8px 16px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  position: relative;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-item.active { color: var(--gold); background: var(--gold-dim); border-left-color: var(--gold); }
.nav-item.accent { color: var(--gold); font-weight: 600; }
.nav-item-icon { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-item-sm { padding: 7px 16px; font-size: 12px; }
.sidebar-divider { height: 1px; background: var(--border); margin: 10px 0; }
.sidebar-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }

/* ── 8. RIGHT PANEL ───────────────────────────────────────── */
/* Hidden everywhere below 1100px */
.right-panel {
  display: none;
}
.panel-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.panel-divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── 9. MOBILE BOTTOM NAV ─────────────────────────────────── */
.mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--mobnav-h);
  z-index: 200;
  background: rgba(17,17,17,0.97);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  padding: 0 6px;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.mob-nav-item.active { color: var(--gold); }
.mob-nav-item span:first-child { font-size: 22px; line-height: 1; }
.mob-nav-post {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.5);
  flex-shrink: 0;
}

/* ── 10. MOBILE DRAWER ────────────────────────────────────── */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 300;
}
.drawer-backdrop.open { display: block; }
.drawer-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 270px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  z-index: 301;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.drawer-panel.open { transform: translateX(0); }
.drawer-header {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 1;
}
.drawer-close {
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

/* ── 11. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  padding: 8px 18px;
  min-height: 38px;
}
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-l); }
.btn-outline { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 6px 14px; font-size: 12px; min-height: 32px; }
.btn-lg { padding: 12px 28px; font-size: 15px; min-height: 46px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { color: var(--red); border: 1px solid rgba(255,77,77,0.3); }
.btn-danger:hover { background: rgba(255,77,77,0.1); }

/* ── 12. FORM ELEMENTS ────────────────────────────────────── */
.form-control, .form-select, .form-textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { appearance: none; cursor: pointer; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-group { margin-bottom: 18px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
@media (min-width: 480px) { .form-card { padding: 28px; } }
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ── 13. PILLS / TABS ─────────────────────────────────────── */
.pill-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  min-height: 34px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { color: var(--text); border-color: var(--border-h); }
.pill.active { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; }

/* ── 14. CARDS ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
/* On mobile: cards go edge-to-edge like Instagram */
.feed-card {
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin-bottom: 8px;
}
/* Action buttons inside cards */
.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  min-height: 34px;
}
.action-btn:hover { color: var(--text); border-color: var(--border-h); }
.action-btn.liked { color: var(--red); border-color: rgba(255,77,77,0.35); background: rgba(255,77,77,0.08); }
.action-btn.saved { color: var(--gold); border-color: rgba(201,168,76,0.35); background: var(--gold-dim); }
.action-btn.going { color: var(--green); border-color: rgba(46,204,113,0.35); background: rgba(46,204,113,0.08); }
.chat-seller-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 100px; font-size: 12px;
  background: var(--gold); color: #111; font-weight: 700; cursor: pointer;
  border: none; margin-left: auto; font-family: var(--font-body);
  min-height: 34px; white-space: nowrap;
  transition: background 0.15s;
}
.chat-seller-btn:hover { background: var(--gold-l); }

/* ── 15. POST / LISTING CARD ──────────────────────────────── */
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.post-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-user-name { font-size: 13px; font-weight: 600; }
.post-user-meta { font-size: 11px; color: var(--muted); }
.verified-icon { color: var(--gold); font-size: 11px; margin-left: 3px; }
.type-badge {
  font-size: 9px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.8px;
  flex-shrink: 0;
}
.type-product { background: rgba(201,168,76,0.14); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.type-service { background: rgba(46,204,113,0.12); color: var(--green); border: 1px solid rgba(46,204,113,0.25); }
.type-event   { background: rgba(255,77,77,0.12);  color: var(--red);   border: 1px solid rgba(255,77,77,0.25); }
.type-editorial { background: rgba(144,144,255,0.12); color: var(--purple); border: 1px solid rgba(144,144,255,0.25); }

.post-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg2);
}
.post-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg2), var(--card));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.post-body { padding: 13px 14px; }
.post-title {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700;
  line-height: 1.3; margin-bottom: 5px;
}
.post-desc { font-size: 12px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.post-price {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 800;
  color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nego-tag {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 400; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 100px; padding: 2px 8px;
}
.post-stats { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }

/* ── 16. EVENT CARD EXTRAS ────────────────────────────────── */
.event-date-badge {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.event-image { width: 100%; aspect-ratio: 16/7; object-fit: cover; background: var(--bg2); }
.event-image-placeholder {
  width: 100%; aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--bg2), var(--card));
  display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.event-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: var(--muted); }

/* ── 17. EDITORIAL CARD ───────────────────────────────────── */
.editorial-card {
  display: flex;
  min-height: 110px;
  cursor: pointer;
}
.editorial-img {
  width: 100px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg2), var(--card));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  object-fit: cover;
}
.editorial-body { padding: 13px 14px; flex: 1; min-width: 0; }
.editorial-cat { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--purple); margin-bottom: 5px; }
.editorial-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.editorial-meta { font-size: 10px; color: var(--muted); }

/* ── 18. SHOP GRID ────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.shop-card { cursor: pointer; position: relative; }
.shop-card:hover { border-color: var(--gold); }
.shop-card-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block; background: var(--bg2);
}
.shop-card-img-placeholder {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg2), var(--card));
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  position: relative;
}
.shop-card-body { padding: 10px; }
.shop-card-seller { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.shop-card-seller-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold); color: #111;
  font-size: 7px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.shop-card-seller-name { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-card-title {
  font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; color: var(--text);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.shop-card-price { font-family: var(--font-head); font-size: 14px; font-weight: 800; color: var(--gold); }
.shop-card-nego { font-size: 9px; color: var(--muted); margin-top: 2px; }
.shop-card-stats { display: flex; gap: 8px; margin-top: 5px; font-size: 10px; color: var(--muted); }
/* Hover overlay — desktop only */
.shop-card-hover {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
@media (hover: hover) {
  .shop-card:hover .shop-card-hover { opacity: 1; pointer-events: all; }
}
.card-badge-tl { position: absolute; top: 8px; left: 8px; }
.card-badge-tr { position: absolute; top: 8px; right: 8px; }
.featured-star {
  background: var(--gold); color: #111; font-size: 8px; font-weight: 800;
  padding: 2px 7px; border-radius: 100px;
}

/* ── 19. STORIES ──────────────────────────────────────────── */
.stories-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px;
  scrollbar-width: none;
}
.stories-row::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.story-ring {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--red));
  padding: 2px;
}
.story-ring.add { background: var(--card); border: 2px dashed var(--border); }
.story-inner {
  width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; overflow: hidden;
}
.story-inner img { width: 100%; height: 100%; object-fit: cover; }
.story-name { font-size: 10px; color: var(--muted); max-width: 54px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 20. COMPOSER ─────────────────────────────────────────── */
.composer { margin-bottom: 12px; }
.composer-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.composer-input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 100px; padding: 10px 16px; font-size: 13px; color: var(--muted); cursor: pointer;
}
.composer-input:hover { border-color: var(--border-h); }
.composer-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.composer-action {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg2);
  font-size: 12px; color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.composer-action:hover { color: var(--gold); border-color: rgba(201,168,76,0.3); }

/* ── 21. PROFILE ──────────────────────────────────────────── */
.profile-header { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--gold); overflow: hidden; flex-shrink: 0;
  background: var(--card); display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats { display: flex; gap: 20px; margin-top: 10px; }
.profile-stat-num { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.profile-stat-label { font-size: 11px; color: var(--muted); }

/* ── 22. DASHBOARD ────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-icon { font-size: 20px; margin-bottom: 6px; }
.stat-num { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── 23. CHAT ─────────────────────────────────────────────── */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--nav-h) - var(--mobnav-h) - 28px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-sidebar { display: none; } /* shown on tablet+ */
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-header { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chat-messages { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg-row { display: flex; }
.msg-row.me { justify-content: flex-end; }
.msg-bubble { max-width: 72%; padding: 9px 13px; font-size: 13px; line-height: 1.5; }
.msg-bubble.them { background: var(--bg2); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; }
.msg-bubble.me   { background: var(--gold); color: #111; border-radius: 16px 4px 16px 16px; }
.msg-time { font-size: 10px; color: var(--muted); margin-top: 3px; text-align: right; }
.chat-input-row { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.chat-input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 16px; color: var(--text);
  font-size: 13px; outline: none; font-family: var(--font-body);
}
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: #111; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
}

/* ── 24. BOTTOM SHEET (modals) ────────────────────────────── */
.sheet-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 400;
}
.sheet-backdrop.open { display: block; }
.sheet-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 401;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.sheet-panel.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ── 25. ALERTS ───────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; }
.alert-success { background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.28); color: var(--green); }
.alert-error, .alert-danger { background: rgba(255,77,77,0.1); border: 1px solid rgba(255,77,77,0.25); color: var(--red); }
.alert-warning { background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); }
.alert-info { background: rgba(144,144,255,0.1); border: 1px solid rgba(144,144,255,0.25); color: var(--purple); }

/* ── 26. TAGS / CHIPS ─────────────────────────────────────── */
.tag {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: 100px; background: var(--bg2); color: var(--muted);
  border: 1px solid var(--border); margin: 2px; cursor: pointer;
  transition: all 0.15s;
}
.tag:hover { border-color: var(--gold); color: var(--gold); }

/* ── 27. TRENDING SELLERS (right panel) ───────────────────── */
.seller-mini { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.seller-mini:last-child { border-bottom: none; }
.seller-avi {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--gold); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0; overflow: hidden;
}
.seller-avi img { width: 100%; height: 100%; object-fit: cover; }
.seller-info { flex: 1; min-width: 0; }
.seller-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-sub  { font-size: 10px; color: var(--muted); }
.follow-btn {
  font-size: 10px; font-weight: 700; color: var(--gold);
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 10px; border-radius: 100px; cursor: pointer; flex-shrink: 0;
  transition: all 0.15s; font-family: var(--font-body);
}
.follow-btn:hover, .follow-btn.following { background: var(--gold); color: #111; }

/* ── 28. MISC UTILITIES ───────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.page-header { margin-bottom: 18px; }
.page-header p { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.6; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon  { font-size: 48px; margin-bottom: 12px; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-red    { color: var(--red); }
.text-green  { color: var(--green); }
.font-bold   { font-weight: 700; }

/* ── 29. SHOP STICKY TOPBAR ───────────────────────────────── */
.shop-topbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0 0;
  margin-bottom: 14px;
}
.shop-search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.shop-search-input {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 14px; color: var(--text); font-size: 13px;
  outline: none; font-family: var(--font-body); transition: border-color 0.2s;
}
.shop-search-input:focus { border-color: var(--gold); }
.filter-btn {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 14px; font-size: 12px; font-weight: 600;
  color: var(--muted); cursor: pointer; font-family: var(--font-body); flex-shrink: 0;
  transition: all 0.15s;
}
.filter-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ── 30. ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease both; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* ── TABLET: ≥ 768px ──────────────────────────────────────── */
@media (min-width: 768px) {
  /* Show nav search */
  .nav-search { display: block; }
  /* Hide hamburger */
  .hamburger-btn { display: none; }
  /* Show sidebar */
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg2);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 100;
  }
  /* Content gets left margin */
  .page-content {
    margin-left: var(--sidebar-w);
    padding: 20px 18px 30px;
  }
  /* Hide mobile nav */
  .mobile-nav { display: none; }
  /* Chat sidebar shows */
  .chat-sidebar {
    display: flex; flex-direction: column;
    width: 220px; flex-shrink: 0;
    border-right: 1px solid var(--border);
  }
  /* Feed cards get radius back */
  .feed-card { border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 14px; }
  /* Dashboard 3 cols */
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  /* Shop 3 cols */
  .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  /* Editorial img wider */
  .editorial-img { width: 120px; }
  /* Form card more padding */
  .form-card { padding: 28px; }
}

/* ── DESKTOP: ≥ 1100px ────────────────────────────────────── */
@media (min-width: 1100px) {
  /* Show right panel */
  .right-panel {
    display: block;
    position: fixed;
    top: var(--nav-h); right: 0; bottom: 0;
    width: var(--rpanel-w);
    background: var(--bg2);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    z-index: 100;
    padding: 20px 16px;
  }
  /* Content gets right margin too, max width for readability */
  .page-content {
    margin-right: var(--rpanel-w);
    max-width: calc(var(--sidebar-w) + 700px);
  }
  /* Shop 4 cols on desktop */
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
  /* But inside narrow content area: 3 cols is fine */
}

/* ── LARGE: ≥ 1400px ──────────────────────────────────────── */
@media (min-width: 1400px) {
  :root { --sidebar-w: 220px; --rpanel-w: 280px; }
  .logo { font-size: 22px; }
}

/* ── 31. DISPLAY UTILITIES ────────────────────────────────── */
.d-none       { display: none !important; }
.d-md-none    { display: initial; }
.d-md-flex    { display: none; }
.d-md-inline  { display: none; }

@media (min-width: 768px) {
  .d-md-none   { display: none !important; }
  .d-md-flex   { display: flex !important; }
  .d-md-inline { display: inline !important; }
}

/* ── 32. LISTING DETAIL ────────────────────────────────────── */
.listing-images {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.listing-images::-webkit-scrollbar { display: none; }
.listing-main-img {
  flex: 0 0 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
}
.listing-thumb {
  flex: 0 0 70px;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s;
}
.listing-thumb:hover { opacity: 1; }

/* ── 33. PAGE SPECIFIC ─────────────────────────────────────── */
/* Auth pages centred */
.auth-wrap {
  max-width: 460px;
  margin: 40px auto 0;
}
/* Become seller */
.seller-perks { display: flex; flex-direction: column; gap: 0; }
.seller-perk  { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.seller-perk-icon { color: var(--gold); font-size: 16px; flex-shrink: 0; }

/* Search results grid */
.sellers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 480px) { .sellers-grid { grid-template-columns: repeat(3, 1fr); } }
