/* ============================================================
   WE SELL MOTORCARS — Main Stylesheet
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --brand:      #D4AF37;
  --brand-dark: #C29B2E;
  --brand-light:#FDF6DC;
  --brand-glow: rgba(212,175,55,0.3);
  --bg:         #0a0a0a;
  --surface:    #141414;
  --surface-2:  #1e1e1e;
  --surface-3:  #282828;
  --border:     rgba(255,255,255,0.09);
  --text:       #f0f0f0;
  --text-2:     #b0b0b0;
  --muted:      #6b7280;
  --success:    #22c55e;
  --warning:    #f59e0b;
  --danger:     #ef4444;
  --whatsapp:   #25d366;
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  22px;
  --shadow:     0 4px 24px rgba(0,0,0,.45);
  --shadow-lg:  0 16px 60px rgba(0,0,0,.55);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --header-h:   68px;
}

/* --- Light Theme ------------------------------------------ */
[data-theme="light"] {
  --bg:         #f0f2f5;
  --surface:    #ffffff;
  --surface-2:  #f7f8fa;
  --surface-3:  #eaecf0;
  --border:     rgba(0,0,0,0.10);
  --text:       #111827;
  --text-2:     #374151;
  --muted:      #9ca3af;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 16px 60px rgba(0,0,0,.14);
  --brand-glow: rgba(212,175,55,0.18);
}

/* Header */
[data-theme="light"] .site-header { background: #ffffff; }

/* Buttons */
[data-theme="light"] .btn-ghost { background: rgba(0,0,0,.05); color: var(--text); border-color: var(--border); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,.09); }
[data-theme="light"] .btn-whatsapp { background: #f0faf4; color: #166534; border-color: #bbf7d0; }
[data-theme="light"] .btn-whatsapp:hover { background: #dcfce7; }

/* Tables */
[data-theme="light"] .data-table td { border-bottom: 1px solid rgba(0,0,0,.07); }

/* Dashboard nav */
[data-theme="light"] .dash-nav a:hover { background: rgba(0,0,0,.04); }
[data-theme="light"] .dash-nav a.active { background: rgba(212,175,55,.1); }

/* Badges — keep readable on light bg */
[data-theme="light"] .badge--active    { background: rgba(34,197,94,.12);  color: #15803d; }
[data-theme="light"] .badge--suspended { background: rgba(239,68,68,.1);   color: #dc2626; }
[data-theme="light"] .badge--verified  { background: rgba(212,175,55,.15); color: #92700a; }
[data-theme="light"] .badge--pending   { background: rgba(245,158,11,.12); color: #b45309; }
[data-theme="light"] .status-badge--active   { background: rgba(34,197,94,.12);  color: #15803d; }
[data-theme="light"] .status-badge--pending  { background: rgba(245,158,11,.12); color: #b45309; }
[data-theme="light"] .status-badge--sold     { background: rgba(220,38,38,.1);   color: #dc2626; }
[data-theme="light"] .status-badge--expired  { background: rgba(107,114,128,.1);  color: #6b7280; }
[data-theme="light"] .status-badge--rejected { background: rgba(239,68,68,.1);   color: #dc2626; }
[data-theme="light"] .status-badge--inactive { background: rgba(107,114,128,.1); color: #4b5563; }
[data-theme="light"] .role-badge--super_admin  { color: #92700a; }
[data-theme="light"] .role-badge--dealer       { color: #1d4ed8; background: rgba(59,130,246,.1); }
[data-theme="light"] .role-badge--private_seller { color: #4b5563; background: rgba(107,114,128,.1); }

/* Flash messages */
[data-theme="light"] .flash--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
[data-theme="light"] .flash--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
[data-theme="light"] .flash--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
[data-theme="light"] .flash--info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* --- Theme Toggle Button ---------------------------------- */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.15); color: var(--brand); border-color: var(--brand); }
[data-theme="light"] .theme-toggle { background: rgba(0,0,0,.05); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,.1); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* --- Typography ------------------------------------------- */
h1,h2,h3,h4 { line-height: 1.15; letter-spacing: -0.025em; }

/* --- Header ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1380px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-logo { display: flex; align-items: center; gap: .6rem; }
.site-logo--img { gap: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-weight: 900; font-size: 1.1rem;
  display: grid; place-items: center;
}
.logo-text { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.logo-text strong { color: var(--brand); }

/* --- Logo image sizes ------------------------------------- */
.header-logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Theme logo swap — !important needed to override size-class display:block */
.logo-light { display: none !important; }
.logo-dark  { display: block !important; }
[data-theme="light"] .logo-light { display: block !important; }
[data-theme="light"] .logo-dark  { display: none !important; }
.footer-logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: .6rem;
}
.auth-logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto .2rem;
}
.sidebar-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav a { font-size: .9rem; font-weight: 500; color: var(--text-2); transition: color var(--transition); }
.main-nav a:hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  transition: all var(--transition); white-space: nowrap; cursor: pointer;
}
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }
.btn-primary { background: var(--brand); color: #0B0B0B; font-weight: 700; border: 1px solid transparent; }
.btn-primary:hover { background: var(--brand-dark); color: #ffffff; transform: translateY(-1px); box-shadow: 0 0 0 3px var(--brand-glow), 0 8px 24px rgba(212,175,55,.25); border-color: rgba(212,175,55,.4); }
a.btn-primary { color: #0B0B0B; }
a.btn-primary:hover { color: #ffffff; }
.btn-ghost { background: rgba(255,255,255,.07); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-whatsapp { background: #1A1A1A; color: #EAEAEA; border: 1px solid #2A2A2A; }
.btn-whatsapp:hover { background: #222222; border-color: #3A3A3A; transform: translateY(-1px); }
.btn-phone { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }
.btn-phone:hover { border-color: var(--brand); color: var(--brand); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }
.btn-xs { padding: .3rem .65rem; font-size: .78rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }

/* --- Flash Messages --------------------------------------- */
.flash-bar { position: sticky; top: var(--header-h); z-index: 90; }
.flash {
  padding: .8rem 1.5rem; font-size: .9rem; font-weight: 500;
}
.flash--success { background: rgba(34,197,94,.15); color: #86efac; border-bottom: 1px solid rgba(34,197,94,.2); }
.flash--error   { background: rgba(239,68,68,.15); color: #fca5a5; border-bottom: 1px solid rgba(239,68,68,.2); }
.flash--info    { background: rgba(59,130,246,.15); color: #93c5fd; border-bottom: 1px solid rgba(59,130,246,.2); }

/* --- Upload Progress Bar ---------------------------------- */
#upload-progress-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--surface); border-top: 3px solid var(--brand);
  padding: 1rem 1.5rem; box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}
.upl-inner {
  max-width: 700px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
}
.upl-label { font-size: .875rem; font-weight: 600; white-space: nowrap; color: var(--text); min-width: 180px; }
.upl-track  { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.upl-fill   { height: 100%; width: 0%; background: var(--brand); border-radius: 5px; transition: width .25s ease; }
.upl-pct    { font-size: .875rem; font-weight: 700; color: var(--brand); min-width: 42px; text-align: right; }

/* --- Email Verification Banner ----------------------------- */
.verify-email-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  background: rgba(212,175,55,.12); border-left: 3px solid var(--brand);
  padding: .8rem 1.5rem; font-size: .875rem; margin-bottom: .5rem;
}
.verify-email-banner strong { color: var(--text); }

/* --- Sections --------------------------------------------- */
.section { padding: 4rem max(1.5rem, calc((100% - 1380px)/2)); }
.section--dark { background: var(--surface); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.section-eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: .3rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }

/* --- HERO ------------------------------------------------- */
.hero {
  min-height: 72vh;
  background-image:
    linear-gradient(rgba(10,10,10,0.4), rgba(10,10,10,0.55)),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex; align-items: center;
  padding: 4rem max(1.5rem, calc((100% - 1380px)/2));
}
.hero-content { max-width: 700px; }
.hero-eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--brand); margin-bottom: .8rem; }
.hero-title { font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .15em; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hero-title__main { font-size: clamp(3.2rem, 6.5vw, 5.8rem); color: var(--brand); display: block; line-height: .95; }
.hero-title__sub  { font-size: clamp(1.6rem, 3.2vw, 2.8rem); color: #fff; display: block; line-height: 1.1; font-weight: 800; }
.hero-gold { color: var(--brand); }
.hero-tagline { color: var(--brand); font-size: 1.05rem; font-style: italic; font-weight: 500; margin-bottom: .6rem; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero-sub { color: #e0e0e0; font-size: 1rem; max-width: 540px; margin-bottom: 2rem; text-shadow: 0 1px 8px rgba(0,0,0,.7); }

.hero-search { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; }
.hero-search-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: .75rem; }
.btn-search { border-radius: 999px; padding: .7rem 1.6rem; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; font-weight: 900; color: var(--brand); }
.hero-stats span { font-size: .8rem; color: #a8b2be; text-transform: uppercase; letter-spacing: .08em; }

/* --- Listing Grid & Cards --------------------------------- */
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.listings-grid--4 { grid-template-columns: repeat(4, 1fr); }

.listing-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,.3); }

.listing-card__image-wrap {
  position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-3);
}
.listing-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.listing-card:hover .listing-card__image-wrap img { transform: scale(1.04); }
.listing-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.sold-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(220,38,38,.9); color: #fff; font-size: 1.3rem; font-weight: 900; letter-spacing: .12em; padding: .45rem 1.4rem; border-radius: var(--radius); pointer-events: none; box-shadow: 0 2px 12px rgba(0,0,0,.4); z-index: 2; }

.listing-card__body { padding: 1rem 1.1rem 1.1rem; }
.listing-card__price { font-size: 1.3rem; font-weight: 800; color: var(--brand); margin-bottom: .3rem; }
.listing-card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: .6rem; }
.listing-card__title a:hover { color: var(--brand); }
.listing-card__specs { display: flex; flex-wrap: wrap; gap: .3rem .6rem; margin-bottom: .7rem; }
.listing-card__specs li { font-size: .78rem; color: #b0b8c8; }
.listing-card__specs li:not(:last-child)::after { content: '·'; margin-left: .6rem; color: #555f70; }
.listing-card__location { font-size: .8rem; color: #9aa3b0; display: flex; align-items: center; gap: .3rem; margin-bottom: .9rem; }
.listing-card__ctas { display: flex; gap: .5rem; }

/* --- Badges ----------------------------------------------- */
.card-badges {
  position: absolute; top: .65rem; left: .65rem;
  display: flex; flex-wrap: wrap; gap: .3rem;
  pointer-events: none;
}
.badge {
  font-size: .68rem; font-weight: 800; padding: .28rem .6rem;
  border-radius: 6px; text-transform: uppercase; letter-spacing: .07em;
  pointer-events: none; backdrop-filter: blur(6px);
}
.badge--featured { background: var(--brand); color: #0B0B0B; }
.badge--verified { background: rgba(0,0,0,.65); color: #4ade80; border: 1px solid rgba(74,222,128,.45); }
.badge--dealer   { background: rgba(0,0,0,.65); color: #93c5fd; border: 1px solid rgba(147,197,253,.35); }
.badge--sm  { position: static; font-size: .72rem; }
.badge--xs  { position: static; font-size: .65rem; padding: .18rem .4rem; }
.badge--sold { background: rgba(220,38,38,.85); color: #fff; border: 1px solid rgba(220,38,38,.6); }
.badge--sold-lg { font-size: .85rem; padding: .35rem .9rem; }

/* --- Sell My Car Dropdown --------------------------------- */
.sell-dropdown { position: relative; }
.sell-dropdown__trigger .svg,
.sell-dropdown__trigger svg { transition: transform var(--transition); }
.sell-dropdown:hover .sell-dropdown__trigger svg,
.sell-dropdown.open .sell-dropdown__trigger svg { transform: rotate(180deg); }

.sell-dropdown__menu {
  display: none;
  position: absolute; top: calc(100% + .6rem); right: 0;
  min-width: 240px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; z-index: 200;
}
.sell-dropdown:hover .sell-dropdown__menu,
.sell-dropdown.open .sell-dropdown__menu { display: block; }

.sell-dropdown__item {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.1rem; color: var(--text);
  transition: background var(--transition);
  text-decoration: none;
}
.sell-dropdown__item:hover { background: var(--surface-3); }
.sell-dropdown__item + .sell-dropdown__item { border-top: 1px solid var(--border); }
.sell-dropdown__icon { font-size: 1.4rem; flex-shrink: 0; }
.sell-dropdown__item strong { display: block; font-size: .88rem; font-weight: 700; }
.sell-dropdown__item em { display: block; font-size: .75rem; color: var(--muted); font-style: normal; margin-top: .1rem; }

/* Mobile — show inline, no absolute positioning */
@media (max-width: 768px) {
  .sell-dropdown { width: 100%; }
  .sell-dropdown__menu { display: block; position: static; box-shadow: none; border: none; background: transparent; min-width: 0; padding-left: .5rem; }
  .sell-dropdown__item { padding: .7rem 0; border-top: 1px solid var(--border); }
  .sell-dropdown__item + .sell-dropdown__item { border-top: 1px solid var(--border); }
}

/* --- Makes Grid ------------------------------------------- */
.makes-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .75rem; }
.make-chip {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem .6rem .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  transition: all var(--transition); text-align: center;
}
.make-chip:hover { border-color: var(--brand); transform: translateY(-2px); }
.make-chip__logo { width: 48px; height: 32px; object-fit: contain; opacity: .85; transition: opacity var(--transition); }
.make-chip:hover .make-chip__logo { opacity: 1; }
/* Dark theme: force logos white; Light theme: darken them */
:root:not([data-theme="light"]) .make-chip__logo { filter: brightness(0) invert(1); }
[data-theme="light"] .make-chip__logo { filter: brightness(0) invert(0) opacity(.75); }
.make-chip__name { font-size: .82rem; font-weight: 600; }
.make-chip__count { font-size: .7rem; color: var(--muted); background: var(--surface-3); padding: .1rem .4rem; border-radius: 999px; }

/* --- Packages Grid ---------------------------------------- */
.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: 1400px; margin: 0 auto; }
.packages-grid--dash { max-width: none; }
.package-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; transition: all var(--transition);
}
.package-card--popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 30px rgba(212,175,55,.15); }
.package-card--current { border-color: var(--success); }
.package-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.package-badge--current { background: var(--success); }
.package-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.package-price { margin-bottom: .3rem; }
.package-price strong { font-size: 2.2rem; font-weight: 900; }
.package-price span { color: var(--muted); font-size: .9rem; }
.package-limit { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.package-features { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.package-features li { font-size: .88rem; color: var(--text-2); }

/* --- Trust Section ---------------------------------------- */
.trust-section { background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; text-align: center; }
.trust-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.trust-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.trust-item p { font-size: .88rem; color: var(--muted); }

/* --- Browse Layout ---------------------------------------- */
.browse-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding: 2rem max(1.5rem, calc((100% - 1380px)/2)); align-items: start; }
.filter-sidebar { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.filter-header h2 { font-size: 1rem; font-weight: 700; }
.filter-clear { font-size: .8rem; color: var(--brand); }
.filter-group { margin-bottom: 1.1rem; }
.filter-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.filter-range label { grid-column: 1/-1; }

.browse-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.browse-search-bar { display: flex; gap: .5rem; }
.browse-search-bar .form-input { min-width: 220px; }

/* --- Forms ------------------------------------------------ */
.form-input, .form-select {
  width: 100%; padding: .75rem 1rem;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: .9rem; transition: border-color var(--transition);
  appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.4rem;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--brand); }
.form-input.is-invalid { border-color: var(--danger); }
.form-error { font-size: .78rem; color: #fca5a5; margin-top: .25rem; display: block; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.form-group label small { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group--full { grid-column: 1/-1; }
.form-section { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.form-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.form-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; margin-top: .5rem; }
.form-hint { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.form-actions { display: flex; gap: 1rem; align-items: center; padding-top: 1rem; }
.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-right: 2.75rem; }
.pw-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: .25rem; display: flex; align-items: center; line-height: 1;
  transition: color var(--transition);
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { width: 18px; height: 18px; pointer-events: none; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }

/* --- Vehicle Detail --------------------------------------- */
.vehicle-detail { display: grid; grid-template-columns: 1fr 420px; gap: 2.5rem; padding: 2.5rem max(1.5rem, calc((100% - 1380px)/2)); align-items: start; }

.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: #111; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery-thumb { width: 80px; height: 55px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; opacity: .65; transition: opacity var(--transition); border: 2px solid transparent; flex-shrink: 0; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--brand); }

.vehicle-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.vehicle-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.sold-banner { background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.35); color: #fca5a5; border-radius: var(--radius); padding: .75rem 1rem; font-size: .85rem; margin-bottom: 1rem; }
.vehicle-badges .badge { position: static; }
.vehicle-location { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.vehicle-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-bottom: .6rem; }
.vehicle-price { font-size: 2rem; font-weight: 900; color: var(--brand); margin-bottom: 1.2rem; }

.vehicle-specs-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.4rem; padding: 1rem; background: var(--surface-3); border-radius: var(--radius); }
.vehicle-specs-quick li { display: flex; flex-direction: column; }
.vehicle-specs-quick span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.vehicle-specs-quick strong { font-size: .92rem; font-weight: 700; }

.vehicle-ctas { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.2rem; }

.enquiry-details { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.enquiry-details summary { font-size: .9rem; font-weight: 600; cursor: pointer; padding: .3rem 0; }
.enquiry-form { display: flex; flex-direction: column; gap: .7rem; margin-top: .8rem; }
.enquiry-feedback { font-size: .85rem; }

.dealer-mini-card { display: flex; align-items: center; gap: 1rem; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-top: 1.2rem; transition: border-color var(--transition); }
.dealer-mini-card:hover { border-color: var(--brand); }
.dealer-mini-card strong { display: block; font-weight: 700; }
.dealer-mini-card span { font-size: .8rem; color: var(--muted); display: block; }
.dealer-mini-card span:last-child { color: var(--brand); }

.vehicle-info-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 0 max(1.5rem, calc((100% - 1380px)/2)) 2rem; }
.vehicle-description h2, .vehicle-features h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.vehicle-description p { color: var(--text-2); line-height: 1.8; }
.feature-group { margin-bottom: 1.2rem; }
.feature-group h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.feature-list { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.feature-list li { font-size: .85rem; color: var(--text-2); }

/* --- Finance Calculator ----------------------------------- */
.finance-calc-section { padding: 2rem max(1.5rem, calc((100% - 1380px)/2)); }
.finance-calc-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .3rem; }
.finance-calc-section > p { color: var(--muted); margin-bottom: 1.5rem; }
.finance-calc { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; }
.finance-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.finance-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; background: var(--surface-3); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.finance-amount { font-size: 2rem; font-weight: 900; color: var(--brand); }
.finance-result span { color: var(--muted); font-size: .85rem; }
.finance-result small { color: var(--muted); font-size: .75rem; }

/* --- Finance Tool Tabs ------------------------------------ */
.finance-tabs { display: flex; gap: 0; padding: 0 max(1.5rem, calc((100% - 1100px)/2)); border-bottom: 1px solid var(--border); margin-top: -.5rem; }
.finance-tab { padding: .85rem 1.5rem; font-size: .92rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color var(--transition), border-color var(--transition); }
.finance-tab:hover { color: var(--text); }
.finance-tab--active { color: var(--brand); border-bottom-color: var(--brand); }

/* --- Affordability Calculator ----------------------------- */
.ac-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.75rem; align-items: start; }
.ac-inputs-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ac-results-col { display: flex; flex-direction: column; gap: 1.25rem; }
.ac-result-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.ac-section-title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.ac-field { display: flex; flex-direction: column; gap: .35rem; }
.ac-field label { font-size: .82rem; font-weight: 700; color: var(--text); }
.ac-field small { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.ac-required { color: var(--brand); }
.ac-tip-box { padding: .85rem 1rem; border-radius: var(--radius); font-size: .85rem; line-height: 1.6; background: var(--surface-3); color: var(--text-2); }
.ac-tip-box--info { background: rgba(212,175,55,.1); color: var(--text); border: 1px solid rgba(212,175,55,.3); }
.ac-tip-box--warn { background: rgba(239,68,68,.08); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.ac-result-row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--text-2); padding: .5rem 0; border-bottom: 1px solid var(--border); }
.ac-result-row:last-of-type { border-bottom: none; }
.ac-result-row strong { font-weight: 700; color: var(--text); }
.ac-rating-label { font-weight: 700; }
.ac-credit-bar-wrap { margin-top: .5rem; }
.ac-credit-bar { position: relative; height: 10px; background: var(--surface-3); border-radius: 999px; overflow: visible; margin-bottom: .5rem; }
.ac-credit-bar__fill { height: 100%; border-radius: 999px; transition: width .4s ease, background .4s ease; background: var(--brand); }
.ac-credit-bar__thumb { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg); transform: translate(-50%, -50%); transition: left .4s ease, background .4s ease; box-shadow: 0 0 0 2px rgba(255,255,255,.1); }
.ac-credit-bar-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-bottom: .75rem; }
.ac-credit-tip { font-size: .8rem; color: var(--text-2); line-height: 1.6; background: var(--surface-3); padding: .75rem 1rem; border-radius: var(--radius); border-left: 3px solid var(--brand); }
@media (max-width: 860px) { .ac-layout { grid-template-columns: 1fr; } }

/* --- Finance Calculator Page ------------------------------ */
.fc-page { padding: 2rem max(1.5rem, calc((100% - 1100px)/2)) 4rem; display: flex; flex-direction: column; gap: 1.75rem; }

.fc-card { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }

.fc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fc-field { display: flex; flex-direction: column; gap: .4rem; }
.fc-field label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fc-field--full { grid-column: span 2; }
.fc-input-wrap { position: relative; }
.fc-prefix { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; font-size: .9rem; }
.fc-input-wrap .form-input { padding-left: 2.2rem; }

.fc-terms { display: flex; gap: .5rem; flex-wrap: wrap; }
.fc-term-btn { padding: .45rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-3); color: var(--text-2); font-size: .88rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.fc-term-btn:hover { border-color: var(--brand); color: var(--brand); }
.fc-term-btn--active { background: var(--brand); color: #111; border-color: var(--brand); }

.fc-results { display: flex; flex-direction: column; gap: 1rem; background: var(--surface-3); border-radius: var(--radius-lg); padding: 1.5rem; }
.fc-monthly-box { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.fc-monthly-label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem; }
.fc-monthly-amount { display: block; font-size: 2.2rem; font-weight: 900; color: var(--brand); line-height: 1; }
.fc-breakdown { display: flex; flex-direction: column; gap: .6rem; }
.fc-breakdown-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--text-2); }
.fc-breakdown-row strong { font-weight: 700; color: var(--text); }
.fc-breakdown-row--total { padding-top: .5rem; border-top: 1px solid var(--border); font-weight: 700; color: var(--text); }
.fc-breakdown-row--total strong { color: var(--brand); }

.fc-chart-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.fc-chart-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.fc-chart { display: flex; flex-direction: column; gap: 1rem; }
.fc-chart-bars { display: flex; align-items: flex-end; gap: 1rem; height: 200px; }
.fc-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; cursor: pointer; transition: opacity var(--transition); }
.fc-bar-group:hover { opacity: .85; }
.fc-bar-group--active .fc-bar-stack { outline: 2px solid var(--brand); border-radius: var(--radius-sm); }
.fc-bar-stack { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; height: 180px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.fc-bar-segment { width: 100%; transition: height .35s ease; }
.fc-bar-principal { background: var(--brand); }
.fc-bar-interest  { background: rgba(212,175,55,.35); }
.fc-bar-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fc-chart-legend { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-2); margin-top: .5rem; }
.fc-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.fc-legend-dot--principal { background: var(--brand); }
.fc-legend-dot--interest  { background: rgba(212,175,55,.35); }

.fc-disclaimer { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: .82rem; color: var(--muted); line-height: 1.7; }
.fc-disclaimer strong { color: var(--text); }

@media (max-width: 860px)  { .fc-card { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .fc-inputs { grid-template-columns: 1fr; } .fc-field--full { grid-column: span 1; } }

/* --- Car Alerts Page -------------------------------------- */
.ca-page { padding: 2rem max(1.5rem, calc((100% - 1100px)/2)) 4rem; }
.ca-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.ca-form-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.ca-info-col { display: flex; flex-direction: column; gap: 1rem; }
.ca-info-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.ca-info-icon { font-size: 2rem; margin-bottom: .75rem; }
.ca-info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.ca-how-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.ca-how-list li { display: flex; gap: .75rem; font-size: .88rem; color: var(--text-2); line-height: 1.6; }
.ca-how-list li strong { color: var(--text); display: block; margin-bottom: .1rem; }
.ca-how-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #111; font-size: .75rem; font-weight: 900; display: grid; place-items: center; margin-top: .15rem; }
.ca-group-title { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .5rem 0 .75rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; }
.ca-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.ca-field label { font-size: .82rem; font-weight: 700; color: var(--text); }
.ca-field small { font-size: .73rem; color: var(--muted); }
.ca-req { color: var(--brand); }
.ca-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ca-faq { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ca-faq summary { padding: .9rem 1.1rem; font-size: .88rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.ca-faq summary::-webkit-details-marker { display: none; }
.ca-faq summary::after { content: '+'; font-size: 1.1rem; color: var(--muted); transition: transform var(--transition); }
.ca-faq[open] summary::after { content: '−'; }
.ca-faq p { padding: 0 1.1rem 1rem; font-size: .85rem; color: var(--text-2); line-height: 1.7; margin: 0; }
@media (max-width: 900px) { .ca-layout { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .ca-two-col { grid-template-columns: 1fr; } }

/* --- Floating WhatsApp ------------------------------------ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  transition: all var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,.65); }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 8px 30px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 8px 40px rgba(37,211,102,.75); }
}

/* --- Dashboard -------------------------------------------- */
.dashboard-body { background: var(--bg); }
.dash-layout { display: flex; min-height: 100vh; }

.dash-sidebar {
  width: 240px; min-height: 100vh; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.dash-sidebar--admin { border-right-color: rgba(220,53,69,.2); }
.dash-brand { display: flex; align-items: center; gap: .6rem; padding: 1.5rem; font-weight: 700; font-size: 1rem; border-bottom: 1px solid var(--border); }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: .9rem; }
.dash-nav { padding: 1rem 0; flex: 1; }
.dash-nav a {
  display: block; padding: .65rem 1.5rem; font-size: .88rem; font-weight: 500;
  color: var(--text-2); transition: all var(--transition); border-left: 3px solid transparent;
}
.dash-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.dash-nav a.active { color: var(--brand); background: rgba(212,175,55,.08); border-left-color: var(--brand); }
.dash-nav-group { display: block; }
.dash-nav-group > summary {
  display: block; padding: .65rem 1.5rem; font-size: .88rem; font-weight: 500;
  color: var(--text-2); cursor: pointer; list-style: none; border-left: 3px solid transparent;
  transition: all var(--transition); position: relative;
}
.dash-nav-group > summary::-webkit-details-marker { display: none; }
.dash-nav-group > summary::after {
  content: '▾'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: .7rem; opacity: .6; transition: transform var(--transition);
}
.dash-nav-group[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.dash-nav-group > summary:hover { color: var(--text); background: rgba(255,255,255,.04); }
.dash-nav-group > summary.active { color: var(--brand); border-left-color: var(--brand); }
.dash-nav-sub { padding-left: 2.75rem !important; font-size: .82rem !important; opacity: .9; }
.dash-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); font-size: .82rem; }
.dash-sidebar-user { margin-bottom: .4rem; }
.dash-sidebar-name { display: block; font-weight: 700; color: var(--text); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sidebar-role { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.dash-sidebar-links { display: flex; gap: 1rem; }
.dash-sidebar-links a { color: var(--muted); }
.dash-sidebar-links a:hover { color: var(--brand); }

/* --- Profile Page ------------------------------------------ */
.profile-sections { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.profile-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

.dash-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); }
.dash-page-title { font-size: 1.3rem; font-weight: 800; }
.dash-body { padding: 1.5rem; }

.dash-section { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.dash-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.dash-section-header h3 { font-size: 1rem; font-weight: 700; }
.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* --- Stats Cards ------------------------------------------ */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stats-row--6 { grid-template-columns: repeat(6, 1fr); }
.stat-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.stat-card--primary { border-color: rgba(212,175,55,.3); }
.stat-card--success  { border-color: rgba(34,197,94,.3); }
.stat-card--warning  { border-color: rgba(245,158,11,.3); }
.stat-card--leads    { border-color: rgba(59,130,246,.3); }
.stat-card--whatsapp { border-color: rgba(37,211,102,.3); }
.stat-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat-value { font-size: 1.6rem; font-weight: 900; }

/* --- Data Table ------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { text-align: left; padding: .65rem .9rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: .75rem .9rem; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.table-vehicle { display: flex; flex-direction: column; }
.table-vehicle a { font-weight: 600; }
.table-vehicle small { color: var(--muted); }
.table-actions { display: flex; gap: .4rem; }

/* --- Status & Role Badges --------------------------------- */
.status-badge { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; text-transform: capitalize; }
.status-badge--active  { background: rgba(34,197,94,.15); color: #86efac; }
.status-badge--pending { background: rgba(245,158,11,.15); color: #fde68a; }
.status-badge--sold    { background: rgba(59,130,246,.15); color: #93c5fd; }
.status-badge--rejected { background: rgba(239,68,68,.15); color: #fca5a5; }
.status-badge--draft   { background: rgba(107,114,128,.15); color: #d1d5db; }
.status-badge--paid    { background: rgba(34,197,94,.15); color: #86efac; }
.status-badge--failed  { background: rgba(239,68,68,.15); color: #fca5a5; }
.status-badge--inactive { background: rgba(107,114,128,.15); color: #d1d5db; }

.role-badge { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.role-badge--super_admin { background: rgba(212,175,55,.2); color: var(--brand); }
.role-badge--dealer      { background: rgba(59,130,246,.15); color: #93c5fd; }
.role-badge--private_seller { background: rgba(107,114,128,.15); color: #d1d5db; }

.badge { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; display: inline-block; }
.badge--active    { background: rgba(34,197,94,.15);  color: #86efac; }
.badge--suspended { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge--verified  { background: rgba(212,175,55,.2);  color: var(--brand); }
.badge--pending   { background: rgba(245,158,11,.15); color: #fde68a; }
.status-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.status-badge--active   { background: rgba(34,197,94,.15);  color: #86efac; }
.status-badge--sold     { background: rgba(220,38,38,.15);   color: #fca5a5; }
.status-badge--expired  { background: rgba(107,114,128,.15); color: #9ca3af; }
.status-badge--draft    { background: rgba(107,114,128,.15); color: #9ca3af; }
.status-badge--pending  { background: rgba(245,158,11,.15);  color: #fde68a; }
.btn-sold { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-sold:hover { background: #b91c1c; border-color: #b91c1c; }
.row--suspended td { opacity: .55; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.2rem; }
.pagination a { padding: .4rem .75rem; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); transition: all var(--transition); }
.pagination a:hover, .pagination a.active { background: var(--brand); color: #0B0B0B; }

/* --- Leads ------------------------------------------------ */
.leads-list { display: flex; flex-direction: column; gap: .75rem; }
.lead-item { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; background: var(--surface-3); border-radius: var(--radius-sm); }
.lead-type-icon { font-size: 1.4rem; flex-shrink: 0; }
.lead-item > div { flex: 1; }
.lead-item strong { display: block; font-size: .88rem; }
.lead-item span { font-size: .8rem; color: var(--muted); display: block; }
.lead-item time { font-size: .75rem; color: var(--muted); }
.lead-status { font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: var(--surface); }
.lead-type-badge { font-size: .75rem; font-weight: 700; padding: .25rem .5rem; border-radius: 6px; display: inline-block; }
.lead-type-badge--enquiry { background: rgba(59,130,246,.15); color: #93c5fd; }
.lead-type-badge--whatsapp_click { background: rgba(37,211,102,.15); color: #86efac; }
.lead-type-badge--phone_click { background: rgba(245,158,11,.15); color: #fde68a; }
.lead-message { color: var(--muted); font-style: italic; }

/* --- Package Status Card ---------------------------------- */
.package-status-card { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-radius: var(--radius); gap: 1rem; flex-wrap: wrap; }
.package-status-card--active  { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); }
.package-status-card--expired { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); }
.package-status-card strong { display: block; font-weight: 700; }
.package-status-card span { font-size: .82rem; color: var(--muted); }

/* --- Yoco Note -------------------------------------------- */
.yoco-note { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); border-radius: var(--radius); padding: 1.2rem; margin-top: 2rem; }
.yoco-note strong { display: block; margin-bottom: .4rem; }
.yoco-note p { font-size: .85rem; color: var(--muted); }
.yoco-note code { background: var(--surface-3); padding: .1rem .35rem; border-radius: 4px; font-size: .82rem; }

/* --- Auth Pages ------------------------------------------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212,175,55,.14), transparent), var(--bg); }
.auth-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-card--wide { max-width: 680px; }
.auth-page--wide .auth-card { max-width: 680px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .site-logo { justify-content: center; margin-bottom: 1.2rem; }
.auth-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.auth-header p { color: var(--muted); font-size: .9rem; }
.auth-form { display: flex; flex-direction: column; gap: .3rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--muted); }
.auth-footer a { color: var(--brand); }
.auth-footer p + p { margin-top: .4rem; }
.auth-demo-creds { margin-top: 1.2rem; padding: 1rem; background: var(--surface-3); border-radius: var(--radius-sm); font-size: .78rem; color: var(--muted); line-height: 1.8; }
.auth-demo-creds strong { color: var(--text); }
.auth-demo-creds code { background: var(--surface-2); padding: .1rem .3rem; border-radius: 4px; }

/* --- Image Upload ----------------------------------------- */
.image-upload-area { position: relative; border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: border-color var(--transition); }
.image-upload-area:hover { border-color: var(--brand); }
.image-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.image-upload-placeholder span { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.image-upload-placeholder p { font-weight: 600; }
.image-upload-placeholder small { color: var(--muted); }
.image-previews { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; position: relative; }
.image-preview-item { position: relative; width: 100px; height: 75px; border-radius: var(--radius-sm); overflow: hidden; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item--primary { border: 2px solid var(--brand); }
.primary-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(212,175,55,.9); font-size: .68rem; text-align: center; font-weight: 700; color: #0B0B0B; padding: .1rem; }
.img-remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.7); border: none; cursor: pointer;
  color: #fff; font-size: .85rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.image-preview-item:hover .img-remove-btn { opacity: 1; }
.image-upload-area.drag-over { border-color: var(--brand); background: rgba(212,175,55,.06); }
.img-slot-hint { font-weight: 600; }

/* --- Private Seller Dashboard ----------------------------- */
.seller-empty { text-align: center; padding: 4rem 2rem; }
.seller-empty__icon { font-size: 4rem; margin-bottom: 1rem; }
.seller-empty h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.seller-empty p { color: var(--text-2); max-width: 440px; margin: 0 auto; }
.seller-listing-card { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; max-width: 860px; }
.seller-listing-card__img { position: relative; }
.seller-listing-card__img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.seller-status { position: absolute; top: .6rem; left: .6rem; padding: .2rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.seller-status--active  { background: var(--success); color: #fff; }
.seller-status--pending { background: var(--warning); color: #0B0B0B; }
.seller-status--expired { background: var(--danger);  color: #fff; }
.seller-listing-card__body { padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: .5rem; }
.seller-listing-card__body h2 { font-size: 1.25rem; font-weight: 800; }
.seller-listing-card__price { font-size: 1.6rem; font-weight: 900; color: var(--brand); }
.seller-listing-card__specs { display: flex; gap: .5rem 1rem; flex-wrap: wrap; }
.seller-listing-card__specs li { font-size: .82rem; color: var(--text-2); }
.seller-listing-card__expiry { font-size: .8rem; color: var(--muted); }
.seller-listing-card__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.seller-free-note { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); font-size: .88rem; color: var(--text-2); max-width: 860px; }
.seller-free-note strong { color: var(--text); }
@media (max-width: 600px) { .seller-listing-card { grid-template-columns: 1fr; } .seller-listing-card__body { padding: 1rem; } }

/* --- Features Checkbox Grid ------------------------------- */
.feature-category h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; }
.features-checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }

/* --- Dealer Directory Layout ------------------------------ */
.dealer-dir-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.dealer-dir-sidebar { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 1.5rem; }
.dealer-dir-sidebar .form-input,
.dealer-dir-sidebar .form-select { font-size: .88rem; }
.dir-filter-group { margin-bottom: 1.25rem; }
.dir-filter-label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.dir-filter-check { display: flex; align-items: center; gap: .6rem; font-size: .88rem; cursor: pointer; }
.dir-filter-check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.dealer-dir-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: .88rem; color: var(--muted); }
.dealer-dir-results .dealers-grid { padding: 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .dealer-dir-results .dealers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  { .dealer-dir-layout { grid-template-columns: 1fr; } .dealer-dir-sidebar { position: static; } }
@media (max-width: 560px)  { .dealer-dir-results .dealers-grid { grid-template-columns: 1fr; } }

/* --- Dealer Profile --------------------------------------- */
.dealer-profile { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.dealer-profile-header { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; }
.dealer-profile-logo { width: 120px; height: 120px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); flex-shrink: 0; display: grid; place-items: center; }
.dealer-logo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 2rem; font-weight: 900; display: grid; place-items: center; }
.dealer-profile-info h1 { font-size: 1.8rem; font-weight: 900; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.dealer-location { color: var(--muted); margin: .4rem 0; }
.dealer-rating { color: var(--warning); font-size: .9rem; margin-bottom: .8rem; }
.dealer-contact-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.dealer-description { color: var(--text-2); margin-bottom: 2rem; line-height: 1.8; max-width: 700px; }
.dealers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0 max(1.5rem, calc((100%  - 1380px)/2)); }
.dealer-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; transition: all var(--transition); }
.dealer-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.dealer-card__logo { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: var(--surface-3); }
.dealer-card__info { display: flex; flex-direction: column; gap: .3rem; align-items: center; }
.dealer-card__info strong { font-weight: 700; }
.dealer-card__info span { font-size: .8rem; color: var(--muted); }
.dealer-package-badge { font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.5); letter-spacing: .02em; }
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.review-header { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; flex-wrap: wrap; }
.review-header strong { font-weight: 700; }
.review-header time { font-size: .78rem; color: var(--muted); margin-left: auto; }

/* --- Page Hero -------------------------------------------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 3rem max(1.5rem, calc((100% - 1380px)/2)); }
.page-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: .4rem; }
.page-hero p { color: var(--muted); }

/* --- Pagination ------------------------------------------- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* --- Empty State ------------------------------------------ */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state--sm { padding: 2rem; }
.empty-state__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }

/* --- Footer ----------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem max(1.5rem, calc((100% - 1380px)/2)) 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: .8rem; max-width: 280px; line-height: 1.7; }
.footer-links { display: contents; }
.footer-links > div { display: flex; flex-direction: column; gap: .5rem; }
.footer-links strong { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.footer-links a { font-size: .88rem; color: var(--text-2); transition: color var(--transition); }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.2rem; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); flex-wrap: wrap; gap: .5rem; }
.footer-sponsor { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--muted); font-size: .82rem; border: 1px solid var(--border); border-radius: 20px; padding: .25rem .75rem; transition: border-color var(--transition), color var(--transition); }
.footer-sponsor span { font-weight: 400; }
.footer-sponsor strong { font-weight: 700; color: #3b82f6; }
.footer-sponsor:hover { border-color: #3b82f6; color: #3b82f6; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1200px) {
  .listings-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .makes-grid { grid-template-columns: repeat(6, 1fr); }
  .stats-row--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .vehicle-detail { grid-template-columns: 1fr; }
  .vehicle-panel { position: static; }
  .vehicle-info-tabs { grid-template-columns: 1fr; }
  .finance-calc { grid-template-columns: 1fr; }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .dealers-grid { grid-template-columns: repeat(3, 1fr); }
  .packages-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
  .packages-grid--dash { max-width: none; grid-template-columns: repeat(3, 1fr); }
  .hero-search-grid { grid-template-columns: 1fr 1fr; }
  .btn-search { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  .listings-grid { grid-template-columns: 1fr 1fr; }
  .makes-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid, .dash-two-col { grid-template-columns: 1fr; }
  .stats-row, .stats-row--6 { grid-template-columns: repeat(2, 1fr); }
  .dealers-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .features-checkbox-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-search-grid { grid-template-columns: 1fr; }
  .packages-grid--dash { grid-template-columns: 1fr; }
  .main-nav { display: none; position: fixed; top: 68px; right: 0; bottom: 0; left: 0; background: #111111; flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 0; overflow-y: auto; z-index: 9999; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; font-size: 1rem; color: rgba(255,255,255,.9); }
  .main-nav a:hover { color: var(--brand); }
  .main-nav .btn { margin-top: 1rem; width: 100%; border-radius: var(--radius); }
  [data-theme="light"] .main-nav { background: #ffffff; box-shadow: 0 8px 32px rgba(0,0,0,.15); border-top: 2px solid var(--brand); }
  [data-theme="light"] .main-nav a { color: #111827; border-bottom-color: rgba(0,0,0,.08); }
  [data-theme="light"] .main-nav a:hover { color: var(--brand); }
  .nav-toggle { display: flex; }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; min-height: auto; position: static; flex-direction: row; flex-wrap: wrap; height: auto; }
  .dash-nav { display: flex; flex-wrap: wrap; padding: .5rem; flex: none; order: 2; width: 100%; }
  .dash-nav a { padding: .4rem .7rem; border-left: none; border-bottom: 2px solid transparent; font-size: .82rem; }
  .dash-nav a.active { border-bottom-color: var(--brand); border-left: none; }
}
@media (max-width: 480px) {
  .listings-grid, .listings-grid--4 { grid-template-columns: 1fr; }
  .makes-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 2.4rem; }
  .dealers-grid { grid-template-columns: 1fr 1fr; }
  .stats-row, .stats-row--6 { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ============================================================
   GOOGLE ANALYTICS WIDGET
   ============================================================ */
.ga-section { margin-bottom: 1.5rem; }
.ga-summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.ga-metric { background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.ga-metric__label { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4rem; }
.ga-metric__value { font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.ga-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ga-sub-heading { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .75rem; }
.ga-channels { display: flex; flex-direction: column; gap: .6rem; }
.ga-channel__label { display: flex; justify-content: space-between; font-size: .83rem; margin-bottom: .25rem; }
.ga-channel__label em { color: var(--muted); font-style: normal; }
.ga-bar { background: var(--surface-3); border-radius: 999px; height: 6px; overflow: hidden; }
.ga-bar__fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }
@media (max-width: 768px) {
  .ga-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .ga-lower { grid-template-columns: 1fr; }
}

/* ============================================================
   SMTP SETTINGS PAGE
   ============================================================ */
.smtp-status-bar {
  padding: .8rem 1.2rem; border-radius: var(--radius-sm);
  font-size: .88rem; border: 1px solid;
}
.smtp-status-bar--on  { background: rgba(34,197,94,.1);  border-color: rgba(34,197,94,.3);  color: #22c55e; }
.smtp-status-bar--off { background: rgba(107,114,128,.1); border-color: var(--border);       color: var(--muted); }
[data-theme="light"] .smtp-status-bar--on  { color: #15803d; background: rgba(34,197,94,.08); }
[data-theme="light"] .smtp-status-bar--off { color: #6b7280; }

.smtp-help {
  margin-top: 1.25rem; padding: 1.2rem 1.5rem;
  background: rgba(212,175,55,.05); border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--radius-lg); font-size: .85rem;
}
.smtp-help h4 { font-size: .9rem; font-weight: 700; margin-bottom: .75rem; color: var(--brand); }
.smtp-help ul { display: flex; flex-direction: column; gap: .5rem; padding-left: 1rem; list-style: disc; }
.smtp-help li { color: var(--text-2); line-height: 1.6; }
.smtp-help a  { color: var(--brand); text-decoration: underline; }
.smtp-help code { background: var(--surface-3); padding: .1rem .35rem; border-radius: 4px; font-size: .82rem; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
/* ============================================================
   TRIAL PERIOD
   ============================================================ */
/* Admin trial settings form */
.trial-settings-row { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.trial-toggle-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 500; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--surface-3); border-radius: 999px; transition: .3s; }
.toggle-slider:before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--brand); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.trial-days-field { display: flex; flex-direction: column; gap: .35rem; }
.trial-days-field label { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Pricing page trial badge — gold by default (dark theme), subtle on light */
.pricing-trial-badge {
  display: flex; align-items: center; gap: .45rem; justify-content: center;
  width: 100%; margin-top: .75rem; font-size: .84rem; font-weight: 600;
  color: #111; background: var(--brand);
  border: 1px solid var(--brand); border-radius: 999px;
  padding: .55rem 1rem; line-height: 1.3;
}
.pricing-trial-badge svg { flex-shrink: 0; stroke: #111; }
[data-theme="light"] .pricing-trial-badge {
  background: rgba(212,175,55,.15); color: #111; border-color: rgba(212,175,55,.4);
}
[data-theme="light"] .pricing-trial-badge svg { stroke: #111; }

/* Dealer dashboard trial banners */
.trial-banner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  margin-bottom: 1.5rem; border: 1px solid;
}
.trial-banner--active  { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.35); }
.trial-banner--expired { background: rgba(220,53,69,.07);  border-color: rgba(220,53,69,.3); }
.trial-banner__icon { font-size: 1.5rem; flex-shrink: 0; }
.trial-banner__body { flex: 1; }
.trial-banner__body strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.trial-banner--expired .trial-banner__body strong { color: #dc3545; }
.trial-banner--active  .trial-banner__body strong { color: var(--brand); }
.trial-banner__body p  { font-size: .83rem; color: var(--muted); margin: 0; }

/* Package expiry notice on packages page */
.pkg-expiry { font-size: .82rem; text-align: center; padding: .5rem; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--muted); margin-bottom: .5rem; }
.pkg-expiry--warn   { background: rgba(245,158,11,.12); color: #fde68a; }
.pkg-expiry--urgent { background: rgba(220,38,38,.12);  color: #fca5a5; }

/* Renewal confirmation view */
.renew-summary { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.renew-row { display: flex; justify-content: space-between; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.renew-row:last-child { border-bottom: none; }
.renew-row span { color: var(--muted); }
.renew-row--highlight { background: rgba(212,175,55,.05); margin: 0 -1.5rem; padding: .65rem 1.5rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.renew-payment-options { margin-bottom: 1.5rem; }
.renew-payment-options h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1rem; }
.payment-option { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; background: var(--surface-2); }
.payment-option--card { border-color: rgba(212,175,55,.4); background: rgba(212,175,55,.05); }
.payment-option__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.payment-option strong { display: block; font-size: .9rem; margin-bottom: .3rem; }
.payment-option p { font-size: .83rem; color: var(--muted); margin: 0 0 .75rem; line-height: 1.6; }
.payment-option p:last-child { margin-bottom: 0; }
.eft-details { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; margin-top: .5rem; }
.eft-details > div { display: flex; flex-direction: column; background: var(--surface-3); border-radius: var(--radius-sm); padding: .4rem .6rem; }
.eft-details span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.eft-details strong { font-size: .82rem; }

/* badge--muted */
.badge--muted { background: var(--surface-3); color: var(--muted); }
.badge--success { background: rgba(25,135,84,.12); color: #198754; }

/* ============================================================
   SUPPORT / HELPDESK
   ============================================================ */
/* Empty state */
.support-empty { text-align: center; padding: 4rem 2rem; }
.support-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.support-empty h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.support-empty p  { color: var(--muted); margin-bottom: 1.5rem; }

/* Category pill */
.support-category {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .65rem;
  border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border); text-transform: capitalize;
}

/* Status badges */
.ticket-status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; text-transform: capitalize; }
.ticket-status--open        { background: rgba(220,53,69,.1);  color: #dc3545; }
.ticket-status--in_progress { background: rgba(255,193,7,.15); color: #b8860b; }
.ticket-status--resolved    { background: rgba(25,135,84,.1);  color: #198754; }
.ticket-status--closed      { background: var(--surface-3);    color: var(--muted); }

/* Admin status tab bar */
.support-status-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.support-tab { padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; display: flex; align-items: center; gap: .4rem; }
.support-tab.active { background: var(--brand); color: #111; border-color: var(--brand); }
.support-tab__count { background: rgba(0,0,0,.15); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }

/* Ticket thread */
.ticket-thread { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.ticket-reply { border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.ticket-reply--dealer { background: var(--surface-2); border: 1px solid var(--border); }
.ticket-reply--admin  { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); }
.ticket-reply__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-size: .82rem; }
.ticket-reply__meta strong { font-weight: 700; }
.ticket-reply__meta span   { color: var(--muted); }
.ticket-reply__body { color: var(--text-2); line-height: 1.75; font-size: .9rem; }

/* Reply form */
.ticket-reply-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1rem; }
.ticket-reply-form h4 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }

/* Ticket closed notice */
.ticket-closed-notice { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; font-size: .88rem; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* Status change bar */
.ticket-status-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .75rem 1rem; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--border); }

/* Help cards on new ticket form */
.support-help-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.support-help-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.support-help-card span  { font-size: 1.5rem; display: block; margin-bottom: .4rem; }
.support-help-card strong { font-size: .88rem; font-weight: 700; display: block; margin-bottom: .3rem; }
.support-help-card p { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Partner nav label */
.dash-nav-label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); padding: .5rem .75rem .25rem; pointer-events: none; }

/* Partner role badge */
.role-badge--partner { background: rgba(212,175,55,.15); color: #b8860b; border: 1px solid rgba(212,175,55,.35); }

/* ── Mobile bottom nav ────────────────────────────────── */
.mob-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: 62px;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  align-items: stretch;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
}
[data-theme="light"] .mob-bottom-nav { background: #ffffff; box-shadow: 0 -2px 16px rgba(0,0,0,.08); }
.mob-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1; padding: .4rem .25rem;
  color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600;
  transition: color .15s;
}
.mob-nav-item svg { width: 22px; height: 22px; }
.mob-nav-item.active { color: var(--brand); }
.mob-nav-item:hover  { color: var(--text); }
[data-theme="light"] .mob-nav-item { color: #9ca3af; }
[data-theme="light"] .mob-nav-item.active { color: var(--brand); }
[data-theme="light"] .mob-nav-item:hover  { color: #111827; }
@media (max-width: 768px) {
  .mob-bottom-nav { display: flex; }
  body.has-mobile-nav { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.has-mobile-nav #back-to-top { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--brand);
  color: #111;
}
[data-theme="light"] #back-to-top {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Footer notice column */
.footer-notice { grid-column: span 2; }
.footer-notice p { font-size: .82rem; color: var(--muted); line-height: 1.7; margin-top: .5rem; margin-bottom: .6rem; }
.footer-notice a { font-size: .8rem; color: var(--brand); text-decoration: none; }
.footer-notice a:hover { text-decoration: underline; }

.legal-page { min-height: 70vh; }
.legal-hero {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem;
}
.legal-hero .container { max-width: 800px; margin: 0 auto; }
.legal-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.legal-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .75rem; }
.legal-hero p  { color: var(--text-2); font-size: 1rem; line-height: 1.7; max-width: 640px; }

.legal-body { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal-body section { margin-bottom: 2.5rem; }
.legal-body h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.legal-body p  { color: var(--text-2); line-height: 1.8; margin-bottom: .85rem; }
.legal-body ul, .legal-body ol { padding-left: 1.4rem; display: flex; flex-direction: column; gap: .5rem; margin-bottom: .85rem; }
.legal-body li { color: var(--text-2); line-height: 1.7; }
.legal-body a  { color: var(--brand); text-decoration: underline; }
.legal-body strong { color: var(--text-1); }
.legal-body code { background: var(--surface-3); padding: .1rem .4rem; border-radius: 4px; font-size: .85rem; }

.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1rem; }
.legal-table th { background: var(--surface-2); padding: .65rem 1rem; text-align: left; font-weight: 600; border: 1px solid var(--border); }
.legal-table td { padding: .65rem 1rem; border: 1px solid var(--border); color: var(--text-2); vertical-align: top; line-height: 1.6; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.pricing-hero-inner { max-width: 640px; margin: 0 auto; }
.pricing-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 1rem;
  background: rgba(212,175,55,.1); padding: .3rem .9rem; border-radius: 999px;
}
.pricing-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.pricing-sub { font-size: 1.05rem; color: var(--text-2); line-height: 1.7; }

.pricing-section { padding: 4rem 1.5rem; }
.pricing-inner { max-width: 1400px; margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--popular {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
}

.pricing-popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #0B0B0B;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .9rem; border-radius: 999px; white-space: nowrap;
}

.pricing-card-header { text-align: center; }
.pricing-pkg-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  font-size: 1.4rem; font-weight: 900;
  display: grid; place-items: center;
  margin: 0 auto 1rem;
}
.pricing-pkg-name { font-size: 1.25rem; font-weight: 800; margin-bottom: .75rem; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: .2rem; margin-bottom: .5rem; }
.pricing-currency { font-size: 1.3rem; font-weight: 700; color: var(--text-2); }
.pricing-amount { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.pricing-period { font-size: .9rem; color: var(--muted); }
.pricing-listings { font-size: .9rem; color: var(--text-2); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: var(--text-2);
}
.pricing-features li svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

.pricing-card-footer { display: flex; flex-direction: column; gap: .75rem; }
.pricing-trial { font-size: .75rem; color: var(--muted); text-align: center; }

/* FAQ */
.pricing-faq { padding: 4rem 1.5rem; background: var(--surface); border-top: 1px solid var(--border); }
.pricing-faq h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 2rem; text-align: center; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.faq-item { padding: 1.25rem 1.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.faq-item p { font-size: .88rem; color: var(--text-2); line-height: 1.65; }
.faq-item a { color: var(--brand); }

/* Bottom CTA */
.pricing-cta { padding: 5rem 1.5rem; background: var(--bg); border-top: 1px solid var(--border); }
.pricing-cta h2 { font-size: 1.8rem; font-weight: 900; }

/* Responsive */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .faq-grid { grid-template-columns: 1fr; }
  .pricing-hero { padding: 3rem 1rem 2.5rem; }
}
