/* ============================================================
   ARAÇ KİRALAMA SİSTEMİ - Premium Dark Theme
   ============================================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Background Colors */
  --bg-primary: #06060f;
  --bg-secondary: #0c0c1d;
  --bg-tertiary: #12122a;
  --bg-card: rgba(18, 18, 42, 0.75);
  --bg-card-hover: rgba(28, 28, 62, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-input: rgba(15, 15, 35, 0.8);

  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #a78bfa;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --accent-gradient-hover: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c4b5fd 100%);

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-accent: #a78bfa;

  /* Status Colors */
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);

  /* Borders */
  --border-color: rgba(99, 102, 241, 0.15);
  --border-color-hover: rgba(99, 102, 241, 0.35);
  --border-glass: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
  --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.15);

  /* Spacing */
  --nav-height: 72px;
  --section-padding: 80px;
  --container-max: 1280px;
  --container-padding: 24px;

  /* Borders Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #e4e7ec;
  --bg-tertiary: #dde1e7;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-input: rgba(255, 255, 255, 0.9);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-accent: #6366f1;

  --border-color: rgba(99, 102, 241, 0.2);
  --border-color-hover: rgba(99, 102, 241, 0.4);
  --border-glass: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.1);
  --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.08);
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
  opacity: 0.3;
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
  margin-left: 8px;
}

.theme-toggle-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: rotate(30deg);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(6, 6, 15, 0.95);
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: var(--transition-base);
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo i {
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--accent-primary);
}

.nav-link i {
  margin-right: 6px;
  font-size: 0.85rem;
}

/* Mobile Menu Button */
.nav-mobile-btn {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  padding: 8px;
}

/* ---------- Mobile Navigation ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 6, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    transition: var(--transition-base);
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }

  .nav-mobile-btn {
    display: block;
  }
}

/* ---------- Page Sections ---------- */
.page-section {
  display: none;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
  position: relative;
  z-index: 1;
}

.page-section.active {
  display: block;
  animation: fadeInPage 0.4s ease;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 6, 15, 0.3) 0%,
    rgba(6, 6, 15, 0.6) 50%,
    rgba(6, 6, 15, 1) 100%
  );
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  z-index: 2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-accent);
  margin-bottom: 24px;
  animation: slideDown 0.6s ease;
}

.hero-badge i {
  font-size: 0.7rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: slideUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
  animation: slideUp 0.6s ease 0.2s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Search Box */
.hero-search {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  animation: slideUp 0.6s ease 0.3s both;
  box-shadow: var(--shadow-lg);
}

.hero-search .search-field {
  flex: 1;
  min-width: 160px;
}

.hero-search .search-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero-search .search-field input,
.hero-search .search-field select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.hero-search .search-field input:focus,
.hero-search .search-field select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero-search .search-field select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Featured Cars Section ---------- */
.featured-section {
  padding: var(--section-padding) 0;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ---------- Car Card ---------- */
.car-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.car-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
}

.car-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.car-card:hover .car-card-image img {
  transform: scale(1.08);
}

.car-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-available {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-rented {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.car-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.car-card-fav:hover {
  color: #ef4444;
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.car-card-body {
  padding: 20px;
}

.car-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.car-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.car-card-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.car-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.car-spec i {
  color: var(--accent-tertiary);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.car-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.car-price {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.car-price span {
  font-size: 0.8rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-tertiary);
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  color: white;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- Catalog Page ---------- */
.catalog-page {
  padding: 40px 0 80px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.filters-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-title i {
  color: var(--accent-tertiary);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: var(--transition-base);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-group select option {
  background: var(--bg-secondary);
}

.price-range-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  outline: none;
  border: none;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
  transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Catalog Results */
.catalog-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--text-primary);
}

.sort-select {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.sort-select option {
  background: var(--bg-secondary);
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
  }
}

/* ---------- Car Detail Page ---------- */
.detail-page {
  padding: 40px 0 80px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.detail-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  min-height: 400px;
}

.detail-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.detail-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.detail-info {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.detail-category {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.detail-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.detail-price-display {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.detail-price-display span {
  font-size: 1rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-tertiary);
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.detail-spec-item i {
  color: var(--accent-tertiary);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.detail-spec-item .spec-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-spec-item .spec-value {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 2px;
}

.detail-features {
  margin-bottom: 28px;
}

.detail-features h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.feature-tag i {
  margin-right: 4px;
  color: var(--success);
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-info {
    position: static;
  }
}

/* ---------- Rental Form ---------- */
.rent-page {
  padding: 40px 0 80px;
}

.rent-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.rent-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.rent-form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rent-form-card > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-accent);
}

.form-section-title i {
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--danger);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group .error-text {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
}

.form-group select option {
  background: var(--bg-secondary);
}

/* Extras checkboxes */
.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.extra-item:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-glass-hover);
}

.extra-item.selected {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}

.extra-item input[type="checkbox"] {
  display: none;
}

.extra-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.extra-item.selected .extra-check {
  background: var(--accent-gradient);
  border-color: transparent;
}

.extra-check i {
  font-size: 0.65rem;
  color: white;
  opacity: 0;
  transition: var(--transition-fast);
}

.extra-item.selected .extra-check i {
  opacity: 1;
}

.extra-info {
  flex: 1;
  min-width: 0;
}

.extra-info .extra-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.extra-info .extra-price {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Rent Summary Sidebar */
.rent-summary {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.rent-summary-car {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.rent-summary-car img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.rent-summary-car .car-name {
  font-size: 1rem;
  font-weight: 700;
}

.rent-summary-car .car-year {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
}

.summary-row .label {
  color: var(--text-secondary);
}

.summary-row .value {
  font-weight: 600;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-glass);
  margin: 12px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.summary-total .total-price {
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 900px) {
  .rent-layout {
    grid-template-columns: 1fr;
  }

  .rent-summary {
    position: static;
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .extras-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Admin Panel ---------- */
.admin-page {
  padding: 40px 0 80px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  cursor: pointer;
}

.admin-tab:hover {
  color: var(--text-primary);
}

.admin-tab.active {
  background: var(--accent-primary);
  color: white;
}

.admin-tab i {
  margin-right: 6px;
}

/* Admin Table */
.admin-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

.admin-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-glass);
}

.admin-table tbody td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: var(--bg-glass-hover);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.table-car-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-car-info img {
  width: 60px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.table-car-name {
  font-weight: 600;
}

.table-car-year {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.table-actions {
  display: flex;
  gap: 6px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-approved {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-completed {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-cancelled {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Responsive table */
@media (max-width: 768px) {
  .admin-table-container {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 600px;
  }
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.modal-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-glass);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  animation: toastIn 0.4s var(--transition-spring);
  backdrop-filter: blur(10px);
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

.toast-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: var(--success-bg);
  color: var(--success);
}

.toast.error .toast-icon {
  background: var(--danger-bg);
  color: var(--danger);
}

.toast.warning .toast-icon {
  background: var(--warning-bg);
  color: var(--warning);
}

.toast.info .toast-icon {
  background: var(--info-bg);
  color: var(--info);
}

.toast-content {
  flex: 1;
}

.toast-content .toast-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.toast-content .toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.toast-close {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  padding: 4px;
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ---------- Reservations Page ---------- */
.reservations-page {
  padding: 40px 0 80px;
}

.reservation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
}

.reservation-card:hover {
  border-color: var(--border-color-hover);
}

.reservation-car-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.reservation-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.reservation-dates {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.reservation-dates i {
  color: var(--accent-tertiary);
  margin-right: 4px;
}

.reservation-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.reservation-price {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .reservation-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reservation-car-img {
    width: 100%;
    height: 160px;
  }

  .reservation-dates {
    justify-content: center;
    flex-wrap: wrap;
  }

  .reservation-actions {
    align-items: center;
  }
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 48px 0 24px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

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

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-tertiary);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.footer-socials a:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.text-secondary { color: var(--text-secondary); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none !important; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient text utility */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-tertiary) 25%,
    var(--bg-glass-hover) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Pulse animation for badges */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* No results animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* ---------- Toggle Switch ---------- */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-tertiary);
  border-radius: 50%;
  transition: var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--success);
  border-color: var(--success);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: white;
}

/* ---------- Admin Login ---------- */
.admin-login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 100px);
  padding: 40px 20px;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
}

.admin-login-card .login-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  font-size: 1.8rem;
  color: white;
  box-shadow: var(--shadow-glow);
}

.admin-login-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-login-card > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.admin-login-card .form-group {
  text-align: left;
  margin-bottom: 20px;
}

.admin-login-card .form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.admin-login-card .form-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-bottom: 16px;
  display: none;
}

.login-error.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Admin logged-in header */
.admin-user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.admin-user-bar i {
  color: var(--success);
}

.admin-user-bar span {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.admin-user-bar strong {
  color: var(--text-primary);
}

/* Availability cell */
.availability-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.availability-label {
  font-size: 0.82rem;
  font-weight: 500;
}

.availability-label.available {
  color: var(--success);
}

.availability-label.rented {
  color: var(--danger);
}

/* BADGE VISIBILITY FIX */
.badge-available {
    background: var(--success) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    letter-spacing: 1px !important;
}

.badge-rented {
    background: var(--danger) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    letter-spacing: 1px !important;
}


/* ====================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ==================================================== */

/* ---- Extra Small Devices (max-width: 480px) ---- */
@media (max-width: 480px) {

  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .hero-search {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }

  .hero-search .search-field {
    min-width: 100%;
    flex: unset;
  }

  .hero-search .btn {
    width: 100%;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-card .stat-number {
    font-size: 1.6rem;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* Cars Grid */
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .car-card-image {
    height: 180px;
  }

  .car-card-body {
    padding: 16px;
  }

  .car-card-title {
    font-size: 1.05rem;
  }

  .car-price {
    font-size: 1.1rem;
  }

  /* Featured Section */
  .featured-section {
    padding: 40px 0;
  }

  .featured-section .btn-lg {
    padding: 14px 24px;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Catalog */
  .catalog-page {
    padding: 24px 0 40px;
  }

  .filters-sidebar {
    padding: 16px;
  }

  .filter-group {
    margin-bottom: 16px;
  }

  .catalog-results-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sort-select {
    width: 100%;
  }

  /* Detail Page */
  .detail-page {
    padding: 24px 0 40px;
  }

  .detail-image-container {
    min-height: 220px;
    border-radius: var(--radius-md);
  }

  .detail-image-container img {
    min-height: 220px;
  }

  .detail-info {
    padding: 20px;
  }

  .detail-title {
    font-size: 1.4rem;
  }

  .detail-price-display {
    font-size: 1.6rem;
  }

  .detail-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-spec-item {
    padding: 10px;
  }

  .detail-features h3 {
    font-size: 0.88rem;
  }

  .feature-tags {
    gap: 6px;
  }

  .feature-tag {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  /* Rent Form */
  .rent-page {
    padding: 24px 0 40px;
  }

  .rent-form-card {
    padding: 20px;
  }

  .rent-form-card h2 {
    font-size: 1.15rem;
  }

  .rent-summary {
    padding: 20px;
  }

  .summary-total .total-price {
    font-size: 1.2rem;
  }

  /* Extras */
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .extra-item {
    padding: 10px;
  }

  /* Buttons */
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Navbar */
  .nav-logo span {
    font-size: 0.9rem;
  }

  .nav-logo img {
    height: 30px !important;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  /* Lang Selector in Mobile Nav */
  .lang-selector {
    justify-content: center;
    padding: 8px 0;
  }

  /* Admin */
  .admin-page {
    padding: 24px 0 40px;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-header h1 {
    font-size: 1.3rem;
    text-align: center;
  }

  .admin-header .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    justify-content: center;
  }

  .admin-tab {
    padding: 8px 12px;
    font-size: 0.75rem;
    flex: 0 0 auto;
  }

  .admin-tab i {
    margin-right: 4px;
  }

  /* Admin Login */
  .admin-login-card {
    padding: 28px 20px;
  }

  .admin-login-card h2 {
    font-size: 1.2rem;
  }

  /* Reservations */
  .reservation-card {
    gap: 16px;
  }

  .reservation-car-img {
    width: 100%;
    height: 140px;
  }

  /* Modal */
  .modal-overlay {
    padding: 12px;
  }

  .modal {
    max-height: 95vh;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 16px;
  }

  /* Footer */
  .footer {
    padding: 32px 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Toast */
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* ---- Small Devices (481px - 768px) ---- */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-search {
    flex-direction: column;
    gap: 10px;
  }

  .hero-search .search-field {
    min-width: 100%;
  }

  .hero-search .btn {
    width: 100%;
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 24px 0;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-card .stat-number {
    font-size: 1.5rem;
  }

  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .car-card-image {
    height: 160px;
  }

  .detail-specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    justify-content: center;
  }

  .admin-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ---- Navbar Mobile Fixes (applies to all mobile) ---- */
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 16px;
  }

  .nav-links {
    z-index: 999;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--bg-glass-hover);
  }

  /* Lang selector inside mobile menu */
  .lang-selector {
    width: 100%;
    justify-content: center;
    padding: 10px 0;
    margin-left: 0 !important;
  }

  #langMenu {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    min-width: 200px !important;
    border-radius: 12px !important;
    z-index: 10000 !important;
  }

  /* Hero search on mobile */
  .hero-search .search-field label {
    font-size: 0.75rem;
  }
}

/* ---- Touch Optimizations ---- */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 36px;
    padding: 8px 14px;
  }

  .nav-link {
    min-height: 44px;
  }

  /* Disable hover animations on touch */
  .car-card:hover {
    transform: none;
  }

  .stat-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline:hover {
    transform: none;
  }

  /* Better tap state */
  .car-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }

  .btn:active {
    transform: scale(0.96);
    transition: transform 0.1s;
  }

  /* Smooth scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* Remove sticky on touch devices for better scroll performance */
  .filters-sidebar,
  .detail-info,
  .rent-summary {
    position: static !important;
  }
}

/* ---- Landscape Phone Fix ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    margin-bottom: 16px;
  }

  .admin-login-container {
    min-height: auto;
    padding: 20px;
  }
}

/* ---- Safe Area Insets (iPhone notch etc.) ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer-bottom {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .toast-container {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .nav-links {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
