/* =========================================================
   AlHuda Cars — Stylesheet
   Palette: deep emerald brand + warm gold accent, evokes
   UAE luxury-automotive without leaning on cream/terracotta
   or near-black/neon AI-default palettes.
========================================================= */

:root{
  --brand:        #0E3B36;
  --brand-2:      #145951;
  --brand-dark:   #08211E;
  --gold:         #C9974B;
  --gold-light:   #E3BE84;
  --bg:           #F6F5F1;
  --surface:      #FFFFFF;
  --surface-alt:  #F0EEE7;
  --text:         #14201D;
  --text2:        #4B5A56;
  --text3:        #8A968F;
  --border:       #E3E1D8;
  --border-dark:  #CFCCBF;
  --danger:       #B4483A;
  --success:      #2F7A5C;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 3px rgba(14,59,54,.08);
  --shadow:       0 8px 24px rgba(14,59,54,.10);
  --shadow-lg:    0 24px 60px rgba(8,33,30,.22);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
}

html, body{ max-width:100%; overflow-x:hidden; }

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; cursor:pointer; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
input,select,textarea{ font-family:inherit; font-size:14px; }
::selection{ background:var(--gold-light); color:var(--brand-dark); }
:focus-visible{ outline:2px solid var(--brand-2); outline-offset:2px; }

.container{ max-width:1240px; margin:0 auto; padding:0 24px; }
.hidden{ display:none !important; }
.ml-auto{ margin-left:auto; }
.flex{ display:flex; }
.gap-8{ gap:8px; }
em{ font-style:italic; color:var(--gold); font-family:var(--font-display); }

@keyframes fadeIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }
.fade-in{ animation:fadeIn .35s ease both; }

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:999px; font-weight:600; font-size:14px;
  transition:all .18s ease; white-space:nowrap;
}
.btn-brand{ background:var(--brand); color:#fff; }
.btn-brand:hover{ background:var(--brand-2); transform:translateY(-1px); }
.btn-gold{ background:linear-gradient(135deg,var(--gold-light),var(--gold)); color:var(--brand-dark); box-shadow:var(--shadow-sm); }
.btn-gold:hover{ transform:translateY(-1px); box-shadow:var(--shadow); }
.btn-outline{ background:transparent; border:1.5px solid var(--border-dark); color:var(--text); }
.btn-outline:hover{ border-color:var(--brand); color:var(--brand); }
.btn-ghost{ background:var(--surface-alt); color:var(--text); }
.btn-ghost:hover{ background:var(--border); }
.btn-sm{ padding:9px 16px; font-size:13px; }
.btn-lg{ padding:14px 26px; font-size:15px; }
.btn-xl{ padding:16px 32px; font-size:16px; border-radius:999px; }
.btn-full{ width:100%; }
.btn-icon{ padding:10px; border-radius:50%; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; }

/* =========================================================
   NAVBAR
========================================================= */
#navbar{
  position:sticky; top:0; z-index:200; background:rgba(246,245,241,.92);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--border);
}
.nav-inner{ display:flex; align-items:center; gap:36px; height:76px; }
.nav-logo{ display:flex; align-items:center; gap:10px; }
.nav-logo-mark{
  width:38px; height:38px; border-radius:10px; background:var(--brand);
  color:var(--gold-light); font-family:var(--font-display); font-weight:800;
  display:flex; align-items:center; justify-content:center; font-size:19px;
}
.nav-logo-text{ font-size:19px; font-weight:800; letter-spacing:-.02em; }
.nav-logo-text span{ color:var(--gold); }
.nav-links{ display:flex; align-items:center; gap:30px; flex:1; }
.nav-link{ font-size:14.5px; font-weight:500; color:var(--text2); position:relative; padding:6px 0; }
.nav-link:hover{ color:var(--brand); }
.nav-link.active{ color:var(--brand); font-weight:600; }
.nav-link.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--gold);
}
.nav-right{ display:flex; align-items:center; gap:10px; }
.nav-notify{ position:relative; border-radius:50%; padding:10px; }
.nav-notify-dot{ position:absolute; top:8px; right:9px; width:7px; height:7px; border-radius:50%; background:var(--danger); border:1.5px solid var(--bg); }
.mobile-menu-btn{ display:none; flex-direction:column; gap:5px; padding:6px; cursor:pointer; }
.mobile-menu-btn span{ width:22px; height:2px; background:var(--text); border-radius:2px; }

.mobile-nav{
  display:none; position:fixed; inset:0; background:rgba(8,33,30,.5); z-index:400;
}
.mobile-nav.open{ display:block; }
.mobile-nav-panel{
  position:absolute; top:0; right:0; bottom:0; width:82%; max-width:340px;
  background:var(--surface); padding:24px; display:flex; flex-direction:column; gap:4px;
  animation:slideIn .25s ease both;
}
@keyframes slideIn{ from{transform:translateX(100%)} to{transform:translateX(0)} }
.mobile-nav-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.mobile-nav-link{ padding:14px 6px; font-weight:600; font-size:15px; border-bottom:1px solid var(--border); }

/* =========================================================
   HERO
========================================================= */
.hero{
  background:radial-gradient(120% 140% at 15% 0%, var(--brand-2) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color:#fff; padding:64px 0 90px; overflow:hidden; position:relative;
}
.hero-inner{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18); padding:8px 16px; border-radius:999px;
  font-size:12.5px; font-weight:600; letter-spacing:.02em; margin-bottom:22px;
}
.hero-badge-dot{ width:7px; height:7px; border-radius:50%; background:var(--gold-light); }
.hero-content h1{
  font-family:var(--font-display); font-size:52px; line-height:1.08; font-weight:800;
  letter-spacing:-.01em; margin-bottom:20px;
}
.hero-desc{ font-size:16.5px; color:rgba(255,255,255,.78); max-width:480px; margin-bottom:32px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats{ display:flex; gap:34px; flex-wrap:wrap; }
.hero-stat-num{ font-family:var(--font-display); font-size:28px; font-weight:800; color:var(--gold-light); }
.hero-stat-num span{ font-size:18px; }
.hero-stat-label{ font-size:12.5px; color:rgba(255,255,255,.65); margin-top:2px; }
.hero-img-wrap{ position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); }
.hero-img-wrap img{ width:100%; height:420px; object-fit:cover; }
.hero-img-badges{ position:absolute; bottom:16px; left:16px; right:16px; display:flex; gap:10px; flex-wrap:wrap; }
.hero-img-badge{
  background:rgba(20,32,29,.72); backdrop-filter:blur(6px); color:#fff; font-size:12px;
  font-weight:600; padding:8px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.15);
}

/* =========================================================
   SEARCH CARD
========================================================= */
.search-section{ margin-top:-56px; position:relative; z-index:10; }
.search-card{
  background:var(--surface); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  overflow:hidden; border:1px solid var(--border);
}
.search-tabs{ display:flex; background:var(--surface-alt); border-bottom:1px solid var(--border); overflow-x:auto; }
.search-tab{
  padding:16px 22px; font-size:14px; font-weight:600; color:var(--text3); white-space:nowrap;
  border-bottom:2.5px solid transparent;
}
.search-tab.active{ color:var(--brand); border-bottom-color:var(--gold); background:var(--surface); }
.search-body{ padding:24px; }
.search-row{ display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; }
.form-group{ display:flex; flex-direction:column; gap:6px; flex:1; min-width:150px; }
.form-label{ font-size:12.5px; font-weight:600; color:var(--text2); }
.form-control{
  padding:12px 14px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  background:var(--surface); font-size:14px; color:var(--text); transition:border-color .15s;
}
.form-control:focus{ border-color:var(--brand-2); }
.search-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.chip{
  padding:8px 15px; border-radius:999px; background:var(--surface-alt); font-size:13px;
  font-weight:500; color:var(--text2); border:1px solid transparent;
}
.chip:hover{ background:var(--border); }
.chip.active{ background:var(--brand); color:#fff; }

/* =========================================================
   SECTIONS / CARDS GRID
========================================================= */
.section{ padding:76px 0; }
.section-alt{ background:var(--surface-alt); }
.section-header{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:32px; gap:20px; flex-wrap:wrap; }
.section-tag{ font-size:12.5px; font-weight:700; color:var(--gold); text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.section-title{ font-family:var(--font-display); font-size:32px; font-weight:800; letter-spacing:-.01em; }
.section-sub{ color:var(--text3); font-size:14.5px; margin-top:6px; }
.see-all-btn{ font-size:14px; font-weight:600; color:var(--brand); white-space:nowrap; }
.see-all-btn:hover{ color:var(--gold); }

.cars-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.car-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:transform .18s, box-shadow .18s; cursor:pointer; display:flex; flex-direction:column;
}
.car-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.car-card-img{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--surface-alt); }
.car-card-img img{ width:100%; height:100%; object-fit:cover; }
.car-badge{ position:absolute; top:10px; left:10px; background:var(--brand); color:#fff; font-size:11px; font-weight:700; padding:5px 10px; border-radius:999px; }
.car-badge.new{ background:var(--success); }
.car-fav{
  position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; font-size:15px;
}
.car-card-body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.car-card-price{ font-size:19px; font-weight:800; color:var(--brand); }
.car-card-title{ font-size:14.5px; font-weight:700; }
.car-card-meta{ display:flex; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--text3); }
.car-card-meta span{ display:flex; align-items:center; gap:3px; }
.car-card-loc{ font-size:12.5px; color:var(--text3); margin-top:auto; padding-top:8px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }

.brands-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:16px; }
.brand-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px 10px;
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; transition:.15s;
}
.brand-card:hover{ border-color:var(--gold); transform:translateY(-2px); }
.brand-emoji{ font-size:28px; }
.brand-name{ font-size:12.5px; font-weight:600; }
.brand-count{ font-size:11px; color:var(--text3); }

.trust-section{ background:var(--brand-dark); color:#fff; padding:64px 0; }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.trust-icon{ font-size:30px; margin-bottom:14px; }
.trust-title{ font-weight:700; font-size:16px; margin-bottom:8px; }
.trust-desc{ font-size:13.5px; color:rgba(255,255,255,.62); line-height:1.6; }

.dealers-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.dealer-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; text-align:center; }
.dealer-logo{ width:56px; height:56px; border-radius:14px; background:var(--brand); color:var(--gold-light); font-family:var(--font-display); font-weight:800; font-size:20px; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; }
.dealer-name{ font-weight:700; font-size:14.5px; }
.dealer-meta{ font-size:12px; color:var(--text3); margin-top:4px; }

.cta-section{ background:linear-gradient(120deg,var(--brand),var(--brand-2)); padding:70px 0; color:#fff; }
.cta-inner{ text-align:center; }
.cta-title{ font-family:var(--font-display); font-size:34px; font-weight:800; margin-bottom:12px; }
.cta-sub{ color:rgba(255,255,255,.78); max-width:520px; margin:0 auto 30px; }
.cta-btns{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* =========================================================
   LISTINGS PAGE
========================================================= */
.listings-page{ padding:32px 0 80px; }
.breadcrumb{ font-size:13px; color:var(--text3); margin-bottom:18px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.breadcrumb a{ color:var(--text2); font-weight:500; }
.breadcrumb a:hover{ color:var(--brand); }
.breadcrumb-sep{ opacity:.5; }
.active-filters{ display:flex; flex-wrap:wrap; gap:8px; }
.active-filter-tag{ background:var(--brand); color:#fff; font-size:12.5px; font-weight:600; padding:6px 12px; border-radius:999px; display:flex; align-items:center; gap:6px; }
.active-filter-tag span{ cursor:pointer; opacity:.75; }
.active-filter-tag span:hover{ opacity:1; }

.listings-layout{ display:grid; grid-template-columns:264px 1fr; gap:28px; align-items:flex-start; }
.filters-panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; position:sticky; top:96px; max-height:calc(100vh - 116px); overflow-y:auto; }
.filter-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.filter-head-title{ font-weight:700; font-size:15px; }
.filter-reset{ font-size:12.5px; color:var(--brand); font-weight:600; }
.filter-reset:hover{ color:var(--gold); }
.filter-section{ padding:14px 0; border-top:1px solid var(--border); }
.filter-section:first-child{ border-top:none; padding-top:0; }
.filter-section-title{ font-size:13px; font-weight:700; margin-bottom:10px; }
.filter-options{ display:flex; flex-direction:column; gap:9px; }
.filter-option{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--text2); cursor:pointer; }
.filter-option input{ accent-color:var(--brand); width:15px; height:15px; }
.filter-range{ display:flex; align-items:center; gap:8px; }
.filter-range .form-control{ padding:9px 10px; font-size:13px; }
.filter-range-sep{ color:var(--text3); }

.listings-toolbar{ display:flex; align-items:center; margin-bottom:18px; gap:12px; flex-wrap:wrap; }
.results-info{ font-size:14px; color:var(--text2); }
.results-info strong{ color:var(--text); }
.view-toggle{ display:flex; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.view-btn{ padding:8px 12px; background:var(--surface); font-size:15px; color:var(--text3); }
.view-btn.active{ background:var(--brand); color:#fff; }
.sort-select{ padding:9px 14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); font-size:13.5px; }

.listings-grid-view{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.listings-list-view{ display:flex; flex-direction:column; gap:14px; }
.car-card.list-card{ flex-direction:row; }
.list-card .car-card-img{ width:230px; aspect-ratio:auto; flex-shrink:0; }
.list-card .car-card-body{ flex:1; }

.empty-state{ text-align:center; padding:70px 20px; color:var(--text3); }
.empty-state-icon{ font-size:42px; margin-bottom:14px; }
.pagination{ display:flex; justify-content:center; gap:8px; margin-top:36px; }
.page-btn{ width:38px; height:38px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); font-size:13.5px; font-weight:600; color:var(--text2); }
.page-btn.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.page-btn:hover:not(.active){ border-color:var(--brand); color:var(--brand); }

/* =========================================================
   DETAIL PAGE
========================================================= */
.detail-page{ padding:28px 0 80px; }
.detail-grid{ display:grid; grid-template-columns:1.6fr 1fr; gap:32px; align-items:flex-start; }
.detail-gallery-main{ border-radius:var(--radius); overflow:hidden; aspect-ratio:16/10; background:var(--surface-alt); margin-bottom:12px; }
.detail-gallery-main img{ width:100%; height:100%; object-fit:cover; }
.detail-thumbs{ display:flex; gap:10px; }
.detail-thumb{ width:74px; height:56px; border-radius:8px; overflow:hidden; border:2px solid transparent; cursor:pointer; opacity:.65; }
.detail-thumb.active{ border-color:var(--gold); opacity:1; }
.detail-thumb img{ width:100%; height:100%; object-fit:cover; }
.detail-title{ font-family:var(--font-display); font-size:28px; font-weight:800; margin:24px 0 6px; }
.detail-loc{ color:var(--text3); font-size:13.5px; margin-bottom:20px; }
.detail-quickstats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:28px; }
.quickstat{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px; text-align:center; }
.quickstat-val{ font-weight:700; font-size:14px; }
.quickstat-label{ font-size:11px; color:var(--text3); margin-top:2px; }
.detail-block{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; margin-bottom:20px; }
.detail-block-title{ font-weight:700; font-size:16px; margin-bottom:14px; }
.detail-features{ display:flex; flex-wrap:wrap; gap:10px; }
.feature-pill{ background:var(--surface-alt); font-size:12.5px; font-weight:500; padding:7px 13px; border-radius:999px; }
.detail-desc{ font-size:14px; color:var(--text2); line-height:1.75; }

.detail-side{ position:sticky; top:96px; }
.price-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; margin-bottom:16px; }
.price-card-price{ font-family:var(--font-display); font-size:30px; font-weight:800; color:var(--brand); }
.price-card-installment{ font-size:12.5px; color:var(--text3); margin:4px 0 18px; }
.seller-row{ display:flex; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--border); margin-top:14px; }
.seller-avatar{ width:42px; height:42px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.seller-name{ font-weight:700; font-size:13.5px; }
.seller-type{ font-size:11.5px; color:var(--text3); }
.contact-actions{ display:flex; flex-direction:column; gap:10px; margin-top:14px; }

/* =========================================================
   SELL PAGE
========================================================= */
.sell-page{ padding:32px 0 90px; }
.sell-hero{
  background:linear-gradient(120deg,var(--brand),var(--brand-2)); color:#fff; border-radius:var(--radius-lg);
  padding:36px; display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:32px; flex-wrap:wrap;
}
.sell-hero-text h2{ font-family:var(--font-display); font-size:27px; font-weight:800; margin-bottom:8px; }
.sell-hero-text p{ color:rgba(255,255,255,.78); max-width:420px; font-size:14px; }
.sell-hero-steps{ display:flex; gap:22px; }
.sell-step{ text-align:center; opacity:.55; }
.sell-step.active{ opacity:1; }
.sell-step-num{ width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; margin:0 auto 6px; }
.sell-step.active .sell-step-num{ background:var(--gold); color:var(--brand-dark); }
.sell-step-label{ font-size:11.5px; font-weight:600; }

.form-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px; margin-bottom:20px; }
.form-card-title{ font-weight:700; font-size:17px; margin-bottom:4px; }
.form-card-sub{ font-size:13px; color:var(--text3); margin-bottom:20px; }
.form-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
textarea.form-control{ min-height:110px; resize:vertical; }

.upload-zone{
  border:2px dashed var(--border-dark); border-radius:var(--radius); padding:40px 20px; text-align:center;
  cursor:pointer; transition:.15s;
}
.upload-zone:hover{ border-color:var(--gold); background:var(--surface-alt); }
.upload-zone-icon{ font-size:32px; margin-bottom:10px; }
.upload-zone-title{ font-weight:700; font-size:14.5px; }
.upload-zone-sub{ font-size:12.5px; color:var(--text3); margin-top:4px; }
.uploaded-photos{ display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-top:16px; }
.uploaded-photo{ position:relative; aspect-ratio:1; border-radius:8px; overflow:hidden; }
.uploaded-photo img{ width:100%; height:100%; object-fit:cover; }
.uploaded-photo-remove{ position:absolute; top:4px; right:4px; width:20px; height:20px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; }

.success-banner{
  display:flex; align-items:center; gap:14px; background:#EAF5EF; border:1px solid var(--success);
  border-radius:var(--radius); padding:18px 22px; margin-top:18px;
}
.success-icon{ font-size:26px; }
.success-text{ font-weight:700; color:var(--success); }
.success-sub{ font-size:12.5px; color:var(--text2); }

/* =========================================================
   FOOTER
========================================================= */
footer{ background:var(--brand-dark); color:rgba(255,255,255,.75); padding:64px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1fr; gap:32px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-logo-wrap{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-logo-mark{ width:36px; height:36px; border-radius:9px; background:var(--gold); color:var(--brand-dark); font-family:var(--font-display); font-weight:800; display:flex; align-items:center; justify-content:center; }
.footer-logo-text{ font-size:18px; font-weight:800; color:#fff; }
.footer-logo-text span{ color:var(--gold); }
.footer-desc{ font-size:13.5px; line-height:1.7; max-width:280px; margin-bottom:18px; }
.footer-socials{ display:flex; gap:10px; margin-bottom:22px; }
.footer-social{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; font-size:14px; }
.footer-app-badges{ display:flex; gap:10px; flex-wrap:wrap; }
.app-badge{ display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.08); padding:8px 12px; border-radius:8px; font-size:11px; }
.app-badge-text strong{ display:block; font-size:12.5px; }
.footer-col-title{ color:#fff; font-weight:700; font-size:13.5px; margin-bottom:16px; }
.footer-links{ display:flex; flex-direction:column; gap:11px; }
.footer-link{ font-size:13px; color:rgba(255,255,255,.65); }
.footer-link:hover{ color:var(--gold-light); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:22px 0; font-size:12.5px; flex-wrap:wrap; gap:10px; }
.footer-bottom-links{ display:flex; gap:18px; }
.footer-bottom-link:hover{ color:var(--gold-light); }

/* =========================================================
   TOASTS
========================================================= */
#toast-container{ position:fixed; top:90px; right:24px; z-index:900; display:flex; flex-direction:column; gap:10px; }
.toast{
  background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--brand);
  border-radius:var(--radius-sm); padding:14px 18px; font-size:13.5px; font-weight:500; box-shadow:var(--shadow);
  min-width:260px; animation:toastIn .25s ease both;
}
.toast.success{ border-left-color:var(--success); }
.toast.info{ border-left-color:var(--gold); }
.toast.error{ border-left-color:var(--danger); }
@keyframes toastIn{ from{opacity:0; transform:translateX(30px);} to{opacity:1; transform:translateX(0);} }
.toast.out{ animation:toastOut .25s ease both; }
@keyframes toastOut{ to{opacity:0; transform:translateX(30px);} }

/* =========================================================
   AUTH MODAL (Sign In / Sign Up)
========================================================= */
.auth-overlay{
  position:fixed; inset:0; background:rgba(8,20,18,.55); backdrop-filter:blur(3px);
  z-index:1000; display:flex; justify-content:center; overflow-y:auto;
  padding:24px 16px; animation:overlayIn .2s ease both;
  -webkit-overflow-scrolling:touch;
}
@keyframes overlayIn{ from{opacity:0;} to{opacity:1;} }
.auth-overlay.hidden{ display:none; }
.auth-modal{
  background:var(--surface); width:100%; max-width:920px; border-radius:var(--radius-lg);
  overflow:hidden; display:grid; grid-template-columns:1fr 1.15fr; box-shadow:var(--shadow-lg);
  margin:auto 0; animation:modalIn .28s cubic-bezier(.2,.9,.3,1.1) both; position:relative;
}
@keyframes modalIn{ from{opacity:0; transform:translateY(18px) scale(.98);} to{opacity:1; transform:translateY(0) scale(1);} }

.auth-visual{
  background:radial-gradient(120% 140% at 20% 0%, var(--brand-2) 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color:#fff; padding:40px 34px; display:flex; flex-direction:column; justify-content:space-between; position:relative;
  overflow:hidden;
}
.auth-visual::after{
  content:''; position:absolute; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(201,151,75,.35), transparent 70%); bottom:-140px; right:-100px;
}
.auth-visual-top{ position:relative; z-index:1; }
.auth-visual-quote{ font-family:var(--font-display); font-size:23px; line-height:1.4; font-weight:700; margin-top:26px; }
.auth-visual-sub{ font-size:13.5px; color:rgba(255,255,255,.7); margin-top:14px; max-width:280px; }
.auth-visual-stats{ display:flex; gap:26px; position:relative; z-index:1; }
.auth-visual-stat-num{ font-family:var(--font-display); font-weight:800; font-size:22px; color:var(--gold-light); }
.auth-visual-stat-label{ font-size:11.5px; color:rgba(255,255,255,.62); margin-top:2px; }

.auth-panel{ padding:36px 40px 44px; }
.auth-close{
  position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%;
  background:var(--surface-alt); display:flex; align-items:center; justify-content:center; font-size:15px; z-index:5;
}
.auth-close:hover{ background:var(--border); }
.auth-tabs{ display:flex; background:var(--surface-alt); border-radius:999px; padding:4px; margin-bottom:26px; }
.auth-tab{ flex:1; text-align:center; padding:10px 0; font-size:13.5px; font-weight:700; border-radius:999px; color:var(--text3); }
.auth-tab.active{ background:var(--brand); color:#fff; }
.auth-title{ font-family:var(--font-display); font-size:24px; font-weight:800; margin-bottom:6px; }
.auth-sub{ font-size:13.5px; color:var(--text3); margin-bottom:24px; }

.auth-form{ display:flex; flex-direction:column; gap:16px; }
.auth-form.hidden{ display:none; }
.auth-field{ display:flex; flex-direction:column; gap:6px; }
.auth-field label{ font-size:12.5px; font-weight:600; color:var(--text2); }
.auth-input-wrap{ position:relative; display:flex; align-items:center; }
.auth-input-wrap .auth-icon{ position:absolute; left:14px; font-size:14px; opacity:.55; }
.auth-input{
  width:100%; padding:13px 14px 13px 40px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:14px; transition:border-color .15s;
}
.auth-input:focus{ border-color:var(--brand-2); }
.auth-input.error{ border-color:var(--danger); }
.auth-toggle-pass{ position:absolute; right:12px; font-size:12.5px; font-weight:600; color:var(--text3); }
.auth-toggle-pass:hover{ color:var(--brand); }
.auth-error-msg{ font-size:12px; color:var(--danger); min-height:14px; margin-top:-8px; }
.auth-row-between{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; }
.auth-remember{ display:flex; align-items:center; gap:7px; color:var(--text2); }
.auth-remember input{ accent-color:var(--brand); width:14px; height:14px; }
.auth-forgot{ color:var(--brand); font-weight:600; }
.auth-forgot:hover{ color:var(--gold); }
.auth-strength{ display:flex; gap:4px; margin-top:-6px; }
.auth-strength-bar{ height:3px; flex:1; border-radius:2px; background:var(--border); transition:.2s; }
.auth-strength-label{ font-size:11px; color:var(--text3); margin-top:-4px; }
.auth-divider{ display:flex; align-items:center; gap:12px; margin:22px 0; font-size:12px; color:var(--text3); }
.auth-divider::before,.auth-divider::after{ content:''; flex:1; height:1px; background:var(--border); }
.auth-social-row{ display:flex; gap:10px; }
.auth-social-btn{
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:11px;
  border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:13px; font-weight:600;
}
.auth-social-btn:hover{ border-color:var(--brand); background:var(--surface-alt); }
.auth-switch{ text-align:center; font-size:13px; color:var(--text3); margin-top:22px; }
.auth-switch b{ color:var(--brand); cursor:pointer; }
.auth-switch b:hover{ color:var(--gold); }
.auth-terms{ font-size:11.5px; color:var(--text3); line-height:1.6; }
.auth-terms a{ color:var(--brand); font-weight:600; }

.auth-success{ text-align:center; padding:30px 10px; }
.auth-success-icon{
  width:64px; height:64px; border-radius:50%; background:#EAF5EF; color:var(--success);
  display:flex; align-items:center; justify-content:center; font-size:30px; margin:0 auto 18px;
}
.auth-success-title{ font-weight:700; font-size:18px; margin-bottom:6px; }
.auth-success-sub{ font-size:13.5px; color:var(--text3); margin-bottom:22px; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:1080px){
  .cars-grid{ grid-template-columns:repeat(3,1fr); }
  .brands-grid{ grid-template-columns:repeat(5,1fr); }
  .trust-grid{ grid-template-columns:repeat(2,1fr); gap:26px; }
  .dealers-grid{ grid-template-columns:repeat(2,1fr); }
  .listings-layout{ grid-template-columns:1fr; }
  .filters-panel{ position:static; max-height:none; }
  .listings-grid-view{ grid-template-columns:repeat(2,1fr); }
  .detail-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-img-wrap{ order:-1; }
  .hero-content h1{ font-size:38px; }
  .auth-modal{ grid-template-columns:1fr; }
  .auth-visual{ display:none; }
}
@media (max-width:720px){
  .nav-links{ display:none; }
  .mobile-menu-btn{ display:flex; }
  .nav-outline, .btn-outline.nav-post{ display:none; }
  .nav-notify{ display:none; }
  .nav-right{ gap:8px; }
  .cars-grid{ grid-template-columns:repeat(2,1fr); }
  .brands-grid{ grid-template-columns:repeat(3,1fr); }
  .trust-grid{ grid-template-columns:1fr; }
  .dealers-grid{ grid-template-columns:1fr; }
  .search-row{ flex-direction:column; align-items:stretch; }
  .form-grid-3, .form-grid-2{ grid-template-columns:1fr; }
  .listings-grid-view{ grid-template-columns:1fr; }
  .list-card{ flex-direction:column; }
  .list-card .car-card-img{ width:100%; aspect-ratio:4/3; }
  .footer-grid{ grid-template-columns:1fr; }
  .sell-hero{ flex-direction:column; align-items:flex-start; }
  .hero-stats{ gap:22px; }
  .section-title{ font-size:26px; }
  .auth-panel{ padding:30px 22px; }
}

@media (max-width:400px){
  .container{ padding:0 16px; }
  .nav-inner{ gap:10px; }
  .nav-logo-text{ font-size:16px; }
  .nav-logo-mark{ width:32px; height:32px; font-size:16px; }
  .nav-right{ gap:6px; }
  .btn-sm{ padding:8px 12px; font-size:12.5px; }
  .hero-content h1{ font-size:32px; }
  .hero-desc{ font-size:15px; }
  .hero-cta{ gap:10px; }
  .hero-cta .btn{ flex:1; min-width:0; padding-left:14px; padding-right:14px; }
  .hero-stats{ gap:16px; }
  .cars-grid{ grid-template-columns:1fr; }
  .brands-grid{ grid-template-columns:repeat(2,1fr); }
  .search-tabs{ padding:0 4px; }
  .search-tab{ padding:14px 14px; font-size:13px; }
  .auth-panel{ padding:26px 16px; }
  .auth-visual{ padding:30px 22px; }
  .auth-title{ font-size:21px; }
  .auth-social-btn{ font-size:12px; padding:10px 6px; }
  .form-card{ padding:18px; }
}