/* ═══════════════════════════════════════════════════════════════
   ClassifiedHub — Complete Stylesheet v3
   Design: Business-first, modern, mobile-first
   ═══════════════════════════════════════════════════════════════ */

:root {
  --amber:        #f59e0b;
  --amber-dark:   #d97706;
  --amber-light:  #fcd34d;
  --navy:         #0f172a;
  --navy-2:       #1e293b;
  --navy-3:       #334155;
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --surface-3:    #e2e8f0;
  --text:         #0f172a;
  --text-2:       #334155;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --border:       #e2e8f0;
  --border-2:     #cbd5e1;
  --success:      #10b981;
  --error:        #ef4444;
  --warning:      #f59e0b;
  --info:         #3b82f6;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl:    0 24px 64px rgba(0,0,0,0.16);
  --font:         'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.3px;
}

/* Desktop search */
.nav-search {
  flex: 1;
  max-width: 420px;
}
.search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
  position: relative;
}
.search-form:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.search-icon {
  position: absolute;
  left: 14px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  pointer-events: none;
}
.search-form input {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 12px 10px 36px;
  color: white;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.search-form input::placeholder { color: rgba(255,255,255,0.4); }
.search-form button {
  background: var(--amber);
  border: none;
  padding: 10px 16px;
  color: white;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-form button:hover { background: var(--amber-dark); }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-pill:hover     { color: white; background: rgba(255,255,255,0.08); }
.nav-pill-active    { color: var(--amber-light) !important; font-weight: 600; }

.btn-post-ad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--amber);
  color: white;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  white-space: nowrap;
}
.btn-post-ad:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-nav-login {
  padding: 7px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-nav-login:hover { color: white; border-color: rgba(255,255,255,0.4); }

.btn-nav-register {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--amber);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s;
}
.btn-nav-register:hover { background: var(--amber-dark); }

/* Avatar button */
.nav-user-wrap { position: relative; }
.nav-avatar-btn {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: all 0.15s;
  padding: 0;
}
.nav-avatar-btn:hover { border-color: var(--amber); }
.avatar-initials {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--amber),var(--amber-dark));
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.verified-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  font-size: 13px;
  color: #34d399;
  background: var(--navy);
  border-radius: 50%;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  z-index: 1000;
  overflow: hidden;
  animation: fadeSlideIn 0.15s ease;
}
.dropdown-menu.open { display: block; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.1s;
}
.dropdown-menu a:hover    { background: var(--bg); }
.dropdown-menu a.admin-link { color: var(--amber-dark); font-weight: 600; }
.dropdown-menu a.text-danger { color: var(--error); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Hamburger — only on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE DRAWER ──────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 1100;
  backdrop-filter: blur(2px);
}
.mobile-overlay.show { display: block; }
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100vh;
  background: white;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  color: white;
}
.drawer-close {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-nav { padding: 8px 0; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.12s;
  border-left: 3px solid transparent;
}
.drawer-link:hover,
.drawer-link.active {
  background: var(--surface-2);
  color: var(--amber-dark);
  border-left-color: var(--amber);
}
.drawer-link i { width: 20px; text-align: center; color: var(--amber); }

/* ─── VERIFY BAR ─────────────────────────────────────────── */
.verify-bar {
  background: #fffbeb;
  border-bottom: 2px solid var(--amber-light);
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  color: #92400e;
}
.verify-bar a { color: var(--amber-dark); font-weight: 700; }

/* ─── FLASH ──────────────────────────────────────────────── */
.flash-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.flash-success { background: #d1fae5; color: #065f46; border-bottom: 2px solid #6ee7b7; }
.flash-error   { background: #fee2e2; color: #991b1b; border-bottom: 2px solid #fca5a5; }
.flash-warning { background: #fffbeb; color: #92400e; border-bottom: 2px solid var(--amber-light); }
.flash-info    { background: #eff6ff; color: #1e40af; border-bottom: 2px solid #93c5fd; }
.flash-close   { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 16px; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-sm  { padding: 7px 14px; font-size: 12px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-primary   { background: var(--amber); color: white; border-color: var(--amber); box-shadow: 0 2px 8px rgba(245,158,11,0.25); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,0.35); }
.btn-secondary { background: var(--navy); color: white; border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy-2); }
.btn-outline   { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.btn-outline-dark:hover { border-color: var(--navy); color: var(--navy); background: var(--surface-2); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-danger  { background: var(--error);   color: white; border-color: var(--error); }
.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }
.btn-info    { background: var(--info);    color: white; border-color: var(--info); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.w-full { width: 100%; justify-content: center; }

/* ─── HOMEPAGE HERO ──────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 72px 20px 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(245,158,11,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(59,130,246,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-light);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem,4.5vw,3.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--amber-light); }
.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 22px; font-weight: 800; color: white; }
.hero-stat span   { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 500; }

/* Hero right side — business cards preview */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-biz-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.hero-biz-card:first-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-biz-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hero-biz-card h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 2px; }
.hero-biz-card p  { font-size: 11px; color: rgba(255,255,255,0.5); }
.open-badge {
  margin-left: auto;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* ─── HERO SEARCH BAR ────────────────────────────────────── */
.hero-search-wrap {
  background: white;
  border-radius: 14px;
  padding: 6px;
  display: flex;
  gap: 6px;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-search-wrap input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  background: none;
  min-width: 0;
}
.hero-search-wrap select {
  border: none;
  border-left: 1px solid var(--border);
  padding: 10px 10px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  outline: none;
}
.hero-search-wrap button {
  background: var(--amber);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

/* ─── SECTION LAYOUT ─────────────────────────────────────── */
.section { padding: 64px 20px; }
.section-sm { padding: 40px 20px; }
.container { max-width: 1320px; margin: 0 auto; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber-dark);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem,3vw,2.2rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-link {
  color: var(--amber-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ─── BUSINESS CARDS ─────────────────────────────────────── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.biz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.biz-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.biz-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.biz-cover img {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
}
.biz-logo-wrap {
  position: absolute;
  bottom: -16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: white;
  padding: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.biz-logo-wrap img {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  border-radius: 7px;
}
.biz-body {
  padding: 24px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.biz-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--amber-dark);
  margin-bottom: 4px;
}
.biz-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.biz-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.biz-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.biz-meta span { display: flex; align-items: center; gap: 4px; }
.biz-open  { color: var(--success); font-weight: 600; }
.biz-closed{ color: var(--error);   font-weight: 600; }

/* ─── AD CARDS ───────────────────────────────────────────── */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.2s;
}
.ad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.ad-card-img {
  height: 160px;
  max-height: 160px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.ad-card-img img {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
}
.ad-card:hover .ad-card-img img { transform: scale(1.04); }
.ad-card-img .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 32px;
}
.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--amber);
  color: white;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.ad-card-body { padding: 14px; }
.ad-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--amber-dark);
  margin-bottom: 4px;
}
.ad-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--amber-dark);
  margin-bottom: 8px;
}
.ad-price small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.price-free { color: var(--success); }
.ad-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.ad-meta span { display: flex; align-items: center; gap: 3px; }

/* Ad status chips */
.ad-status { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-pending  { background: #fffbeb; color: #92400e; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-expired  { background: var(--surface-2); color: var(--text-muted); }

/* ─── CATEGORIES GRID ────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-2);
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.category-card:hover {
  border-color: var(--amber);
  background: #fffbeb;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.category-card i    { font-size: 22px; color: var(--amber-dark); }
.category-card span { font-size: 12px; font-weight: 600; }
.category-card small { font-size: 10px; color: var(--text-muted); }

/* ─── SECTION TABS ───────────────────────────────────────── */
.section-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.section-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.section-tab:hover { color: var(--navy); }
.section-tab.active { color: var(--amber-dark); border-bottom-color: var(--amber); }
.tab-count {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 700;
}

/* ─── DASHBOARD LAYOUT ───────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
.sidebar {
  background: var(--navy);
  padding: 20px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 800;
  transition: transform 0.3s;
}
.sidebar-brand {
  padding: 0 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.3);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.12s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: white;
  background: rgba(255,255,255,0.07);
  border-left-color: var(--amber);
}
.sidebar-nav a i { width: 16px; text-align: center; }
.sidebar-section-label {
  padding: 10px 20px 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
}
.sidebar-badge {
  margin-left: auto;
  background: var(--amber);
  color: white;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 800;
}
.sidebar-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: var(--font);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.main-content { padding: 28px; overflow: hidden; min-width: 0; }
.page-header  { margin-bottom: 24px; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}
.page-header p { color: var(--text-muted); font-size: 14px; }

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px,1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-icon.amber { background: #fffbeb; color: var(--amber-dark); }
.stat-icon.navy  { background: #eff6ff; color: #1d4ed8; }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.red   { background: #fee2e2; color: var(--error); }
.stat-value { font-size: 22px; font-weight: 800; line-height: 1; color: var(--navy); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

/* ─── CARD ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--navy); }
.card-body { padding: 20px; }

/* ─── FORMS ──────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  margin: 40px auto;
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-label .required { color: var(--error); }
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-control.is-invalid { border-color: var(--error); }
.form-control:disabled, .form-control[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }
.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.form-check input[type=checkbox] { margin-top: 3px; accent-color: var(--amber); flex-shrink: 0; }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ─── IMAGE UPLOAD ───────────────────────────────────────── */
.image-upload-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.image-slot { position: relative; }
.image-slot label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 110px;
  border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  gap: 6px;
  transition: all 0.15s;
  text-align: center;
  padding: 8px;
}
.image-slot label:hover { border-color: var(--amber); color: var(--amber-dark); background: #fffbeb; }
.image-slot label.slot-error { border-color: var(--error); color: var(--error); }
.image-slot input  { display: none; }
.image-preview {
  width: 100%;
  height: 110px;
  max-height: 110px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 2px solid var(--amber);
  display: none;
}
.clear-img-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: var(--error);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 2;
}

/* ─── TOGGLE ─────────────────────────────────────────────── */
.toggle-switch { display: flex; align-items: center; gap: 10px; }
.toggle-switch input { display: none; }
.toggle-track {
  width: 42px;
  height: 23px;
  background: var(--border-2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-track { background: var(--success); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(19px); }

/* ─── TABLES ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
table th {
  background: var(--surface-2);
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  white-space: nowrap;
}
table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-2);
}
table tr:hover td { background: var(--bg); }

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border: 1.5px solid var(--border-2);
  transition: all 0.12s;
}
.page-btn:hover { border-color: var(--amber); color: var(--amber-dark); }
.page-btn.active { background: var(--amber); color: white; border-color: var(--amber); }

/* ─── AD DETAIL ──────────────────────────────────────────── */
.ad-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}
.main-image {
  width: 100%;
  height: 380px;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.main-image-placeholder {
  width: 100%;
  height: 380px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 60px;
}
.thumb { width: 70px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s; flex-shrink: 0; max-width: 70px; max-height: 52px; }
.thumb.active, .thumb:hover { border-color: var(--amber); }
.thumb-strip { display: flex; gap: 8px; padding: 10px; }
.ad-images { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px; }
.ad-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.ad-info-card h1 { font-family: var(--font-display); font-size: 24px; font-weight: 900; margin-bottom: 10px; color: var(--navy); }
.ad-detail-price { font-size: 28px; font-weight: 800; color: var(--amber-dark); margin-bottom: 14px; }
.ad-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border); }
.ad-detail-meta span { display: flex; align-items: center; gap: 5px; }
.ad-description { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.ad-description h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.ad-description p  { color: var(--text-muted); line-height: 1.8; white-space: pre-wrap; }
.seller-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 80px; }
.seller-avatar { width: 48px; height: 48px; min-width: 48px; max-width: 48px; min-height: 48px; max-height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.seller-avatar-placeholder { width: 48px; height: 48px; background: var(--navy); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.seller-detail { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.seller-detail:last-child { border: none; }
.seller-detail i { width: 16px; color: var(--amber-dark); flex-shrink: 0; }
.masked-val { font-family: monospace; color: var(--text-muted); letter-spacing: 1px; }
.seller-username { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; }

/* ─── PROFILE ────────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-img-large {
  width: 120px; height: 120px;
  min-width: 120px; max-width: 120px;
  min-height: 120px; max-height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 3px solid var(--amber);
  margin: 0 auto;
}
.profile-img-placeholder {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--navy-2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 44px;
  margin: 0 auto;
}
#profileImgPreview {
  width: 120px !important; height: 120px !important;
  max-width: 120px !important; max-height: 120px !important;
  object-fit: cover !important; border-radius: 50% !important;
  display: block !important; margin: 0 auto !important;
}

/* ─── VISIBILITY SETTINGS ────────────────────────────────── */
.visibility-grid { display: flex; flex-direction: column; gap: 10px; }
.visibility-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.visibility-label { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.65); z-index: 9000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-xl); padding: 26px; max-width: 480px; width: 100%; box-shadow: var(--shadow-xl); }
.modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.modal p  { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-close { cursor: pointer; }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--amber-dark); text-decoration: none; font-weight: 500; }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 52px 20px; color: var(--text-muted); }
.empty-state i  { font-size: 44px; margin-bottom: 14px; color: var(--border-2); display: block; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; color: var(--text-2); font-weight: 700; }

/* ─── CHIPS & BADGES ─────────────────────────────────────── */
.verify-chip { display: inline-flex; align-items: center; gap: 4px; background: #dbeafe; color: #1d4ed8; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.admin-badge { background: var(--amber); color: white; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.verified-badge { color: #3b82f6; font-size: 13px; margin-left: 3px; }
.verified-icon  { color: #3b82f6; }
.text-amber   { color: var(--amber-dark); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--error); }

/* ─── SPINNER ────────────────────────────────────────────── */
.spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(245,158,11,0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 52px; height: 52px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
#pageSpinner { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.7); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); margin-top: 60px; }
.footer-container { max-width: 1320px; margin: 0 auto; padding: 52px 20px 36px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: white; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-links h4 { color: white; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; }
.footer-links a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; margin-bottom: 9px; transition: color 0.12s; }
.footer-links a:hover { color: var(--amber-light); }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 16px 20px; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-biz-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.footer-biz-btn:hover { background: var(--amber-dark); }

/* ─── ACTIONS COL ────────────────────────────────────────── */
.actions-col { white-space: nowrap; }
.actions-col a, .actions-col button { margin-right: 3px; margin-bottom: 2px; }

/* ─── IMAGE LOCKS ────────────────────────────────────────── */
.ad-card-img, .biz-cover { overflow: hidden !important; }
.ad-card-img img, .biz-cover img { width:100%!important; height:100%!important; max-height:inherit!important; object-fit:cover!important; }
table img { max-width:48px!important; max-height:48px!important; object-fit:cover!important; border-radius:50%!important; }
.navbar img, .nav-avatar-btn img { width:32px!important; height:32px!important; max-width:32px!important; max-height:32px!important; object-fit:cover!important; border-radius:50%!important; flex-shrink:0!important; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.mt-1{margin-top:6px} .mt-2{margin-top:12px} .mt-3{margin-top:20px} .mt-4{margin-top:28px}
.mb-1{margin-bottom:6px} .mb-2{margin-bottom:12px} .mb-3{margin-bottom:20px}
.d-flex{display:flex} .gap-1{gap:8px} .gap-2{gap:14px} .align-center{align-items:center}
.flex-wrap{flex-wrap:wrap} .hidden{display:none}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 200px 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  /* Nav — show hamburger only */
  .nav-right   { display: none !important; }
  .nav-search  { display: none; }
  .hamburger   { display: flex !important; }

  /* Dashboard */
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 64px; left: 0;
    width: 260px;
    height: calc(100vh - 64px);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 999;
  }
  .sidebar.sidebar-open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .sidebar-toggle-btn { display: flex !important; }
  .main-content { padding: 14px; }

  /* Cards */
  .card-header { flex-direction: column; align-items: flex-start; }
  .stats-grid  { grid-template-columns: repeat(2,1fr)!important; }
  .profile-grid { grid-template-columns: 1fr!important; }
  .ad-detail-layout { grid-template-columns: 1fr!important; padding: 16px; }
  .seller-card { position: static!important; }
  .main-image, .main-image-placeholder { height: 240px; }
  .form-row { grid-template-columns: 1fr!important; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }

  /* Tables */
  .table-wrap { margin: 0 -14px; border-radius: 0; }
}

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr!important; }
  .ads-grid   { grid-template-columns: repeat(2,1fr)!important; }
  .biz-grid   { grid-template-columns: 1fr!important; }
  .categories-grid { grid-template-columns: repeat(3,1fr)!important; }
  .image-upload-grid { grid-template-columns: repeat(2,1fr)!important; }
  .footer-container { grid-template-columns: 1fr!important; }
  .hero { padding: 48px 16px 52px; }
  .form-card { padding: 20px; margin: 16px auto; }
  .section { padding: 40px 16px; }
  .section-tab { padding: 10px 14px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════
   MOBILE CRITICAL FIXES — These always win
   ══════════════════════════════════════════════════════ */

/* Force hamburger visible, nav-right hidden on mobile */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .nav-right,
  .nav-search { display: none !important; }
  .hamburger  { display: flex !important; }

  /* ── Hero — single column, readable ── */
  .hero { padding: 36px 16px 44px; }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }
  .hero-visual { display: none !important; }
  .hero h1 { font-size: 2rem !important; }
  .hero p  { font-size: 15px !important; }

  /* ── Hero search bar ── */
  .hero-search-wrap {
    flex-direction: column !important;
    border-radius: 12px !important;
    padding: 8px !important;
    gap: 8px !important;
    max-width: 100% !important;
  }
  .hero-search-wrap input  { padding: 12px 14px !important; width: 100% !important; }
  .hero-search-wrap select { border-left: none !important; border-top: 1px solid #e2e8f0 !important; width: 100% !important; padding: 10px 14px !important; }
  .hero-search-wrap button { border-radius: 8px !important; padding: 12px !important; width: 100% !important; }

  /* ── Hero action buttons ── */
  .hero-actions {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .hero-actions .btn { justify-content: center !important; text-align: center !important; }

  /* ── Hero stats ── */
  .hero-stats {
    justify-content: center !important;
    gap: 20px !important;
  }

  /* ── Hero badge center ── */
  .hero-badge { display: inline-flex; margin: 0 auto 16px; }

  /* ── Section tabs ── */
  .section-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .section-tab  { white-space: nowrap; padding: 10px 16px; font-size: 13px; }

  /* ── CTA grid ── */
  .cta-grid { grid-template-columns: 1fr !important; }

  /* ── How it works grid ── */
  .how-grid { grid-template-columns: 1fr 1fr !important; }

  /* ── Business grid ── */
  .biz-grid { grid-template-columns: 1fr !important; }

  /* ── Ad grid ── */
  .ads-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* ── Categories ── */
  .categories-grid { grid-template-columns: repeat(3,1fr) !important; }

  /* ── Footer ── */
  .footer-container { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* ── Dashboard ── */
  .dashboard-layout { grid-template-columns: 1fr !important; }
  .sidebar {
    position: fixed !important;
    top: 64px !important; left: 0 !important;
    width: 260px !important;
    height: calc(100vh - 64px) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s ease !important;
    z-index: 999 !important;
  }
  .sidebar.sidebar-open { transform: translateX(0) !important; }
  .sidebar-toggle-btn { display: flex !important; }
  .main-content { padding: 14px !important; }

  /* ── Ad detail ── */
  .ad-detail-layout { grid-template-columns: 1fr !important; padding: 14px !important; }
  .seller-card { position: static !important; }
  .main-image, .main-image-placeholder { height: 220px !important; }

  /* ── Profile grid ── */
  .profile-grid { grid-template-columns: 1fr !important; }

  /* ── Forms ── */
  .form-row { grid-template-columns: 1fr !important; }
  .form-card { padding: 20px !important; margin: 14px auto !important; }
  .image-upload-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* ── Stat cards ── */
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* ── Tables scroll ── */
  .table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  table { min-width: 500px !important; }

  /* ── Modal ── */
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal { border-radius: 20px 20px 0 0 !important; max-width: 100% !important; }

  /* ── Actions col ── */
  .actions-col { white-space: normal !important; }

  /* ── Visibility items ── */
  .visibility-item { flex-direction: column !important; align-items: flex-start !important; }

  /* Card header ── */
  .card-header { flex-wrap: wrap !important; gap: 8px !important; }

  /* ── Verify grid ── */
  .verify-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 420px) {
  .ads-grid { grid-template-columns: 1fr !important; }
  .categories-grid { grid-template-columns: repeat(2,1fr) !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 1.75rem !important; }
  .how-grid { grid-template-columns: 1fr !important; }
  .section { padding: 32px 14px !important; }
}
