/* ── Fonts ──────────────────────────────────────────────────────────────────
   Fredoka      → logo (rounded, bold, distinctive)
   Raleway      → headings & display (elegant, exotic)
   Nunito       → body UI (friendly, clean, modern)
   Coming Soon  → loaded separately for messages page only
─────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Raleway:wght@400;500;600;700;800;900&family=Nunito:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F4EF;
  --surface: #FFFFFF;
  --surface-2: #F0EDE7;
  --border: #E2DDD6;
  --border-strong: #C8C2B8;
  --ink: #18150F;
  --ink-2: #4A4238;
  --ink-3: #7A7269;
  --accent: #C8522A;
  --accent-hover: #B04720;
  --accent-bg: #FDF0EB;
  --green: #2D7A4F;
  --green-bg: #EAF5EE;
  --amber: #B07000;
  --amber-bg: #FDF6E3;
  --blue: #1A5FA8;
  --blue-bg: #EBF2FC;
  --red: #C0312B;
  --red-bg: #FDECEA;
  --shadow-sm: 0 1px 3px rgba(24,21,15,.06), 0 1px 2px rgba(24,21,15,.04);
  --shadow-md: 0 4px 12px rgba(24,21,15,.08), 0 2px 4px rgba(24,21,15,.04);
  --shadow-lg: 0 12px 32px rgba(24,21,15,.1), 0 4px 8px rgba(24,21,15,.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --font-logo:    'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-display: 'Raleway', 'Nunito', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
.display { font-family: var(--font-display); font-weight: 800; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; }
h1,h2,h3,h4,h5 { line-height: 1.15; letter-spacing: -0.02em; }
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 13px; }
.text-base{ font-size: 15px; }
.text-lg  { font-size: 17px; }
.text-xl  { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 38px; }
.text-muted { color: var(--ink-3); }
.text-accent { color: var(--accent); }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; border: none;
  transition: all .18s ease; cursor: pointer; white-space: nowrap;
  font-family: var(--font-body);
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,82,42,.3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-surface { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-surface:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1.5px solid #f5c6c4; }
.btn-danger:hover { background: var(--red); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #245f3e; transform: translateY(-1px); }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-xl { padding: 16px 36px; font-size: 16px; }
.btn-icon { padding: 9px; border-radius: var(--radius-md); }
.btn-icon-circle { padding: 9px; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; color: var(--ink); background: var(--surface);
  transition: border-color .18s, box-shadow .18s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24,21,15,.07);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-3); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.badge-green  { background: var(--green-bg); color: var(--green); }
.badge-amber  { background: var(--amber-bg); color: var(--amber); }
.badge-red    { background: var(--red-bg);   color: var(--red); }
.badge-blue   { background: var(--blue-bg);  color: var(--blue); }
.badge-accent { background: var(--accent-bg);color: var(--accent); }
.badge-ink    { background: var(--ink); color: white; }
.badge-surface{ background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }

/* ── AVATAR ── */
.avatar {
  border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink-2); flex-shrink: 0; overflow: hidden;
  font-family: var(--font-body);
}
.avatar-sm  { width: 32px; height: 32px; font-size: 12px; }
.avatar-md  { width: 40px; height: 40px; font-size: 15px; }
.avatar-lg  { width: 52px; height: 52px; font-size: 18px; }
.avatar-xl  { width: 72px; height: 72px; font-size: 24px; }

/* ── NAVIGATION ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(247,244,239,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center;
  padding: 0 32px; gap: 0;
}
.nav-logo {
  font-family: var(--font-logo); font-size: 22px;
  font-weight: 700; letter-spacing: -.3px;
  color: var(--ink); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 4px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 2px; margin-left: 32px; list-style: none;
}
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--surface); color: var(--ink);
}
.nav-links a.active { font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-unread {
  position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.page { padding: 40px 0; min-height: calc(100vh - var(--nav-h)); }
.page-header { margin-bottom: 32px; }
.sidebar-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: all .2s; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product-card-img {
  width: 100%; height: 196px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--border) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img-placeholder {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.product-card-save {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: white; border: none; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; color: var(--ink-3);
}
.product-card-save:hover { color: var(--accent); transform: scale(1.1); }
.product-card-save.saved { color: var(--accent); }
.product-card-body { padding: 16px; }
.product-card-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 5px; }
.product-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1.5px solid var(--border); margin-top: 10px; }
.product-card-price { font-size: 20px; font-weight: 700; }
.product-card-price-orig { font-size: 13px; font-weight: 400; color: var(--ink-3); text-decoration: line-through; margin-left: 5px; }
.product-card-seller { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.condition-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cond-new { background: var(--green); }
.cond-like-new { background: #4CAF50; }
.cond-good { background: var(--amber); }
.cond-fair { background: #E89020; }

/* ── STATS CARD ── */
.stat-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.stat-card-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-card-value { font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 13px; color: var(--ink-3); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 10px 16px; border-bottom: 1.5px solid var(--border); text-align: left; white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg); }

/* ── SIDEBAR NAV ── */
.dash-sidebar {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .15s; border: none; background: none;
  width: 100%; text-align: left;
}
.dash-nav-item:hover { background: var(--bg); color: var(--ink); }
.dash-nav-item.active { background: var(--ink); color: white; }
.dash-nav-item .badge { margin-left: auto; }
.dash-nav-divider { height: 1px; background: var(--border); margin: 6px 8px; }

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: white;
  padding: 12px 18px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease; min-width: 260px; max-width: 380px;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--amber); }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(24,21,15,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 520px;
  transform: scale(.96); transition: transform .2s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1.5px solid var(--border); }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1.5px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 64px 32px; }
.empty-state-icon { width: 64px; height: 64px; background: var(--surface-2); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--ink-3); }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--ink-3); max-width: 280px; margin: 0 auto 24px; line-height: 1.6; }

/* ── RATING STARS ── */
.stars { display: flex; gap: 2px; color: #F0A020; }
.stars svg { width: 14px; height: 14px; }

/* ── DIVIDER ── */
.divider { height: 1.5px; background: var(--border); margin: 24px 0; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── TABS ── */
.tabs { display: flex; border-bottom: 1.5px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab-btn {
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  color: var(--ink-3); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FILTER CHIP ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all .15s; color: var(--ink-2);
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface);
  transition: all .15s; color: var(--ink);
}
.page-btn:hover { border-color: var(--ink); }
.page-btn.active { background: var(--ink); color: white; border-color: var(--ink); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── LOADING SKELETON ── */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── FOOTER ── */
.footer { background: var(--ink); color: rgba(255,255,255,.9); padding: 60px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { font-family: var(--font-logo); font-size: 24px; font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: -.2px; }
.footer-brand-logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 240px; }
.footer-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.35); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .page { padding: 24px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── UTILITY ── */
.flex    { display: flex; }
.flex-col{ display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.mt-2   { margin-top: 8px; }
.mt-4   { margin-top: 16px; }
.mt-6   { margin-top: 24px; }
.mt-8   { margin-top: 32px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media(max-width:900px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }
.rounded-full { border-radius: var(--radius-full); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── MOBILE RESPONSIVE (Bixcart) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav { height: 56px; padding: 0 16px; }
  .nav-logo { font-size: 20px; }
  .nav-links { display: none !important; }
  .nav-actions .btn-sm { padding: 6px 12px; font-size: 13px; }
  /* Always keep icon buttons (messages) visible on mobile */
  .nav-actions a.btn-icon { display: inline-flex !important; }

  /* Listings grid */
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-img { height: 160px; }
  .product-card-body { padding: 10px; }
  .product-card-title { font-size: 13px; -webkit-line-clamp: 2; }
  .product-card-price { font-size: 16px; }

  /* Market layout — stack filters */
  .market-layout { grid-template-columns: 1fr !important; }
  .filter-panel { position: static !important; display: none; }
  .filter-panel.open { display: block; }

  /* Filter toggle button — only show on mobile */
  .mobile-filter-toggle { display: flex !important; }

  /* Page padding */
  .page { padding: 20px 0; }
  .container { padding: 0 14px; }

  /* Sell form */
  .sell-layout { grid-template-columns: 1fr !important; }
  .sell-preview { display: none; }

  /* Listing detail */
  .listing-detail-layout { grid-template-columns: 1fr !important; }
  .listing-images { margin-bottom: 20px; }

  /* Messages — mobile layout handled entirely in messages.html */

  /* Buttons full-width in forms */
  .btn-lg.w-full { padding: 14px; font-size: 16px; }

  /* Hero on index */
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 36px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }

  /* Dash */
  .dash-grid { grid-template-columns: 1fr !important; }
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card-img { height: 200px; }
  .stats-row { grid-template-columns: 1fr !important; }
  .hero-title { font-size: 30px; }
  /* Hide only the "Log in" ghost button on very small screens; keep messages icon + sign-up visible */
  .nav-actions a.btn-ghost { display: none; }
}

/* Mobile filter toggle button — hidden on desktop */
.mobile-filter-toggle { display: none; margin-bottom: 14px; }

/* Smooth transitions for toggled panels */
.filter-panel, .conv-list { transition: none; }
