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

/* ==========================================
   DESIGN TOKENS & RESET
   ========================================== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-tertiary: #1a1a1a;
  --bg-card: #151515;
  --bg-glass: rgba(18, 18, 18, 0.75);
  --border-glass: rgba(255, 255, 255, 0.06);
  
  --accent-gold: #e5a93b;
  --accent-gold-hover: #cc922b;
  --accent-gold-light: #f7d492;
  --accent-gold-glow: rgba(229, 169, 59, 0.2);
  
  --text-white: #ffffff;
  --text-muted: #a3a3a3;
  --text-dark: #666666;
  
  --font-primary: 'Outfit', sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-secondary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-hover);
}

/* ==========================================
   LAYOUTS & UTILITIES
   ========================================== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.section-title span {
  color: var(--accent-gold);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000000;
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: #000000;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-white);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--accent-gold);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-gold);
}

.logo-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  color: #000;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.buy-sell-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.toggle-opt {
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-opt.active {
  background: var(--accent-gold);
  color: #000;
}

.call-box {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.call-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.call-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Horizontal Filters (Homepage filter bar) */
.header-filters {
  background-color: #050505;
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  width: 100%;
}

.filter-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 10px 30px 10px 14px;
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e5a93b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 5px var(--accent-gold-glow);
}

.filter-select option {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-weight: 500;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.welcome-badge {
  display: inline-block;
  background-color: var(--accent-gold-glow);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent-gold);
}

/* ==========================================
   FILTER SECTION (OVERLAY)
   ========================================== */
.filter-wrapper {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  padding-bottom: 40px;
}

.filter-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filter-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-white);
  width: 100%;
  outline: none;
  transition: var(--transition-smooth);
}

.filter-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 5px var(--accent-gold-glow);
}

.filter-input option {
  background-color: var(--bg-tertiary);
  color: var(--text-white);
}

.filter-btn-group {
  grid-column: span 1;
}

/* ==========================================
   COLLECTION SECTION
   ========================================== */
.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.collection-header .section-subtitle {
  margin: 0;
  text-align: left;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Vehicle Card */
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 169, 59, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.vehicle-img-wrapper {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.vehicle-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.vehicle-card:hover .vehicle-img-wrapper img {
  transform: scale(1.05);
}

.vehicle-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-gold);
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.vehicle-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vehicle-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.spec-item {
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
}

.vehicle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-glass);
}

.vehicle-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.more-details-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 2px;
}

.more-details-link:hover {
  color: var(--accent-gold);
}

/* ==========================================
   DARIUSH MOTORS SOLD CARS (Assured Section Replacement)
   ========================================== */
.sold-cars-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.sold-cars-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.sold-cars-showcase {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sold-cars-details h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.sold-cars-details h3 span {
  color: var(--accent-gold);
}

.sold-cars-details p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.sold-features-list {
  list-style: none;
  margin-bottom: 35px;
}

.sold-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.sold-feature-item i {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Sold Cars Admin Upload Widget */
.admin-sold-widget {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-top: 30px;
}

.admin-sold-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--accent-gold);
}

.admin-sold-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.why-choose-img {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.choose-card {
  margin-bottom: 25px;
}

.choose-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.choose-title span {
  color: var(--accent-gold);
  background: var(--accent-gold-glow);
  padding: 8px 12px;
  border-radius: 8px;
}

.choose-desc {
  color: var(--text-muted);
  padding-left: 50px;
}

/* ==========================================
   REVIEWS (Dynamic from Backend)
   ========================================== */
.reviews-section {
  background-color: var(--bg-secondary);
}

.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 40px;
}

.reviews-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.review-slide {
  flex: 0 0 100%;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.reviewer-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--accent-gold);
}

.review-rating {
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

.review-actions {
  text-align: center;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background-color: #050505;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--accent-gold);
  color: #000;
  transform: scale(1.1);
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-map-wrapper {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 120px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================
   SELL CAR & SELL BIKE PAGES
   ========================================== */
.page-hero {
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-glass);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-breadcrumbs {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-breadcrumbs span {
  color: var(--accent-gold);
}

.sell-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 50px;
}

.upload-form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  position: sticky;
  top: 100px;
}

.upload-form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--accent-gold);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-grid-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-white);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-gold);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.file-upload-wrapper {
  position: relative;
  border: 2px dashed var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.file-upload-wrapper:hover {
  border-color: var(--accent-gold);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.file-upload-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   DETAILS PAGE
   ========================================== */
.details-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  margin-top: 40px;
}

.details-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.details-gallery {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
}

.main-image-wrapper {
  height: 450px;
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-specs-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 30px;
}

.details-specs-card h3,
.details-description h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-gold);
  position: relative;
  padding-bottom: 8px;
}

.details-specs-card h3::after,
.details-description h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spec-detail-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  font-weight: 700;
}

.details-description {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 30px;
}

/* Sidebar sticky panel */
.details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  position: sticky;
  top: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.booking-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.booking-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 25px;
}

.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.booking-actions .btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}

.dealer-info {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border-glass);
}

.dealer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.dealer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dealer-contact i {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

/* ==========================================
   MODAL / POPUP
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 35px;
  position: relative;
  transform: translateY(-20px);
  transition: var(--transition-smooth);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-white);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

/* Rating selector */
.rating-stars {
  display: flex;
  gap: 8px;
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.rating-stars i {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.rating-stars i:hover,
.rating-stars i.active {
  color: var(--accent-gold);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .filter-bar {
    grid-template-columns: repeat(4, 1fr);
  }
  .sold-cars-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr) 1.5fr;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .buy-sell-toggle,
  .search-trigger-box {
    display: none;
  }
  .call-box {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 10px;
  }
  .call-label {
    font-size: 0.65rem;
  }
  .call-number {
    font-size: 0.95rem;
  }
  .menu-toggle {
    display: block;
    color: var(--text-white);
    order: 3;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 50px 0;
    gap: 30px;
    border-top: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
  }
  .nav-menu.active {
    left: 0;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sell-layout,
  .details-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .main-image-wrapper {
    height: 300px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .sold-cars-details h3 {
    font-size: 1.8rem;
  }
}

/* ==========================================
   ADMIN PANEL & LAYOUT OVERRIDES
   ========================================== */
.sell-layout.full-width {
  display: block;
  margin-top: 50px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 15px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-tab-btn:hover {
  color: var(--text-white);
  background-color: var(--bg-tertiary);
}

.admin-tab-btn.active {
  color: #000;
  background-color: var(--accent-gold);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.admin-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 20px;
  text-align: center;
}

.admin-stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 5px;
}

.admin-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.admin-table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin-top: 30px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--accent-gold);
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #222;
}

.btn-delete {
  background-color: #ef4444;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-delete:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.btn-edit {
  background-color: var(--accent-gold);
  color: #000;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 6px;
  transition: var(--transition-smooth);
}

.btn-edit:hover {
  background-color: #fff;
  transform: translateY(-1px);
}


