/* ============================================================
   CHAFFEE HUB — Premium Design System
   Fonts: Lora (display) + DM Sans (body)
   Built for acquisition-grade presentation
   ============================================================ */

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

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --brand:        #1B4F8A;
  --brand-mid:    #2563AB;
  --brand-dark:   #0F2D50;
  --brand-light:  #E8F0FB;
  --accent:       #D4752A;
  --accent-light: #FDF0E6;
  --verified:     #059669;
  --verified-bg:  #D1FAE5;
  --featured:     #B45309;
  --featured-bg:  #FEF3C7;
  --featured-border: #F59E0B;

  --text1:  #0F1923;
  --text2:  #4B5563;
  --text3:  #9CA3AF;
  --bg1:    #FFFFFF;
  --bg2:    #F8FAFC;
  --bg3:    #EEF2F7;
  --border: #E2E8F0;
  --border2:#CBD5E1;

  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --nav-h: 62px;
  --transition: 0.18s ease;
}

/* ── 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); color: var(--text1); background: var(--bg2); line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: var(--font-body); }

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--brand-dark); cursor: pointer;
  flex-shrink: 0; line-height: 1;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 400;
  color: var(--text3); letter-spacing: 0.3px;
  display: block; margin-top: 1px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-link {
  font-size: 0.83rem; font-weight: 500; color: var(--text2);
  padding: 0.4rem 0.8rem; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 5px;
  transition: all var(--transition);
}
.nav-link:hover { background: var(--bg2); color: var(--text1); }
.nav-link.active { color: var(--brand); background: var(--brand-light); }
.nav-link i { font-size: 15px; }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-weather {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--text2);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  white-space: nowrap;
}
.nav-weather i { color: var(--accent); font-size: 15px; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.nav-hamburger span { display: block; width: 18px; height: 2px; background: var(--text1); border-radius: 2px; transition: all 0.2s; }
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg1); border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem; z-index: 199;
  box-shadow: var(--shadow-md); gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  display: flex; align-items: center; gap: 8px;
  padding: 0.65rem 0.85rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500; color: var(--text1);
  width: 100%; text-align: left; transition: background var(--transition);
}
.mobile-menu-link:hover { background: var(--bg2); }
.mobile-menu-link i { font-size: 17px; color: var(--brand); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.mobile-menu-post {
  background: var(--brand); color: #fff;
  border: none; padding: 0.7rem 1rem;
  border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 4px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.1rem; border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-mid); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--bg1); color: var(--text1); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #bf6522; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg2); color: var(--text1); }
.btn-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-lg { padding: 0.7rem 1.5rem; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #2563AB 100%);
  padding: 2.5rem 1.5rem 2rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 0.65rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: #fff; line-height: 1.15; margin-bottom: 0.65rem;
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.82); }
.hero p { color: rgba(255,255,255,0.68); font-size: 0.92rem; font-weight: 300; line-height: 1.65; margin-bottom: 1.5rem; }

/* ── SEARCH BAR ───────────────────────────────────────────── */
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.search-input {
  flex: 1; min-width: 160px;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-md); font-size: 0.9rem;
  backdrop-filter: blur(8px); transition: all var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.45); }
.search-input:focus { outline: none; background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.45); }
.search-select {
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-md); font-size: 0.88rem;
  backdrop-filter: blur(8px); cursor: pointer;
}
.search-select option { background: var(--brand-dark); color: #fff; }
.search-btn {
  background: #fff; color: var(--brand); font-weight: 700;
  padding: 0.65rem 1.1rem; border-radius: var(--radius-md);
  border: none; font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: all var(--transition);
}
.search-btn:hover { background: var(--accent); color: #fff; }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg1); border-bottom: 1px solid var(--border);
  display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem;
}
.stats-bar::-webkit-scrollbar { display: none; }
.stat-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1rem; border-right: 1px solid var(--border);
  cursor: pointer; flex-shrink: 0; transition: background var(--transition);
  white-space: nowrap;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg2); }
.stat-item:hover .stat-num { color: var(--brand); }
.stat-num { font-size: 1.05rem; font-weight: 700; color: var(--text1); line-height: 1; }
.stat-label { font-size: 0.73rem; color: var(--text2); }
.stat-badge {
  background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.4px;
  padding: 2px 8px; border-radius: var(--radius-full);
}

/* ── TABS ─────────────────────────────────────────────────── */
.tabs-wrap {
  background: var(--bg1); border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 100;
}
.tabs { display: flex; overflow-x: auto; padding: 0 1.5rem; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.8rem 1rem; font-size: 0.83rem; font-weight: 500;
  color: var(--text2); border-bottom: 2px solid transparent;
  border-top: none; border-left: none; border-right: none;
  background: none; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0; transition: all var(--transition);
}
.tab i { font-size: 15px; }
.tab:hover:not(.active) { color: var(--text1); background: var(--bg2); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ── CONTENT ──────────────────────────────────────────────── */
.content { max-width: 860px; margin: 0 auto; padding: 1.25rem 1.5rem; }
.panel { display: none; }
.panel.active { display: block; }

/* ── CTA BAR ──────────────────────────────────────────────── */
.cta-bar {
  background: linear-gradient(135deg, var(--brand-light), #dbeafe);
  border: 1px solid rgba(27,79,138,0.15);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.cta-bar-text strong { display: block; font-size: 0.93rem; color: var(--brand-dark); font-weight: 600; margin-bottom: 2px; }
.cta-bar-text p { font-size: 0.8rem; color: var(--text2); }

/* ── LISTING CARDS ────────────────────────────────────────── */
.listing-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.2rem;
  margin-bottom: 0.8rem; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
  position: relative;
}
.listing-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Featured listing — premium upcharge hook */
.listing-card.featured {
  border-color: var(--featured-border) !important;
  background: linear-gradient(to bottom right, #fff, var(--featured-bg));
  box-shadow: 0 4px 16px rgba(180,83,9,0.12), 0 0 0 1px var(--featured-border);
}
.listing-card.featured:hover {
  box-shadow: 0 8px 24px rgba(180,83,9,0.18), 0 0 0 1px var(--featured-border);
  transform: translateY(-2px);
}
.featured-pin {
  position: absolute; top: -1px; right: 16px;
  background: var(--featured-border); color: #fff;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 3px 9px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex; align-items: center; gap: 4px;
}

.card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px; margin-bottom: 0.4rem;
}
.card-title { font-weight: 600; font-size: 0.95rem; color: var(--text1); line-height: 1.3; }
.card-badges { display: flex; gap: 5px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.badge {
  font-size: 0.68rem; padding: 2px 8px; border-radius: var(--radius-full);
  font-weight: 700; white-space: nowrap; letter-spacing: 0.2px;
}
.badge-new     { background: var(--accent); color: #fff; }
.badge-verified{ background: var(--verified-bg); color: var(--verified); }
.badge-featured{ background: var(--featured-bg); color: var(--featured); border: 1px solid var(--featured-border); }
.badge-work    { background: #EBF4FF; color: #1B4F8A; }
.badge-hire    { background: #EDFAF3; color: #166534; }
.badge-services{ background: #F0EDFF; color: #4C1D95; }
.badge-connect { background: #FFF8ED; color: #92400E; }
.badge-sale    { background: #FEF2F2; color: #991B1B; }
.badge-live    { background: #F0F9FF; color: #075985; }
.badge-spot    { background: #F0FDF4; color: #14532D; }

.card-meta {
  font-size: 0.77rem; color: var(--text2);
  display: flex; gap: 0.65rem; flex-wrap: wrap;
  margin-bottom: 0.35rem; align-items: center;
}
.card-meta i { font-size: 13px; }
.card-desc { font-size: 0.83rem; color: var(--text2); line-height: 1.55; }
.card-photos { display: flex; gap: 6px; flex-wrap: wrap; margin: 0.5rem 0; }
.card-photo { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.65rem; padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.card-pay { font-size: 0.88rem; font-weight: 700; color: var(--text1); }
.card-cta { font-size: 0.75rem; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 3px; }
.card-source {
  margin-top: 0.45rem; background: var(--featured-bg);
  border-radius: var(--radius-sm); padding: 4px 8px;
  font-size: 0.72rem; color: var(--featured);
  display: flex; align-items: flex-start; gap: 5px; line-height: 1.45;
}

/* ── CONTACT SHIELD (privacy-first lead protection) ────────── */
.contact-shield {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem;
  text-align: center; margin: 1rem 0;
}
.contact-shield p { font-size: 0.85rem; color: var(--text2); margin-bottom: 0.75rem; }
.contact-revealed { display: none; }
.contact-revealed.show { display: flex; flex-direction: column; gap: 6px; }
.contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--text1); font-weight: 500;
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.5rem 0.85rem;
}
.contact-item i { color: var(--brand); font-size: 16px; flex-shrink: 0; }

/* ── FORMS ────────────────────────────────────────────────── */
.form-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.form-card h3 {
  font-size: 0.88rem; font-weight: 600; color: var(--text1);
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 0.8rem; color: var(--text2); margin-bottom: 5px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1px solid var(--border2); border-radius: var(--radius-md);
  font-size: 0.88rem; color: var(--text1);
  background: var(--bg1); transition: border-color var(--transition);
  font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.08);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-note { font-size: 0.75rem; color: var(--text3); margin-top: 4px; }
.error-msg {
  background: #FEE2E2; color: #991B1B;
  border-radius: var(--radius-md); padding: 0.6rem 0.9rem;
  font-size: 0.82rem; margin: 0.5rem 0; display: none;
  align-items: flex-start; gap: 6px;
}
.error-msg i { flex-shrink: 0; margin-top: 1px; }
.success-msg {
  background: var(--verified-bg); color: var(--verified);
  border-radius: var(--radius-md); padding: 0.6rem 0.9rem;
  font-size: 0.82rem; margin: 0.5rem 0; display: none;
}

/* ── MODALS ───────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 300; display: none; align-items: center;
  justify-content: center; padding: 1rem;
  backdrop-filter: blur(4px);
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg1); border-radius: var(--radius-lg);
  padding: 1.75rem; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-xl); max-height: 90vh; overflow-y: auto;
}
.modal h2 {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 600; margin-bottom: 1.25rem; color: var(--text1);
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.25rem; }

/* ── DASHBOARD ────────────────────────────────────────────── */
.dash-layout { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.profile-header {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg); padding: 1.75rem;
  margin-bottom: 1.5rem; display: flex;
  align-items: center; gap: 1.25rem; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.4);
  flex-shrink: 0; cursor: pointer;
}
.profile-initial {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; color: #fff;
  border: 3px solid rgba(255,255,255,0.4); flex-shrink: 0;
  position: relative; cursor: pointer;
}
.profile-camera-overlay {
  position: absolute; bottom: 0; right: 0;
  background: rgba(0,0,0,0.65); border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.profile-camera-overlay i { font-size: 12px; color: #fff; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.profile-email { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 0.5rem; }
.profile-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.profile-meta span { font-size: 0.8rem; color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 4px; }
.profile-bio { margin-top: 0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.5; }

.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-box {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem;
  text-align: center; box-shadow: var(--shadow-sm);
}
.stat-box-num { font-size: 1.75rem; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 4px; }
.stat-box-label { font-size: 0.75rem; color: var(--text2); font-weight: 500; }

.dash-section {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 1rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.dash-section-title { font-weight: 600; font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.dash-section-body { padding: 1.25rem; }

.listing-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
}
.listing-row:last-child { border-bottom: none; padding-bottom: 0; }
.listing-row:first-child { padding-top: 0; }
.listing-row-info { flex: 1; min-width: 0; }
.listing-row-title {
  font-weight: 600; font-size: 0.9rem; color: var(--text1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.listing-row-meta { font-size: 0.75rem; color: var(--text2); display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }
.listing-row-actions { display: flex; gap: 5px; flex-shrink: 0; }

.status-badge { font-size: 0.68rem; padding: 2px 7px; border-radius: var(--radius-full); font-weight: 700; }
.status-active   { background: var(--verified-bg); color: var(--verified); }
.status-pending  { background: var(--featured-bg); color: var(--featured); }
.status-expired  { background: #FEE2E2; color: #991B1B; }

/* ── ADMIN ────────────────────────────────────────────────── */
.admin-nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; background: var(--brand-dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky; top: 0; z-index: 200;
}
.admin-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; cursor: pointer; }
.admin-logo sub { font-family: var(--font-body); font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.5); display: block; }
.admin-badge { background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.8px; padding: 2px 8px; border-radius: var(--radius-full); text-transform: uppercase; }
.admin-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.admin-sidebar { width: 200px; flex-shrink: 0; background: var(--bg1); border-right: 1px solid var(--border); padding: 0.75rem 0; }
.admin-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0.6rem 1rem; font-size: 0.83rem; font-weight: 500;
  color: var(--text2); cursor: pointer; width: 100%; text-align: left;
  border-left: 3px solid transparent; transition: all var(--transition);
}
.admin-nav-item i { font-size: 16px; }
.admin-nav-item:hover { background: var(--bg2); color: var(--text1); }
.admin-nav-item.active { background: var(--brand-light); color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.admin-nav-divider { height: 1px; background: var(--border); margin: 4px 0; }
.admin-main { flex: 1; padding: 1.5rem; overflow-y: auto; }
.admin-page-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.25rem; }
.admin-page-sub { font-size: 0.82rem; color: var(--text2); margin-bottom: 1.25rem; }

.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.admin-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--brand); line-height: 1; }
.admin-stat-label { font-size: 0.73rem; color: var(--text2); font-weight: 500; margin-top: 3px; }
.admin-stat-sub { font-size: 0.7rem; color: var(--accent); margin-top: 1px; }

.table-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.table-head-title { font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.filter-pills { display: flex; gap: 5px; }
.filter-pill {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-full); border: 1px solid var(--border);
  background: var(--bg1); color: var(--text2); cursor: pointer;
  transition: all var(--transition);
}
.filter-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 0.72rem; font-weight: 700;
  color: var(--text3); padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.6px;
  background: var(--bg2);
}
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.83rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }
.action-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.tbl-btn {
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px;
  border-radius: var(--radius-md); cursor: pointer;
  border: none; display: inline-flex; align-items: center; gap: 3px;
  transition: all var(--transition); font-family: var(--font-body);
}
.tbl-activate { background: var(--verified-bg); color: var(--verified); }
.tbl-activate:hover { background: var(--verified); color: #fff; }
.tbl-deactivate { background: var(--featured-bg); color: var(--featured); }
.tbl-deactivate:hover { background: #d97706; color: #fff; }
.tbl-delete { background: #FEE2E2; color: #991B1B; }
.tbl-delete:hover { background: #dc2626; color: #fff; }
.tbl-edit { background: var(--brand-light); color: var(--brand); }
.tbl-edit:hover { background: var(--brand); color: #fff; }

/* ── CHAT ─────────────────────────────────────────────────── */
.chat-layout { display: flex; height: calc(100vh - var(--nav-h)); }
.chat-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--brand-dark); display: flex; flex-direction: column;
}
.chat-sidebar-header {
  padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-sidebar-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.9); margin-bottom: 2px;
}
.chat-sidebar-sub { font-size: 0.73rem; color: rgba(255,255,255,0.45); }
.chat-channels { flex: 1; padding: 0.75rem 0; overflow-y: auto; }
.chat-channel-group { padding: 0.4rem 1rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 0.25rem; }
.chat-channel {
  display: flex; align-items: center; gap: 8px;
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.6); cursor: pointer;
  transition: all var(--transition); border-radius: 0;
  border-left: 3px solid transparent;
}
.chat-channel:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.chat-channel.active { background: rgba(255,255,255,0.1); color: #fff; border-left-color: var(--accent); }
.chat-channel-hash { font-size: 1rem; color: rgba(255,255,255,0.3); }
.chat-channel.active .chat-channel-hash { color: rgba(255,255,255,0.7); }
.chat-unread {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 800; padding: 1px 6px;
  border-radius: var(--radius-full); min-width: 18px; text-align: center;
}
.chat-sidebar-footer {
  padding: 0.75rem 1rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 8px;
}
.chat-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.chat-user-initial {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.chat-user-name { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.8); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-main { flex: 1; display: flex; flex-direction: column; background: var(--bg1); overflow: hidden; }
.chat-header {
  padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--bg1);
}
.chat-header-hash { font-size: 1.3rem; color: var(--text3); }
.chat-header-name { font-weight: 600; font-size: 0.95rem; }
.chat-header-desc { font-size: 0.78rem; color: var(--text2); margin-left: 4px; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
.chat-msg {
  display: flex; gap: 10px; padding: 6px 0;
  transition: background var(--transition); border-radius: var(--radius-md);
  padding-left: 4px; padding-right: 4px;
}
.chat-msg:hover { background: var(--bg2); }
.chat-msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; margin-top: 2px;
}
.chat-msg-initial {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: var(--brand);
  flex-shrink: 0; margin-top: 2px;
}
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chat-msg-name { font-size: 0.85rem; font-weight: 600; color: var(--text1); }
.chat-msg-time { font-size: 0.7rem; color: var(--text3); }
.chat-msg-text { font-size: 0.88rem; color: var(--text1); line-height: 1.55; word-break: break-word; }
.chat-system-msg {
  text-align: center; font-size: 0.75rem; color: var(--text3);
  padding: 0.4rem 0; font-style: italic;
}
.chat-input-area {
  padding: 0.85rem 1.25rem; border-top: 1px solid var(--border);
  background: var(--bg1); flex-shrink: 0;
}
.chat-input-wrap {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.55rem 0.85rem;
  transition: border-color var(--transition);
}
.chat-input-wrap:focus-within { border-color: var(--brand); background: var(--bg1); }
.chat-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 0.9rem; color: var(--text1); resize: none;
  max-height: 120px; line-height: 1.5; padding: 0;
  font-family: var(--font-body);
}
.chat-input::placeholder { color: var(--text3); }
.chat-send-btn {
  background: var(--brand); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; transition: all var(--transition);
}
.chat-send-btn:hover { background: var(--brand-mid); transform: scale(1.05); }
.chat-send-btn:disabled { background: var(--border2); cursor: not-allowed; transform: none; }
.chat-send-btn i { font-size: 16px; }
.chat-locked {
  padding: 1rem 1.25rem; border-top: 1px solid var(--border);
  background: var(--bg2); text-align: center;
  font-size: 0.85rem; color: var(--text2);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.chat-cooldown {
  font-size: 0.72rem; color: var(--text3); margin-top: 4px; text-align: center;
}

/* ── LOGIN ────────────────────────────────────────────────── */
.login-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
}
.login-icon { font-size: 48px; margin-bottom: 1rem; display: block; }
.login-card h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem; }
.login-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; margin-bottom: 2rem; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 0.85rem 1.25rem;
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 600;
  color: var(--text1); cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-sm); font-family: var(--font-body);
}
.google-btn:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.google-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.login-status { font-size: 0.85rem; color: var(--text2); margin-top: 1rem; min-height: 22px; }
.login-status.error { color: #991B1B; }
.login-terms { font-size: 0.73rem; color: var(--text3); margin-top: 1.5rem; line-height: 1.6; }
.login-terms a { color: var(--brand); }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400;
  background: var(--text1); color: #fff;
  padding: 0.65rem 1.1rem; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 500;
  display: none; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg); max-width: 320px;
  animation: slideUp 0.2s ease;
}
.toast.show { display: flex; }
.toast.success { background: #166534; }
.toast.error { background: #991B1B; }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── MISC ─────────────────────────────────────────────────── */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.loading-state { display: flex; align-items: center; justify-content: center; min-height: 40vh; flex-direction: column; gap: 0.75rem; color: var(--text2); }
.loading-state i { font-size: 28px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text2); }
.empty-state i { font-size: 36px; display: block; margin-bottom: 0.75rem; color: var(--border2); }
.empty-state p { font-size: 0.88rem; line-height: 1.6; }
.access-denied { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 1rem; color: var(--text2); text-align: center; padding: 2rem; }
.access-denied i { font-size: 48px; color: #991B1B; }
.access-denied h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text1); }

.footer {
  padding: 1.1rem 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text2);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; background: var(--bg1); margin-top: auto;
}
.footer a { color: var(--text2); transition: color var(--transition); }
.footer a:hover { color: var(--brand); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }

/* ── FREE BADGE ───────────────────────────────────────────── */
.free-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--verified-bg); color: var(--verified);
  font-size: 0.8rem; font-weight: 700; padding: 4px 12px;
  border-radius: var(--radius-full); margin-bottom: 1rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  /* Move hamburger to left — swap logo and nav-right order */
  .nav { padding: 0 1rem; flex-direction: row-reverse; }
  .nav-logo { margin-left: auto; }
  .nav-links { display: none; }
  .nav-weather { display: none; }
  .nav-hamburger { display: flex; flex-shrink: 0; }
  .hero { padding: 1.75rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.65rem; }
  .content { padding: 1rem; }
  .tabs { padding: 0 1rem; }
  .stats-bar { padding: 0 1rem; }
  .dash-layout { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 0.4rem 0; display: flex; overflow-x: auto; }
  .admin-nav-item { flex-direction: column; gap: 2px; font-size: 0.7rem; padding: 0.45rem 0.75rem; border-left: none; border-bottom: 3px solid transparent; flex-shrink: 0; }
  .admin-nav-item.active { border-bottom-color: var(--brand); border-left: none; background: var(--brand-light); }
  /* Chat sidebar — show as horizontal scrollable channel bar on mobile */
  .chat-sidebar { width: 100%; flex-direction: column; }
  .chat-layout { flex-direction: column; height: auto; min-height: calc(100vh - var(--nav-h)); }
  .chat-sidebar-header { padding: 0.6rem 1rem; }
  .chat-sidebar-footer { display: none; }
  .chat-channels { display: flex; flex-direction: row; overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
  .chat-channels::-webkit-scrollbar { display: none; }
  .chat-channel-group { display: none; }
  .chat-channel { flex-shrink: 0; border-left: none; border-bottom: 3px solid transparent; padding: 0.55rem 0.85rem; font-size: 0.82rem; }
  .chat-channel.active { border-bottom-color: var(--accent); border-left: none; }
  .chat-main { flex: 1; }
  .chat-messages { height: 50vh; }
  .chat-header-desc { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-meta { justify-content: center; }
}
@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3,1fr); }
}

/* ── FREEMIUM TIER CARDS ──────────────────────────────────── */

/* FREE TIER — minimal, low-visual-weight */
.listing-card-free {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
  box-shadow: none;
}
.listing-card-free:hover {
  border-color: var(--border2);
  background: var(--bg2);
  transform: none;
  box-shadow: none;
}

/* PREMIUM TIER — rich, high-visibility */
.listing-card-premium {
  background: linear-gradient(135deg, #fff 0%, #fffdf7 100%);
  border: 1.5px solid var(--featured-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 20px rgba(180,83,9,0.1), 0 1px 4px rgba(0,0,0,0.05);
  transition: all 0.18s;
}
.listing-card-premium:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(180,83,9,0.15), 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* Premium divider label */
.premium-section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--featured);
  margin-bottom: 12px; margin-top: 4px;
}
.premium-section-label::before,
.premium-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--featured-border); opacity: 0.5;
}

.free-section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 8px; margin-top: 16px;
}
.free-section-label::before,
.free-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Premium pin badge (top right) */
.premium-pin {
  position: absolute; top: -1px; right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--featured-border));
  color: #fff;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: flex; align-items: center; gap: 4px;
}

/* Premium header (logo + info) */
.premium-header {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 0.6rem;
}

/* Premium description */
.premium-desc {
  font-size: 0.85rem; color: var(--text2);
  line-height: 1.6; margin-bottom: 0.65rem;
}

/* Premium image gallery */
.premium-gallery {
  display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto; margin-bottom: 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.premium-gallery::-webkit-scrollbar { display: none; }
.premium-gallery-img {
  width: 88px; height: 72px; object-fit: cover;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  flex-shrink: 0; cursor: zoom-in;
  transition: transform 0.15s;
}
.premium-gallery-img:hover { transform: scale(1.04); }

/* Premium external links */
.premium-links {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 0.65rem;
}
.premium-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; color: var(--brand);
  background: var(--brand-light); border: 1px solid rgba(27,79,138,0.15);
  padding: 4px 10px; border-radius: var(--radius-full);
  text-decoration: none; transition: all 0.12s;
}
.premium-link:hover {
  background: var(--brand); color: #fff;
}
.premium-link i { font-size: 13px; }

/* ── FILTER PILLS ─────────────────────────────────────────── */
.pill{padding:5px 12px;border-radius:var(--radius-full);font-size:0.8rem;cursor:pointer;border:1px solid var(--border);background:var(--bg1);color:var(--text2);font-family:'DM Sans',sans-serif;transition:all 0.12s;font-weight:500}
.pill.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.pill:hover:not(.on){background:var(--bg2);border-color:var(--border2);color:var(--text1)}

/* ── MOBILE-FIRST OVERHAUL ─────────────────────────────────── */

/* Global touch improvements */
button, a, select, input { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: 16px !important; } /* prevent iOS zoom */

/* Nav — consistent across all pages */
.nav { height: 56px; padding: 0 1.25rem; }
.nav-logo { font-size: 1.1rem; }
.nav-logo-sub { font-size: 0.65rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text2); }
.btn-ghost:hover { background: var(--bg2); color: var(--text1); border-color: var(--border2); }

/* Mobile menu — language always visible */
#google_translate_element .goog-te-combo {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text1);
  background: var(--bg2);
}
.goog-logo-link, .goog-te-gadget span { display: none !important; }
.goog-te-gadget { font-size: 0 !important; }

/* Dual stream — stack on mobile */
.dual-stream {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
@media (max-width: 900px) {
  .dual-stream { grid-template-columns: 1fr; }
  .stream-col { border-right: none; border-bottom: 1px solid var(--border); }
  .stream-col-header { top: 56px; }
}

/* Listing tabs — scrollable on mobile */
.ltabs-wrap {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}
.ltabs-wrap::-webkit-scrollbar { display: none; }
.ltab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
  flex-shrink: 0;
}
.ltab:hover { color: var(--text1); }
.ltab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.ltab i { font-size: 14px; }

/* Community pills — scrollable */
.cpills-wrap {
  display: flex;
  gap: 6px;
  padding: 0.65rem 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}
.cpills-wrap::-webkit-scrollbar { display: none; }
.cpill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg1);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cpill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.cpill:hover:not(.on) { background: var(--bg2); color: var(--text1); }

/* Hero — mobile scaling */
@media (max-width: 600px) {
  .hero { padding: 1.5rem 1rem 1.25rem; }
  .hero h1 { font-size: 1.5rem; line-height: 1.25; }
  .hero p { font-size: 0.88rem; }
  .hero-eyebrow { font-size: 0.7rem; }
  .stream-col-header { padding: 0.75rem 1rem; }
  .stream-inner { padding: 0.85rem 1rem; gap: 7px; }
  .pmodal { border-radius: 16px 16px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: 100%; max-height: 92vh; }
  .pmodal-hdr { padding: 1rem 1.25rem 0.85rem; }
  .pmodal-body { padding: 1rem 1.25rem; }
  .path-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tier-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 400px) {
  .path-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .pf-row { grid-template-columns: 1fr; }
}

/* Listing card mobile */
.lc-free { padding: 0.7rem 0.9rem; }
.lc-premium { padding: 1rem; }
.lc-gallery img { width: 72px; height: 58px; }

/* Search bar mobile */
@media (max-width: 600px) {
  .search-bar-wrap {
    padding: 0.55rem 1rem;
    gap: 0.5rem;
  }
  .search-bar-wrap input { font-size: 0.85rem; padding: 0.45rem 0.75rem; }
  .search-bar-wrap select { font-size: 0.83rem; padding: 0.45rem 0.65rem; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERHAUL v2 — fix overflow, alignment, touch targets
══════════════════════════════════════════════════════════════ */

/* ── BASE ─────────────────────────────────────────────────── */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
* { box-sizing: border-box; min-width: 0; }

/* ── NAV — consistent height + no overflow ─────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 56px;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0.75rem;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-sub { font-size: 0.62rem; color: var(--text2); display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-hamburger { display: none; flex-direction: column; gap: 4px; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; background: none; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 18px; height: 2px; background: var(--text1); border-radius: 2px; }
.nav-weather { display: flex; align-items: center; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav { padding: 0 1rem; gap: 0.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-weather { display: none; }
  .nav-logo-sub { display: none; }
  .nav-right .btn { padding: 0.38rem 0.65rem; font-size: 0.78rem; }
}
@media (max-width: 400px) {
  .nav-right .btn-ghost { display: none; } /* hide Owner Login on tiny screens — in hamburger menu */
}

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text1);
  text-decoration: none;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.12s;
  min-height: 48px; /* good touch target */
}
.mobile-menu-link:hover { background: var(--bg2); }
.mobile-menu-link i { font-size: 18px; color: var(--brand); flex-shrink: 0; }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.mobile-menu-post {
  margin: 0.5rem 1rem 0.75rem;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 2rem);
}

/* ── HERO — mobile scaling ──────────────────────────────────── */
.hero {
  padding: 2.5rem 1.5rem 2rem;
}
@media (max-width: 600px) {
  .hero { padding: 1.5rem 1rem 1.25rem; }
  .hero h1 { font-size: 1.55rem !important; line-height: 1.22; }
  .hero p { font-size: 0.87rem; }
}

/* ── DUAL STREAM ─────────────────────────────────────────────── */
.dual-stream {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 50vh;
}
.stream-col { border-right: 1px solid var(--border); min-width: 0; }
.stream-col:last-child { border-right: none; }
.stream-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
  position: sticky;
  top: 56px;
  z-index: 9;
  gap: 8px;
  flex-wrap: wrap;
}
.stream-col-title { font-size: 0.88rem; font-weight: 600; color: var(--text1); display: flex; align-items: center; gap: 6px; }
.stream-col-sub { font-size: 0.72rem; color: var(--text2); }
.stream-inner { padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 860px) {
  .dual-stream { grid-template-columns: 1fr; }
  .stream-col { border-right: none; border-bottom: 1px solid var(--border); }
  .stream-col:last-child { border-bottom: none; }
  .stream-col-header { top: 56px; }
}

/* ── LISTING TABS — scrollable ──────────────────────────────── */
.ltabs-wrap {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}
.ltabs-wrap::-webkit-scrollbar { display: none; }
.ltab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text2);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
  flex-shrink: 0;
  min-height: 42px;
}
.ltab:hover { color: var(--text1); }
.ltab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.ltab i { font-size: 13px; }

/* ── COMMUNITY PILLS ─────────────────────────────────────────── */
.cpills-wrap {
  display: flex;
  gap: 6px;
  padding: 0.6rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}
.cpills-wrap::-webkit-scrollbar { display: none; }
.cpill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg1);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.cpill.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.cpill:hover:not(.on) { background: var(--bg2); color: var(--text1); }

/* ── SEARCH BAR ──────────────────────────────────────────────── */
.search-bar-wrap {
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
}
.search-bar-wrap input, .search-bar-wrap select {
  min-width: 0;
  font-size: 0.87rem;
}
@media (max-width: 480px) {
  .search-bar-wrap { padding: 0.55rem 0.85rem; gap: 0.5rem; flex-wrap: wrap; }
  .search-bar-wrap input { flex: 1 1 120px; }
  .search-bar-wrap select { flex: 0 0 auto; }
}

/* ── LISTING CARDS ───────────────────────────────────────────── */
.lc-free {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.lc-free:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.lc-free-name { font-size: 0.88rem; font-weight: 600; color: var(--text1); word-break: break-word; }
.lc-free-meta { font-size: 0.75rem; color: var(--text2); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.lc-premium {
  background: linear-gradient(135deg,#fffdf5 0%,#fff 100%);
  border: 1.5px solid var(--featured-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: relative;
  box-shadow: 0 3px 14px rgba(180,83,9,0.1);
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
}
.lc-premium:hover { box-shadow: 0 6px 22px rgba(180,83,9,0.16); transform: translateY(-1px); }
.lc-prem-badge {
  position: absolute; top: -1px; right: 12px;
  background: linear-gradient(135deg,var(--accent),#bf6320);
  color: #fff;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 0 0 8px 8px;
  display: flex; align-items: center; gap: 3px;
}
.lc-prem-logo { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.lc-prem-logo-ph { width: 42px; height: 42px; border-radius: 9px; background: var(--brand-light); border: 1px solid rgba(27,79,138,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.lc-prem-title { font-size: 0.92rem; font-weight: 600; color: var(--text1); word-break: break-word; }
.lc-prem-cat { font-size: 0.73rem; color: var(--text2); margin-top: 2px; }
.lc-prem-desc { font-size: 0.81rem; color: var(--text2); line-height: 1.55; margin-bottom: 0.55rem; word-break: break-word; }
.lc-gallery { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 0.6rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lc-gallery::-webkit-scrollbar { display: none; }
.lc-gallery img { width: 72px; height: 58px; object-fit: cover; border-radius: 6px; flex-shrink: 0; border: 1px solid var(--border); cursor: zoom-in; }
.lc-links { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-link { font-size: 0.72rem; font-weight: 600; color: var(--brand); background: var(--brand-light); border: 1px solid rgba(27,79,138,0.12); padding: 3px 9px; border-radius: var(--radius-full); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: all 0.12s; }
.lc-link:hover { background: var(--brand); color: #fff; }
.lc-prem-divider, .lc-free-divider { font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.lc-prem-divider { color: var(--featured); }
.lc-prem-divider::before, .lc-prem-divider::after { content: ''; flex: 1; height: 1px; background: var(--featured-border); opacity: 0.4; }
.lc-free-divider { color: var(--text3); }
.lc-free-divider::before, .lc-free-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── COMMUNITY CARDS ─────────────────────────────────────────── */
.cc-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.cc-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.cc-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 5px; display: flex; align-items: center; gap: 4px; }
.cc-title { font-size: 0.9rem; font-weight: 600; color: var(--text1); line-height: 1.3; margin-bottom: 4px; word-break: break-word; }
.cc-desc { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin-bottom: 6px; }
.cc-contact { font-size: 0.77rem; color: var(--brand); font-weight: 500; margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.cc-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--text3); margin-top: 7px; flex-wrap: wrap; gap: 4px; }
.cat-classifieds { color: #1B4F8A; }
.cat-events { color: #7c3aed; }
.cat-lost { color: #dc2626; }
.cat-announcements { color: #059669; }
.cat-free { color: #d97706; }
.cat-yard { color: #0891b2; }
.cat-general { color: var(--text2); }

/* ── POST MODAL ──────────────────────────────────────────────── */
.pmodal-bg {
  position: fixed; inset: 0;
  background: rgba(9,9,11,0.65);
  z-index: 500;
  display: none;
  align-items: flex-end; /* bottom sheet on mobile */
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(6px);
}
@media (min-width: 600px) {
  .pmodal-bg { align-items: center; padding: 1rem; }
}
.pmodal-bg.open { display: flex; }
.pmodal {
  background: var(--bg1);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 600px) {
  .pmodal { border-radius: 20px; max-width: 540px; box-shadow: 0 24px 80px rgba(0,0,0,0.25); }
}
.pmodal-hdr {
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg1);
  z-index: 10;
}
/* Pull indicator for mobile bottom sheet */
.pmodal::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 10px auto 0;
}
@media (min-width: 600px) { .pmodal::before { display: none; } }
.pmodal-title { font-size: 1.05rem; font-weight: 600; color: var(--text1); }
.pmodal-close { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 15px; flex-shrink: 0; }
.pmodal-body { padding: 1.1rem 1.25rem 1.5rem; }

/* ── MODAL FORM FIELDS ────────────────────────────────────────── */
.pf { margin-bottom: 0.85rem; }
.pf label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text2); margin-bottom: 4px; }
.pf input, .pf select, .pf textarea {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border2); border-radius: var(--radius-md);
  font-size: 16px; /* prevent iOS zoom */
  color: var(--text1); background: var(--bg1);
  font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color 0.12s;
  -webkit-appearance: none; /* consistent iOS styling */
}
.pf input:focus, .pf select:focus, .pf textarea:focus { border-color: var(--brand); }
.pf textarea { min-height: 75px; resize: vertical; line-height: 1.5; font-size: 16px; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .pf-row { grid-template-columns: 1fr; } }

/* ── MODAL BUTTONS ────────────────────────────────────────────── */
.pm-btn { width: 100%; padding: 0.8rem; border-radius: var(--radius-md); font-size: 0.92rem; font-weight: 600; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; transition: all 0.15s; margin-top: 4px; min-height: 48px; }
.pm-btn-primary { background: var(--brand); color: #fff; }
.pm-btn-primary:hover { background: var(--brand-mid); }
.pm-btn-accent { background: var(--accent); color: #fff; }
.pm-btn-accent:hover { opacity: 0.9; }
.pm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pm-back { background: none; border: none; font-size: 0.82rem; color: var(--text2); cursor: pointer; font-family: 'DM Sans', sans-serif; padding: 0.6rem 0; width: 100%; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.pm-back:hover { color: var(--text1); }
.pm-err { font-size: 0.8rem; color: #A32D2D; background: #FCEBEB; border-radius: var(--radius-md); padding: 0.55rem 0.85rem; margin-top: 6px; display: none; }

/* ── PATH + TIER CARDS ────────────────────────────────────────── */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .path-grid { grid-template-columns: 1fr; } }
.path-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; cursor: pointer; transition: all 0.15s; text-align: center; background: var(--bg1); min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.path-card:hover, .path-card.sel { border-color: var(--brand); background: var(--brand-light); }
.path-emoji { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.path-label { font-size: 0.9rem; font-weight: 600; color: var(--text1); margin-bottom: 3px; }
.path-sub { font-size: 0.74rem; color: var(--text2); line-height: 1.4; }
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0.75rem 0; }
@media (max-width: 380px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; cursor: pointer; transition: all 0.15s; }
.tier-card:hover { border-color: var(--brand); }
.tier-card.sel { border-color: var(--accent); background: #fffdf7; }
.tier-badge { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.tier-price { font-size: 1.5rem; font-weight: 700; color: var(--text1); line-height: 1; margin: 2px 0; }
.tier-period { font-size: 0.7rem; color: var(--text2); margin-bottom: 8px; }
.tier-feats { list-style: none; padding: 0; font-size: 0.75rem; color: var(--text2); display: flex; flex-direction: column; gap: 3px; }
.tier-feats li { display: flex; align-items: center; gap: 5px; }
.tier-feats li i { font-size: 12px; flex-shrink: 0; }
.tier-feats li i.ti-check { color: var(--verified); }
.tier-feats li i.ti-x { color: var(--border2); }
.tier-feats .muted { color: var(--text3); }

/* ── MODAL STEP PROGRESS ──────────────────────────────────────── */
.pmodal-steps { display: flex; gap: 4px; margin-bottom: 1.25rem; }
.pm-step-dot { height: 3px; border-radius: 3px; background: var(--border2); transition: all 0.2s; flex: 1; }
.pm-step-dot.done { background: var(--verified); }
.pm-step-dot.active { background: var(--brand); }

/* ── SUCCESS STATE ────────────────────────────────────────────── */
.pm-success { text-align: center; padding: 1.5rem 1rem; }
.pm-success i { font-size: 44px; color: var(--verified); display: block; margin-bottom: 10px; }
.pm-success h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.pm-success p { font-size: 0.84rem; color: var(--text2); line-height: 1.6; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg1);
}
.footer a { color: var(--text2); text-decoration: none; }
.footer a:hover { color: var(--text1); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 480px) { .footer { flex-direction: column; text-align: center; } }

/* ── DASHBOARD MOBILE REDESIGN ──────────────────────────────── */
.dash-mobile-hdr {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 1rem;
  height: 54px;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}
.dash-mobile-hdr-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-light);
  border: 2px solid rgba(27,79,138,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--brand);
  flex-shrink: 0; overflow: hidden; cursor: pointer;
}
.dash-mobile-hdr-avatar img { width:100%;height:100%;object-fit:cover;border-radius:50% }
.dash-mobile-hdr-center { flex: 1; text-align: center; min-width: 0; }
.dash-mobile-hdr-title { font-size: 0.88rem; font-weight: 700; color: var(--text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-mobile-hdr-sub   { font-size: 0.67rem; color: var(--text2); }
.dash-mobile-menu-btn  {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg2); cursor: pointer; color: var(--text1);
  font-size: 17px; flex-shrink: 0; transition: background 0.12s;
}
.dash-mobile-menu-btn:hover { background: var(--bg2); }

/* Sidebar overlay */
.dash-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 70;
  backdrop-filter: blur(3px);
}
.dash-sidebar-overlay.open { display: block; }

/* Sidebar drawer */
.dash-sidebar {
  display: none;
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 285px; background: var(--bg1);
  border-right: 1px solid var(--border);
  flex-direction: column; z-index: 80;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.dash-sidebar.open { transform: translateX(0); }
.dash-sidebar-logo  { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dash-sidebar-name  { font-size: 1rem; font-weight: 700; color: var(--text1); }
.dash-sidebar-email { font-size: 0.72rem; color: var(--text2); margin-top: 1px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-close-btn     { background: none; border: 1px solid var(--border); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; color: var(--text2); flex-shrink: 0; }
.dash-sidebar-nav   { flex: 1; padding: 0.5rem; }
.dash-sidebar-btn   {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md); border: none; background: none;
  font-size: 0.88rem; color: var(--text2); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  text-align: left; transition: all 0.12s; margin-bottom: 2px;
}
.dash-sidebar-btn i   { font-size: 18px; color: var(--brand); flex-shrink: 0; }
.dash-sidebar-btn:hover { background: var(--bg2); color: var(--text1); }
.dash-sidebar-btn.active { background: rgba(27,79,138,0.1); color: var(--brand); font-weight: 600; }
.dash-sidebar-divider { height: 1px; background: var(--border); margin: 6px 0; }
.dash-sidebar-footer  { padding: 1rem; border-top: 1px solid var(--border); }

/* Mobile section panels */
.dash-panel { display: none; padding: 1rem; }
.dash-panel.active { display: block; }

@media (max-width: 768px) {
  /* Hide site nav on dashboard mobile — use custom nav instead */
  .dash-page .nav,
  .dash-page .mobile-menu { display: none !important; }

  .dash-mobile-hdr { display: flex; }
  .dash-sidebar     { display: flex; flex-direction: column; }
  .dash-layout      { padding: 0; }

  /* Stack listing row actions on very small screens */
  .listing-row { flex-wrap: wrap; gap: 8px; }
  .listing-row-actions { width: 100%; justify-content: flex-end; }
}

/* ── DASHBOARD DESKTOP / MOBILE VISIBILITY GATE ─────────────── */
/* Desktop: show #root, hide mobile chrome */
@media (min-width: 769px) {
  #dash-panels,
  .dash-mobile-hdr,
  .dash-sidebar,
  .dash-sidebar-overlay { display: none !important; }
}
/* Mobile: hide #root desktop view, show mobile panels */
@media (max-width: 768px) {
  #root.dash-layout { display: none !important; }
}
