:root {
  --yellow: #FFC800;
  --yellow-dark: #E6B400;
  --black: #1A1A1A;
  --dark-gray: #2B2B2B;
  --light-gray: #F7F7F5;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  background: #fff;
}

a { transition: all .15s ease; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand-logo { max-height: 42px; }
.brand-fallback {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-fallback i { color: var(--yellow-dark); }
.site-header .nav-link { font-weight: 500; color: var(--black); }
.site-header .nav-link:hover { color: var(--yellow-dark); }
.btn-dark { background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--black) 45%, var(--dark-gray) 100%);
  color: #fff;
  padding: 70px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: var(--yellow);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .95;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  max-width: 700px;
}
.hero p.lead { color: #E9E9E9; max-width: 560px; }

/* ---------- Search engine card ---------- */
.search-card {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  padding: 28px;
}
.search-card label {
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #666;
}
.search-card .form-control,
.search-card .form-select {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 500;
}
.search-card .form-control:focus,
.search-card .form-select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 .15rem rgba(255,200,0,.35);
}
.btn-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 20px;
}
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--black); }

/* ---------- Sections ---------- */
.section-title {
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: .5rem;
}
.section-subtitle { color: #666; margin-bottom: 2.2rem; }
.section-pad { padding: 70px 0; }
.bg-light-gray { background: var(--light-gray); }

/* ---------- Brand grid ---------- */
.brand-tile {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.brand-tile img { max-height: 46px; max-width: 100%; object-fit: contain; margin-bottom: 8px; }
.brand-tile .name { font-weight: 600; font-size: .9rem; }

/* ---------- Car cards ---------- */
.car-card {
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: box-shadow .15s ease;
}
.car-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,.1); }
.car-card .car-img { height: 170px; width: 100%; object-fit: cover; background: #f2f2f2; }
.car-card .badge-category { background: var(--yellow); color: var(--black); font-weight: 600; }
.car-card .price { font-weight: 800; font-size: 1.3rem; }
.car-card .price span { font-size: .85rem; font-weight: 500; color: #777; }

/* ---------- Steps ---------- */
.step-num {
  width: 46px; height: 46px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #fff; margin-top: 60px; }
.footer-brand { font-weight: 800; }
.footer-brand i { color: var(--yellow); }

/* ---------- Auth / Admin cards ---------- */
.auth-card {
  max-width: 460px;
  margin: 60px auto;
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
  padding: 34px;
  border-top: 5px solid var(--yellow);
}

/* ---------- Admin layout ---------- */
.admin-body { background: var(--light-gray); }
.admin-sidebar {
  background: var(--black);
  min-height: 100vh;
  color: #fff;
}
.admin-sidebar a {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-weight: 500;
  border-left: 4px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  color: #fff;
  background: rgba(255,200,0,.08);
  border-left-color: var(--yellow);
}
.admin-sidebar .brand { padding: 20px; font-weight: 800; color: var(--yellow); border-bottom: 1px solid #333; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border-left: 5px solid var(--yellow);
}
.stat-card .value { font-size: 1.8rem; font-weight: 800; }
.stat-card .label { color: #777; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

.table thead { background: var(--light-gray); }
.badge-active { background: #17a34a; }
.badge-inactive { background: #999; }

@media (max-width: 991px) {
  .hero { padding: 45px 0 90px; }
  .search-card { margin-top: -55px; padding: 20px; }
  .admin-sidebar { min-height: auto; }
}
