    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #0e1114;
      --surface:  #171b1f;
      --surface2: #20262b;
      --border:   #2d343b;
      --text:     #edf0f2;
      --muted:    #8d979f;
      --accent:   #ffc400;
      --accent2:  #e8b200;
      --green:    #7a8c5f;
      --green2:   #64744d;
      --wish:     #e05252;
      --owned:    #50c87a;
      --danger:   #e05252;
      --radius:   8px;
      --sidebar-w: 260px;
    }

    body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5; }
    a { color: var(--accent); text-decoration: none; }
    a:hover { color: var(--accent2); }

    /* NAV */
    nav {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 0 1.5rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      height: 56px;
      position: sticky;
      top: 0;
      z-index: 200;
    }
    .logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent); letter-spacing: .02em; text-transform: uppercase; }
    .logo span { color: var(--text); }
    .nav-links { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
    .nav-links a { color: var(--muted); font-size: 0.875rem; transition: color .15s; }
    .nav-links a:hover, .nav-links a.active { color: var(--text); }

    .nav-badge-wrap { position: relative; display: inline-flex; }
    .nav-badge {
      position: absolute; top: -6px; right: -8px;
      background: var(--wish); color: #fff;
      font-size: .6rem; font-weight: 700;
      min-width: 16px; height: 16px;
      border-radius: 99px; padding: 0 3px;
      display: none; align-items: center; justify-content: center;
      line-height: 1;
    }
    .nav-badge.owned { background: var(--owned); }

    /* Car pill in nav */
    .car-pill {
      font-size: .78rem; font-weight: 600; padding: .3rem .7rem;
      border-radius: 99px; border: 1.5px solid var(--border);
      color: var(--muted); cursor: pointer; transition: all .15s;
      background: transparent; white-space: nowrap;
    }
    .car-pill:hover { border-color: var(--accent); color: var(--accent); }
    .car-pill--set { border-color: var(--accent); color: var(--accent); background: rgba(255,196,0,.1); }

    /* LAYOUT */
    .page { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; }

    /* HERO */
    .hero {
      width: 100%;
      background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(255,196,0,.10), transparent 60%),
        linear-gradient(135deg, #0b0e11 0%, #14161a 55%, #0b0e11 100%);
      border-bottom: 1px solid var(--border);
      padding: 4rem 2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,196,0,.015) 40px,
        rgba(255,196,0,.015) 80px
      );
      pointer-events: none;
    }
    .hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
    .hero-eyebrow {
      font-size: .8rem; font-weight: 600; letter-spacing: .15em;
      text-transform: uppercase; color: var(--accent); margin-bottom: .75rem;
    }
    .hero-title {
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 800; font-size: clamp(2.8rem, 7vw, 5rem);
      text-transform: uppercase; letter-spacing: .02em;
      color: var(--text); line-height: 1;
      margin-bottom: .75rem;
    }
    .hero-title span { color: var(--accent); }
    .hero-sub {
      font-size: 1rem; color: var(--muted); margin-bottom: 2rem;
      font-weight: 500; letter-spacing: .04em;
    }
    .hero-cta {
      display: inline-flex; align-items: center; gap: .5rem;
      padding: .75rem 2rem; background: var(--accent); color: #000;
      font-weight: 700; font-size: .95rem; border-radius: var(--radius);
      text-decoration: none; transition: background .15s;
      text-transform: uppercase; letter-spacing: .05em;
    }
    .hero-cta:hover { background: var(--accent2); color: #000; }

    /* BROWSE LAYOUT */
    .browse-layout {
      display: flex;
      gap: 0;
      max-width: 1280px;
      margin: 0 auto;
      min-height: calc(100vh - 56px);
    }

    /* SIDEBAR */
    .sidebar {
      width: var(--sidebar-w);
      min-width: var(--sidebar-w);
      background: var(--surface);
      border-right: 1px solid var(--border);
      padding: 1.5rem 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      position: sticky;
      top: 56px;
      height: calc(100vh - 56px);
      overflow-y: auto;
    }
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-track { background: transparent; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    .sidebar-search {
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--radius); color: var(--text);
      padding: .55rem .75rem; font-size: .875rem; outline: none; width: 100%;
    }
    .sidebar-search:focus { border-color: var(--accent); }

    .filter-section { display: flex; flex-direction: column; gap: .6rem; }
    .filter-label {
      font-size: .7rem; font-weight: 600; color: var(--muted);
      text-transform: uppercase; letter-spacing: .08em;
    }

    /* Vehicle pills */
    .vehicle-pills { display: flex; flex-direction: column; gap: .3rem; }
    .vehicle-pill {
      display: flex; align-items: center; gap: .5rem;
      padding: .4rem .65rem; border-radius: 6px;
      border: 1px solid var(--border); background: transparent;
      color: var(--muted); font-size: .82rem; cursor: pointer;
      transition: all .15s; width: 100%;
    }
    .vehicle-pill:hover { border-color: var(--accent); color: var(--accent); }
    .vehicle-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(255,196,0,.08); }
    .vehicle-pill input { display: none; }

    /* Category list */
    .cat-list { display: flex; flex-direction: column; }
    .cat-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: .35rem .5rem; border-radius: 6px;
      color: var(--muted); font-size: .82rem; cursor: pointer;
      text-decoration: none; transition: all .15s;
    }
    .cat-item:hover { background: var(--surface2); color: var(--text); }
    .cat-item.active { color: var(--accent); background: rgba(255,196,0,.08); }
    .cat-count { font-size: .7rem; color: var(--muted); }

    /* Source pills */
    .source-pills { display: flex; flex-direction: column; gap: .25rem; }
    .source-pill {
      display: flex; align-items: center; gap: .5rem;
      padding: .3rem .5rem; border-radius: 6px;
      color: var(--muted); font-size: .8rem; cursor: pointer;
      transition: all .15s;
    }
    .source-pill:hover { color: var(--text); }
    .source-pill input { accent-color: var(--accent); }

    .clear-link {
      font-size: .8rem; color: var(--muted); text-align: center;
      padding: .4rem; display: block;
      border: 1px solid var(--border); border-radius: 6px;
      transition: all .15s;
    }
    .clear-link:hover { color: var(--accent); border-color: var(--accent); }

    /* UNIFIED FILTER CHECKBOXES */
    .filter-checks { display: flex; flex-direction: column; gap: .15rem; }
    .filter-check-item {
      display: flex; align-items: center; gap: .5rem;
      padding: .3rem .4rem; border-radius: 5px;
      color: var(--muted); font-size: .82rem; cursor: pointer;
      transition: background .12s; user-select: none;
    }
    .filter-check-item:hover { background: var(--surface2); color: var(--text); }
    .filter-check-item input[type=checkbox] { accent-color: var(--accent); flex-shrink: 0; }
    .filter-check-item:has(input:checked) { color: var(--text); }
    .filter-count {
      margin-left: auto; font-size: .7rem; color: var(--muted);
      background: var(--surface2); border-radius: 99px;
      padding: .05rem .45rem; flex-shrink: 0;
    }
    .filter-all-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: .3rem .4rem; font-size: .78rem; color: var(--muted);
      border-top: 1px solid var(--border); margin-top: .25rem; padding-top: .4rem;
    }

    /* ACTIVE FILTER PILLS */
    .active-filters {
      display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
    }
    .filter-pills-label { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
    .filter-pill {
      display: inline-flex; align-items: center;
      padding: .2rem .55rem; border-radius: 99px;
      background: rgba(255,196,0,.12); color: var(--accent);
      border: 1px solid rgba(255,196,0,.3); font-size: .75rem; font-weight: 500;
      text-decoration: none; cursor: pointer; transition: all .12s;
    }
    .filter-pill:hover { background: rgba(255,196,0,.22); color: var(--accent); }
    .filter-clear {
      font-size: .72rem; color: var(--muted); cursor: pointer;
      background: none; border: none; padding: .2rem .3rem;
      text-decoration: underline; transition: color .12s;
    }
    .filter-clear:hover { color: var(--text); }

    /* MODE HEADER (wishlist / garage) */
    .mode-header {
      max-width: 1280px; margin: 0 auto;
      padding: 2rem 1.5rem 1.25rem;
    }
    .mode-header h1 {
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 2.5rem; font-weight: 800; text-transform: uppercase; line-height: 1;
    }
    .mode-summary {
      color: var(--muted); font-size: .875rem; margin-top: .3rem; min-height: 1.2em;
    }

    /* BROWSE MAIN */
    .browse-main { flex: 1; padding: 1.5rem; min-width: 0; }

    /* FILTER TOGGLE (mobile) */
    .filter-toggle-btn {
      display: none;
      align-items: center; gap: .5rem;
      padding: .45rem .9rem; border-radius: var(--radius);
      border: 1px solid var(--border); background: var(--surface);
      color: var(--muted); font-size: .85rem; font-weight: 500; cursor: pointer;
      transition: all .15s;
    }
    .filter-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

    /* SIDEBAR OVERLAY (mobile) */
    .sidebar-overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.5); z-index: 299;
    }
    .sidebar-overlay.active { display: block; }

    /* BUTTONS */
    .btn {
      display: inline-flex; align-items: center; gap: .4rem;
      padding: .5rem 1rem; border-radius: var(--radius);
      font-size: .875rem; font-weight: 500; cursor: pointer; border: none; transition: opacity .15s;
      text-decoration: none;
    }
    .btn:hover { opacity: .85; }
    .btn-primary { background: var(--accent); color: #000; }
    .btn-secondary { background: var(--surface2); color: var(--text); }
    .btn-danger { background: var(--danger); color: #fff; }
    .btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
    .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
    .btn-my-car {
      width: 100%; justify-content: center;
      background: rgba(255,196,0,.12); border: 1.5px solid var(--accent);
      color: var(--accent); font-size: .85rem; padding: .5rem; border-radius: var(--radius);
      cursor: pointer; font-weight: 600; transition: all .15s;
    }
    .btn-my-car:hover { background: rgba(255,196,0,.2); }

    /* GRID */
    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

    /* CARD */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,.3);
      transition: box-shadow .2s, border-color .2s, transform .2s;
      display: flex; flex-direction: column; position: relative;
    }
    .card:hover {
      border-color: var(--accent);
      box-shadow: 0 6px 24px rgba(255,196,0,.15);
      transform: translateY(-3px);
    }
    .card a { color: inherit; }
    .card--wished { border-color: rgba(224,82,82,.5); }
    .card--owned { border-color: rgba(80,200,122,.5); }

    .card-img {
      width: 100%; aspect-ratio: 1/1; object-fit: cover;
      background: var(--surface2);
      display: flex; align-items: center; justify-content: center;
      color: var(--muted); font-size: 2.5rem; position: relative; overflow: hidden;
    }
    .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

    /* Hover overlay */
    .card-hover-overlay {
      position: absolute; inset: 0;
      background: rgba(0,0,0,.72);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: .6rem;
      opacity: 0; transition: opacity .2s;
      pointer-events: none;
    }
    .card:hover .card-hover-overlay { opacity: 1; pointer-events: auto; }
    .overlay-view-btn {
      padding: .5rem 1.2rem; background: var(--accent); color: #000;
      font-weight: 700; font-size: .85rem; border-radius: 99px;
      text-decoration: none; transition: background .15s;
    }
    .overlay-view-btn:hover { background: var(--accent2); color: #000; }

    .card-actions {
      position: absolute; top: .5rem; right: .5rem;
      display: flex; gap: .35rem; z-index: 2;
    }
    .action-btn {
      width: 32px; height: 32px; border-radius: 50%;
      border: none; cursor: pointer; font-size: 1rem;
      display: flex; align-items: center; justify-content: center;
      background: rgba(20,20,20,.8); backdrop-filter: blur(4px);
      color: var(--muted); transition: all .15s;
    }
    .action-btn:hover { transform: scale(1.15); }
    .action-btn.wish-btn:hover, .action-btn.wish-btn.active { color: var(--wish); background: rgba(224,82,82,.2); }
    .action-btn.own-btn:hover, .action-btn.own-btn.active { color: var(--owned); background: rgba(80,200,122,.2); }
    .action-btn.wish-btn.active { color: var(--wish); }
    .action-btn.own-btn.active { color: var(--owned); }
    .action-btn.edit-btn { font-size: .8rem; color: var(--muted); text-decoration: none; }
    .action-btn.edit-btn:hover { color: var(--accent); background: rgba(255,196,0,.2); }

    @keyframes pulse-anim { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }
    .action-btn.pulse { animation: pulse-anim .35s ease; }

    .rig-badge {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: rgba(80,200,122,.85); color: #000;
      font-size: .7rem; font-weight: 700; text-align: center;
      padding: .25rem; letter-spacing: .03em;
    }

    .card-body { padding: .85rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
    .card-title { font-weight: 600; font-size: .88rem; line-height: 1.3; }
    .card-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
    .badge {
      font-size: .68rem; font-weight: 500; padding: .15rem .5rem;
      border-radius: 99px; background: var(--surface2);
      color: var(--muted); border: 1px solid var(--border);
    }
    .badge-accent { background: rgba(255,196,0,.12); color: var(--accent); border-color: rgba(255,196,0,.25); }
    .badge-green { background: rgba(74,124,89,.15); color: #6db882; border-color: rgba(74,124,89,.3); }
    .badge-source { background: rgba(255,255,255,.04); }
    .card-price { font-weight: 700; color: var(--accent); font-size: .88rem; }
    .card-desc { font-size: .78rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* ITEM DETAIL */
    .item-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
    @media (max-width: 768px) { .item-layout { grid-template-columns: 1fr; } }
    .item-gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; max-height: 480px; }
    .item-gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
    .item-gallery-thumbs img { width: 72px; height: 60px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; max-height: unset; }
    .item-gallery-thumbs img:hover { border-color: var(--accent); }

    .item-sidebar {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1.5rem;
      display: flex; flex-direction: column; gap: 1rem;
      position: sticky; top: 72px;
    }
    .item-price { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
    .item-meta-row { display: flex; flex-direction: column; gap: .25rem; }
    .item-meta-row .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
    .item-meta-row .value { font-size: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; }
    .item-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
    .item-desc { color: var(--muted); line-height: 1.7; font-size: .9rem; white-space: pre-wrap; }

    /* Floating admin edit button */
    .admin-edit-fab {
      position: fixed; top: 70px; right: 1.5rem;
      padding: .5rem 1rem; background: rgba(255,196,0,.15);
      border: 1.5px solid var(--accent); color: var(--accent);
      border-radius: var(--radius); font-size: .85rem; font-weight: 600;
      text-decoration: none; z-index: 100; transition: all .15s;
      display: flex; align-items: center; gap: .4rem;
      backdrop-filter: blur(4px);
    }
    .admin-edit-fab:hover { background: rgba(255,196,0,.25); color: var(--accent); }

    .visit-btn {
      display: block; width: 100%; padding: .875rem; text-align: center;
      background: var(--accent); color: #000; font-weight: 700; font-size: 1rem;
      border-radius: var(--radius); transition: background .15s;
    }
    .visit-btn:hover { background: var(--accent2); color: #000; }

    .item-actions { display: flex; gap: .75rem; }
    .item-action-btn {
      flex: 1; padding: .65rem; border-radius: var(--radius);
      border: 1.5px solid var(--border); background: transparent;
      font-size: .875rem; font-weight: 600; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: .4rem;
      color: var(--muted); transition: all .15s;
    }
    .item-action-btn:hover { border-color: var(--muted); color: var(--text); }
    .item-action-btn.wish-btn:hover, .item-action-btn.wish-btn.active {
      border-color: var(--wish); color: var(--wish);
      background: rgba(224,82,82,.1);
    }
    .item-action-btn.own-btn:hover, .item-action-btn.own-btn.active {
      border-color: var(--owned); color: var(--owned);
      background: rgba(80,200,122,.1);
    }

    /* EMPTY */
    .empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
    .empty h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--text); }

    /* SECTION HEADER */
    .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
    .section-header h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
    .count { color: var(--muted); font-size: .875rem; font-weight: 400; font-family: 'Inter', sans-serif; text-transform: none; }

    /* ADMIN TABLE */
    table { width: 100%; border-collapse: collapse; font-size: .875rem; }
    th { text-align: left; padding: .6rem .75rem; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
    td { padding: .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
    tr:hover td { background: var(--surface2); }
    td img { width: 48px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }

    /* FORM */
    .form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width: 680px; }
    .form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
    label { font-size: .8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
    input[type=text], input[type=url], select, textarea {
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: 6px; color: var(--text);
      padding: .6rem .75rem; font-size: .875rem; font-family: inherit; outline: none; width: 100%;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--accent); }
    textarea { resize: vertical; min-height: 100px; }
    .checkbox-group { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }
    .checkbox-group label {
      display: flex; align-items: center; gap: .4rem;
      text-transform: none; letter-spacing: 0; font-size: .875rem;
      cursor: pointer; color: var(--text);
      background: var(--surface2); border: 1px solid var(--border);
      padding: .35rem .75rem; border-radius: 99px;
    }
    .checkbox-group label:has(input:checked) { border-color: var(--accent); background: rgba(255,196,0,.1); }
    .alert { padding: .75rem 1rem; border-radius: 6px; font-size: .875rem; margin-bottom: 1rem; }
    .alert-error { background: rgba(224,82,82,.15); border: 1px solid rgba(224,82,82,.4); color: #ff8080; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    @media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

    /* PAGE HEADER */
    .page-header { margin-bottom: 2rem; }
    .page-header h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; text-transform: uppercase; }
    .page-header p { color: var(--muted); font-size: .875rem; margin-top: .25rem; }
    .breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
    .breadcrumb a { color: var(--muted); }
    .breadcrumb a:hover { color: var(--accent); }

    .no-img { width: 100%; aspect-ratio: 4/3; background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2.5rem; border-radius: var(--radius); }
    .divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

    /* CAR PROMPT (first visit) */
    .car-prompt {
      background: linear-gradient(135deg, rgba(255,196,0,.1), rgba(255,196,0,.03));
      border: 1px solid rgba(255,196,0,.3); border-radius: var(--radius);
      padding: 1rem 1.25rem; margin-bottom: 1.25rem;
      display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
      opacity: 0; transform: translateY(-8px);
      transition: opacity .4s, transform .4s;
      pointer-events: none;
    }
    .car-prompt.visible { opacity: 1; transform: none; pointer-events: auto; }
    .car-prompt p { font-size: .875rem; flex: 1; min-width: 160px; }
    .car-prompt p strong { color: var(--accent); }
    .car-prompt-select { display: flex; gap: .4rem; flex-wrap: wrap; }
    .car-option-btn {
      padding: .35rem .8rem; border-radius: 99px;
      border: 1.5px solid var(--border); background: var(--surface);
      color: var(--text); font-size: .82rem; font-weight: 600;
      cursor: pointer; transition: all .15s;
    }
    .car-option-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,196,0,.1); }

    /* CAR MODAL */
    .modal-backdrop {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.7); z-index: 300;
      align-items: center; justify-content: center;
    }
    .modal-backdrop.open { display: flex; }
    .modal {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 12px; padding: 2rem; width: 90%; max-width: 440px;
    }
    .modal h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; text-transform: uppercase; margin-bottom: .4rem; }
    .modal p { color: var(--muted); font-size: .875rem; margin-bottom: 1.5rem; }
    .car-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
    .car-card {
      padding: 1rem; border-radius: var(--radius);
      border: 2px solid var(--border); background: var(--surface2);
      color: inherit; font: inherit;
      cursor: pointer; text-align: center; transition: all .15s;
      width: 100%;
    }
    .car-card:hover { border-color: var(--accent); }
    .car-card .gen { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--accent); text-transform: uppercase; }
    .car-card .years { font-size: .72rem; color: var(--muted); margin-top: .2rem; }
    .car-card.selected { border-color: var(--accent); background: rgba(255,196,0,.1); }

    /* WISHLIST / GARAGE HERO STATS */
    .hero-stats {
      display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
    }
    .stat-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1rem 1.5rem;
      display: flex; flex-direction: column; gap: .2rem;
    }
    .stat-card .stat-val { font-size: 2rem; font-weight: 700; color: var(--accent); }
    .stat-card .stat-lbl { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

    /* RESPONSIVE */
    @media (max-width: 900px) {
      .sidebar {
        position: fixed; left: -100%; top: 56px;
        height: calc(100vh - 56px); z-index: 300;
        transition: left .25s ease;
        width: min(var(--sidebar-w), 85vw);
      }
      .sidebar.open { left: 0; }
      .filter-toggle-btn { display: flex; }
      .browse-main { padding: 1rem; }
    }

    @media (max-width: 600px) {
      .hero { padding: 2.5rem 1rem; }
      .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
      .card-body { padding: .65rem; }
    }

/* ─────────────────────────────────────────────────────────────
   Design pass additions
   ───────────────────────────────────────────────────────────── */

/* Visible keyboard focus across the whole UI. Mouse users still
   get nothing thanks to :focus-visible. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screen-reader-only label, used on icon-only buttons. */
.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;
}

/* Respect prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip-to-content link for keyboard users. */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: #000;
  padding: .75rem 1rem; z-index: 999; font-weight: 700;
  border-bottom-right-radius: 6px;
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────────────────────────────────────
   Brand pass — Kinetic Yellow / Jungle Green / Bluish Black
   ───────────────────────────────────────────────────────────── */

/* Grille badge: the Jimny five-slot grille + round headlamps,
   the one visual everyone recognises. Used in hero, footer, 404. */
.grille-badge {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .55rem .9rem;
  border: 2px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.grille-badge .lamp {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid var(--accent);
  background: rgba(255,196,0,.12);
}
.grille-badge .slats { display: inline-flex; gap: 4px; }
.grille-badge .slats i {
  display: block; width: 5px; height: 22px;
  border-radius: 3px; background: var(--border);
}
.hero .grille-badge { margin-bottom: 1.4rem; }
.hero .grille-badge .slats i { background: #3a424a; }

/* Hero stats strip */
.hero-stats-row {
  display: flex; justify-content: center; gap: 2.5rem;
  margin: 1.75rem 0 2rem; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: .1rem; }
.hero-stat b {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem; font-weight: 700; color: var(--accent); line-height: 1;
}
.hero-stat span {
  font-size: .72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em;
}
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-cta--ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.hero-cta--ghost:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--muted); }

/* Card image fallback: beetle watermark sits behind every image, so
   a slow or dead image shows a branded placeholder, never alt-text soup. */
.card-img { position: relative; }
.card-img::before {
  content: '🪲';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; opacity: .28;
}
.card-img img { position: relative; z-index: 1; }
.card-img.img-broken img { display: none; }

.item-gallery { position: relative; }
.gallery-fallback {
  display: none;
  aspect-ratio: 4/3; width: 100%; max-height: 420px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  color: var(--muted); font-size: .85rem;
  background: var(--surface);
}
.gallery-fallback .big { font-size: 3rem; opacity: .5; }
.item-gallery.img-broken > img { display: none; }
.item-gallery.img-broken .gallery-fallback { display: flex; }

/* Featured sash */
.feat-sash {
  position: absolute; top: .6rem; left: -.4rem; z-index: 3;
  background: var(--accent); color: #14161a;
  font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .22rem .6rem .22rem .5rem;
  border-radius: 3px 99px 99px 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Jungle-green category badge — yellow stays reserved for price + CTAs */
.badge-cat {
  background: rgba(122,140,95,.16); color: #a8bb8c;
  border-color: rgba(122,140,95,.35);
}

/* Card hover overlay only where hover exists (not touch) */
@media (hover: none) {
  .card-hover-overlay { display: none; }
  .card:hover { transform: none; }
}

/* Related items rail on item pages */
.related-rail { margin-top: 3rem; }
.related-rail h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.related-rail h2::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* FOOTER */
footer.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand .logo { font-size: 1.15rem; }
.footer-brand p {
  color: var(--muted); font-size: .82rem; line-height: 1.6;
  margin-top: .75rem; max-width: 34ch;
}
.footer-brand .grille-badge { margin-top: 1.1rem; transform: scale(.85); transform-origin: left center; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: .8rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col a { color: var(--muted); font-size: .84rem; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-strip {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: 1280px; margin: 0 auto;
}
.footer-strip p { color: var(--muted); font-size: .75rem; }
.footer-strip .za { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 404 */
.notfound {
  max-width: 480px; margin: 3rem auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.notfound h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem; font-weight: 800; text-transform: uppercase;
}
.notfound p { color: var(--muted); font-size: .95rem; }
.notfound-actions { display: flex; gap: .75rem; margin-top: .5rem; flex-wrap: wrap; justify-content: center; }
.notfound-search { width: 100%; margin-top: 1rem; }

/* Tighter mobile nav: never wrap (progressive link shedding lives in
   the editorial section's nav cascade below) */
@media (max-width: 640px) {
  nav { padding: 0 .9rem; gap: .6rem; }
  .nav-links { gap: .8rem; }
  .nav-links a { font-size: .82rem; white-space: nowrap; }
  .car-pill { font-size: .72rem; padding: .28rem .55rem; }
  .logo { font-size: 1.15rem; }
}

/* ─────────────────────────────────────────────────────────────
   Editorial: outfitters directory, stories, homepage modules
   ───────────────────────────────────────────────────────────── */

.directory-note {
  color: var(--muted); font-size: .85rem; max-width: 72ch;
  border-left: 3px solid var(--green); padding-left: .9rem;
  margin-bottom: 1.75rem;
}

/* Outfitters: list-first layout, map beside it on desktop */
.outfitters-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 1.5rem; align-items: start; }
.outfitter-list { display: flex; flex-direction: column; gap: 1rem; }

.outfitter-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .2s;
}
.outfitter-card:target, .outfitter-card.map-highlight { border-color: var(--accent); }
.outfitter-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.outfitter-head h1, .outfitter-head h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em;
}
.outfitter-head h2 a { color: var(--text); }
.outfitter-head h2 a:hover { color: var(--accent); }
.outfitter-detail .outfitter-head h1 { font-size: 2.2rem; }
.outfitter-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.outfitter-summary { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.outfitter-summary--lead { color: var(--text); font-size: 1rem; max-width: 65ch; }
.outfitter-specialties { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip {
  font-size: .72rem; padding: .18rem .6rem; border-radius: 99px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
}
.outfitter-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .35rem; }

.outfitter-map-panel { position: sticky; top: 72px; }
.map-toggle-btn { display: none; width: 100%; justify-content: center; }
.outfitter-map-wrap { display: flex; flex-direction: column; gap: .5rem; }
#outfitter-map {
  width: 100%; aspect-ratio: 4/5; max-height: 560px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface);
}
#outfitter-map:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-note { color: var(--muted); font-size: .75rem; line-height: 1.5; }

.detail-subhead {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em;
  margin: 1.5rem 0 .6rem;
}
.why-list { padding-left: 1.2rem; color: var(--muted); font-size: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.listing-provenance { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.listing-provenance ul { padding-left: 1.2rem; margin-top: .35rem; }
.listing-provenance a { word-break: break-all; }
.outfitter-detail { max-width: 760px; display: flex; flex-direction: column; gap: .8rem; }

@media (max-width: 860px) {
  .outfitters-layout { grid-template-columns: 1fr; }
  .outfitter-map-panel { position: static; }
  .map-toggle-btn { display: inline-flex; }
  .outfitter-map-wrap { display: none; }
  .outfitter-map-wrap.open { display: flex; }
  #outfitter-map { aspect-ratio: 4/3; }
}

/* Stories */
.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.story-card {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  color: inherit; transition: border-color .2s, transform .2s;
}
.story-card:hover { border-color: var(--accent); transform: translateY(-3px); color: inherit; }
.story-card picture, .story-card img {
  display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover;
}
.story-card--draft { opacity: .75; border-style: dashed; }
.story-card-body { padding: 1rem 1.2rem 1.2rem; }
.story-card-body h2, .story-card-body h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em;
  margin-top: .3rem;
}
.story-card-body p { color: var(--muted); font-size: .88rem; }

/* Story detail */
.draft-banner {
  background: rgba(255,196,0,.12); border-bottom: 1px solid rgba(255,196,0,.4);
  color: var(--accent); font-size: .82rem; font-weight: 600;
  text-align: center; padding: .5rem 1rem;
}
.story-hero { position: relative; max-height: 68vh; overflow: hidden; border-bottom: 1px solid var(--border); }
.story-hero picture, .story-hero img { display: block; width: 100%; max-height: 68vh; object-fit: cover; }
.story-hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(10,12,14,.82) 0%, rgba(10,12,14,.25) 40%, transparent 70%);
}
.story-hero-text { max-width: 1280px; margin: 0 auto; width: 100%; padding: 2rem 1.5rem; }
.story-hero-text h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.5rem); text-transform: uppercase; line-height: 1;
}
.story-hero-text p { color: var(--accent); font-weight: 600; font-size: 1.05rem; margin-top: .3rem; }

.story-page { max-width: 820px; }
.story-fact-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.story-intro { font-size: 1.15rem; line-height: 1.7; color: var(--text); margin-bottom: 2rem; }
.story-section { margin-bottom: 2.25rem; }
.story-section h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: .75rem;
}
.story-body { color: var(--muted); line-height: 1.75; font-size: .95rem; white-space: pre-wrap; }
.story-figure { margin: 1.25rem 0 0; }
.story-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; }
.story-figure figcaption { color: var(--muted); font-size: .78rem; margin-top: .5rem; }
.story-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .story-gallery { grid-template-columns: 1fr; } }

/* Homepage editorial modules */
.home-module { border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.home-module--alt { background: var(--surface); }
.home-module-inner { max-width: 1280px; margin: 0 auto; }
.home-module-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.home-module-head h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em;
}
.module-more { font-size: .85rem; font-weight: 600; }
.stories-grid--home { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.outfitter-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.outfitter-mini-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; color: inherit; display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .2s, transform .2s;
}
.home-module--alt .outfitter-mini-card { background: var(--surface2); }
.outfitter-mini-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.outfitter-mini-card h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em;
}
.outfitter-mini-card p {
  color: var(--muted); font-size: .82rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-card-more { color: var(--accent); font-size: .8rem; font-weight: 600; margin-top: auto; }

/* Leaflet dark-theme adjustments */
.leaflet-container { background: #20262b; font-family: 'Inter', sans-serif; }
.leaflet-control-attribution { background: rgba(14,17,20,.8) !important; color: var(--muted) !important; font-size: .62rem !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-tile { filter: brightness(.75) contrast(1.05) saturate(.8); }

/* Nav link shedding: fits 320px with no horizontal overflow.
   Everything hidden here stays reachable via the footer and homepage. */
.logo { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) {
  nav { padding: 0 .6rem; gap: .45rem; }
  .nav-links { gap: .55rem; }
  .nav-links a { font-size: .76rem; }
  .car-pill { font-size: .68rem; padding: .24rem .45rem; }
  .logo { font-size: 1.05rem; }
  .nav-links > a[href="/"] { display: none; } /* logo already goes home */
}
@media (max-width: 460px) {
  .nav-links > a[href="/stories"] { display: none; }
}
@media (max-width: 400px) {
  .nav-links > a[href="/outfitters"] { display: none; }
  .logo { font-size: .98rem; }
  .nav-links { gap: .5rem; }
}

/* ─────────────────────────────────────────────────────────────
   Public submissions + admin review
   ───────────────────────────────────────────────────────────── */

/* Honeypot: offscreen for humans, present for bots. */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* CTA blocks on /stories and /outfitters */
.cta-block {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(255,196,0,.08), rgba(255,196,0,.02));
  border: 1px solid rgba(255,196,0,.3); border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: .6rem; align-items: flex-start;
}
.cta-block h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em;
}
.cta-block p { color: var(--muted); font-size: .9rem; max-width: 60ch; }
.cta-block .btn { margin-top: .5rem; }

/* Admin submissions inbox */
.submission-list { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; }
.submission-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.submission-card--reviewed { opacity: .6; }
.submission-head { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.submission-fields { display: grid; grid-template-columns: 140px 1fr; gap: .35rem .9rem; }
.submission-fields dt {
  color: var(--muted); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; padding-top: .15rem;
}
.submission-fields dd {
  font-size: .88rem; line-height: 1.55; white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.submission-actions { display: flex; gap: .6rem; }
@media (max-width: 560px) { .submission-fields { grid-template-columns: 1fr; } .submission-fields dt { padding-top: .5rem; } }
