  
    :root {
      --primary-dark: #0A1628;
      --accent-red: #C41E2A;
      --accent-hover: #9E1822;
      --silver-accent: #B8C0CC;
      --text-main: #1A2332;
      --text-muted: #5A6577;
      --bg-light: #F4F6F9;
      --bg-white: #FFFFFF;
      --border-color: #DCE1E8;
      --card-bg: #FFFFFF;
      --nav-bg: rgba(255, 255, 255, 0.97);
      --logo-pad-bg: #FFFFFF;
      --shadow-soft: 0 4px 20px rgba(10, 22, 40, 0.07);
      --shadow-hover: 0 12px 30px rgba(10, 22, 40, 0.16);
      --font-heading: 'Poppins', sans-serif;
      --font-body: 'Inter', sans-serif;
      --radius-card: 16px;
      --radius-btn: 10px;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="dark"] {
      --primary-dark: #F1F5F9;
      --text-main: #F1F5F9;
      --text-muted: #94A3B8;
      --bg-light: #1A2332;
      --bg-white: #0B1220;
      --border-color: #2A3548;
      --card-bg: #152032;
      --nav-bg: rgba(11, 18, 32, 0.97);
      --logo-pad-bg: #FFFFFF;
      --shadow-soft: 0 4px 20px rgba(0,0,0,0.35);
      --shadow-hover: 0 12px 30px rgba(0,0,0,0.5);
      --silver-accent: #94A3B8;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    /* FONT SCALE +15% */
    html { font-size: 115%; }
    body { font-family: var(--font-body); color: var(--text-main); background-color: var(--bg-white); line-height: 1.6; transition: background 0.3s, color 0.3s; padding-top: 96px; }
    h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-dark); font-weight: 700; }
    a { text-decoration: none; color: inherit; }
    .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
    .page-section { display: none; padding: 40px 0 80px; min-height: 80vh; }
    .page-section.active-page { display: block; }
    .section-title { text-align: center; font-size: 2.2rem; margin-bottom: 12px; }
    .section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1.05rem; }

    .btn {
      font-family: var(--font-heading); font-weight: 600; font-size: 0.90rem;
      padding: 12px 24px; border-radius: var(--radius-btn); border: 2px solid transparent;
      cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      transition: var(--transition); text-decoration: none;
    }
    .btn-primary { background-color: var(--accent-red); color: white; }
    .btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(215, 38, 56, 0.3); }
    .btn-secondary { background-color: var(--card-bg); border-color: var(--primary-dark); color: var(--primary-dark); }
    .btn-secondary:hover { background-color: var(--primary-dark); color: var(--bg-white); }
    .btn-dl { background-color: #10B981; color: white; padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; cursor: pointer; border: none; font-family: var(--font-heading); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
    .btn-dl:hover { background-color: #059669; }
    .btn-whatsapp { background-color: #25D366; color: white; }
    .btn-whatsapp:hover { background-color: #1DA851; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
    .btn-history {
      background: linear-gradient(135deg, #1E40AF, #3B82F6); color: white; border: none;
      font-family: var(--font-heading); font-weight: 600; padding: 8px 14px; border-radius: 8px;
      cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); font-size: 0.85rem;
    }
    .btn-history:hover { background: linear-gradient(135deg, #1E3A8A, #2563EB); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,0.35); }
    .history-status { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:10px; margin-bottom:18px; font-weight:600; }
    .history-status.clean { background:#ECFDF5; color:#065F46; border:1px solid #A7F3D0; }
    .history-status.attention { background:#FEF3C7; color:#92400E; border:1px solid #FCD34D; }
    [data-theme="dark"] .history-status.clean { background:#064E3B; color:#6EE7B7; border-color:#065F46; }
    [data-theme="dark"] .history-status.attention { background:#78350F; color:#FCD34D; border-color:#92400E; }
    .history-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:16px 0; }
    .history-item { background:var(--bg-light); border:1px solid var(--border-color); border-radius:10px; padding:12px 14px; }
    .history-item .label { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-muted); font-weight:700; }
    .history-item .value { font-size:0.95rem; font-weight:600; color:var(--primary-dark); margin-top:4px; }
    .history-checks { list-style:none; margin:14px 0; display:flex; flex-direction:column; gap:8px; }
    .history-checks li { display:flex; align-items:center; gap:8px; font-size:0.88rem; }
    .history-checks li i.pass { color:#10B981; }
    .history-checks li i.warn { color:#F59E0B; }
    .history-disclaimer { font-size:0.8rem; color:var(--text-muted); margin-top:16px; padding-top:12px; border-top:1px solid var(--border-color); }
    .job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 12px; }
    .job-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-soft); transition: var(--transition); display: flex; flex-direction: column; }
    .job-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
    .job-type-badge { display: inline-block; background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
    [data-theme="dark"] .job-type-badge { background: #1E1B4B; color: #A5B4FC; border-color: #3730A3; }
    .job-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
    .job-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
    .job-meta i { color: var(--accent-red); margin-right: 4px; }
    .job-req-list { list-style: none; margin: 10px 0 16px; font-size: 0.86rem; display: flex; flex-direction: column; gap: 6px; }
    .job-req-list li { display: flex; align-items: flex-start; gap: 8px; }
    .job-req-list li i { color: #10B981; margin-top: 3px; flex-shrink: 0; }
    .char-counter { font-size: 0.78rem; color: var(--text-muted); text-align: right; margin-top: 4px; }
    .char-counter.warn { color: #F59E0B; }
    .char-counter.over { color: #EF4444; font-weight: 700; }
    .cv-file-name { font-size: 0.82rem; color: #10B981; margin-top: 6px; display: none; }
    .empty-jobs { text-align: center; padding: 48px 20px; color: var(--text-muted); background: var(--bg-light); border-radius: var(--radius-card); border: 1px dashed var(--border-color); }
    .btn-mark-sold { background-color: #EF4444; color: white; padding: 5px 10px; font-size: 0.75rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; }
    .btn-mark-available { background-color: #10B981; color: white; padding: 5px 10px; font-size: 0.75rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; }
    .btn-delete { background: #EF4444; color: white; padding: 5px 10px; font-size: 0.78rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; }
    .btn-edit { background: #0B1F3A; color: white; padding: 5px 10px; font-size: 0.75rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; }
    .btn-edit:hover { background: #9E1822; }
    #editModeBanner { display:none; background:#FEF3C7; border:1px solid #F59E0B; border-radius:10px; padding:12px 14px; margin-bottom:14px; color:#92400E; font-size:0.88rem; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
    #editModeBanner.active { display:flex; }

    /* ===== LOGO (visible, enlarged, tight spacing) ===== */
    .logo {
      display: flex; align-items: center; gap: 6px; cursor: pointer;
      padding: 0; border-radius: 8px; background: transparent;
      transition: var(--transition); flex-shrink: 0;
    }
    .logo:hover { opacity: 0.92; }
    .logo:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 3px; }
    .logo-img {
      height: 88px !important; width: auto; max-width: 300px !important;
      object-fit: contain; flex-shrink: 0; display: block;
      background: transparent;
    }
    .logo-img-admin {
      height: 110px; width: auto; max-width: 360px;
      object-fit: contain; display: block; margin: 0 auto 12px;
      background: transparent;
    }
    .logo-text { display: none; }

    .navbar {
      position: fixed; top: 0; left: 0; right: 0;
      background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
      z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.06);
      height: 96px; padding: 0;
      transition: background 0.3s, box-shadow 0.3s;
      box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    }
    [data-theme="dark"] .navbar { background: rgba(15,23,42,0.94); border-bottom-color: rgba(255,255,255,0.06); }
    .nav-container {
      display: flex; align-items: center; justify-content: space-between;
      height: 96px; gap: 12px; flex-wrap: nowrap; max-width: 1200px; margin: 0 auto; padding: 0 16px;
      position: relative;
    }
    .nav-menu-btn {
      display: none;
      align-items: center; justify-content: center;
      width: 42px; height: 42px; border-radius: 10px;
      border: 1.5px solid var(--border-color); background: var(--bg-light);
      color: var(--primary-dark); font-size: 1.2rem; cursor: pointer;
      flex-shrink: 0; z-index: 1002;
    }
    .nav-menu-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }
    .nav-drawer {
      display: none;
      position: absolute; top: calc(100% + 4px); left: 12px; right: 12px;
      max-width: 320px;
      background: var(--card-bg, #fff); border: 1px solid var(--border-color);
      border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.14);
      padding: 8px; z-index: 1003;
    }
    .nav-drawer.open { display: block; }
    .nav-drawer a {
      display: block; padding: 11px 14px; border-radius: 10px;
      color: var(--primary-dark); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    }
    .nav-drawer a:hover, .nav-drawer a.active-nav {
      background: rgba(220,38,38,0.08); color: var(--accent-red);
    }
    [data-theme="dark"] .nav-drawer { background: #0f172a; }
    .nav-links {
      display: flex; gap: 1px; list-style: none; font-weight: 500; font-size: 0.875rem;
      align-items: center; flex-wrap: nowrap; white-space: nowrap; margin: 0; padding: 0;
    }
    .nav-links a {
      cursor: pointer; transition: color 0.15s, background 0.15s;
      padding: 8px 9px; border-radius: 8px; color: var(--text-muted); text-decoration: none;
    }
    .nav-links a:hover { color: var(--primary-dark); background: rgba(0,0,0,0.04); }
    .nav-links a.active-nav { color: var(--accent-red); font-weight: 600; background: rgba(220,38,38,0.08); }
    .nav-links a:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 3px; }

    .theme-toggle {
      background: var(--bg-light); border: 1.5px solid var(--border-color);
      width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
      display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
      color: var(--primary-dark); transition: var(--transition);
    }
    .theme-toggle:hover { background: var(--accent-red); color: white; border-color: var(--accent-red); }
    .theme-toggle:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 2px; }

    /* Icon system — clearer, consistent */
    .icon-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 1.15em; height: 1.15em; line-height: 1;
    }
    .btn i, .btn-history i, .btn-dl i, .btn-whatsapp i {
      font-size: 0.95em; opacity: 0.95;
    }
    .spec-item i, .job-meta i, .feature-icon i {
      font-size: 1em;
    }
    .verified-badge i, .card-badge i { font-size: 0.85em; }

    .hero {
      margin-top: 0; padding: 64px 0 80px;
      position: relative; overflow: hidden; color: white; text-align: center;
    }
    .btn:focus-visible, .btn-history:focus-visible, .btn-dl:focus-visible,
    .form-control:focus-visible, select:focus-visible {
      outline: 3px solid var(--accent-red); outline-offset: 2px;
    }
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }
    .hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
    .hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(rgba(11,31,58,0.78), rgba(11,31,58,0.88));
      z-index: 1;
    }
    .hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
    .hero h1 { font-size: 3.2rem; color: white; margin-bottom: 20px; line-height: 1.15; }
    .hero p { font-size: 1.2rem; color: #C7CDD6; margin-bottom: 32px; }

    .price-slider-wrap { padding: 6px 4px 10px; }
    .price-slider-values { display:flex; justify-content:space-between; font-size:0.82rem; color:var(--text-muted); margin-bottom:8px; }
    .price-slider-track { position:relative; height:36px; }
    .price-range {
      position:absolute; left:0; width:100%; top:8px; margin:0; pointer-events:none; appearance:none; height:6px; background:transparent;
    }
    .price-range::-webkit-slider-runnable-track { height:6px; background:#e5e7eb; border-radius:4px; }
    .price-range::-webkit-slider-thumb {
      appearance:none; width:18px; height:18px; border-radius:50%; background:var(--accent-red); cursor:pointer; pointer-events:auto; margin-top:-6px; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.25);
    }
    .price-range::-moz-range-track { height:6px; background:#e5e7eb; border-radius:4px; }
    .price-range::-moz-range-thumb {
      width:18px; height:18px; border-radius:50%; background:var(--accent-red); cursor:pointer; pointer-events:auto; border:2px solid #fff;
    }
    .search-card {
      background: var(--card-bg); border-radius: var(--radius-card); padding: 32px;
      box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); margin-bottom: 40px;
    }
    .search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
    .search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; align-items: end; }
    .filter-group { display: flex; flex-direction: column; gap: 6px; }
    .filter-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--primary-dark); letter-spacing: 0.5px; }
    .form-control {
      width: 100%; padding: 11px 14px; border: 1px solid var(--border-color);
      border-radius: 8px; font-family: var(--font-body); font-size: 0.9rem; outline: none;
      background-color: var(--bg-light); color: var(--text-main);
    }
    .form-control:focus { border-color: var(--accent-red); background: var(--card-bg); }

    /* Financing dropdown helper */
    .financing-box {
      display: none;
      background: var(--bg-light);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 16px;
      margin-top: 4px;
      grid-column: 1 / -1;
    }
    .financing-box.visible { display: block; }
    .financing-box .filter-label { margin-bottom: 6px; }
    .financing-note {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-top: 10px;
      line-height: 1.5;
    }
    .financing-note strong { color: var(--accent-red); }

    /* Loan calculator extras */
    .loan-partner {
      background: var(--bg-light);
      border: 1px dashed var(--border-color);
      border-radius: 10px;
      padding: 14px 18px;
      margin-top: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 0.9rem;
    }
    .loan-partner i { color: var(--accent-red); font-size: 1.3rem; }
    .loan-partner strong { color: var(--primary-dark); }

    /* Status badge in admin */
    .status-available { color: #10B981; font-weight: 700; }
    .status-sold { color: #EF4444; font-weight: 700; }

    /* SEO-friendly vehicle card microdata helpers */
    .vehicle-card[itemscope] { position: relative; }

    /* Table responsive fix */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Ensure buttons don't collapse on mobile */
    .btn-sold {
      background: #6B7280 !important;
      color: white !important;
      cursor: not-allowed;
      opacity: 0.9;
    }

    .vehicle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
    @media (max-width: 1100px) { .vehicle-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 800px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 520px) { .vehicle-grid { grid-template-columns: 1fr; } }
    .vehicle-card {
      background: var(--card-bg); border-radius: var(--radius-card); border: 1px solid var(--border-color);
      overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); transition: var(--transition);
      position: relative;
    }
    .vehicle-card.sold { opacity: 0.88; }
    .ebike-deposit-badge { display:inline-block; background:#FEF3C7; color:#92400E; font-size:0.72rem; font-weight:700; padding:3px 8px; border-radius:6px; margin-bottom:4px; }
    .ebike-charges { font-size:0.78rem; color:var(--text-muted); margin-top:4px; }
    .vehicle-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }
    .card-img-wrap { height: 210px; background: #000; position: relative; overflow: hidden; }
    .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
    .vehicle-card:hover .card-img { transform: scale(1.05); }
    .card-badge { position: absolute; top: 12px; left: 12px; background: var(--accent-red); color: white; padding: 4px 11px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
    .verified-badge { position: absolute; top: 12px; right: 12px; background: #10B981; color: white; padding: 4px 9px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
    .sold-badge {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
      background: rgba(215, 38, 56, 0.93); color: white; padding: 12px 32px;
      font-size: 1.5rem; font-weight: 800; letter-spacing: 4px; border-radius: 8px;
      z-index: 5; pointer-events: none; box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }
    .card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
    .card-title { font-size: 1.12rem; margin-bottom: 2px; }
    .card-trim { font-size: 0.8rem; color: var(--accent-red); font-weight: 700; margin-bottom: 8px; }
    .card-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.22rem; color: var(--primary-dark); }
    .card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; font-size: 0.78rem; color: var(--text-muted); margin: 12px 0; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
    .spec-item { display: flex; align-items: center; gap: 5px; }
    .spec-item i { color: var(--primary-dark); width: 13px; }
    .card-actions { display: flex; gap: 7px; margin-top: auto; flex-wrap: wrap; }
    .card-actions .btn { flex: 1; font-size: 0.72rem; padding: 9px 5px; min-width: 85px; }

    .result-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border-color); font-size:0.9rem; }
    .result-row:last-child { border-bottom:none; }
    .calculator-card {
      background: var(--card-bg); border-radius: var(--radius-card); padding: 36px;
      box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); max-width: 720px; margin: 0 auto 60px;
    }
    .calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .calc-result {
      background: linear-gradient(135deg, #0B1F3A, #D72638); color: white;
      border-radius: 14px; padding: 26px; text-align: center; margin-top: 26px;
    }
    .calc-result .big { font-size: 2.3rem; font-weight: 800; font-family: var(--font-heading); }
    .calc-result .label { opacity: 0.9; font-size: 0.9rem; margin-top: 6px; }

    .brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; }
    .brand-card {
      background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 22px 14px;
      text-align: center; transition: var(--transition); box-shadow: var(--shadow-soft); cursor: pointer;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
    }
    .brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
    .brand-icon-wrap { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 10px; }
    .brand-icon-wrap {
      width: 72px; height: 72px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 12px; overflow: hidden;
      box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    }
    .brand-icon-wrap svg { width: 48px; height: 48px; display: block; }
    .brand-card span { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--primary-dark); }
    .brand-toyota .brand-icon-wrap { background: #EB0A1E; }
    .brand-honda .brand-icon-wrap { background: #E40521; }
    .brand-nissan .brand-icon-wrap { background: #C3002F; }
    .brand-mazda .brand-icon-wrap { background: #101010; border: 2px solid #910A2D; }
    .brand-bmw .brand-icon-wrap { background: #ffffff; border: 2px solid #1C69D4; }
    .brand-mercedes .brand-icon-wrap { background: #0A0A0A; border: 2px solid #C5A059; }
    .brand-subaru .brand-icon-wrap { background: #1B3E6F; }
    .brand-landrover .brand-icon-wrap { background: #005A2B; }

    .brand-icon-wrap.brand-icon-photo {
      background: #ffffff !important;
      border: 1px solid var(--border-color) !important;
      width: 80px; height: 80px; border-radius: 14px;
      padding: 10px; box-sizing: border-box;
    }
    .brand-icon-wrap.brand-icon-photo img {
      width: 100%; height: 100%; object-fit: contain; display: block;
    }
    [data-theme="dark"] .brand-icon-wrap.brand-icon-photo {
      background: #ffffff !important;
    }


    .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
    .feature-card { background: var(--bg-light); padding: 30px; border-radius: var(--radius-card); border: 1px solid var(--border-color); transition: var(--transition); }
    .feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
    .feature-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; color: white; }
    .feature-photo { width: 100%; height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
    .feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .icon-verified { background: linear-gradient(135deg, #10B981, #059669); }
    .icon-inspection { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
    .icon-finance { background: linear-gradient(135deg, #F59E0B, #D97706); }

    .quotation-card { background: var(--card-bg); border-radius: var(--radius-card); padding: 36px; box-shadow: var(--shadow-soft); max-width: 800px; margin: 0 auto; border: 1px solid var(--border-color); }
    .quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .quote-grid-full { grid-column: 1 / -1; }

    .modal-overlay {
      position: fixed; inset: 0; background: rgba(11,31,58,0.8); backdrop-filter: blur(6px);
      z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px;
    }
    .modal-overlay.active { display: flex; }
    .modal-card {
      background: var(--card-bg); border-radius: var(--radius-card); max-width: 920px; width: 100%;
      max-height: 92vh; overflow-y: auto; padding: 30px; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    }
    .modal-close {
      position: absolute; top: 16px; right: 16px; background: var(--bg-light); border: 1px solid var(--border-color);
      width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 1.1rem; color: var(--primary-dark); z-index: 10;
    }
    .modal-close:hover { background: var(--accent-red); color: white; }

    .car-detail-layout { display: grid; grid-template-columns: 1fr 310px; gap: 22px; margin-top: 12px; }
    @media (max-width: 850px) { .car-detail-layout { grid-template-columns: 1fr; } }
    .detail-gallery-main { width: 100%; height: 330px; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 12px; position: relative; }
    .detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
    .detail-thumbs { display: flex; gap: 8px; overflow-x: auto; }
    .detail-thumb { width: 66px; height: 50px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
    .detail-thumb.active-thumb { border-color: var(--accent-red); }
    .detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .detail-badges-bar { display: flex; gap: 9px; margin: 12px 0; flex-wrap: wrap; }
    .d-badge { background: #FEF2F2; color: var(--accent-red); border: 1px solid #FECACA; padding: 5px 10px; border-radius: 8px; font-size: 0.76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
    [data-theme="dark"] .d-badge { background: #3F1A1A; border-color: #7F1D1D; }
    .desc-box { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-top: 16px; }
    .desc-list { list-style: none; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
    .desc-list li { display: flex; align-items: center; gap: 7px; }
    .desc-list li i { color: #10B981; }
    .overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; font-size: 0.85rem; }
    .overview-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
    .overview-item strong { color: var(--primary-dark); }
    .sidebar-widget { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
    .sidebar-price { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); }

    .admin-login-box { max-width: 420px; margin: 20px auto; background: var(--card-bg); padding: 36px; border-radius: var(--radius-card); box-shadow: var(--shadow-hover); border: 1px solid var(--border-color); }
    .admin-container { max-width: 1100px; margin: 0 auto; background: var(--card-bg); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
    .admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; flex-wrap: wrap; }
    .admin-tab-btn { background: none; border: none; font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; padding: 8px 12px; border-radius: 8px; }
    .admin-tab-btn.active { background: #0B1F3A; color: white; }
    [data-theme="dark"] .admin-tab-btn.active { background: var(--accent-red); }
    .admin-content-pane { display: none; }
    .admin-content-pane.active { display: block; }
    .admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
    .admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
    .admin-table th { background: var(--bg-light); color: var(--primary-dark); font-weight: 700; }

    .image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 10px; }
    .image-preview-grid .preview-item { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); background: #f3f4f6; }
    .image-preview-grid .preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .image-preview-grid .preview-item .preview-remove { position: absolute; top: 4px; right: 4px; }
    .image-preview-grid-X { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 10px; margin-top: 10px; }
    .image-preview-item { position: relative; width: 85px; height: 85px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border-color); }
    .image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
    .image-preview-item .remove-img { position: absolute; top: 2px; right: 2px; background: #EF4444; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 11px; }

    .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
    .stat-card { background: linear-gradient(135deg, #0B1F3A, #D72638); color: white; padding: 20px; border-radius: 12px; text-align: center; }
    .stat-number { font-size: 1.8rem; font-weight: 700; font-family: var(--font-heading); }
    .stat-label { font-size: 0.8rem; margin-top: 5px; opacity: 0.9; }

    .export-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
    .btn-export { background: #3B82F6; color: white; padding: 9px 14px; border: none; border-radius: 8px; cursor: pointer; font-family: var(--font-heading); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }
    .btn-export.csv { background: #10B981; }

    footer { background-color: #0B1F3A; color: #C7CDD6; padding: 36px 0 20px; font-size: 0.95rem; }
    [data-theme="dark"] footer { background-color: #020617; }
    .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 20px; }
    .footer-col h4 { color: white; margin-bottom: 12px; font-size: 1.05rem; }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
    .footer-links a:hover { color: var(--accent-red); cursor: pointer; }
    .social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .social-links a {
      width: 42px; height: 42px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
      transition: var(--transition); color: white;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .social-links a:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.08); }
    .social-links a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
    /* Official-inspired brand colours */
    .social-links a.soc-facebook { background: #1877F2; }
    .social-links a.soc-instagram {
      background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    }
    .social-links a.soc-x { background: #000000; }
    .social-links a.soc-tiktok { background: linear-gradient(135deg, #25F4EE 0%, #000 45%, #FE2C55 100%); }
    .social-links a.soc-whatsapp { background: #25D366; }
    .social-links a.soc-youtube { background: #FF0000; }
    .social-links a.soc-pinterest { background: #E60023; }
    .social-links a.soc-linkedin { background: #0A66C2; }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; text-align: center; font-size: 0.85rem; }


    /* Homepage promo poster popup — easing curves + keyframes */
    :root {
      --promo-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
      --promo-ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
      --promo-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
      --promo-ease-in: cubic-bezier(0.55, 0.06, 0.68, 0.19);
      --promo-ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
    }
    .promo-popup-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 3200;
      background: rgba(15, 23, 42, 0);
      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(0px);
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .promo-popup-overlay.active {
      display: flex;
      animation: promoOverlayIn 0.45s var(--promo-ease-out-expo) forwards;
    }
    .promo-popup-overlay.closing {
      display: flex;
      pointer-events: none;
      animation: promoOverlayOut 0.38s var(--promo-ease-in) forwards;
    }
    @keyframes promoOverlayIn {
      0% {
        background: rgba(15, 23, 42, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
      }
      100% {
        background: rgba(15, 23, 42, 0.78);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
      }
    }
    @keyframes promoOverlayOut {
      0% {
        background: rgba(15, 23, 42, 0.78);
        opacity: 1;
      }
      100% {
        background: rgba(15, 23, 42, 0);
        opacity: 0;
      }
    }
    .promo-popup-card {
      position: relative;
      background: #fff;
      border-radius: 16px;
      max-width: 420px;
      width: 100%;
      max-height: min(92vh, 720px);
      overflow: auto;
      box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
      transform: translate3d(0, 36px, 0) scale(0.86);
      opacity: 0;
      transform-origin: center bottom;
      will-change: transform, opacity;
    }
    .promo-popup-overlay.active .promo-popup-card {
      animation: promoCardIn 0.65s var(--promo-ease-out-back) forwards;
    }
    .promo-popup-overlay.closing .promo-popup-card {
      animation: promoCardOut 0.34s var(--promo-ease-in) forwards;
    }
    @keyframes promoCardIn {
      0% {
        transform: translate3d(0, 48px, 0) scale(0.84) rotate(-1.5deg);
        opacity: 0;
        filter: blur(6px) brightness(0.92);
      }
      55% {
        transform: translate3d(0, -8px, 0) scale(1.03) rotate(0.4deg);
        opacity: 1;
        filter: blur(0) brightness(1.02);
      }
      78% {
        transform: translate3d(0, 3px, 0) scale(0.995) rotate(-0.15deg);
        filter: blur(0) brightness(1);
      }
      100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0) brightness(1);
      }
    }
    @keyframes promoCardOut {
      0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0);
      }
      100% {
        transform: translate3d(0, 28px, 0) scale(0.88) rotate(1deg);
        opacity: 0;
        filter: blur(3px);
      }
    }
    .promo-popup-close {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.65);
      color: #fff;
      font-size: 1.25rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      transition: transform 0.28s var(--promo-ease-out-back), background 0.22s ease;
    }
    .promo-popup-overlay.active .promo-popup-close {
      animation: promoCloseIn 0.55s var(--promo-ease-out-back) 0.32s both;
    }
    @keyframes promoCloseIn {
      0% {
        transform: scale(0) rotate(-120deg);
        opacity: 0;
      }
      70% {
        transform: scale(1.12) rotate(12deg);
        opacity: 1;
      }
      100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
      }
    }
    .promo-popup-close:hover {
      background: #990000;
      transform: scale(1.1) rotate(90deg);
    }
    .promo-popup-close:active {
      transform: scale(0.94) rotate(90deg);
      transition-timing-function: var(--promo-ease-in);
    }
    .promo-popup-card img.promo-poster {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 16px 16px 0 0;
    }
    .promo-popup-overlay.active .promo-popup-card img.promo-poster {
      animation:
        promoPosterReveal 0.7s var(--promo-ease-out-expo) 0.08s both,
        promoPosterShine 4.5s var(--promo-ease-in-out) 0.9s infinite;
    }
    @keyframes promoPosterReveal {
      0% {
        transform: scale(1.08);
        opacity: 0.6;
        filter: saturate(0.7);
      }
      100% {
        transform: scale(1);
        opacity: 1;
        filter: saturate(1);
      }
    }
    @keyframes promoPosterShine {
      0%, 100% {
        filter: brightness(1) contrast(1);
      }
      40% {
        filter: brightness(1.05) contrast(1.03);
      }
      70% {
        filter: brightness(0.98) contrast(1);
      }
    }
    .promo-popup-actions {
      padding: 12px 14px 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      background: #fff;
      border-radius: 0 0 16px 16px;
    }
    .promo-popup-actions .btn {
      flex: 1 1 140px;
      font-size: 0.85rem;
      transition: transform 0.22s var(--promo-ease-out-back), box-shadow 0.22s ease;
      opacity: 0;
    }
    .promo-popup-overlay.active .promo-popup-actions .btn {
      animation: promoBtnIn 0.5s var(--promo-ease-spring) both;
    }
    .promo-popup-overlay.active .promo-popup-actions .btn:nth-child(1) { animation-delay: 0.3s; }
    .promo-popup-overlay.active .promo-popup-actions .btn:nth-child(2) { animation-delay: 0.4s; }
    .promo-popup-overlay.active .promo-popup-actions .btn:nth-child(3) { animation-delay: 0.5s; }
    @keyframes promoBtnIn {
      0% {
        transform: translate3d(0, 18px, 0) scale(0.92);
        opacity: 0;
      }
      70% {
        transform: translate3d(0, -3px, 0) scale(1.03);
        opacity: 1;
      }
      100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
      }
    }
    .promo-popup-actions .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    }
    .promo-popup-actions .btn:active {
      transform: translateY(0) scale(0.97);
      transition-timing-function: var(--promo-ease-in);
    }
    .promo-popup-overlay.active .promo-popup-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 16px;
      pointer-events: none;
      background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.22) 48%,
        transparent 62%
      );
      background-size: 200% 100%;
      animation: promoSheen 2.4s var(--promo-ease-in-out) 0.5s 1;
      z-index: 1;
    }
    @keyframes promoSheen {
      0% { background-position: 120% 0; opacity: 0; }
      20% { opacity: 1; }
      100% { background-position: -80% 0; opacity: 0; }
    }
    .promo-popup-overlay.active .promo-popup-card::after {
      content: "";
      position: absolute;
      inset: -3px;
      border-radius: 18px;
      pointer-events: none;
      animation: promoPulse 2.4s var(--promo-ease-out-expo) infinite;
    }
    @keyframes promoPulse {
      0% {
        box-shadow: 0 0 0 0 rgba(153, 0, 0, 0.45);
      }
      55% {
        box-shadow: 0 0 0 16px rgba(153, 0, 0, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(153, 0, 0, 0);
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .promo-popup-overlay.active,
      .promo-popup-overlay.closing,
      .promo-popup-overlay.active .promo-popup-card,
      .promo-popup-overlay.closing .promo-popup-card,
      .promo-popup-overlay.active .promo-popup-close,
      .promo-popup-overlay.active .promo-popup-actions .btn,
      .promo-popup-overlay.active .promo-popup-card img.promo-poster,
      .promo-popup-overlay.active .promo-popup-card::before,
      .promo-popup-overlay.active .promo-popup-card::after {
        animation: none !important;
      }
      .promo-popup-overlay.active {
        background: rgba(15, 23, 42, 0.78);
      }
      .promo-popup-overlay.active .promo-popup-card {
        opacity: 1;
        transform: none;
        filter: none;
      }
      .promo-popup-overlay.active .promo-popup-actions .btn {
        opacity: 1;
      }
    }
    @media (max-width: 480px) {
      .promo-popup-card { max-width: 100%; border-radius: 12px; }
      .promo-popup-close { top: 8px; right: 8px; width: 36px; height: 36px; }
      @keyframes promoCardIn {
        0% {
          transform: translate3d(0, 36px, 0) scale(0.9);
          opacity: 0;
        }
        100% {
          transform: translate3d(0, 0, 0) scale(1);
          opacity: 1;
        }
      }
    }
    .whatsapp-float {
      position: fixed; bottom: 22px; left: 22px; z-index: 998;
      background: #25D366; color: white; width: 58px; height: 58px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
      box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5); cursor: pointer; transition: all 0.3s; text-decoration: none;
      border: 2px solid rgba(255,255,255,0.35);
    }
    .whatsapp-float:hover { transform: scale(1.1); background: #1DA851; }
    .whatsapp-float:focus-visible { outline: 3px solid #128C7E; outline-offset: 3px; }

    .chat-widget { position: fixed; bottom: 22px; right: 22px; z-index: 999; }
    .chat-button {
      background: var(--accent-red); color: white; border: 2px solid rgba(255,255,255,0.25);
      width: 58px; height: 58px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
      box-shadow: 0 4px 16px rgba(196, 30, 42, 0.45);
    }
    .chat-button:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 3px; }
    .chat-box { display: none; position: absolute; bottom: 72px; right: 0; width: 330px; background: var(--card-bg); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.2); overflow: hidden; border: 1px solid var(--border-color); }
    .chat-box.active { display: flex; flex-direction: column; }
    .chat-header { background: #0B1F3A; color: white; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; }
    .chat-messages { flex: 1; overflow-y: auto; padding: 13px; max-height: 260px; }
    .chat-message { margin-bottom: 9px; padding: 8px 11px; border-radius: 10px; font-size: 0.86rem; max-width: 88%; }
    .chat-message.user { background: var(--accent-red); color: white; margin-left: auto; }
    .chat-message.bot { background: var(--bg-light); color: var(--text-main); }
    .chat-input { display: flex; padding: 11px; border-top: 1px solid var(--border-color); gap: 7px; }
    .chat-input input { flex: 1; border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 11px; background: var(--bg-light); color: var(--text-main); }
    .chat-input button { background: var(--accent-red); color: white; border: none; padding: 8px 13px; border-radius: 8px; cursor: pointer; }

    .carousel-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2100; flex-direction: column; align-items: center; justify-content: center; }
    .carousel-modal.active { display: flex; }
    .carousel-container { position: relative; width: 90%; max-width: 900px; height: 70vh; background: #000; border-radius: 12px; overflow: hidden; }
    .carousel-main-img { width: 100%; height: 100%; object-fit: contain; }
    .carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--accent-red); color: white; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
    .carousel-prev { left: 14px; }
    .carousel-next { right: 14px; }
    .carousel-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 6px 13px; border-radius: 20px; }
    .carousel-close { position: absolute; top: 16px; right: 16px; background: var(--accent-red); color: white; border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 1.15rem; cursor: pointer; z-index: 20; }
    .carousel-thumbs { display: flex; gap: 9px; justify-content: center; margin-top: 14px; flex-wrap: wrap; max-width: 90%; }
    .carousel-thumb { width: 54px; height: 54px; cursor: pointer; border: 2px solid transparent; border-radius: 6px; overflow: hidden; }
    .carousel-thumb.active, .carousel-thumb:hover { border-color: var(--accent-red); }
    .carousel-thumb img { width: 100%; height: 100%; object-fit: cover; }

    /* Home 3D continuous vehicle showcase */
    .home-3d-section {
      padding: 48px 0 20px; overflow: hidden;
      background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    }
    .home-3d-stage {
      perspective: 1200px; perspective-origin: 50% 50%; height: 320px;
      display: flex; align-items: center; justify-content: center;
      position: relative; margin: 20px auto 10px; max-width: 100%;
    }
    .home-3d-ring {
      position: relative; width: 220px; height: 150px;
      transform-style: preserve-3d; animation: home3dSpin 28s linear infinite;
    }
    .home-3d-ring:hover { animation-play-state: paused; }
    .home-3d-item {
      position: absolute; top: 0; left: 0; width: 220px; height: 150px;
      border-radius: 14px; overflow: hidden; border: 2px solid rgba(255,255,255,0.25);
      box-shadow: 0 12px 40px rgba(11,31,58,0.35); backface-visibility: hidden; cursor: pointer;
    }
    .home-3d-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .home-3d-item .cap {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(11,31,58,0.92));
      color: white; font-size: 0.72rem; font-weight: 600; padding: 18px 10px 8px;
      text-align: center; font-family: var(--font-heading);
    }
    .home-3d-hint { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
    @keyframes home3dSpin {
      from { transform: rotateY(0deg); }
      to { transform: rotateY(360deg); }
    }
    @media (max-width: 640px) {
      .home-3d-stage { height: 260px; }
      .home-3d-ring, .home-3d-item { width: 160px; height: 110px; }
    }


    .form-logo-wrap { text-align: center; margin-bottom: 22px; }
    .form-logo-wrap img { height: 96px; width: auto; max-width: 320px; object-fit: contain; }
    .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 12px; }
    .service-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-soft); transition: var(--transition); }
    .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
    .service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
    .service-card p { font-size: 0.88rem; color: var(--text-muted); }
    .service-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; margin-bottom: 12px; }
    .service-photo { width: 100%; height: 140px; border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: #0B1F3A; }
    .service-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
    .service-card:hover .service-photo img { transform: scale(1.05); }
    .btn-admin-footer {
      background: #C41E2A; color: #fff !important; border: none; padding: 10px 18px; border-radius: 10px;
      font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; cursor: pointer;
      display: inline-flex; align-items: center; gap: 8px; transition: var(--transition);
    }
    .btn-admin-footer:hover { background: #9E1822; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(196,30,42,0.35); color: #fff !important; }

    .value-props { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 40px 0 10px; }
    .value-card { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 26px; }
    .value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
    .value-card p { color: var(--text-muted); font-size: 0.95rem; }
    .brands-strip { margin: 28px 0 36px; }
    .brands-strip h3 { text-align: center; margin-bottom: 16px; font-size: 1.25rem; }
    .brand-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
    .brands-strip { margin: 28px 0 36px; }
    .brands-strip h3 { text-align: center; margin-bottom: 16px; font-size: 1.25rem; }
    
    .brand-logo-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 8px; text-align: center; cursor: pointer; transition: var(--transition); min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
    .brand-logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent-red); }
    .brand-logo-card img { width: 48px; height: 48px; object-fit: contain; }
    #inventoryBrandCategories .brand-logo-grid,
    #homeBrandCategories .brand-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
    .brand-category-block { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 12px; }
    .brand-logo-card span { font-size: 0.75rem; font-weight: 700; color: var(--primary-dark); font-family: var(--font-heading); line-height: 1.2; }
    [data-theme="dark"] .brand-logo-card { background: #fff; }
    .domain-storage-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 10px; }
    @media (max-width: 900px) {
      .nav-menu-btn { display: inline-flex; order: -1; }
      .nav-links { display: none !important; }
      .nav-container { height: 80px; gap: 8px; padding: 0 12px; }
      .navbar { height: 80px; }
      .logo { margin-left: 2px; flex: 1; }
      .logo-img { height: 64px !important; max-width: 200px !important; margin: 0; display: block; }
      .form-logo-wrap img { height: 64px; }
      body { padding-top: 80px; }
      .hero { margin-top: 0; padding: 40px 0 48px; }
    }
    @media (min-width: 901px) {
      .nav-drawer { display: none !important; }
      .nav-menu-btn { display: none !important; }
    }

    @media (max-width: 768px) {
      .hero h1 { font-size: 2rem; }
      .quote-grid, .calc-grid { grid-template-columns: 1fr; }
    }

    
    /* ---- Mobile responsive polish ---- */
    @media (max-width: 768px) {
      .container { padding-left: 14px; padding-right: 14px; }
      .hero { padding: 36px 0 44px; }
      .hero .btn, .hero .btn-whatsapp { width: 100%; max-width: 320px; margin: 6px auto; display: inline-flex; justify-content: center; }
      .hero-content .btn-row, .hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
      .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
      .admin-table, .table-responsive { font-size: 0.78rem; }
      .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .quote-grid, .calc-grid, .filter-bar { grid-template-columns: 1fr !important; }
      .page-section { padding-top: 24px; padding-bottom: 32px; }
      .card-actions { flex-wrap: wrap; }
      .card-actions .btn, .card-actions button { flex: 1 1 45%; min-width: 120px; }
      .nav-drawer { max-width: 100%; }
      .toast-stack { left: 12px; right: 12px; width: auto; max-width: none; bottom: 80px; }
      .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 14px; }
      #page-account .container { max-width: 100%; }
      .form-control, select.form-control, input.form-control, textarea.form-control { font-size: 16px !important; } /* prevent iOS zoom */
      .admin-tab-btn { font-size: 0.75rem; padding: 8px 10px; }
      .vehicle-card .card-title { font-size: 1rem; }
      footer .footer-grid, .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
      .social-links { justify-content: center; }
    }
    @media (max-width: 480px) {
      .stats-grid { grid-template-columns: 1fr !important; }
      .brand-logo-card { width: calc(50% - 8px); max-width: 140px; }
      .hero h1 { font-size: 1.55rem; line-height: 1.25; }
      .hero p { font-size: 0.95rem; }
    }

    /* Center brand logos on mobile */
    @media (max-width: 768px) {
      .brand-logo-grid,
      #inventoryBrandCategories .brand-logo-grid,
      #homeBrandCategories .brand-logo-grid {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
      }
      .brand-logo-card {
        width: calc(33.333% - 10px);
        max-width: 120px;
        min-width: 88px;
        margin: 0 auto;
      }
      .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        text-align: center;
      }
      .logo-img {
        margin-left: auto !important;
        margin-right: auto !important;
      }
      .nav-container {
        justify-content: center;
      }
      .form-logo-wrap {
        display: flex;
        justify-content: center;
        text-align: center;
      }
      .form-logo-wrap img {
        margin: 0 auto;
      }
      .hero-content { text-align: center; }
      .hero h1 { font-size: 1.85rem; }
      .hero p { font-size: 1rem; }
    }

  
    /* API status + toast notifications */
    .api-status-bar {
      position: fixed; top: 96px; left: 0; right: 0; z-index: 1100;
      padding: 8px 16px; text-align: center; font-size: 0.82rem; font-weight: 600;
      display: none; align-items: center; justify-content: center; gap: 8px;
    }
    .api-status-bar.show { display: none !important; } /* hide api status from public UI */
    .api-status-bar.offline { background: #FEF3C7; color: #92400E; border-bottom: 1px solid #FCD34D; }
    .api-status-bar.error { background: #FEE2E2; color: #991B1B; border-bottom: 1px solid #FECACA; }
    .api-status-bar.ok { background: #ECFDF5; color: #065F46; border-bottom: 1px solid #A7F3D0; }
    [data-theme="dark"] .api-status-bar.offline { background: #78350F; color: #FCD34D; }
    [data-theme="dark"] .api-status-bar.error { background: #7F1D1D; color: #FECACA; }
    [data-theme="dark"] .api-status-bar.ok { background: #064E3B; color: #6EE7B7; }
    .toast-stack {
      position: fixed; bottom: 90px; right: 22px; z-index: 3000;
      display: flex; flex-direction: column; gap: 10px; max-width: 360px; width: calc(100% - 40px);
      pointer-events: none;
    }
    .toast {
      pointer-events: auto; background: var(--card-bg); color: var(--text-main);
      border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px;
      box-shadow: var(--shadow-hover); display: flex; gap: 10px; align-items: flex-start;
      animation: toastIn 0.25s ease;
    }
    .toast.success { border-left: 4px solid #10B981; }
    .toast.error { border-left: 4px solid #EF4444; }
    .toast.warn { border-left: 4px solid #F59E0B; }
    .toast.info { border-left: 4px solid #3B82F6; }
    .toast .toast-body { flex: 1; font-size: 0.86rem; line-height: 1.4; }
    .toast .toast-title { font-weight: 700; margin-bottom: 2px; font-family: var(--font-heading); font-size: 0.88rem; }
    .toast button.toast-close {
      background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0 2px;
    }
    @keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    .btn.loading { opacity: 0.75; pointer-events: none; position: relative; }
    .btn.loading::after {
      content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
      border-radius: 50%; display: inline-block; margin-left: 8px; animation: spin 0.7s linear infinite; vertical-align: middle;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

  


    .blog-card {
      background: var(--card-bg, #fff);
      border: 1px solid rgba(0,0,0,0.08);
      border-radius: 12px;
      padding: 22px 24px;
      transition: box-shadow .2s, transform .2s;
      cursor: pointer;
    }
    .blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
    [data-theme="dark"] .blog-card { border-color: rgba(255,255,255,0.08); }
    .blog-card h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--primary-dark, #0B1F3A); }
    .blog-card .blog-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
    .blog-card .blog-excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
    .blog-post-body p { margin-bottom: 1em; }
    .blog-post-body img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
    #adminBlogEditor textarea { min-height: 180px; font-family: inherit; }
