/* AFCA Auto Sales Ltd. — site styles.
   Visual language refreshed (Sept 2026) to read as a modern, trustworthy
   dealer storefront — deep navy header/footer accents, a bold display
   heading font, a rotating hero slider, and a body-type quick-search —
   while keeping every existing page, form, and API call working exactly
   as before. Nothing here changes markup contracts the JS relies on
   (ids/classes it already queries), only how things look. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  /* Brand accent — buttons, links, badges, prices, active nav. */
  --afca-red: #1458C4;
  --afca-red-dark: #0D3E8F;
  /* Dedicated error red — kept separate from --afca-red-dark so error
     messages (.form-error) stay red for clarity even though the brand
     accent above is blue. */
  --afca-error: #C0392B;
  --afca-black: #111111;
  /* Deep navy — new: topbar, footer, hero overlay. Gives the site the
     premium-dealer feel (dark header/footer, bright content) instead of
     the flat all-white header it had before. */
  --afca-navy: #0A1B33;
  --afca-navy-light: #132A4D;
  --afca-green: #0B6E1F;
  --afca-white: #FFFFFF;
  --afca-gray-50: #F6F7F9;
  --afca-gray-100: #EEF1F5;
  --afca-gray-200: #E2E6ED;
  --afca-gray-600: #5B6472;
  --heading-font: 'Poppins', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --body-font: 'Inter', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(10,27,51,0.08);
  --shadow-md: 0 10px 28px rgba(10,27,51,0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--afca-black);
  background: var(--afca-white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--afca-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1600px; margin: 0 auto; padding: 0 12px; }

/* ---- Utility topbar (phone / hours / social) — sits above the main
   header, dark navy, Soni-style. Purely decorative/informational, no JS
   dependency, so it's safe on every page. ---- */
.topbar {
  background: var(--afca-navy);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  max-width: 1600px;
  margin: 0 auto;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--afca-white); text-decoration: none; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-right { gap: 12px; }
@media (max-width: 700px) {
  .topbar-inner { padding: 6px 14px; font-size: 12px; }
  .topbar-left span:not(:first-child) { display: none; }
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--afca-gray-200);
  background: var(--afca-white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  max-width: 1600px;
  margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 60px; width: auto; display: block; }
nav.main-nav {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  background: var(--afca-gray-100);
  border-radius: 10px;
  padding: 10px 20px;
}
nav.main-nav a {
  color: var(--afca-black);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 0;
  position: relative;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--afca-red);
  transition: right 0.18s ease;
}
nav.main-nav a.active, nav.main-nav a:hover { color: var(--afca-red); text-decoration: none; }
nav.main-nav a.active::after, nav.main-nav a:hover::after { right: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  min-width: 44px;
  min-height: 44px;
}
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 768px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--afca-white);
    border-bottom: 1px solid var(--afca-gray-200);
    flex-direction: column;
    padding: 12px 20px;
    gap: 14px;
    z-index: 30;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 480px) {
  .header-inner { padding: 8px 14px; gap: 8px; }
  .brand img { height: 36px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 7px 10px; font-size: 13px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn-primary { background: var(--afca-red); color: var(--afca-white); }
.btn-primary:hover { background: var(--afca-red-dark); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--afca-black); color: var(--afca-black); }
.btn-outline:hover { background: var(--afca-black); color: var(--afca-white); text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn:active { transform: translateY(1px); }

/* ---- Hero slider (homepage) ----
   Rotating full-width promo slides (photo + gradient + headline/subtext/
   CTA), built by /js/hero-slider.js into #hero-slider. Slide 1's content
   comes from the admin-editable Site Banner settings (same API banner.js
   used before); slides 2+ are fixed promos for Parts/Export. Structure
   mirrors the existing .carousel pattern so it feels like one system. */
.hero-slider {
  position: relative;
  overflow: hidden;
  color: var(--afca-white);
  min-height: 460px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  /* When a slide is active it switches to position:relative (see below),
     which takes it out of the inset:0 stretch and lets its own content
     height show through. Slides with shorter copy (Parts/Export) were
     rendering noticeably shorter than the Local Inventory slide as a
     result. min-height keeps every slide the same size as the slider
     shell regardless of how much text it has. */
  min-height: 460px;
}
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,27,51,0.88) 0%, rgba(10,27,51,0.55) 45%, rgba(10,27,51,0.25) 100%);
}
.hero-slide-inner { position: relative; z-index: 1; max-width: 620px; padding: 70px 0 90px; }
.hero-slide-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--afca-white);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-slide h1 { color: var(--afca-white); font-size: 40px; margin-bottom: 14px; }
.hero-slide p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 22px; max-width: 520px; }
.hero-slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: var(--afca-white);
  border-radius: 50%; width: 40px; height: 40px; font-size: 19px; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-nav:hover { background: rgba(255,255,255,0.3); }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45);
  border: none; padding: 0; cursor: pointer;
}
.hero-dots button.active { background: var(--afca-white); width: 22px; border-radius: 5px; }
@media (max-width: 700px) {
  .hero-slider { min-height: 380px; }
  .hero-slide { min-height: 380px; }
  .hero-slide-inner { padding: 56px 0 78px; }
  .hero-slide h1 { font-size: 28px; }
  .hero-nav { width: 36px; height: 36px; font-size: 16px; }
}

/* ---- Quick-search by body type (homepage, below the hero) ---- */
.quick-search {
  background: var(--afca-white);
  border-bottom: 1px solid var(--afca-gray-200);
  padding: 22px 0;
}
.quick-search-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--afca-gray-600); margin-bottom: 12px; }
.quick-search-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--afca-gray-200);
  background: var(--afca-gray-50);
  color: var(--afca-black);
  font-weight: 600;
  font-size: 14px;
}
.chip:hover { border-color: var(--afca-red); color: var(--afca-red); text-decoration: none; background: var(--afca-white); }

/* Inventory search row (sits directly under the quick-search) */
.inventory-search {
  background: var(--afca-gray-50);
  border-bottom: 1px solid var(--afca-gray-200);
  padding: 18px 0;
}
.inventory-search .filter-bar { margin-bottom: 0; align-items: end; }
.inventory-search .field { min-width: 150px; flex: 1 1 150px; }
.inventory-search .btn { padding: 10px 20px; }

/* Hero / landing (Section A + B grid) */
.hero {
  background: var(--afca-white);
  padding: 40px 0 44px;
}
.landing-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  /* The three-car grid (Section A) and the auction sidebar (Section B)
     now size to their own content instead of stretching to match each
     other's height — with real descriptions under each car, Section A
     is usually taller than the short auction-name list, and forcing
     the sidebar to stretch to match would leave a blank gap under it. */
  align-items: start;
}
@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; }
}

/* Homepage auction feed (Section B) is a narrow sidebar next to the
   much larger car carousel — only wide enough for the vehicle's name,
   so we drop the thumbnail/close-time/link chrome that the full
   /auctions.html list still shows in .auction-card by default. */
#hero-auctions .auction-card {
  padding: 8px 10px;
}
#hero-auctions .auction-card img,
#hero-auctions .auction-card .meta span,
#hero-auctions .auction-card .auction-link,
#hero-auctions .auction-card .auction-lock {
  display: none;
}
#hero-auctions .auction-card .meta strong {
  font-size: 14px;
  line-height: 1.3;
}
/* The small "See full feed →" link used to sit at the top next to the
   heading; it's now the heading itself that links through (a bigger,
   more obvious click target than the old small arrow-text), and a
   matching link repeats at the bottom, below the last auction card. */
.auction-feed-title-link { color: inherit; text-decoration: none; }
.auction-feed-title-link:hover { color: var(--afca-red); text-decoration: underline; }
.auction-feed-bottom-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 700;
}

/* Vehicle/part detail pages (photo + info side by side, stacking on
   mobile). Used by the inline JS in vehicle.html and part.html instead
   of a fixed inline grid so it's actually responsive. */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-heading a { font-size: 14.5px; font-weight: 700; }

/* Hero cars (Section A: local cars for sale) — three static listings
   side by side in the space the single sliding carousel used to
   occupy, each with its photo, price and description so a visitor
   doesn't have to click through just to see what the car is.
   auto-fit + minmax reflows cleanly to 1 or 2 cards if inventory is
   ever that thin, instead of leaving an empty third slot. align-items
   stretch (the grid default) plus each card being a column flexbox is
   what keeps all three cards the same height as each other. */
.hero-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .hero-cars-grid { grid-template-columns: 1fr; }
}
.hero-car-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--afca-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--afca-white);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hero-car-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hero-car-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--afca-gray-50); }
.hero-car-card .hero-car-media { display: block; line-height: 0; }
.hero-car-card .hero-car-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.hero-car-card .hero-car-title-link { color: inherit; text-decoration: none; }
.hero-car-card .hero-car-title-link:hover .title { text-decoration: underline; }
.hero-car-card .price { font-family: var(--heading-font); color: var(--afca-red); font-size: 20px; font-weight: 700; }
.hero-car-card .title { font-weight: 700; font-size: 15px; margin: 2px 0 8px; }
/* Clamped to a fixed number of lines so a longer write-up (Kia's, for
   example) doesn't make its card taller than the other two — every
   description takes up exactly the same space regardless of length.
   A description that actually gets cut off gets a "See more…" link
   (added by carousel.js, which measures the clip after render) to the
   vehicle's own page, where the full text is always shown in full. */
.hero-car-card .desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--afca-gray-600);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.hero-car-card .see-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

/* Auction feed (Section B) */
.auction-list { display: flex; flex-direction: column; gap: 10px; max-height: 100%; }
.auction-card {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--afca-gray-200); border-radius: var(--radius-md); padding: 10px;
  background: var(--afca-white);
}
.auction-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--afca-gray-50); }
.auction-card .meta { flex: 1; min-width: 0; }
.auction-card .meta strong { display: block; font-size: 15px; }
.auction-card .meta span { font-size: 13px; color: var(--afca-gray-600); }
.auction-name-link { color: inherit; text-decoration: none; }
.auction-name-link:hover { color: var(--afca-red); text-decoration: underline; }
.auction-lock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--afca-gray-600);
  border: 1px dashed var(--afca-gray-200); border-radius: 6px; padding: 6px 8px;
}
.auction-lock:hover { color: var(--afca-red); border-color: var(--afca-red); }
.auction-link { font-size: 14px; font-weight: 700; }

/* Cards / grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  position: relative;
  border: 1px solid var(--afca-gray-200); border-radius: var(--radius-md); overflow: hidden;
  background: var(--afca-white); display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .price { font-family: var(--heading-font); color: var(--afca-red); font-size: 20px; font-weight: 700; }
.card-body .specs { font-size: 13px; color: var(--afca-gray-600); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; align-self: flex-start;
}
.badge-green { background: rgba(11,110,31,0.12); color: var(--afca-green); }
.badge-red { background: rgba(20,88,196,0.12); color: var(--afca-red); }
.badge-gray { background: var(--afca-gray-100); color: var(--afca-gray-600); }

/* Sold ribbon — a diagonal banner over a vehicle's photo once its admin
   Status is set to "Sold" (Local Cars tab). The listing still shows up
   everywhere it normally would; this just marks the photo. Each host
   element (.card, .hero-car-media, .vehicle-photo-wrap) needs its own
   `position: relative` so the ribbon positions against the right box,
   and relies on that host (or its overflow:hidden parent) to clip the
   ribbon's corners to the photo's rounded edges. */
.sold-ribbon {
  position: absolute;
  top: 18px;
  left: -42px;
  width: 170px;
  padding: 6px 0;
  background: var(--afca-red);
  color: var(--afca-white);
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: none;
  z-index: 2;
}
.hero-car-card .hero-car-media { position: relative; }
.vehicle-photo-wrap { position: relative; overflow: hidden; border-radius: 10px; }

section.pitch-strip { padding: 44px 0; background: var(--afca-gray-50); }
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pitch-grid { grid-template-columns: 1fr; } }
.pitch-card {
  border: 1px solid var(--afca-gray-200); border-radius: var(--radius-lg); padding: 24px;
  background: var(--afca-white); display: flex; flex-direction: column; gap: 8px;
}
.pitch-card h3 { margin-top: 6px; }
.pitch-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(20,88,196,0.1); color: var(--afca-red);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--afca-gray-200);
  border-radius: var(--radius-sm); font-size: 15px; font-family: var(--body-font);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(20,88,196,0.35); outline-offset: 1px; border-color: var(--afca-red); }
.form-error { background: #FDECEA; color: var(--afca-error); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.form-success { background: #EAF6EC; color: var(--afca-green); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.helptext { font-size: 13px; color: var(--afca-gray-600); margin-top: -8px; }
@media (max-width: 700px) {
  /* iOS Safari auto-zooms the page when a tapped input's font is under
     16px — this keeps every form on mobile from jumping/zooming on focus. */
  input, select, textarea { font-size: 16px; }
}

/* Filter bar */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; align-items: end; }
.filter-bar .field { min-width: 160px; }
.filter-bar select { background-color: var(--afca-gray-100); }
@media (max-width: 700px) {
  /* Two dropdowns per row (centered, evenly sized) instead of a single
     squeezed/uneven row — reads much cleaner on a phone screen. The
     search button gets its own full-width row underneath. */
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    align-items: end;
  }
  .filter-bar .field { min-width: 0; text-align: center; }
  .filter-bar .field select { text-align: center; text-align-last: center; }
  /* The button's wrapping .field (not the button itself) is the grid
     item, so it's the one that needs to span both columns. */
  .filter-bar .field:has(button.btn) { grid-column: 1 / -1; }
  .filter-bar button.btn { width: 100%; }
}
@media (max-width: 340px) {
  /* Two select boxes get too cramped below ~340px wide (older/small
     phones) — drop back to a single centered column there. */
  .filter-bar { grid-template-columns: 1fr; }
}

/* ---- Payment calculator ---- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-form { display: flex; flex-direction: column; gap: 14px; }
.calc-result {
  background: var(--afca-navy); color: var(--afca-white);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
}
.calc-result .calc-monthly { font-family: var(--heading-font); font-size: 44px; font-weight: 800; margin: 6px 0; }
.calc-result .calc-monthly span { font-size: 17px; font-weight: 600; opacity: 0.8; }
.calc-breakdown { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; text-align: left; font-size: 14px; }
.calc-breakdown div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 6px; }
.calc-disclaimer { font-size: 12.5px; color: var(--afca-gray-600); margin-top: 14px; }

/* Footer */
footer.site-footer { background: var(--afca-navy); color: rgba(255,255,255,0.75); margin-top: 48px; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h3 { color: #fff; font-size: 16px; }
footer.site-footer a { color: rgba(255,255,255,0.75); }
footer.site-footer a:hover { color: #fff; }
.social-icons { display: flex; gap: 12px; margin-top: 10px; }
.social-icons a { border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.footer-bottom { text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 28px; }
.todo-flag { color: #f2a900; }

.page-hero { padding: 36px 0 8px; }
.muted { color: var(--afca-gray-600); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 20px; }

/* Admin panel */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--afca-gray-200); padding-bottom: 12px; margin-bottom: 20px; }
.admin-tab {
  background: var(--afca-gray-50); border: 1px solid var(--afca-gray-200); border-radius: 20px;
  padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--afca-black);
}
.admin-tab.active { background: var(--afca-navy); color: var(--afca-white); border-color: var(--afca-navy); }
.admin-panel { margin-bottom: 40px; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 720px; align-items: end; }
.admin-form .field-full { grid-column: 1 / -1; }
@media (max-width: 700px) { .admin-form { grid-template-columns: 1fr; } }
.admin-image-field { display: flex; gap: 14px; align-items: center; }
.admin-preview { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--afca-gray-50); border: 1px solid var(--afca-gray-200); }
.admin-form-actions { display: flex; gap: 10px; grid-column: 1 / -1; }
.admin-table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--afca-gray-200); vertical-align: middle; }
table.admin-table th { color: var(--afca-gray-600); font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.admin-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--afca-gray-50); }
.admin-row-actions { display: flex; gap: 6px; white-space: nowrap; }
.admin-row-actions .btn { padding: 6px 10px; font-size: 13px; }
