  :root{
    --bg1:#0b1220;
    --bg2:#0f172a;
    --card:rgba(255,255,255,.08);
    --card2:rgba(255,255,255,.06);
    --stroke:rgba(255,255,255,.14);
    --text:#e5e7eb;
    --muted:rgba(229,231,235,.75);
    --brand:#60a5fa;
    --warn:#fbbf24;
    --shadow: 0 18px 45px rgba(0,0,0,.40);
    --radius: 18px;
    
    --bg: #0b0f19;
    /*--card: #121a2a;*/
    /*--text: #ffffff;*/
    /*--muted: rgba(255, 255, 255, 0.65);*/
    --accent: #00d4ff;
    --accent2: #0066ff;
    /*--radius: 16px;*/
  }

  body{
    margin:0;
    color:var(--text);
    background:
      radial-gradient(1100px 520px at 10% 10%, rgba(96,165,250,.18), transparent 55%),
      radial-gradient(900px 520px at 90% 10%, rgba(34,197,94,.12), transparent 60%),
      radial-gradient(900px 520px at 50% 100%, rgba(251,191,36,.08), transparent 55%),
      linear-gradient(135deg, var(--bg1), var(--bg2));
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
    overflow-x:hidden;
  }

  /* Topbar (small) */
  .topbar{
    position: sticky;
    top:0;
    z-index:1000;
    background: rgba(15,23,42,.58);
    border-bottom: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .topbar .container{ padding-top: 8px; padding-bottom: 8px; }
  .brand{
    font-weight: 900;
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:10px;
    padding: 6px 0;
    font-size: 1.1rem;
  }
  .brand-badge{
    width:32px;height:32px;border-radius:12px;
    display:inline-flex;align-items:center;justify-content:center;
    background: rgba(96,165,250,.16);
    border:1px solid rgba(96,165,250,.26);
    color: var(--brand);
  }

  /* Compact Header (no huge space) */
  .hero{
    padding: 14px 0 10px; /* ✅ حل مساحة الهيدر */
  }
  .hero-card{
    background: linear-gradient(180deg, var(--card), var(--card2));
    border:1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
  }
  .hero-inner{
    padding: 14px 14px 12px;
  }

  .title-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .hero h1{
    margin:0;
    font-weight: 900;
    letter-spacing: .2px;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
  }
  .hero p{
    margin:6px 0 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: .98rem;
  }

  .pill{
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(229,231,235,.85);
    font-weight: 800;
    font-size: .86rem;
    display:inline-flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
  }

  /* Toolbar (compact) */
  .toolbar{
    margin-top: 12px;
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    width:100%;
  }
  .input-soft, .select-soft{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    border-radius: 14px;
    padding: 10px 12px; /* ✅ أصغر */
    outline:none;
  }
  .input-soft{flex:1 1 320px; min-width: 220px;}
  .select-soft{flex:0 0 200px;}
  .input-soft::placeholder{color: rgba(229,231,235,.55);}
  .input-soft:focus, .select-soft:focus{
    border-color: rgba(96,165,250,.45);
    box-shadow: 0 0 0 4px rgba(96,165,250,.14);
  }

  .btn-soft{
    display:inline-flex;
    gap:10px;
    align-items:center;
    justify-content:center;
    padding: 10px 12px; /* ✅ أصغر */
    border-radius: 14px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #fff;
    text-decoration:none;
    font-weight:800;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
  }
  .btn-soft:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.24);
    color:#fff;
  }
  .btn-brand{
    border-color: rgba(96,165,250,.35);
    background: rgba(96,165,250,.14);
  }
  .btn-brand i{color: var(--brand);}

  /* Grid */
  .grid{ margin-top: 12px; }

  .car-card{
    height:100%;
    background: linear-gradient(180deg, var(--card), var(--card2));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    overflow:hidden;
    box-shadow: 0 14px 35px rgba(0,0,0,.35);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    position:relative;
  }
  .car-card:hover{
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.08);
  }
  .car-img{
    width:100%;
    height: 220px;
    object-fit: cover;
    display:block;
    background: rgba(0,0,0,.25);
  }
  .car-body{ padding: 14px 14px 16px; }
  .car-title{
    margin:0 0 8px;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom: 10px;
  }
  .tag{
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(229,231,235,.86);
    font-weight: 800;
    font-size: .82rem;
    display:inline-flex;
    align-items:center;
    gap:8px;
  }
  .tag i{color: var(--brand);}

  .price{
    font-weight: 900;
    font-size: 1.05rem;
    color: rgba(229,231,235,.95);
    margin: 0 0 12px;
  }
  .actions{ display:flex; gap:10px; flex-wrap:wrap; }

  .fav-btn{
    position:absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(0,0,0,.30);
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  html[dir="rtl"] .fav-btn{right:auto; left:12px;}
  .fav-btn:hover{transform: translateY(-2px); background: rgba(0,0,0,.40);}
  .fav-btn i{font-size: 18px;}
  .fav-btn.active i{color: #ff4d6d;}
  
  
  /* =========================
   FOOTER
========================= */
footer {
    background: #070a12;
    padding: 60px 0;
    margin-top: 60px;
}

footer h5 {
    color: var(--accent);
    margin-bottom: 15px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

  .social-btn{
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 43px;
    font-size: 18px;
    transition: all 0.2s ease;
    display:inline-block;
  }
 

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px) {
    .header-content h1 {
        font-size: 2rem;
    }
}

 
  @media (max-width: 576px){
    .select-soft{flex:1 1 220px;}
  }

  @media (prefers-reduced-motion: reduce){
    *{transition:none !important; scroll-behavior:auto !important;}
  }
  
    .sales-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #0a3c8b, #065293);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sales-badge i {
    margin-right: 8px;
    color: #ffc107;
}

.sales-count {
    font-size: 1.3rem;
    margin: 0 4px;
}