/* ============================================================
   VK RADIO TRADER — style.css
   Main stylesheet
   Fonts: Inter (body) + Merriweather (headings/logo)
   ============================================================ */

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #0d6efd;
  --blue-dark:   #0a58ca;
  --blue-light:  #e8f0fe;
  --blue-pale:   #f0f5ff;
  --grey-900:    #212529;
  --grey-800:    #343a40;
  --grey-700:    #495057;
  --grey-500:    #6c757d;
  --grey-400:    #ced4da;
  --grey-300:    #dee2e6;
  --grey-200:    #e9ecef;
  --grey-100:    #f8f9fa;
  --white:       #ffffff;
  --green:       #198754;
  --green-light: #d1e7dd;
  --red:         #dc3545;
  --red-light:   #f8d7da;
  --orange:      #fd7e14;
  --gold:        #ffc107;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--grey-100);
  color: var(--grey-900);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Merriweather', serif; line-height: 1.2; }
h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; }

/* ── CONTAINER ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert { padding: 0.85rem 1.25rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.alert-success { background: var(--green-light); color: #0f5132; border: 1px solid rgba(25,135,84,0.2); }
.alert-danger  { background: var(--red-light);   color: #842029; border: 1px solid rgba(220,53,69,0.2); }
.alert-warning { background: #fff3cd;             color: #664d03; border: 1px solid rgba(255,193,7,0.3); }
.alert-info    { background: var(--blue-light);   color: #084298; border: 1px solid rgba(13,110,253,0.2); }
.alert-close   { background: none; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0.6; flex-shrink: 0; }
.alert-close:hover { opacity: 1; }
.flash-wrap    { background: var(--white); border-bottom: 1px solid var(--grey-300); padding: 0.5rem 0; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65rem 1.25rem; border-radius: 7px; font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 12px rgba(13,110,253,0.3); color: var(--white); }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: #157347; color: var(--white); }
.btn-danger  { background: var(--red); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-pale); }
.btn-grey    { background: var(--grey-200); color: var(--grey-700); border: 1px solid var(--grey-300); }
.btn-grey:hover { background: var(--grey-300); }
.btn-sm   { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg   { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ── FORMS ────────────────────────────────────────────────── */
.form-group   { margin-bottom: 1rem; }
.form-label   { display: block; font-size: 0.82rem; font-weight: 500; color: var(--grey-700); margin-bottom: 0.35rem; }
.form-control { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--grey-300); border-radius: 7px; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--grey-900); background: var(--white); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus   { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,110,253,0.12); }
.form-control.valid   { border-color: var(--green); }
.form-control.invalid { border-color: var(--red); }
.form-control::placeholder { color: var(--grey-400); }
.form-text { font-size: 0.75rem; color: var(--grey-500); margin-top: 0.25rem; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control   { cursor: pointer; }

/* ── TOP BAR ──────────────────────────────────────────────── */
.topbar { background: var(--grey-900); color: rgba(255,255,255,0.65); font-size: 0.75rem; padding: 0.4rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--white); }
.topbar-right { display: flex; gap: 1.25rem; }

/* ── MAIN NAV ─────────────────────────────────────────────── */
nav { background: var(--white); border-bottom: 1px solid var(--grey-300); box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0.85rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; }

.logo { font-family: 'Merriweather', serif; font-size: 1.15rem; color: var(--grey-900); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo span  { color: var(--blue); }
.logo-sub   { font-size: 0.58rem; font-family: 'Inter', sans-serif; color: var(--grey-500); display: block; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; margin-top: -2px; }

.nav-search { flex: 1; display: flex; border: 1.5px solid var(--grey-300); border-radius: 7px; overflow: visible; transition: border-color 0.2s, box-shadow 0.2s; position: relative; }
.nav-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,110,253,0.12); }
.nav-search select { border: none; outline: none; background: var(--grey-100); border-right: 1px solid var(--grey-300); padding: 0 0.85rem; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--grey-700); min-width: 130px; cursor: pointer; border-radius: 6px 0 0 6px; }
.nav-search input  { flex: 1; border: none; outline: none; padding: 0.65rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; background: var(--white); }
.nav-search input::placeholder { color: var(--grey-500); }
.nav-search button { background: var(--blue); border: none; color: var(--white); padding: 0 1.1rem; cursor: pointer; font-size: 1rem; transition: background 0.2s; border-radius: 0 6px 6px 0; }
.nav-search button:hover { background: var(--blue-dark); }

.nav-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.nav-icon-btn { display: flex; flex-direction: column; align-items: center; padding: 0.3rem 0.55rem; border-radius: 6px; color: var(--grey-700); font-size: 0.62rem; font-weight: 500; transition: background 0.2s, color 0.2s; cursor: pointer; border: none; background: none; text-decoration: none; position: relative; }
.nav-icon-btn:hover { background: var(--grey-100); color: var(--blue); text-decoration: none; }
.nav-icon-btn .icon { font-size: 1.25rem; margin-bottom: 1px; }
.nav-badge { position: absolute; top: 1px; right: 3px; background: var(--red); color: var(--white); font-size: 0.58rem; font-weight: 700; width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.btn-sell { background: var(--blue); color: var(--white); padding: 0.55rem 1.15rem; border-radius: 7px; font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background 0.2s, transform 0.15s; }
.btn-sell:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; color: var(--white); }

/* ── CATEGORY NAV ─────────────────────────────────────────── */
.cat-nav { background: var(--white); border-bottom: 1px solid var(--grey-300); }
.cat-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item { display: flex; align-items: center; gap: 0.35rem; padding: 0.7rem 0.9rem; font-size: 0.8rem; color: var(--grey-700); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; cursor: pointer; }
.cat-nav-item:hover { color: var(--blue); border-bottom-color: var(--blue); text-decoration: none; }
.cat-nav-item.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #0a1628 0%, #0d3060 60%, #0a58ca 100%); padding: 3.5rem 1.5rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 28px 28px; }
.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 500; padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1.25rem; letter-spacing: 0.05em; }
.hero h1 { font-family: 'Merriweather', serif; font-size: clamp(1.7rem, 4vw, 2.7rem); color: var(--white); line-height: 1.2; margin-bottom: 0.75rem; }
.hero h1 em { font-style: italic; color: #7eb8ff; }
.hero-content > p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 2rem; font-weight: 300; }
.hero-search { display: flex; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.3); max-width: 660px; margin: 0 auto 1.5rem; }
.hero-search select { border: none; outline: none; background: var(--grey-100); border-right: 1px solid var(--grey-300); padding: 0 1rem; font-family: 'Inter', sans-serif; font-size: 0.875rem; color: var(--grey-700); min-width: 145px; }
.hero-search input  { flex: 1; border: none; outline: none; padding: 1rem 1.25rem; font-family: 'Inter', sans-serif; font-size: 1rem; }
.hero-search input::placeholder { color: var(--grey-500); }
.hero-search button { background: var(--blue); border: none; color: var(--white); padding: 0 1.75rem; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.hero-search button:hover { background: var(--blue-dark); }
.hero-quick { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.hero-quick a { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); font-size: 0.76rem; padding: 0.28rem 0.8rem; border-radius: 100px; text-decoration: none; transition: background 0.2s; }
.hero-quick a:hover { background: rgba(255,255,255,0.2); }

/* ── STATS STRIP ──────────────────────────────────────────── */
.stats-strip { background: var(--white); border-bottom: 1px solid var(--grey-300); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: center; }
.stat-item { flex: 1; max-width: 200px; padding: 1.1rem 1rem; text-align: center; border-right: 1px solid var(--grey-200); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Merriweather', serif; font-size: 1.5rem; color: var(--blue); display: block; }
.stat-lbl { font-size: 0.72rem; color: var(--grey-500); margin-top: 0.1rem; }

/* ── MAIN LAYOUT ──────────────────────────────────────────── */
.main { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.sec-title  { font-family: 'Merriweather', serif; font-size: 1.15rem; color: var(--grey-900); }
.sec-title span { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--grey-500); font-weight: 400; margin-left: 0.5rem; }
.sec-link { font-size: 0.83rem; color: var(--blue); text-decoration: none; font-weight: 500; }
.sec-link:hover { text-decoration: underline; }

/* ── ACCOUNT BAR ──────────────────────────────────────────── */
.account-bar { background: var(--blue-pale); border: 1px solid rgba(13,110,253,0.15); border-radius: 10px; padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.account-bar-left { display: flex; align-items: center; gap: 0.9rem; }
.acct-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0a3d8f); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.acct-name     { font-weight: 700; font-size: 0.95rem; }
.acct-callsign { font-size: 0.78rem; color: var(--blue); font-weight: 500; }
.acct-badges   { display: flex; gap: 0.35rem; margin-top: 0.2rem; flex-wrap: wrap; }
.acct-badge  { font-size: 0.62rem; font-weight: 500; padding: 0.15rem 0.45rem; border-radius: 3px; }
.ab-verified { background: var(--blue-light); color: var(--blue-dark); }
.ab-trusted  { background: var(--green-light); color: var(--green); }
.ab-advanced { background: #e2d9f3; color: #6f42c1; }
.account-bar-right { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.acct-stat { background: var(--white); border: 1px solid var(--grey-300); border-radius: 8px; padding: 0.55rem 0.9rem; text-align: center; min-width: 75px; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.acct-stat:hover { border-color: var(--blue); text-decoration: none; }
.acct-stat-num { font-size: 1.1rem; font-weight: 700; color: var(--grey-900); display: block; }
.acct-stat-lbl { font-size: 0.62rem; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── CATEGORIES GRID ──────────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.cat-card { background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; padding: 1.1rem 0.65rem; text-align: center; text-decoration: none; color: var(--grey-900); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; cursor: pointer; }
.cat-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(13,110,253,0.1); transform: translateY(-2px); text-decoration: none; }
.cat-emoji { font-size: 1.9rem; display: block; margin-bottom: 0.4rem; }
.cat-name  { font-size: 0.75rem; font-weight: 500; color: var(--grey-800); line-height: 1.3; }
.cat-count { font-size: 0.67rem; color: var(--grey-500); margin-top: 0.15rem; }

/* ── LISTING CARDS ────────────────────────────────────────── */
.featured-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.listing-card { background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.listing-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-3px); text-decoration: none; }
.listing-card.featured { border-color: var(--gold); border-width: 1.5px; }
.listing-img { height: 140px; background: linear-gradient(145deg, #1a1a2e, #0d0d1a); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-img-placeholder { width: 85px; height: 50px; background: linear-gradient(145deg,#2c2c3e,#1a1a2a); border-radius: 6px; border: 1px solid #444; display: flex; align-items: center; justify-content: center; }
.featured-tag { position: absolute; top: 7px; left: 7px; background: var(--gold); color: #664d03; font-size: 0.62rem; font-weight: 700; padding: 0.18rem 0.45rem; border-radius: 3px; }
.verified-tag { position: absolute; top: 7px; right: 7px; background: rgba(13,110,253,0.9); color: var(--white); font-size: 0.6rem; font-weight: 500; padding: 0.18rem 0.45rem; border-radius: 3px; }
.listing-body  { padding: 0.8rem; flex: 1; display: flex; flex-direction: column; }
.listing-cat   { font-size: 0.66rem; color: var(--blue); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.listing-title { font-size: 0.85rem; font-weight: 500; color: var(--grey-900); line-height: 1.3; margin-bottom: 0.45rem; flex: 1; }
.listing-price { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 0.35rem; }
.listing-meta  { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--grey-500); }
.listing-condition { font-size: 0.65rem; font-weight: 500; padding: 0.13rem 0.45rem; border-radius: 3px; }
.cond-exc   { background: var(--green-light); color: var(--green); }
.cond-good  { background: #cfe2ff; color: #084298; }
.cond-fair  { background: #fff3cd; color: #664d03; }
.cond-parts { background: var(--red-light); color: var(--red); }

/* ── TWO COL ──────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 290px; gap: 1.5rem; margin-bottom: 2rem; }

/* ── LISTINGS TABLE ───────────────────────────────────────── */
.listings-table { background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; overflow: hidden; }
.table-header { display: grid; grid-template-columns: 55px 1fr 95px 85px 75px; background: var(--grey-100); border-bottom: 1px solid var(--grey-300); padding: 0.6rem 1rem; }
.th { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); }
.table-row { display: grid; grid-template-columns: 55px 1fr 95px 85px 75px; padding: 0.7rem 1rem; border-bottom: 1px solid var(--grey-200); align-items: center; transition: background 0.15s; cursor: pointer; text-decoration: none; color: inherit; }
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: var(--blue-pale); text-decoration: none; }
.row-thumb { width: 42px; height: 33px; background: linear-gradient(145deg,#1a1a2e,#0d0d1a); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-thumb-inner { width: 26px; height: 16px; background: linear-gradient(145deg,#2c2c3e,#1a1a2a); border-radius: 3px; border: 1px solid #444; }
.row-title { font-size: 0.83rem; font-weight: 500; color: var(--grey-900); }
.row-sub   { font-size: 0.7rem; color: var(--grey-500); margin-top: 1px; }
.row-price { font-size: 0.88rem; font-weight: 700; color: var(--blue); }
.row-loc   { font-size: 0.75rem; color: var(--grey-500); }
.row-age   { font-size: 0.7rem; color: var(--grey-400); }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.1rem; }
.sidebar-card { background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.sidebar-card-header { background: var(--grey-100); border-bottom: 1px solid var(--grey-300); padding: 0.7rem 1rem; font-size: 0.8rem; font-weight: 700; color: var(--grey-800); display: flex; justify-content: space-between; align-items: center; }
.sidebar-card-body { padding: 0.9rem; }
.sidebar-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0; border-bottom: 1px solid var(--grey-200); font-size: 0.8rem; color: var(--grey-700); text-decoration: none; cursor: pointer; transition: color 0.15s; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { color: var(--blue); text-decoration: none; }
.sidebar-count { margin-left: auto; background: var(--blue-light); color: var(--blue); font-size: 0.65rem; font-weight: 700; padding: 0.12rem 0.4rem; border-radius: 100px; }
.arrow { margin-left: auto; color: var(--grey-400); font-size: 0.75rem; }
.wi-thumb { width: 38px; height: 30px; background: linear-gradient(145deg,#1a1a2e,#0d0d1a); border-radius: 4px; flex-shrink: 0; background-size: cover; background-position: center; }
.wi-title { font-size: 0.76rem; font-weight: 500; color: var(--grey-900); line-height: 1.25; }
.wi-price { font-size: 0.76rem; font-weight: 700; color: var(--blue); margin-top: 1px; }
.ad-banner { background: linear-gradient(135deg,#0d6efd,#0a3d8f); border-radius: 10px; padding: 1.1rem; text-align: center; color: var(--white); }
.ad-lbl    { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 0.35rem; }
.ad-banner h4 { font-family: 'Merriweather', serif; font-size: 0.9rem; margin-bottom: 0.3rem; }
.ad-banner p  { font-size: 0.73rem; opacity: 0.8; margin-bottom: 0.75rem; font-weight: 300; }
.ad-banner a  { display: inline-block; background: var(--white); color: var(--blue); padding: 0.4rem 1rem; border-radius: 5px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.ad-banner a:hover { background: var(--grey-100); }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-it-works { background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; padding: 1.75rem; margin-bottom: 2rem; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.how-step { text-align: center; }
.how-icon { width: 52px; height: 52px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; font-size: 1.4rem; position: relative; }
.how-step-num { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; background: var(--blue); color: var(--white); font-size: 0.6rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.how-step h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.35rem; }
.how-step p  { font-size: 0.76rem; color: var(--grey-500); line-height: 1.6; font-weight: 300; }

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar { background: var(--grey-900); border-radius: 10px; padding: 1.4rem 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.trust-item  { display: flex; align-items: center; gap: 0.7rem; color: rgba(255,255,255,0.85); }
.trust-icon  { font-size: 1.4rem; flex-shrink: 0; }
.trust-label { font-size: 0.8rem; font-weight: 500; }
.trust-sub   { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 300; }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg,#0a1628 0%,#0d3060 60%,#0a58ca 100%); padding: 3rem 1.5rem 3.5rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,0.03) 1px,transparent 1px); background-size:28px 28px; }
.page-hero-content { position:relative; z-index:1; max-width:680px; margin:0 auto; }
.page-hero h1 { font-family:'Merriweather',serif; font-size:clamp(1.6rem,3.5vw,2.4rem); color:var(--white); margin-bottom:0.75rem; }
.page-hero h1 em { font-style:italic; color:#7eb8ff; }
.page-hero p  { color:rgba(255,255,255,0.75); font-size:1rem; line-height:1.75; font-weight:300; }
.page-hero-badge { display:inline-flex; align-items:center; gap:0.45rem; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); color:rgba(255,255,255,0.9); font-size:0.75rem; font-weight:500; padding:0.35rem 0.9rem; border-radius:100px; margin-bottom:1.25rem; }

/* Breadcrumb */
.breadcrumb       { background: var(--white); border-bottom: 1px solid var(--grey-300); padding: 0.6rem 0; font-size: 0.8rem; color: var(--grey-500); }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.breadcrumb a     { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span  { margin: 0 0.4rem; }

/* ── BADGES ───────────────────────────────────────────────── */
.badge { font-size: 0.72rem; font-weight: 500; padding: 0.25rem 0.65rem; border-radius: 4px; letter-spacing: 0.03em; }
.badge-featured { background: #fff3cd; color: #664d03; }
.badge-category { background: var(--blue-light); color: var(--blue); }
.badge-verified { background: var(--blue-light); color: var(--blue-dark); }
.badge-trusted  { background: var(--green-light); color: var(--green); }
.badge-dealer   { background: #e2d9f3; color: #6f42c1; }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { display: flex; gap: 0.35rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.page-btn { padding: 0.45rem 0.85rem; border-radius: 6px; font-size: 0.85rem; border: 1px solid var(--grey-300); background: var(--white); color: var(--grey-700); cursor: pointer; text-decoration: none; transition: all 0.15s; }
.page-btn:hover  { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--grey-900); color: rgba(255,255,255,0.7); padding: 2.5rem 1.5rem 1.5rem; margin-top: 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 0.65rem; font-weight: 300; }
.footer-col h5  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-bottom: 0.8rem; }
.footer-col a   { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 0.45rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom  { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.73rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }
.footer-legal { display: flex; gap: 1.25rem; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .two-col     { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .table-header, .table-row { grid-template-columns: 1fr 85px; }
  .th:first-child, .th:nth-child(4), .th:nth-child(5) { display: none; }
  .row-thumb, .row-loc, .row-age { display: none; }
}

@media (max-width: 768px) {
  /* ── NAV ── */
  .topbar { display: none; }
  .nav-inner { padding: 0.75rem 1rem; gap: 0.75rem; }
  .nav-search { display: none; }
  .nav-actions { margin-left: auto; }

  /* ── NAV DROPDOWN ── */
  .nav-dropdown-menu { right: -8px; width: 260px; }

  /* ── HERO ── */
  .hero { padding: 2.5rem 1rem 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; }
  .hero-search { flex-direction: column; border-radius: 8px; margin: 0 0 1rem; }
  .hero-search select { min-width: unset; border-right: none; border-bottom: 1px solid var(--grey-300); border-radius: 8px 8px 0 0; }
  .hero-search input { border-radius: 0; }
  .hero-search button { padding: 0.85rem; border-radius: 0 0 8px 8px; }

  /* ── CATEGORY NAV ── */
  .cat-nav-inner { padding: 0 0.75rem; gap: 0; }
  .cat-nav-item { padding: 0.6rem 0.65rem; font-size: 0.75rem; }

  /* ── MAIN CONTENT ── */
  .main { padding: 0 1rem; margin: 1.25rem auto; }

  /* ── LISTING CARDS ── */
  .featured-strip { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .listing-img { height: 120px; }
  .listing-body { padding: 0.65rem; }
  .listing-title { font-size: 0.82rem; }
  .listing-price { font-size: 1rem; }

  /* ── STATS BAR ── */
  .stats-inner { flex-wrap: wrap; gap: 0; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--grey-200); }

  /* ── TRUST BAR ── */
  .trust-bar { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* ── CATEGORIES GRID ── */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  /* ── PAGE HERO ── */
  .page-hero { padding: 1.75rem 1rem 2rem; }
  .page-hero h1 { font-size: 1.5rem; }

  /* ── BREADCRUMB ── */
  .breadcrumb-inner { padding: 0 1rem; }

  /* ── FOOTER ── */
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  /* ── SEARCH PAGE SIDEBAR ── */
  .main > div[style*="grid-template-columns:240px"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* ── MESSAGES ── */
  .main > div[style*="grid-template-columns:320px"] {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 480px) {
  /* ── LOGO ── */
  .logo { font-size: 1.1rem; }
  .logo span { font-size: 0.55rem; }

  /* ── LISTING CARDS ── */
  .featured-strip { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  /* ── CATEGORIES GRID ── */
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── TRUST BAR ── */
  .trust-bar { grid-template-columns: 1fr; }

  /* ── BUTTONS ── */
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.88rem; }

  /* ── HERO ── */
  .hero h1 { font-size: 1.5rem; }

  /* ── NAV DROPDOWN FULL WIDTH ── */
  .nav-dropdown-menu { 
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
    width: auto;
  }
}

/* ── ONLINE INDICATOR ─────────────────────────────────────── */
.online-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #ffffff;
  z-index: 10;
  animation: pulse-green 2s ease-in-out infinite;
}
.online-dot.lg {
  width: 16px; height: 16px;
  bottom: 3px; right: 3px;
  border: 3px solid #0d3060;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── NAV DROPDOWN ─────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid var(--grey-300);
  border-radius: 100px;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  color: var(--grey-900);
}
.nav-dropdown-trigger:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: top right;
}
.nav-dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--grey-800);
  text-decoration: none;
  transition: color 0.2s, border-left-color 0.2s, background 0.2s;
  cursor: pointer;
  border-left: 3px solid transparent;
  font-weight: 400;
}
.dd-item:hover {
  color: var(--blue);
  border-left-color: var(--blue);
  background: var(--blue-pale);
  text-decoration: none;
}
.dd-item span:first-child { width: 20px; text-align: center; flex-shrink: 0; }

/* Dark mode */
[data-theme="dark"] .nav-dropdown-trigger {
  border-color: #30363d;
  color: #c9d1d9;
}
[data-theme="dark"] .nav-dropdown-trigger:hover {
  border-color: #4d9fff;
  background: #1a2535;
}
[data-theme="dark"] .nav-dropdown-menu {
  background: #1e2128;
  border-color: #30363d;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
[data-theme="dark"] .dd-item { color: #c9d1d9; border-left-color: transparent; }
[data-theme="dark"] .dd-item:hover { color: #4d9fff; border-left-color: #4d9fff; background: #1a2535; }

/* ── MOBILE NAV ───────────────────────────────────────────── */
@media (max-width: 768px) {
  #mobile-search-btn { display: inline-flex !important; }
  
  /* Post Ad button smaller on mobile */
  .nav-actions .btn { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
  
  /* Dropdown trigger compact */
  .nav-dropdown-trigger { padding: 0.25rem 0.5rem 0.25rem 0.3rem; gap: 0.35rem; }
  .nav-dropdown-trigger span[style*="monospace"] { font-size: 0.75rem; }
}

/* ── LISTING IMAGE HOVER ZOOM ─────────────────────────────── */
.listing-img img {
  transition: transform 0.3s ease;
}
.listing-card:hover .listing-img img {
  transform: scale(1.08);
}

/* ── ACCOUNT PAGE TABS ────────────────────────────────────── */
.acct-tabs { display:flex; gap:0; border-bottom:2px solid var(--grey-200); margin-bottom:1.5rem; overflow-x:auto; scrollbar-width:none; }
.acct-tabs::-webkit-scrollbar { display:none; }
.acct-tab  { padding:0.85rem 1.35rem; font-size:0.88rem; font-weight:400; color:var(--grey-500); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; transition:color 0.2s,border-color 0.2s; user-select:none; }
.acct-tab:hover { color:var(--grey-800); }
.acct-tab.active { color:#0d6efd; border-bottom:2px solid #0d6efd; font-weight:600; }
.field-group { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:0.5rem; }
.section-card { background:var(--white);border:1px solid var(--grey-300);border-radius:10px;padding:1.75rem;margin-bottom:1.25rem; }
.section-title { font-size:0.88rem;font-weight:700;margin-bottom:1.25rem;padding-bottom:0.75rem;border-bottom:1px solid var(--grey-200);display:flex;align-items:center;gap:0.5rem; }
.pill-select label { display:inline-flex;align-items:center;gap:0.35rem;border-radius:6px;padding:0.3rem 0.65rem;cursor:pointer;font-size:0.78rem;font-weight:500;transition:all 0.15s;border:1.5px solid var(--grey-300);background:var(--grey-100); }
.pill-select label.on { border-color:var(--blue);background:var(--blue-light);color:var(--blue); }
.pill-select label.on-green { border-color:var(--green);background:var(--green-light);color:var(--green); }
@media(max-width:640px){ .field-group{ grid-template-columns:1fr; } }
