:root {
  /* ============================================
     CSS VARIABLE SYSTEM - Foundation
     ============================================ */

  /* Glassmorphism Base */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.2);
  --blur: blur(14px);

  /* Brand Colors */
  --accent: #00e0ff;
  --accent-light: #66ecff;
  --accent-dark: #0080ff;
  --accent-gradient: linear-gradient(135deg, #00e0ff, #0080ff);
  --dark: #0b0f14;

  /* Semantic Colors */
  --success: #28a745;
  --success-bg: rgba(40, 167, 69, 0.2);
  --success-border: rgba(40, 167, 69, 0.3);
  --success-text: #4ade80;

  --warning: #ffc107;
  --warning-bg: rgba(255, 193, 7, 0.2);
  --warning-border: rgba(255, 193, 7, 0.3);
  --warning-text: #fbbf24;

  --error: #dc3545;
  --error-bg: rgba(220, 53, 69, 0.2);
  --error-border: rgba(220, 53, 69, 0.3);
  --error-text: #f87171;

  --info: #17a2b8;
  --info-bg: rgba(23, 162, 184, 0.2);
  --info-border: rgba(23, 162, 184, 0.3);
  --info-text: #38bdf8;

  /* Spacing Scale (compact UI) */
  --spacing-xs: 3px;
  --spacing-sm: 6px;
  --spacing-md: 8px;
  --spacing-lg: 12px;
  --spacing-xl: 16px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;

  /* Typography Scale */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 2rem;
  /* 32px */
  --font-size-4xl: 2.5rem;
  /* 40px */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.75;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Border Radius Scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Shadow System */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 0 3px rgba(0, 224, 255, 0.15);
  --shadow-success: 0 0 0 3px rgba(40, 167, 69, 0.15);
  --shadow-error: 0 0 0 3px rgba(220, 53, 69, 0.15);

  /* Transition Timing */
  --transition-fast: var(--transition-fast);
  --transition-base: var(--transition-base);
  --transition-slow: var(--transition-slow);
  --transition-slower: 0.5s ease;

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-dashboard: 900px; /* Nav/sidebar cutoff: top nav ↔ bottom nav, dashboard sidebar overlay. Keep app.js in sync. */
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1200;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

/* Base Typography */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--dark);
  color: #fff;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-normal);
}

/* Heading Hierarchy */
h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: #fff;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  margin-bottom: var(--spacing-md);
  color: #fff;
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  margin-bottom: var(--spacing-sm);
  color: #fff;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-sm);
  color: #fff;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-xs);
  color: #fff;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-xs);
  color: #fff;
}

/* Paragraph */
p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

/* Text Size Utilities */
.text-xs {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
}

.text-sm {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.text-base {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

.text-lg {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.text-xl {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
}

.text-2xl {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
}

.text-3xl {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
}

/* ============================================
   COLOR SYSTEM & CONTRAST
   ============================================ */

/* Text Color Utilities */
.text-muted {
  color: rgba(255, 255, 255, 0.65);
  /* Improved contrast for WCAG AA */
}

.text-muted-small {
  color: rgba(255, 255, 255, 0.55);
  /* Improved contrast for WCAG AA */
}

.text-success {
  color: var(--success-text);
}

.text-warning {
  color: var(--warning-text);
}

.text-error {
  color: var(--error-text);
}

.text-info {
  color: var(--info-text);
}

.text-accent {
  color: var(--accent);
}

/* Background Color Utilities */
.bg-success {
  background-color: var(--success-bg);
  border-color: var(--success-border);
}

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

.bg-error {
  background-color: var(--error-bg);
  border-color: var(--error-border);
}

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

.bg-accent {
  background-color: var(--accent);
  color: #000;
}

/* Border Color Utilities */
.border-success {
  border-color: var(--success-border);
}

.border-warning {
  border-color: var(--warning-border);
}

.border-error {
  border-color: var(--error-border);
}

.border-info {
  border-color: var(--info-border);
}

.border-accent {
  border-color: var(--accent);
}

/* Font Weight Utilities */
.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Line Height Utilities */
.leading-tight {
  line-height: var(--line-height-tight);
}

.leading-snug {
  line-height: var(--line-height-snug);
}

.leading-normal {
  line-height: var(--line-height-normal);
}

.leading-relaxed {
  line-height: var(--line-height-relaxed);
}

.leading-loose {
  line-height: var(--line-height-loose);
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Global Focus Styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: var(--spacing-sm);
  text-decoration: none;
  z-index: var(--z-tooltip);
  font-weight: var(--font-weight-semibold);
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Focus Styles for Interactive Elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure buttons maintain focus visibility */
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Form inputs already have focus styles in Form Element System */

/* Keyboard Navigation Improvements */
[tabindex="-1"]:focus {
  outline: none;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ============================================
   LOADING, EMPTY, AND ERROR STATES
   ============================================ */

/* Loading States */
.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.7);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
  display: block;
}

.empty-state-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  margin-bottom: var(--spacing-sm);
}

.empty-state-description {
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-relaxed);
}

.empty-state-action {
  margin-top: var(--spacing-md);
}

/* Error States */
.error-message {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.error-message-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.error-message-text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Success States */
.success-message {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.success-message-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.success-message-text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Success Toast */
.success-toast {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  animation: slide-in var(--transition-slow)-out;
  box-shadow: var(--shadow-lg);
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Error Toast */
.error-toast {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  animation: slide-in var(--transition-slow)-out;
  box-shadow: var(--shadow-lg);
}

/* Alert components already defined in Color System section above */

/* ============================================
   RESPONSIVE DESIGN REFINEMENTS
   ============================================ */

/* Mobile First - Base styles are mobile */
/* Breakpoints: see :root (--breakpoint-sm through --breakpoint-2xl).
   Nav/sidebar cutoff: 900px = var(--breakpoint-dashboard). app.js uses same value for sidebar close. */

/* Small devices (640px and up) */
@media (min-width: 640px) {
  /* sm breakpoint */
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  /* md breakpoint */
}

/* Large devices (1024px and up) */
@media (min-width: 1024px) {
  /* lg breakpoint */
}

/* Extra large devices (1280px and up) */
@media (min-width: 1280px) {
  /* xl breakpoint */
}

/* 2XL devices (1536px and up) */
@media (min-width: 1536px) {
  /* 2xl breakpoint */
}

/* Mobile optimizations (below 768px) */
@media (max-width: 767px) {

  /* Ensure touch targets are minimum 44x44px */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .navbar a,
  .dashboard-header-link {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Improve mobile forms */
  .form-group-flex-2 {
    grid-template-columns: 1fr;
  }

  /* Improve mobile cards */
  .card,
  .profile-card,
  .analytics-card {
    padding: var(--spacing-md);
  }

  /* Improve mobile buttons */
  .btn-full-width {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* Tablet optimizations (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet-specific styles */
}

/* Desktop optimizations (1024px and up) */
@media (min-width: 1024px) {

  /* Optimal line lengths */
  .card-body,
  .profile-card {
    max-width: 75ch;
    /* Optimal reading width */
  }
}

/* Update existing media queries to use breakpoint variables where possible */
/* Note: CSS variables cannot be used in media queries, but we document the breakpoints */

/* ============================================
   VISUAL POLISH & MICRO-INTERACTIONS
   ============================================ */

/* Shadow/Elevation System */
.elevation-1 {
  box-shadow: var(--shadow-sm);
}

.elevation-2 {
  box-shadow: var(--shadow-md);
}

.elevation-3 {
  box-shadow: var(--shadow-lg);
}

.elevation-4 {
  box-shadow: var(--shadow-xl);
}

/* Smooth Transitions - Applied to interactive elements */
.card,
.profile-card,
.analytics-card,
.btn,
.form-input,
input,
textarea,
select {
  transition: all var(--transition-base);
}

/* Micro-interactions - Button Press */
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

/* Micro-interactions - Card Lift */
.card-interactive:active {
  transform: translateY(-2px) scale(0.99);
}

/* Micro-interactions - Input Focus */
.form-input:focus,
input:focus:not(:disabled),
textarea:focus:not(:disabled),
select:focus:not(:disabled) {
  transform: translateY(-1px);
}

/* Smooth Hover Transitions */
a,
button,
.card,
.btn {
  transition: all var(--transition-base);
}

/* Border Radius Consistency */
/* Small elements */
.badge,
.status-badge,
.btn-sm {
  border-radius: var(--radius-sm);
}

/* Cards/Panels */
.card,
.profile-card,
.analytics-card,
.modal-content {
  border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
  border-radius: var(--radius-full);
}

.btn-sm {
  border-radius: var(--radius-md);
}

/* Modals */
.modal-content {
  border-radius: var(--radius-lg);
}

/* Form inputs */
.form-input,
input,
textarea,
select {
  border-radius: var(--radius-md);
}

/* Animation Performance */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in var(--transition-slow) ease-out;
}

.animate-slide-up {
  animation: slide-up var(--transition-slow) ease-out;
}

/* GPU Acceleration for Smooth Animations */
.card,
.btn,
.form-input {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ============================================
   COLOR SYSTEM & CONTRAST
   ============================================ */

/* Alert Components - Using Semantic Colors */
.alert {
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  border: 1px solid;
}

.alert-success {
  background-color: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.alert-error {
  background-color: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

.alert-warning {
  background-color: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.alert-info {
  background-color: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

.alert-list {
  list-style: none;
  padding-left: 0;
  margin: var(--spacing-sm) 0 0 0;
}

.alert-list li {
  margin-bottom: var(--spacing-xs);
}

.alert-list li:last-child {
  margin-bottom: 0;
}

/* ============================================
   SPACING & LAYOUT SYSTEM
   ============================================ */

/* Margin Utilities */
.m-0 {
  margin: 0 !important;
}

.m-xs {
  margin: var(--spacing-xs) !important;
}

.m-sm {
  margin: var(--spacing-sm) !important;
}

.m-md {
  margin: var(--spacing-md) !important;
}

.m-lg {
  margin: var(--spacing-lg) !important;
}

.m-xl {
  margin: var(--spacing-xl) !important;
}

.m-2xl {
  margin: var(--spacing-2xl) !important;
}

.m-3xl {
  margin: var(--spacing-3xl) !important;
}

/* Margin Top */
.mt-0 {
  margin-top: 0 !important;
}

.mt-xs {
  margin-top: var(--spacing-xs) !important;
}

.mt-sm {
  margin-top: var(--spacing-sm) !important;
}

.mt-md {
  margin-top: var(--spacing-md) !important;
}

.mt-lg {
  margin-top: var(--spacing-lg) !important;
}

.mt-xl {
  margin-top: var(--spacing-xl) !important;
}

.mt-2xl {
  margin-top: var(--spacing-2xl) !important;
}

.mt-3xl {
  margin-top: var(--spacing-3xl) !important;
}

/* Margin Bottom */
.mb-0 {
  margin-bottom: 0 !important;
}

.mb-xs {
  margin-bottom: var(--spacing-xs) !important;
}

.mb-sm {
  margin-bottom: var(--spacing-sm) !important;
}

.mb-md {
  margin-bottom: var(--spacing-md) !important;
}

.mb-lg {
  margin-bottom: var(--spacing-lg) !important;
}

.mb-xl {
  margin-bottom: var(--spacing-xl) !important;
}

.mb-2xl {
  margin-bottom: var(--spacing-2xl) !important;
}

.mb-3xl {
  margin-bottom: var(--spacing-3xl) !important;
}

/* Margin Left */
.ml-0 {
  margin-left: 0 !important;
}

.ml-xs {
  margin-left: var(--spacing-xs) !important;
}

.ml-sm {
  margin-left: var(--spacing-sm) !important;
}

.ml-md {
  margin-left: var(--spacing-md) !important;
}

.ml-lg {
  margin-left: var(--spacing-lg) !important;
}

.ml-xl {
  margin-left: var(--spacing-xl) !important;
}

/* Margin Right */
.mr-0 {
  margin-right: 0 !important;
}

.mr-xs {
  margin-right: var(--spacing-xs) !important;
}

.mr-sm {
  margin-right: var(--spacing-sm) !important;
}

.mr-md {
  margin-right: var(--spacing-md) !important;
}

.mr-lg {
  margin-right: var(--spacing-lg) !important;
}

.mr-xl {
  margin-right: var(--spacing-xl) !important;
}

/* Padding Utilities */
.p-0 {
  padding: 0 !important;
}

.p-xs {
  padding: var(--spacing-xs) !important;
}

.p-sm {
  padding: var(--spacing-sm) !important;
}

.p-md {
  padding: var(--spacing-md) !important;
}

.p-lg {
  padding: var(--spacing-lg) !important;
}

.p-xl {
  padding: var(--spacing-xl) !important;
}

.p-2xl {
  padding: var(--spacing-2xl) !important;
}

.p-3xl {
  padding: var(--spacing-3xl) !important;
}

/* Padding Top */
.pt-0 {
  padding-top: 0 !important;
}

.pt-xs {
  padding-top: var(--spacing-xs) !important;
}

.pt-sm {
  padding-top: var(--spacing-sm) !important;
}

.pt-md {
  padding-top: var(--spacing-md) !important;
}

.pt-lg {
  padding-top: var(--spacing-lg) !important;
}

.pt-xl {
  padding-top: var(--spacing-xl) !important;
}

.pt-2xl {
  padding-top: var(--spacing-2xl) !important;
}

/* Padding Bottom */
.pb-0 {
  padding-bottom: 0 !important;
}

.pb-xs {
  padding-bottom: var(--spacing-xs) !important;
}

.pb-sm {
  padding-bottom: var(--spacing-sm) !important;
}

.pb-md {
  padding-bottom: var(--spacing-md) !important;
}

.pb-lg {
  padding-bottom: var(--spacing-lg) !important;
}

.pb-xl {
  padding-bottom: var(--spacing-xl) !important;
}

.pb-2xl {
  padding-bottom: var(--spacing-2xl) !important;
}

/* Padding Left */
.pl-0 {
  padding-left: 0 !important;
}

.pl-xs {
  padding-left: var(--spacing-xs) !important;
}

.pl-sm {
  padding-left: var(--spacing-sm) !important;
}

.pl-md {
  padding-left: var(--spacing-md) !important;
}

.pl-lg {
  padding-left: var(--spacing-lg) !important;
}

.pl-xl {
  padding-left: var(--spacing-xl) !important;
}

/* Padding Right */
.pr-0 {
  padding-right: 0 !important;
}

.pr-xs {
  padding-right: var(--spacing-xs) !important;
}

.pr-sm {
  padding-right: var(--spacing-sm) !important;
}

.pr-md {
  padding-right: var(--spacing-md) !important;
}

.pr-lg {
  padding-right: var(--spacing-lg) !important;
}

.pr-xl {
  padding-right: var(--spacing-xl) !important;
}

/* Gap Utilities */
.gap-0 {
  gap: 0 !important;
}

.gap-xs {
  gap: var(--spacing-xs) !important;
}

.gap-sm {
  gap: var(--spacing-sm) !important;
}

.gap-md {
  gap: var(--spacing-md) !important;
}

.gap-lg {
  gap: var(--spacing-lg) !important;
}

.gap-xl {
  gap: var(--spacing-xl) !important;
}

.gap-2xl {
  gap: var(--spacing-2xl) !important;
}

/* Container System */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-sm {
  max-width: 640px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 1024px;
}

.container-xl {
  max-width: 1280px;
}

.container-2xl {
  max-width: 1536px;
}

/* Legacy Container Classes - Keep for backward compatibility */
.container-narrow {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-medium {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-extra-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Section Spacing Utilities (Legacy support) */
.margin-bottom-small {
  margin-bottom: var(--spacing-sm) !important;
}

.margin-bottom-medium {
  margin-bottom: var(--spacing-md) !important;
}

.margin-bottom-large {
  margin-bottom: var(--spacing-lg) !important;
}

.margin-top-small {
  margin-top: var(--spacing-sm) !important;
}

.margin-top-medium {
  margin-top: var(--spacing-md) !important;
}

.margin-top-large {
  margin-top: var(--spacing-lg) !important;
}

/* ============================================
   BUTTON COMPONENT SYSTEM
   ============================================ */

/* Base Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: #00cce6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--shadow-accent);
}

/* Secondary Button */
.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Ghost Button */
.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  color: #fff;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

/* Danger Button */
.btn-danger {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(220, 53, 69, 0.3);
  border-color: rgba(220, 53, 69, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-error);
}

.btn-danger:active:not(:disabled) {
  transform: translateY(0);
}

.btn-danger:focus-visible {
  outline: 2px solid var(--error);
  outline-offset: 2px;
  box-shadow: var(--shadow-error);
}

/* Button Sizes */
.btn-sm {
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 12px 24px;
  font-size: var(--font-size-base);
}

/* Button Width Utilities */
.btn-full-width {
  width: 100%;
}

.btn-full-width-margin {
  width: 100%;
  margin-top: var(--spacing-md);
}

/* Legacy Button Classes - Keep for backward compatibility */
.btn-small {
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md);
}

/* ============================================
   FORM ELEMENT SYSTEM
   ============================================ */

/* Base Form Input Styles */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  transition: all var(--transition-base);
  font-family: inherit;
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
  /* WCAG AA compliant */
}

.form-input:hover,
input:hover:not(:disabled),
textarea:hover:not(:disabled),
select:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.form-input:focus,
input:focus:not(:disabled),
textarea:focus:not(:disabled),
select:focus:not(:disabled) {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-accent);
}

.form-input:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
}

/* Form Input Error State */
.form-input.error,
input.error,
textarea.error,
select.error {
  border-color: var(--error-border);
  background: var(--error-bg);
}

.form-input.error:focus,
input.error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: var(--shadow-error);
}

/* Form Input Success State */
.form-input.success,
input.success,
textarea.success,
select.success {
  border-color: var(--success-border);
  background: var(--success-bg);
}

.form-input.success:focus,
input.success:focus,
textarea.success:focus,
select.success:focus {
  box-shadow: var(--shadow-success);
}

/* Textarea Specific */
textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

textarea.form-input {
  line-height: var(--line-height-relaxed);
}

/* Select Specific */
select.form-input,
.form-input[type="select"],
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
}

select.form-input option,
select option {
  background: #1a1d24;
  color: #fff;
  padding: 6px 10px;
}

select.form-input option:checked,
select option:checked {
  background: var(--accent);
  color: #000;
}

select.form-input option:hover,
select option:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Form Label */
.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-normal);
}

.form-label-inline {
  display: inline-block;
  margin-bottom: 0;
  margin-right: var(--spacing-sm);
}

.form-label-required::after {
  content: " *";
  color: var(--error-text);
}

/* Form Group */
.form-group {
  margin-bottom: var(--spacing-xs);
}

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

.form-group-flex {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group-flex-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.form-group-flex-min {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 0;
}

.form-group-flex-2-min {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-sm);
}

/* Form Help Text */
.form-help {
  display: block;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--spacing-xs);
  line-height: var(--line-height-normal);
}

.form-error {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--error-text);
  margin-top: var(--spacing-xs);
  line-height: var(--line-height-normal);
  animation: slide-up var(--transition-base) ease-out;
}

.form-error::before {
  content: '⚠';
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--success-text);
  margin-top: var(--spacing-xs);
  line-height: var(--line-height-normal);
  animation: slide-up var(--transition-base) ease-out;
}

.form-success::before {
  content: '✓';
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

/* Form Row */
.form-row {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
}

.form-actions .btn {
  flex-shrink: 0;
}

/* Dashboard filter form: single line on desktop (e.g. listings, leads) */
.profile-card-filter-inline form.filter-form-inline.form-inline {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 901px) {
  .profile-card-filter-inline .filter-form-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--spacing-sm);
  }
  .profile-card-filter-inline .filter-form-inline > .form-group,
  .profile-card-filter-inline .filter-form-inline > .form-row,
  .profile-card-filter-inline .filter-form-inline > .form-actions {
    margin-bottom: 0;
    margin-top: 0;
  }
  .profile-card-filter-inline .filter-form-inline > .form-group:first-child {
    flex: 1;
    min-width: 140px;
    max-width: 240px;
  }
  .profile-card-filter-inline .filter-form-inline > .form-group:not(:first-child) {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 160px;
  }
  .profile-card-filter-inline .filter-form-inline > .form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--spacing-sm);
    align-items: flex-end;
  }
  .profile-card-filter-inline .filter-form-inline > .form-row .form-group {
    flex: 0 0 auto;
  }
  .profile-card-filter-inline .filter-form-inline > .form-row .form-group:first-child {
    min-width: 100px;
    max-width: 160px;
  }
  .profile-card-filter-inline .filter-form-inline > .form-row .form-row {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: flex-end;
  }
  .profile-card-filter-inline .filter-form-inline > .form-row .form-row .form-group {
    width: 70px;
    min-width: 70px;
    max-width: 90px;
  }
  .profile-card-filter-inline .filter-form-inline > .form-actions {
    flex-shrink: 0;
    padding-top: 0;
    border-top: none;
  }

  /* Filter form with direct controls (e.g. listings, admin): single row */
  .profile-card-filter-inline .filter-form-inline.form-inline,
  .profile-card-filter-inline form.filter-form-inline.form-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
  }
  .profile-card-filter-inline .filter-form-inline.form-inline > input[type="text"],
  .profile-card-filter-inline .filter-form-inline.form-inline > input[type="search"] {
    flex: 1;
    min-width: 140px;
    max-width: 240px;
  }
  .profile-card-filter-inline .filter-form-inline.form-inline > select {
    min-width: 120px;
    max-width: 160px;
  }
  .profile-card-filter-inline .filter-form-inline.form-inline > .btn,
  .profile-card-filter-inline .filter-form-inline.form-inline > a.btn {
    flex-shrink: 0;
  }
}

/* Form Container */
.form-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
}

/* Auth form (when used without .form-container, e.g. dealer/private wizard) */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
}

/* Form Section */
.form-section {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.form-section-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--glass-border);
}

/* Fieldset/legend: use as form section wrapper for semantics (keep same padding as .form-section) */
fieldset.form-section {
  border: none;
  padding: var(--spacing-sm);
  margin: 0 0 var(--spacing-sm);
  min-width: 0;
}

fieldset.form-section .form-section-title,
legend.form-section-title {
  display: block;
  width: 100%;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--glass-border);
}

legend.form-section-title {
  padding-left: 0;
  padding-right: 0;
}

/* Form wizard (multi-step) */
.form-wizard {
  position: relative;
}

.form-wizard-step {
  display: none;
}

.form-wizard-step.is-active {
  display: block;
}

.form-wizard-progress {
  font-size: var(--font-size-xs);
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  margin-bottom: var(--spacing-sm);
}

.form-wizard-progress strong {
  color: #fff;
}

.form-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-sm);
  margin-top: var(--spacing-xs);
  border-top: 1px solid var(--glass-border);
}

.form-wizard-actions .btn:first-child {
  margin-right: auto;
}

/* Form Checkbox & Radio */
.form-checkbox,
.form-radio {
  width: auto;
  margin-right: var(--spacing-xs);
  cursor: pointer;
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.form-checkbox-label,
.form-radio-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
}

/* Form Small Text */
.form-small {
  opacity: 0.7;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.65);
}

/* Form Input Max Width */
/* Form input max width moved to Form Element System section above */

/* Legacy Form Classes - Keep for backward compatibility */
.admin-input {
  /* Uses .form-input styles */
}

/* ============================================
   CARD COMPONENT SYSTEM
   ============================================ */

/* Base Card Styles */
.card,
.profile-card,
.analytics-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  transition: all var(--transition-base);
}

.card:hover,
.profile-card:hover,
.analytics-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.card:active,
.profile-card:active,
.analytics-card:active {
  transform: translateY(-2px) scale(1.005);
  transition: transform var(--transition-fast);
}

/* Card Components */
.card-header,
.profile-card-title {
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--glass-border);
}

.card-title,
.profile-card-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  margin: 0;
  line-height: var(--line-height-snug);
}

.card-body {
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--line-height-relaxed);
}

.card-footer {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--glass-border);
}

/* Card Variants */
.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-elevated:hover {
  box-shadow: var(--shadow-lg);
}

/* Legacy Card Classes - Keep for backward compatibility */
.profile-card {
  /* Uses base card styles */
}

.analytics-card {
  /* Uses base card styles */
}

.spec-grid {
  display: grid;
  gap: 10px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.spec-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.spec-value {
  font-weight: 600;
  color: #fff;
}

/* HERO – full viewport: top 0, left 0, cover whole area */
.hero {
  min-height: 90vh;
  padding: 40px 0;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Break out to viewport: left edge at 0, full width */
@supports (width: 100vw) {
  .hero {
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    right: auto;
    margin-left: -50vw;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(11, 15, 20, 0.95) 0%,
      rgba(11, 15, 20, 0.9) 40%,
      rgba(11, 15, 20, 0.6) 100%);
  z-index: 0;
}

/* Floating particles overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(0, 224, 255, 0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 70%, rgba(0, 128, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(0, 224, 255, 0.25) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 50%, rgba(0, 128, 255, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(0, 224, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 90%, rgba(0, 224, 255, 0.15) 0%, transparent 100%),
    radial-gradient(2px 2px at 90% 15%, rgba(0, 128, 255, 0.2) 0%, transparent 100%);
  animation: hero-particles 20s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes hero-particles {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-20px) scale(1.02);
    opacity: 1;
  }

  100% {
    transform: translateY(10px) scale(0.98);
    opacity: 0.5;
  }
}

/* Additional dark overlay for text areas */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center,
      rgba(11, 15, 20, 0.8) 0%,
      rgba(11, 15, 20, 0.6) 60%,
      transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  animation: hero-fade-up 0.8s ease-out both;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Reserve space to avoid CLS before images load */
  aspect-ratio: 16 / 9;
  min-height: 50vh;
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NAV – floating on hero image, no outlines */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(11, 15, 20, 0.35);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: none;
  border-radius: 16px;
  position: fixed;
  top: 16px;
  left: 80px;
  right: 80px;
  z-index: 1200;
  box-shadow: none;
  transition: padding var(--transition-slow), background var(--transition-slow), border-radius var(--transition-slow);
}

/* Navbar scroll effect — slightly more solid when scrolled */
.navbar.navbar-scrolled {
  padding: 10px 20px;
  background: rgba(11, 15, 20, 0.75);
  box-shadow: none;
  border-radius: 12px;
}

.navbar h1,
.brand a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
}

.brand a {
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  margin: -8px -14px 0 -14px;
  border-radius: 12px;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.brand a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.brand a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brand-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: filter var(--transition-base);
}

.brand a:hover .brand-logo {
  filter: drop-shadow(0 2px 6px rgba(0, 224, 255, 0.2));
}

.logo-light {
  display: block !important;
}

.logo-dark {
  display: none !important;
}

.on-light .logo-light {
  display: none !important;
}

.on-light .logo-dark {
  display: block !important;
}

.navbar-menu {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Spacing before user/admin section (5th item onward) */
.navbar-menu li:nth-child(n+5) {
  margin-left: 8px;
  padding-left: 16px;
}

.navbar a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  position: relative;
  padding: 8px 14px;
  border-radius: 9999px;
  display: inline-block;
}

.navbar a::after {
  display: none;
}

.navbar a:hover {
  color: #fff;
  background: rgba(0, 224, 255, 0.15);
}

.navbar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Primary links (Buy, Sell) slightly stronger hover */
.navbar-menu li:first-child a:hover,
.navbar-menu li:nth-child(2) a:hover {
  background: rgba(0, 224, 255, 0.2);
  color: #fff;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-toggle::after {
  content: ' ▼';
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  list-style: none;
  display: none;
  z-index: 1300;
  box-shadow: none;
  margin: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown-menu {
  animation: fade-in var(--transition-base) ease-out;
  transform-origin: top right;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  border-radius: var(--radius-sm);
  margin: 0 var(--spacing-xs);
}

.nav-dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: height var(--transition-base);
}

.nav-dropdown-menu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  padding-left: 28px;
  transform: translateX(2px);
}

.nav-dropdown-menu a:hover::before {
  height: 60%;
}

.nav-dropdown-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-sm);
  z-index: var(--z-fixed);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  min-height: 44px;
  justify-content: center;
  position: relative;
}

.mobile-bottom-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: width var(--transition-base);
}

.mobile-bottom-item:hover,
.mobile-bottom-item:focus-visible,
.mobile-bottom-item.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.mobile-bottom-item:hover::before,
.mobile-bottom-item:focus-visible::before,
.mobile-bottom-item.active::before {
  width: 60%;
}

.mobile-bottom-item:active {
  transform: translateY(0);
  transition: transform var(--transition-fast);
}

.mobile-bottom-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* HERO CONTENT */
.hero-container {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(90vh - 120px);
  padding-bottom: var(--spacing-xl);
}

.hero-content {
  width: 100%;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.hero-content h2 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

@media (min-width: 901px) {
  .hero-content {
    justify-content: flex-end;
    gap: 14px;
  }

  .hero-content h2 {
    margin-bottom: 0;
  }

  .hero-content p {
    margin-bottom: 0;
  }

  .hero-trust {
    margin-bottom: 0;
  }

  .hero-bottom-row .search-panel {
    padding-bottom: 36px;
  }
}

/* Gradient shimmer for hero heading highlight word */
.hero-gradient-text {
  background: linear-gradient(90deg, #00e0ff, #0080ff, #a855f7, #00e0ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shimmer 4s ease-in-out infinite;
}

@keyframes gradient-shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(0, 0, 0, 0.4);
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-normal);
  animation: hero-fade-up 0.8s ease-out 0.15s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  animation: hero-fade-up 0.8s ease-out 0.3s both;
}

/* Hero CTA glow pulse */
.hero-actions .btn-primary {
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.3), 0 0 60px rgba(0, 224, 255, 0.1);
  transition: all var(--transition-base);
}

.hero-actions .btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 224, 255, 0.5), 0 0 80px rgba(0, 224, 255, 0.2);
  transform: translateY(-3px) scale(1.02);
}

/* Hero Bottom Row – pinned to bottom of hero */
.hero-bottom-row {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-top: 0;
  flex-shrink: 0;
  animation: hero-fade-up 0.8s ease-out 0.45s both;
}

/* Trust signals row */
.hero-trust {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 28px;
  animation: hero-fade-up 0.8s ease-out 0.25s both;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-medium);
}

.hero-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 224, 255, 0.2);
  color: var(--accent);
  flex-shrink: 0;
}

.hero-trust-icon .ph {
  font-size: 0.875rem;
}

@media (max-width: 1200px) {
  .hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
  }

  .hero-trust {
    gap: 16px;
  }

  .search-panel {
    width: 100%;
    max-width: 100%;
  }
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.how-it-works h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
  color: #fff;
}

.how-it-works .section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-slow);
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 224, 255, 0.3);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #000;
}

.step-icon .ph {
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(0, 224, 255, 0.3);
}

.step-number {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: var(--font-weight-semibold);
  color: #fff;
  margin-bottom: 10px;
}

.step-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* SEARCH PANEL */
.search-panel {
  margin-top: 0;
  margin-bottom: 0;
  padding: 26px;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  width: 100%;
  /* Default width */
  max-width: 100%;

  /* Flex behavior when inside hero-bottom-row */
  flex: 1;
  min-width: 0;
}

.search-panel input,
.search-panel select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.search-panel input:focus,
.search-panel select:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.2);
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--font-weight-normal);
}

.search-select,
.search-input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.search-select:focus,
.search-input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.2);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--font-weight-normal);
}

.search-select:disabled {
  opacity: 0.6;
  /* Improved contrast for WCAG AA */
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
}

/* SEARCH PAGE LAYOUT */
.search-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
  width: 100%;
}

.search-filters {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 120px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.search-filters:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Mobile: Filters as slideout */
@media (max-width: 900px) {
  .search-filters {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-slow)-in-out;
    overflow-y: auto;
    padding: 24px;
    padding-top: 70px;
  }

  .search-filters.active {
    transform: translateX(0);
  }

  .filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1499;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow)-in-out, visibility var(--transition-slow)-in-out;
  }

  .filters-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .filters-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
    transition: all var(--transition-base);
  }

  .filters-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .filters-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 1501;
  }

  .filters-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }
}

.filters-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.filters-title::before {
  content: "⚙️";
  font-size: 1.2rem;
  opacity: 0.8;
}

.filters-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.filter-group:has(.filter-select:focus) {
  z-index: 1000;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.filter-select,
.filter-input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  font-weight: 400;
  width: 100%;
}

.filter-select:hover,
.filter-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
  transform: translateY(-1px);
}

.filter-select {
  z-index: 100;
  position: relative;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.filter-select option {
  background: #1a1d24 !important;
  background-color: #1a1d24 !important;
  color: #fff !important;
  padding: 8px;
}

.filter-select option:checked,
.filter-select option:hover {
  background: #2a2d34 !important;
  background-color: #2a2d34 !important;
}

/* Ensure dropdown appears above other content */
.filter-select:focus {
  z-index: 1000;
}

/* Fix for form groups containing selects */
.form-group {
  position: relative;
  z-index: 1;
}

.form-group:has(select:focus),
.form-group:has(.filter-select:focus),
.form-group:has(.form-input[type="select"]:focus) {
  z-index: 1000;
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.filter-range-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 4px;
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px;
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-checkboxes::-webkit-scrollbar {
  width: 6px;
}

.filter-checkboxes::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all var(--transition-base);
  user-select: none;
}

.filter-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.filter-feature-icon svg,
.filter-feature-icon .ph {
  display: block;
}

.filter-feature-icon .ph {
  width: auto;
  height: auto;
}

.filter-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.95);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-actions .btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all var(--transition-base);
}

.filter-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #9d4edd 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.filter-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.filter-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.filter-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-results-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.search-results-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 400;
}

.search-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.sort-select {
  padding: 10px 16px;
  padding-right: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z' opacity='0.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.sort-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.sort-select {
  z-index: 100;
  position: relative;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.sort-select option {
  background: #1a1d24 !important;
  background-color: #1a1d24 !important;
  color: #fff !important;
  padding: 8px;
}

.sort-select option:checked,
.sort-select option:hover {
  background: #2a2d34 !important;
  background-color: #2a2d34 !important;
}

.sort-select:focus {
  z-index: 1000;
}

.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.search-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

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

.listings-grid.row {
  display: flex;
  grid-template-columns: unset;
}

.listing-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.listing-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.listing-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.listing-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.listing-card-info {
  padding: 16px;
}

.listing-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.listing-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.listing-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.listing-card-price .listing-price-currency {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.listing-card-price .listing-price-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.listing-card-price .listing-price-old {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
  margin-left: 8px;
}

.listing-card-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.car-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Car card badges – compact pill on image */
.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.car-badge:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.car-badge.badge-featured {
  background: rgba(0, 224, 255, 0.92);
  color: #0a0e12;
  border-color: rgba(255, 255, 255, 0.4);
}

.car-badge.badge-new {
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.car-badge.badge-price-drop {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination-link {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.pagination-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

.pagination-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

.search-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.search-pagination .pagination-link {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  display: inline-block;
}

.search-pagination .pagination-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

.search-pagination .pagination-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
  cursor: default;
}

.search-pagination .pagination-ellipsis {
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.5);
}

.search-loading {
  text-align: center;
  padding: 60px 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .filters-toggle-btn {
    display: flex !important;
  }

  .filters-close-btn {
    display: flex !important;
  }

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

  .search-results-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* FEATURED CARS */
.section {
  padding: 32px 0;
  width: 100%;
}

/* Section content should match navbar width */
.section > .container,
.section > .container-fluid,
.section>.container-wide,
.section>.container-extra-wide,
.section>.container-medium,
.section>.container-narrow {
  width: 100%;
}

.section h3 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Bootstrap row/col override when .cars-grid uses row */
.cars-grid.row {
  display: flex;
  grid-template-columns: unset;
}

.car-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  display: flex;
  flex-direction: column;
  contain: layout paint;
}

.car-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

/* Image zoom on car-card hover */
.car-card:hover .car-slide {
  transform: scale(1.06);
}

/* Gradient overlay for text readability */
.car-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
  z-index: 1;
  pointer-events: none;
}

.car-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 240px;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-slow) ease, transform var(--transition-slower) ease;
  will-change: opacity, transform;
}

.hero-slideshow .car-slide {
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .car-slide {
    transition: none;
  }
}

.car-slide.is-active {
  opacity: 1;
}

.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(11, 15, 20, 0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base), background var(--transition-base);
}

.car-arrow-left {
  left: 10px;
}

.car-arrow-right {
  right: 10px;
}

.car-media:hover .car-arrow,
.car-media:focus-within .car-arrow {
  opacity: 1;
}

.car-arrow:hover {
  background: rgba(11, 15, 20, 0.8);
}

.car-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.car-dot.is-active {
  background: #fff;
}

.car-media:hover .car-indicators,
.car-media:focus-within .car-indicators {
  opacity: 1;
}

.car-card .info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  flex: 1;
}

.car-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-top {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-top>div {
  flex: 1;
  min-width: 0;
}

.submeta {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 6px;
  font-size: 0.75rem;
  margin-top: 8px;
  line-height: 1.5;
  min-width: 0;
  width: 100%;
}

.submeta-item {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.submeta-item::before {
  content: "•";
  opacity: 0.4;
  margin-right: 6px;
  font-size: 0.7em;
}

.submeta-item:first-child::before {
  content: "";
  margin-right: 0;
}

.meta-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 6px;
  font-size: 0.775rem;
  line-height: 1.5;
  opacity: 0.75;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.8);
  min-width: 0;
  width: 100%;
}

.meta-list li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.meta-list li::before {
  content: "•";
  margin-right: 6px;
  opacity: 0.5;
  font-size: 0.7em;
}

.meta-list li:first-child::before {
  content: "";
  margin-right: 0;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-local {
  background: rgba(64, 196, 255, 0.2);
  border-color: rgba(64, 196, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.tag-imported {
  background: rgba(255, 198, 0, 0.2);
  border-color: rgba(255, 198, 0, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.tag-new {
  background: rgba(0, 255, 127, 0.2);
  border-color: rgba(0, 255, 127, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.tag-finance {
  background: rgba(0, 224, 255, 0.2);
  border-color: rgba(0, 224, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.7rem;
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.link-btn {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition-base), opacity var(--transition-base);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-btn::after {
  content: "↗";
  font-size: 0.85em;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.link-btn:hover {
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

.link-btn:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-base);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.favorite-btn:hover {
  background: rgba(11, 15, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.favorite-btn:active {
  transform: scale(0.95);
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 224, 255, 0.15);
  border-color: rgba(0, 224, 255, 0.25);
}


/* FOOTER */
.site-footer {
  padding: 56px 80px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

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

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 10px;
  display: block;
}

.footer-brand p {
  opacity: 0.75;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 32px;
}

.footer-column h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-column a {
  display: block;
  text-decoration: none;
  color: #fff;
  opacity: 0.7;
  margin-bottom: 8px;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.3), rgba(0, 128, 255, 0.3), transparent) 1;
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Newsletter row */
.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  max-width: 400px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.footer-newsletter .btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 8px 0 0;
}

.preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  z-index: 2000;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.preloader-logo {
  height: 72px;
  width: auto;
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-slow);
}

.social-link svg,
.social-link .ph {
  transition: transform var(--transition-slow);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link .ph {
  font-size: 1.125rem;
  width: auto;
  height: auto;
}

.social-link:hover {
  background: rgba(0, 224, 255, 0.15);
  border-color: rgba(0, 224, 255, 0.4);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 224, 255, 0.2);
}

.social-link:hover svg,
.social-link:hover .ph {
  transform: scale(1.15);
}

@media (min-width: 1200px) {
  .hero {
    padding: 40px 0;
    padding-top: 140px;
  }

  .hero-container {
    max-width: calc(100vw - 500px);
  }

  .section {
    padding: 100px 0;
  }

  .section > .container,
  .section > .container-fluid,
  .section>.container-wide,
  .section>.container-extra-wide {
    max-width: calc(100vw - 500px);
  }

  .site-footer {
    padding: 56px 250px 24px;
  }

  .cars-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .navbar {
    left: 250px;
    right: 250px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  body {
    padding-bottom: 60px;
  }

  /* Hide desktop navigation on mobile */
  .navbar-menu {
    display: none !important;
  }

  /* Hide dropdown menu on mobile (not needed since parent is hidden) */
  .nav-dropdown-menu {
    display: none !important;
  }

  /* Show mobile bottom navigation – single row, tighter on mobile */
  .mobile-bottom-nav {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(11, 15, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    z-index: 1100;
    max-width: calc(100vw - 16px);
    min-width: 0;
  }

  .mobile-bottom-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: clamp(0.55rem, 1.8vw, 0.7rem);
    color: #fff;
    text-decoration: none;
    padding: 6px 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: all var(--transition-base);
  }

  .mobile-nav-icon {
    opacity: 0.8;
    flex-shrink: 0;
  }
  .mobile-nav-icon.ph {
    font-size: 1.25rem;
    width: auto;
    height: auto;
  }

  .mobile-bottom-item:active {
    transform: scale(0.93);
    background: rgba(0, 224, 255, 0.15);
    color: var(--accent);
  }

  .mobile-bottom-item:active .mobile-nav-icon {
    opacity: 1;
  }

  .mobile-bottom-item:active,
  .mobile-bottom-item:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
  }

  .hero,
  .section {
    padding: 24px 0;
  }

  .hero-container {
    max-width: calc(100vw - 32px);
    padding: 0 10px;
  }

  .section > .container,
  .section > .container-fluid,
  .section>.container-wide,
  .section>.container-extra-wide,
  .section>.container-medium,
  .section>.container-narrow {
    max-width: calc(100vw - 32px);
    padding: 0 10px;
  }

  .hero {
    padding-top: 88px;
  }

  .navbar {
    left: 24px;
    right: 24px;
  }

  .hero-container {
    min-height: auto;
    padding-bottom: var(--spacing-lg);
  }

  .hero-content {
    margin-bottom: var(--spacing-md);
  }

  .search-panel {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-lg);
  }

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

  .hero-content h2 {
    font-size: 2rem;
  }

  .card,
  .profile-card {
    padding: 14px;
  }

  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet breakpoint — 2 columns */
@media (min-width: 601px) and (max-width: 900px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-panel {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px 12px;
    gap: 10px;
  }

  .search-panel .btn {
    grid-column: 1 / -1;
  }

  .search-panel input,
  .search-panel select {
    padding: 10px;
  }
}

/* Ensure proper navigation visibility on desktop */
@media (min-width: 901px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .navbar-menu {
    display: flex !important;
  }
}

/* DASHBOARD LAYOUT STYLES */
body.dashboard-page {
  overflow-x: hidden;
}

body.dashboard-page .navbar,
body.dashboard-page .mobile-bottom-nav {
  display: none !important;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--dark);
}

.dashboard-sidebar {
  width: 260px;
  background: rgba(11, 15, 20, 0.95);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform var(--transition-slow);
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.sidebar-logo-img {
  height: 32px;
  width: auto;
}

.sidebar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu-item {
  margin: 0;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
}

.sidebar-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-menu-item.active .sidebar-menu-link {
  background: rgba(0, 224, 255, 0.1);
  color: var(--accent);
  border-left-color: var(--accent);
}

.sidebar-menu-icon {
  width: 24px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-menu-icon .ph {
  font-size: 1.2rem;
}

.sidebar-menu-label {
  font-size: 0.95rem;
}

.sidebar-footer {
  border-top: 1px solid var(--glass-border);
  padding: 16px 20px;
}

.sidebar-user {
  margin-bottom: 12px;
}

.sidebar-user-info {
  padding: 8px 0;
}

.sidebar-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
}

.sidebar-logout:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff6b6b;
}

/* Dashboard bottom nav (mobile): hidden by default, shown at ≤900px */
.dashboard-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1010;
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-border);
  padding: 8px 6px 8px 6px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
}

.dashboard-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  transition: color var(--transition-base), background var(--transition-base);
}

.dashboard-bottom-nav-item:hover,
.dashboard-bottom-nav-item:focus-visible,
.dashboard-bottom-nav-item.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-bottom-nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.dashboard-bottom-nav-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.dashboard-bottom-nav-icon.ph {
  font-size: 1.375rem;
  width: auto;
  height: auto;
}

.dashboard-bottom-nav-item.active .dashboard-bottom-nav-icon {
  opacity: 1;
}

.dashboard-bottom-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Dashboard menu flyout (slides up from bottom when "Menu" is tapped) */
.dashboard-menu-flyout-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1015;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.dashboard-menu-flyout-backdrop.open {
  display: block;
  opacity: 1;
}

.dashboard-menu-flyout {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  max-height: 75vh;
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.dashboard-menu-flyout.open {
  transform: translateY(0);
}

.dashboard-menu-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.dashboard-menu-flyout-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.dashboard-menu-flyout-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  transition: color var(--transition-base), background var(--transition-base);
}

.dashboard-menu-flyout-close:hover,
.dashboard-menu-flyout-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-menu-flyout-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.dashboard-menu-flyout-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-menu-flyout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 12px;
}

.dashboard-menu-flyout-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 12px;
  transition: background var(--transition-base), color var(--transition-base);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  min-height: 72px;
}

.dashboard-menu-flyout-tile:hover,
.dashboard-menu-flyout-tile:focus-visible,
.dashboard-menu-flyout-tile.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.dashboard-menu-flyout-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.dashboard-menu-flyout-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-menu-flyout-tile-icon svg,
.dashboard-menu-flyout-tile-icon .ph {
  opacity: 0.9;
}

.dashboard-menu-flyout-tile-icon .ph {
  font-size: 1.75rem;
}

.dashboard-menu-flyout-tile.active .dashboard-menu-flyout-tile-icon svg,
.dashboard-menu-flyout-tile:hover .dashboard-menu-flyout-tile-icon svg,
.dashboard-menu-flyout-tile.active .dashboard-menu-flyout-tile-icon .ph,
.dashboard-menu-flyout-tile:hover .dashboard-menu-flyout-tile-icon .ph {
  opacity: 1;
}

.dashboard-menu-flyout-tile-label {
  line-height: 1.2;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dashboard-menu-flyout-footer {
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.dashboard-menu-flyout-footer.dashboard-menu-flyout-grid {
  padding-top: 12px;
  padding-bottom: 0;
}

.dashboard-menu-flyout-logout:hover,
.dashboard-menu-flyout-logout:focus-visible {
  color: #ff6b6b;
}

.dashboard-menu-flyout-logout .dashboard-menu-flyout-tile-icon svg,
.dashboard-menu-flyout-logout .dashboard-menu-flyout-tile-icon .ph {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-menu-flyout,
  .dashboard-menu-flyout-backdrop {
    transition: none;
  }
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-header {
  background: rgba(11, 15, 20, 0.95);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-left: 260px; /* clear fixed sidebar */
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.dashboard-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.dashboard-sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-base);
}

.dashboard-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-toggle-icon {
  display: block;
}

.dashboard-header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

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

.dashboard-header-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.dashboard-header-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-slow);
}

.dashboard-header-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dashboard-header-link:hover::before {
  left: 100%;
}

.dashboard-header-link:active {
  transform: translateY(0);
}

.dashboard-header-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dashboard-header-icon {
  font-size: 1.1rem;
}

.dashboard-header-text {
  display: none;
}

/* Notification Dropdown */
.notification-dropdown {
  position: relative;
}

.notification-toggle {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.notification-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: rgba(20, 25, 32, 0.95);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  max-height: 500px;
  flex-direction: column;
}

.notification-dropdown-menu.active {
  display: flex;
}

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

.notification-dropdown-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.notification-mark-all-read {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.notification-mark-all-read:hover {
  background: rgba(0, 224, 255, 0.1);
}

.notification-list {
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
  max-height: 400px;
}

.notification-loading {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.notification-item-dropdown {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item-dropdown:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notification-item-dropdown.unread {
  background: rgba(0, 224, 255, 0.05);
}

.notification-item-dropdown.unread:hover {
  background: rgba(0, 224, 255, 0.1);
}

.notification-item-title-dropdown {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #fff;
}

.notification-item-message-dropdown {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-time-dropdown {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.notification-dropdown-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.notification-view-all {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.notification-view-all:hover {
  opacity: 0.8;
}

/* Notification List Page */
.notification-filters {
  display: flex;
  gap: 12px;
}

.notification-filter {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.notification-filter:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.notification-filter.active {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.notification-list-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-bulk-actions {
  margin-bottom: 8px;
}

.notification-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.notification-item.unread {
  background: rgba(0, 224, 255, 0.08);
  border-color: rgba(0, 224, 255, 0.3);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.notification-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  line-height: 1.5;
}

.notification-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.notification-type {
  text-transform: uppercase;
  font-weight: 500;
}

.notification-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.notification-action-form {
  display: inline;
}

.notification-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.notification-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.notification-delete:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.5);
  color: #ff3b30;
}

.notification-link:hover {
  background: rgba(0, 224, 255, 0.2);
  border-color: rgba(0, 224, 255, 0.5);
  color: var(--accent);
}

@media (max-width: 768px) {
  .notification-dropdown-menu {
    width: calc(100vw - 20px);
    right: -10px;
  }

  .notification-item {
    flex-direction: column;
  }

  .notification-actions {
    align-self: flex-end;
  }
}

.dashboard-content {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.dashboard-welcome {
  margin-bottom: 32px;
}

.dashboard-welcome h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.dashboard-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

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

/* When using Bootstrap grid, let .row control layout */
.admin-page .dashboard-stats.row {
  display: flex;
  grid-template-columns: unset;
  gap: 0;
}

.admin-page .dashboard-actions-grid.row {
  display: flex;
  grid-template-columns: unset;
  gap: 0;
}

.dashboard-stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.dashboard-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-quick-actions {
  margin-top: 32px;
}

.dashboard-quick-actions h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.dashboard-action-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-base);
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.dashboard-action-icon {
  font-size: 2rem;
}

.dashboard-action-label {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

/* Desktop: expanded content, min 20px sides, more columns on larger screens */
@media (min-width: 901px) {
  .dashboard-content {
    padding: 20px 12px 24px;
    max-width: none;
    width: 100%;
  }

  .dashboard-header-content {
    padding: 12px 12px;
    gap: 12px;
  }

  .dashboard-main {
    margin-left: 260px;
  }

  .dashboard-welcome {
    margin-bottom: 20px;
  }

  .dashboard-welcome h1 {
    margin-bottom: 4px;
  }

  .dashboard-subtitle {
    margin-top: 2px;
  }

  .admin-page.container-fluid {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-stats.row {
    margin-bottom: 1rem;
  }

  .dashboard-stats .dashboard-stat-card {
    padding: 12px 14px;
  }

  .dashboard-stat-value {
    margin-bottom: 4px;
  }

  .dashboard-stat-label {
    margin-bottom: 2px;
  }

  .dashboard-quick-actions {
    margin-top: 16px;
  }

  .dashboard-quick-actions h2 {
    margin-bottom: 12px;
  }

  body.dashboard-page .margin-top-medium {
    margin-top: 12px !important;
  }

  .dashboard-actions-grid .dashboard-action-card {
    padding: 12px 10px;
    gap: 6px;
  }

  .admin-page .row .profile-card .profile-card-title {
    margin-bottom: 8px;
    padding-bottom: 6px;
    font-size: 0.95rem;
  }

  .dashboard-recent-card {
    min-height: 100px;
  }

  body.dashboard-page .page-header {
    margin-bottom: 12px;
  }

  body.dashboard-page .page-header h2 {
    font-size: 1.35rem;
  }

  body.dashboard-page .admin-page .page-header {
    margin-bottom: 12px;
  }

  /* Public: section and container spacing */
  .section {
    padding: 40px 0;
  }

  .section h3 {
    margin-bottom: 20px;
  }

  .section > .container,
  .section > .container-fluid,
  .section > .container-wide,
  .section > .container-extra-wide {
    padding: 0 20px;
  }

  .section > .container-medium,
  .section > .container-narrow {
    padding: 0 20px;
  }

  .container,
  .container-fluid,
  .container-wide,
  .container-extra-wide {
    padding-left: 20px;
    padding-right: 20px;
  }

  .container-medium,
  .container-narrow {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-header {
    margin-bottom: 16px;
  }

  .cars-grid {
    gap: 16px;
  }

  .profile-card,
  .card {
    padding: var(--spacing-md);
  }
}

/* Dashboard page content styling */
body.dashboard-page .section {
  padding: 0;
  margin: 0;
}

body.dashboard-page .dashboard-content .section {
  padding: 0;
}

body.dashboard-page .section > .container,
body.dashboard-page .section > .container-fluid,
body.dashboard-page .section>.container-narrow,
body.dashboard-page .section>.container-medium,
body.dashboard-page .section>.container-wide,
body.dashboard-page .section>.container-extra-wide {
  max-width: 100%;
  margin: 0;
  padding: var(--spacing-sm);
  width: 100%;
  box-sizing: border-box;
}

body.dashboard-page .page-header {
  margin-bottom: var(--spacing-sm);
}

body.dashboard-page .page-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* Dashboard responsive – consistent mobile experience for admin/dashboard */
@media (max-width: 900px) {
  /* No horizontal scrolling on mobile anywhere */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  #main-content,
  .dashboard-content,
  .dashboard-main,
  .admin-page,
  .section,
  .container,
  .container-fluid,
  .container-wide,
  .container-extra-wide,
  .container-narrow,
  .container-medium {
    max-width: 100%;
    overflow-x: hidden;
  }

  .dashboard-sidebar {
    transform: translateX(-100%);
    z-index: 1020;
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  body.dashboard-page .dashboard-bottom-nav {
    display: flex;
    padding: 6px 4px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    gap: 2px;
  }

  body.dashboard-page .dashboard-bottom-nav-item {
    padding: 6px 2px;
    min-height: 40px;
    font-size: 0.6rem;
  }

  body.dashboard-page .dashboard-bottom-nav-icon.ph {
    font-size: 1.25rem;
  }

  .dashboard-menu-flyout {
    max-height: 70vh;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .dashboard-menu-flyout-header {
    padding: 10px 12px;
  }

  .dashboard-menu-flyout-title {
    font-size: 1rem;
  }

  .dashboard-menu-flyout-close {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .dashboard-menu-flyout-grid {
    gap: 6px;
    padding: 10px 8px;
  }

  .dashboard-menu-flyout-tile {
    padding: 8px 4px;
    min-height: 56px;
    gap: 4px;
    font-size: 0.65rem;
  }

  .dashboard-menu-flyout-tile-icon svg {
    width: 24px;
    height: 24px;
  }

  .dashboard-menu-flyout-footer.dashboard-menu-flyout-grid {
    padding-top: 8px;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-header {
    margin-left: 0;
  }

  .dashboard-sidebar-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
  }

  .dashboard-header-text {
    display: inline;
  }

  /* Tighter horizontal padding on mobile */
  .dashboard-header-content {
    padding: 8px 12px;
    gap: 8px;
  }

  .dashboard-content {
    padding: 14px 12px;
  }

  body.dashboard-page .dashboard-content {
    padding-bottom: max(64px, calc(52px + env(safe-area-inset-bottom)));
  }

  .dashboard-header-title {
    font-size: 1.1rem;
    min-width: 0;
  }

  .dashboard-header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .dashboard-header-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .dashboard-stat-card {
    padding: 10px 6px;
    aspect-ratio: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }

  .dashboard-stat-value {
    font-size: clamp(0.875rem, 4vw, 1.15rem);
    margin-bottom: 2px;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .dashboard-stat-label {
    font-size: 0.6rem;
    line-height: 1.15;
    margin-bottom: 1px;
    min-width: 0;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dashboard-stat-meta {
    font-size: 0.5rem;
    opacity: 0.85;
    line-height: 1.15;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-actions-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .dashboard-action-card {
    padding: 14px 12px;
    gap: 8px;
  }

  .dashboard-action-icon {
    font-size: 1.5rem;
  }

  .dashboard-action-label {
    font-size: 0.8rem;
  }

  /* Page header: tighter */
  body.dashboard-page .page-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }

  body.dashboard-page .page-header h2 {
    font-size: 1.15rem;
    flex: 1 1 100%;
    margin: 0;
  }

  body.dashboard-page .page-header .btn,
  body.dashboard-page .page-header > a {
    flex-shrink: 0;
  }

  .dashboard-recent-card {
    min-height: 0;
  }

  /* Admin table container: tighter padding */
  body.dashboard-page .admin-table-container {
    padding: 10px 12px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
    overflow-x: hidden;
    max-width: 100%;
  }

  body.dashboard-page .admin-table th,
  body.dashboard-page .admin-table td {
    padding: 8px 6px;
    font-size: 0.8125rem;
  }

  /* Admin table filters: stack on mobile */
  body.dashboard-page .admin-table-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  body.dashboard-page .admin-table-filters .form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  body.dashboard-page .admin-table-filters .form-inline label {
    margin-bottom: 4px;
  }

  body.dashboard-page .admin-table-filters .form-inline input,
  body.dashboard-page .admin-table-filters .form-inline select {
    width: 100%;
    min-width: 0;
  }

  /* DataTables header: stack search and length, full width */
  body.dashboard-page .datatable-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
  }

  body.dashboard-page .datatable-search {
    min-width: 0;
    width: 100%;
  }

  body.dashboard-page .datatable-search input[type="search"] {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  body.dashboard-page .datatable-length {
    width: 100%;
  }

  body.dashboard-page .datatable-length select {
    min-width: 0;
    width: 100%;
  }

  /* DataTables footer: wrap on small screens */
  body.dashboard-page .datatable-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Alerts: full width, readable */
  body.dashboard-page .alert {
    margin-bottom: 10px;
    padding: 8px 12px;
  }

  /* Form actions and buttons: full width where appropriate */
  body.dashboard-page .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  body.dashboard-page .form-actions .btn {
    width: 100%;
  }

  /* Admin action buttons in table cells */
  body.dashboard-page .admin-action-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  body.dashboard-page .admin-action-buttons .btn {
    min-width: 36px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Cards and sections: consistent padding */
  body.dashboard-page .profile-card,
  body.dashboard-page .glass-card {
    padding: var(--spacing-sm);
  }

  body.dashboard-page .profile-card-title,
  body.dashboard-page .glass-card-title {
    font-size: 1.1rem;
  }

  /* Dashboard header: truncate long title and user name on narrow screens */
  .dashboard-header-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-header-text {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
  }

  /* DataTables pagination: prevent truncation */
  .datatable-footer,
  .dataTables_wrapper .dataTables_paginate {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: auto;
    padding: 6px 10px;
  }

  /* All table containers: no horizontal scroll on mobile */
  .admin-table-container {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Admin table: card layout on mobile (all admin pages) */
  .admin-page .admin-table-container {
    overflow: visible;
  }

  .admin-page .admin-table-container .admin-table,
  .admin-page .admin-table-container table.admin-table {
    display: block;
    min-width: 0;
  }

  .admin-page .admin-table-container thead {
    display: none;
  }

  .admin-page .admin-table-container tbody {
    display: block;
  }

  .admin-page .admin-table-container tbody tr {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
  }

  .admin-page .admin-table-container tbody td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
  }

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

  .admin-page .admin-table-container tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    min-width: 70px;
  }

  .admin-page .admin-table-container tbody td .admin-link,
  .admin-page .admin-table-container tbody td a {
    word-break: break-word;
  }

  .admin-page .admin-table-container tbody td form {
    flex: 1;
    min-width: 0;
  }

  .admin-page .admin-table-container tbody td .admin-select {
    width: 100%;
    max-width: 100%;
  }

  /* Analytics table: same card layout, no horizontal scroll */
  .analytics-table-container {
    overflow-x: hidden;
    max-width: 100%;
  }

  .analytics-table-container table {
    display: block;
    min-width: 0;
  }

  .analytics-table-container thead {
    display: none;
  }

  .analytics-table-container tbody {
    display: block;
  }

  .analytics-table-container tbody tr {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
  }

  .analytics-table-container tbody td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
  }

  .analytics-table-container tbody td:last-child {
    border-bottom: none;
  }

  .analytics-table-container tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    min-width: 70px;
  }
}

/* AUTH PAGES STYLES */
.auth-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.auth-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.auth-logo {
  height: 36px;
  width: auto;
}

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

.auth-nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  opacity: 0.8;
}

.auth-nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.auth-footer {
  margin-top: 80px;
  padding: 40px 40px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.auth-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-footer-logo {
  height: 32px;
  width: auto;
}

.auth-footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

.auth-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.auth-footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.auth-footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.auth-footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Auth page body styling */
body.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.auth-page .section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 24px;
}

body.auth-page .section>div {
  width: 100%;
  max-width: 500px;
}

@media (max-width: 900px) {
  .auth-navbar {
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .auth-nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }

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

  .auth-footer-links {
    justify-content: center;
  }
}

/* FORM & PAGE STYLES - Consolidated from inline styles */
.container-narrow {
  max-width: 500px;
  margin: 0 auto;
}

.container-medium {
  max-width: 600px;
  margin: 0 auto;
}

/* Container system that matches navbar width */
.container-wide {
  width: 100%;
  max-width: calc(100vw - 160px);
  /* Matches navbar: 80px left + 80px right */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-extra-wide {
  width: 100%;
  max-width: calc(100vw - 160px);
  /* Matches navbar: 80px left + 80px right */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Large screens - match navbar */
@media (min-width: 1400px) {

  .container-wide,
  .container-extra-wide {
    max-width: calc(100vw - 500px);
    /* Matches navbar: 250px left + 250px right */
  }
}

/* Mobile - match navbar */
@media (max-width: 900px) {

  .container-wide,
  .container-extra-wide {
    max-width: calc(100vw - 48px);
    /* Matches navbar: 24px left + 24px right */
    padding: 0 12px;
  }
}

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

.page-header-simple {
  margin-bottom: 24px;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Form Styles - Uses Form Element System styles defined above */
.form-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.form-feature-icon svg,
.form-feature-icon .ph {
  display: block;
}

.form-feature-icon .ph {
  width: auto;
  height: auto;
}

/* Select dropdown styling */
.form-input[type="select"],
.form-input select,
select.form-input {
  z-index: 100;
  position: relative;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-input[type="select"]:focus,
.form-input select:focus,
select.form-input:focus {
  z-index: 1000;
}

.form-input option,
select.form-input option {
  background: #1a1d24 !important;
  background-color: #1a1d24 !important;
  color: #fff !important;
  padding: 10px 12px !important;
}

.form-input option:checked,
.form-input option:hover,
select.form-input option:checked,
select.form-input option:hover {
  background: #2a2d34 !important;
  background-color: #2a2d34 !important;
}

/* Search panel selects */
.search-panel select {
  z-index: 100;
  position: relative;
}

.search-panel select:focus {
  z-index: 1000;
}

.search-panel select option {
  background: #1a1d24 !important;
  color: #fff !important;
  padding: 10px 12px !important;
}

.search-select {
  z-index: 100;
  position: relative;
}

.search-select:focus {
  z-index: 1000;
}

.search-select option {
  background: #1a1d24 !important;
  color: #fff !important;
  padding: 10px 12px !important;
}

/* Form styles moved to Form Element System section above */

@media (max-width: 600px) {
  .form-checkbox-group {
    grid-template-columns: 1fr;
  }
}

/* LISTING DISPLAY PAGE STYLES */
.breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.listing-detail {
  margin-top: 24px;
}

.listing-header {
  margin-bottom: 24px;
}

.listing-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.listing-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-featured {
  background: var(--accent);
  color: #000;
}

.badge-new {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.badge-price-drop {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.listing-price-section {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.listing-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.listing-price-currency {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.listing-price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.listing-price-old {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.listing-price-type {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.listing-tax-note {
  font-size: 0.85rem;
  opacity: 0.7;
}

.listing-gallery {
  margin-bottom: 32px;
}

.listing-gallery-main {
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  /* Reserve space to avoid CLS before main image loads */
  aspect-ratio: 16 / 10;
  min-height: 200px;
}

.listing-main-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: cover;
  transition: opacity var(--transition-fast);
}

.listing-main-image.fade-out {
  opacity: 0.5;
}

.listing-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.listing-thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition-base), transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.listing-thumb:hover {
  opacity: 1;
  transform: scale(1.03);
  border-color: rgba(0, 224, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.listing-thumb.active {
  opacity: 1;
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px rgba(0, 224, 255, 0.35);
}

.listing-details-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
  margin-bottom: 32px;
}

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

.listing-section {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}

.listing-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.listing-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  white-space: normal;
}

.listing-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.listing-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-spec-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing-spec-value {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

.listing-features-category {
  margin-bottom: 24px;
}

.listing-features-category:last-child {
  margin-bottom: 0;
}

.listing-features-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.listing-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.listing-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.listing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.listing-feature-icon svg,
.listing-feature-icon .ph {
  display: block;
}

.listing-feature-icon .ph {
  width: auto;
  height: auto;
}

.listing-feature-icon .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.listing-feature-icon .icon svg {
  width: 100%;
  height: 100%;
}

/* General Icon Styles */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
}

.listing-feature-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.listing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.listing-sidebar-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}

.listing-sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.listing-seller-info {
  margin-bottom: 16px;
}

.listing-seller-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.listing-seller-location {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.listing-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}

.listing-stat-item:last-child {
  border-bottom: none;
}

.listing-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.listing-stat-value {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

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

  .listing-sidebar {
    order: -1;
  }

  .listing-price-amount {
    font-size: 2rem;
  }

  .listing-title {
    font-size: 1.5rem;
  }
}

/* Listing detail: mobile density + accessibility (less scroll, tappable) */
@media (max-width: 768px) {
  .listing-detail {
    margin-top: 12px;
  }

  .listing-header {
    margin-bottom: 14px;
  }

  .listing-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .listing-badges {
    gap: 6px;
  }

  .listing-badges .badge {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .listing-price-section {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .listing-price-main {
    margin-bottom: 4px;
  }

  .listing-price-currency {
    font-size: 1rem;
  }

  .listing-price-amount {
    font-size: 1.75rem;
  }

  .listing-price-old {
    font-size: 1rem;
  }

  .listing-price-type,
  .listing-tax-note {
    font-size: 0.85rem;
  }

  .listing-gallery {
    margin-bottom: 20px;
  }

  .listing-gallery-main {
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .listing-main-image {
    max-height: 280px;
  }

  .listing-gallery-thumbs {
    gap: 8px;
    padding-bottom: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-overflow-scrolling: unset;
  }

  .listing-thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    border-radius: 10px;
  }

  .listing-details-grid {
    gap: 20px;
    margin-bottom: 20px;
  }

  .listing-details-main {
    gap: 20px;
  }

  .listing-section {
    padding: 16px;
    border-radius: 12px;
  }

  .listing-section-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .listing-description {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .listing-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }

  .listing-spec-item {
    gap: 2px;
    min-height: 44px;
    justify-content: center;
  }

  .listing-spec-label {
    font-size: 0.75rem;
  }

  .listing-spec-value {
    font-size: 0.9rem;
  }

  .listing-features-category {
    margin-bottom: 16px;
  }

  .listing-features-category-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .listing-features-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .listing-feature-item {
    padding: 12px 14px;
    min-height: 44px;
    border-radius: 10px;
  }

  .listing-feature-label {
    font-size: 0.9rem;
  }

  .listing-sidebar {
    gap: 16px;
  }

  .listing-sidebar-card {
    padding: 16px;
    border-radius: 12px;
  }

  .listing-sidebar-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .listing-seller-name {
    font-size: 1rem;
  }

  .listing-stats .listing-stat-item {
    padding: 10px 0;
    min-height: 44px;
    align-items: center;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .breadcrumb a,
  .breadcrumb span {
    font-size: 0.9rem;
    padding: 4px 0;
  }
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-content .form-container {
  padding: var(--spacing-sm);
}

.admin-action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* MEDIA UPLOAD STYLES */
.media-upload-area {
  padding: 20px;
  border: 2px dashed var(--glass-border);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.media-preview-item {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}

.media-preview-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.media-preview-video {
  width: 100%;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 2rem;
}

.media-preview-video span:last-child {
  font-size: 0.9rem;
  margin-top: 8px;
}

.media-preview-actions {
  padding: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-media-action {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-media-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.btn-media-action:disabled {
  opacity: 0.6;
  /* Improved contrast for WCAG AA */
  cursor: not-allowed;
  pointer-events: none;
}

.btn-media-delete {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.3);
}

.btn-media-delete:hover {
  background: rgba(220, 53, 69, 0.3);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-draft {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-approved {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.status-rejected {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.status-sold {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
}

.admin-table-filters {
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-table-filters .form-inline {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
}

/* Admin input uses form-input styles from Form Element System */

/* Alert styles moved to Color System & Contrast section above */

/* Badge Components - Using Semantic Colors */
.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.badge-success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.badge-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.badge-warning {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
}

.badge-info {
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}

.badge-primary {
  background-color: rgba(0, 224, 255, 0.2);
  border: 1px solid rgba(0, 224, 255, 0.4);
  color: var(--accent);
}

.badge-ghost {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.8);
}

.badge-featured {
  background-color: rgba(0, 224, 255, 0.2);
  border: 1px solid rgba(0, 224, 255, 0.4);
  color: var(--accent);
}

.badge-new {
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: var(--success-text);
}

.badge-price-drop {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: var(--error-text);
}

/* Status Badge - Using Semantic Colors */
.status-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-approved,
.status-active,
.status-success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.status-pending,
.status-warning {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
}

.status-rejected,
.status-inactive,
.status-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.status-draft,
.status-info {
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}

/* Profile Card Styles */
.profile-grid {
  display: grid;
  gap: 24px;
}

/* Profile card styles moved to Card Component System section above */
.profile-card-title {
  margin-bottom: var(--spacing-md);
}

/* Guided vehicle images (8 perspectives) */
.vehicle-images-progress {
  max-width: 400px;
}

.vehicle-images-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.vehicle-images-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* Progress width by class (no inline style); 0–100 */
.vehicle-images-progress-bar.progress-0 .vehicle-images-progress-fill { width: 0%; }
.vehicle-images-progress-bar.progress-1 .vehicle-images-progress-fill { width: 1%; }
.vehicle-images-progress-bar.progress-2 .vehicle-images-progress-fill { width: 2%; }
.vehicle-images-progress-bar.progress-3 .vehicle-images-progress-fill { width: 3%; }
.vehicle-images-progress-bar.progress-4 .vehicle-images-progress-fill { width: 4%; }
.vehicle-images-progress-bar.progress-5 .vehicle-images-progress-fill { width: 5%; }
.vehicle-images-progress-bar.progress-6 .vehicle-images-progress-fill { width: 6%; }
.vehicle-images-progress-bar.progress-7 .vehicle-images-progress-fill { width: 7%; }
.vehicle-images-progress-bar.progress-8 .vehicle-images-progress-fill { width: 8%; }
.vehicle-images-progress-bar.progress-9 .vehicle-images-progress-fill { width: 9%; }
.vehicle-images-progress-bar.progress-10 .vehicle-images-progress-fill { width: 10%; }
.vehicle-images-progress-bar.progress-11 .vehicle-images-progress-fill { width: 11%; }
.vehicle-images-progress-bar.progress-12 .vehicle-images-progress-fill { width: 12%; }
.vehicle-images-progress-bar.progress-13 .vehicle-images-progress-fill { width: 13%; }
.vehicle-images-progress-bar.progress-14 .vehicle-images-progress-fill { width: 14%; }
.vehicle-images-progress-bar.progress-15 .vehicle-images-progress-fill { width: 15%; }
.vehicle-images-progress-bar.progress-16 .vehicle-images-progress-fill { width: 16%; }
.vehicle-images-progress-bar.progress-17 .vehicle-images-progress-fill { width: 17%; }
.vehicle-images-progress-bar.progress-18 .vehicle-images-progress-fill { width: 18%; }
.vehicle-images-progress-bar.progress-19 .vehicle-images-progress-fill { width: 19%; }
.vehicle-images-progress-bar.progress-20 .vehicle-images-progress-fill { width: 20%; }
.vehicle-images-progress-bar.progress-21 .vehicle-images-progress-fill { width: 21%; }
.vehicle-images-progress-bar.progress-22 .vehicle-images-progress-fill { width: 22%; }
.vehicle-images-progress-bar.progress-23 .vehicle-images-progress-fill { width: 23%; }
.vehicle-images-progress-bar.progress-24 .vehicle-images-progress-fill { width: 24%; }
.vehicle-images-progress-bar.progress-25 .vehicle-images-progress-fill { width: 25%; }
.vehicle-images-progress-bar.progress-26 .vehicle-images-progress-fill { width: 26%; }
.vehicle-images-progress-bar.progress-27 .vehicle-images-progress-fill { width: 27%; }
.vehicle-images-progress-bar.progress-28 .vehicle-images-progress-fill { width: 28%; }
.vehicle-images-progress-bar.progress-29 .vehicle-images-progress-fill { width: 29%; }
.vehicle-images-progress-bar.progress-30 .vehicle-images-progress-fill { width: 30%; }
.vehicle-images-progress-bar.progress-31 .vehicle-images-progress-fill { width: 31%; }
.vehicle-images-progress-bar.progress-32 .vehicle-images-progress-fill { width: 32%; }
.vehicle-images-progress-bar.progress-33 .vehicle-images-progress-fill { width: 33%; }
.vehicle-images-progress-bar.progress-34 .vehicle-images-progress-fill { width: 34%; }
.vehicle-images-progress-bar.progress-35 .vehicle-images-progress-fill { width: 35%; }
.vehicle-images-progress-bar.progress-36 .vehicle-images-progress-fill { width: 36%; }
.vehicle-images-progress-bar.progress-37 .vehicle-images-progress-fill { width: 37%; }
.vehicle-images-progress-bar.progress-38 .vehicle-images-progress-fill { width: 38%; }
.vehicle-images-progress-bar.progress-39 .vehicle-images-progress-fill { width: 39%; }
.vehicle-images-progress-bar.progress-40 .vehicle-images-progress-fill { width: 40%; }
.vehicle-images-progress-bar.progress-41 .vehicle-images-progress-fill { width: 41%; }
.vehicle-images-progress-bar.progress-42 .vehicle-images-progress-fill { width: 42%; }
.vehicle-images-progress-bar.progress-43 .vehicle-images-progress-fill { width: 43%; }
.vehicle-images-progress-bar.progress-44 .vehicle-images-progress-fill { width: 44%; }
.vehicle-images-progress-bar.progress-45 .vehicle-images-progress-fill { width: 45%; }
.vehicle-images-progress-bar.progress-46 .vehicle-images-progress-fill { width: 46%; }
.vehicle-images-progress-bar.progress-47 .vehicle-images-progress-fill { width: 47%; }
.vehicle-images-progress-bar.progress-48 .vehicle-images-progress-fill { width: 48%; }
.vehicle-images-progress-bar.progress-49 .vehicle-images-progress-fill { width: 49%; }
.vehicle-images-progress-bar.progress-50 .vehicle-images-progress-fill { width: 50%; }
.vehicle-images-progress-bar.progress-51 .vehicle-images-progress-fill { width: 51%; }
.vehicle-images-progress-bar.progress-52 .vehicle-images-progress-fill { width: 52%; }
.vehicle-images-progress-bar.progress-53 .vehicle-images-progress-fill { width: 53%; }
.vehicle-images-progress-bar.progress-54 .vehicle-images-progress-fill { width: 54%; }
.vehicle-images-progress-bar.progress-55 .vehicle-images-progress-fill { width: 55%; }
.vehicle-images-progress-bar.progress-56 .vehicle-images-progress-fill { width: 56%; }
.vehicle-images-progress-bar.progress-57 .vehicle-images-progress-fill { width: 57%; }
.vehicle-images-progress-bar.progress-58 .vehicle-images-progress-fill { width: 58%; }
.vehicle-images-progress-bar.progress-59 .vehicle-images-progress-fill { width: 59%; }
.vehicle-images-progress-bar.progress-60 .vehicle-images-progress-fill { width: 60%; }
.vehicle-images-progress-bar.progress-61 .vehicle-images-progress-fill { width: 61%; }
.vehicle-images-progress-bar.progress-62 .vehicle-images-progress-fill { width: 62%; }
.vehicle-images-progress-bar.progress-63 .vehicle-images-progress-fill { width: 63%; }
.vehicle-images-progress-bar.progress-64 .vehicle-images-progress-fill { width: 64%; }
.vehicle-images-progress-bar.progress-65 .vehicle-images-progress-fill { width: 65%; }
.vehicle-images-progress-bar.progress-66 .vehicle-images-progress-fill { width: 66%; }
.vehicle-images-progress-bar.progress-67 .vehicle-images-progress-fill { width: 67%; }
.vehicle-images-progress-bar.progress-68 .vehicle-images-progress-fill { width: 68%; }
.vehicle-images-progress-bar.progress-69 .vehicle-images-progress-fill { width: 69%; }
.vehicle-images-progress-bar.progress-70 .vehicle-images-progress-fill { width: 70%; }
.vehicle-images-progress-bar.progress-71 .vehicle-images-progress-fill { width: 71%; }
.vehicle-images-progress-bar.progress-72 .vehicle-images-progress-fill { width: 72%; }
.vehicle-images-progress-bar.progress-73 .vehicle-images-progress-fill { width: 73%; }
.vehicle-images-progress-bar.progress-74 .vehicle-images-progress-fill { width: 74%; }
.vehicle-images-progress-bar.progress-75 .vehicle-images-progress-fill { width: 75%; }
.vehicle-images-progress-bar.progress-76 .vehicle-images-progress-fill { width: 76%; }
.vehicle-images-progress-bar.progress-77 .vehicle-images-progress-fill { width: 77%; }
.vehicle-images-progress-bar.progress-78 .vehicle-images-progress-fill { width: 78%; }
.vehicle-images-progress-bar.progress-79 .vehicle-images-progress-fill { width: 79%; }
.vehicle-images-progress-bar.progress-80 .vehicle-images-progress-fill { width: 80%; }
.vehicle-images-progress-bar.progress-81 .vehicle-images-progress-fill { width: 81%; }
.vehicle-images-progress-bar.progress-82 .vehicle-images-progress-fill { width: 82%; }
.vehicle-images-progress-bar.progress-83 .vehicle-images-progress-fill { width: 83%; }
.vehicle-images-progress-bar.progress-84 .vehicle-images-progress-fill { width: 84%; }
.vehicle-images-progress-bar.progress-85 .vehicle-images-progress-fill { width: 85%; }
.vehicle-images-progress-bar.progress-86 .vehicle-images-progress-fill { width: 86%; }
.vehicle-images-progress-bar.progress-87 .vehicle-images-progress-fill { width: 87%; }
.vehicle-images-progress-bar.progress-88 .vehicle-images-progress-fill { width: 88%; }
.vehicle-images-progress-bar.progress-89 .vehicle-images-progress-fill { width: 89%; }
.vehicle-images-progress-bar.progress-90 .vehicle-images-progress-fill { width: 90%; }
.vehicle-images-progress-bar.progress-91 .vehicle-images-progress-fill { width: 91%; }
.vehicle-images-progress-bar.progress-92 .vehicle-images-progress-fill { width: 92%; }
.vehicle-images-progress-bar.progress-93 .vehicle-images-progress-fill { width: 93%; }
.vehicle-images-progress-bar.progress-94 .vehicle-images-progress-fill { width: 94%; }
.vehicle-images-progress-bar.progress-95 .vehicle-images-progress-fill { width: 95%; }
.vehicle-images-progress-bar.progress-96 .vehicle-images-progress-fill { width: 96%; }
.vehicle-images-progress-bar.progress-97 .vehicle-images-progress-fill { width: 97%; }
.vehicle-images-progress-bar.progress-98 .vehicle-images-progress-fill { width: 98%; }
.vehicle-images-progress-bar.progress-99 .vehicle-images-progress-fill { width: 99%; }
.vehicle-images-progress-bar.progress-100 .vehicle-images-progress-fill { width: 100%; }

.vehicle-images-progress-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.vehicle-images-guided {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.vehicle-image-slot {
  padding: var(--spacing-lg);
}

.vehicle-image-slot--filled {
  border-left: 3px solid var(--success-text);
}

.vehicle-image-tip {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.vehicle-image-slot-inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.vehicle-image-preview {
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.vehicle-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-image-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.vehicle-image-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.vehicle-image-status.success {
  color: var(--success-text);
  font-size: 0.85rem;
}

.vehicle-image-status.error {
  color: var(--error-text);
  font-size: 0.85rem;
}

/* Vehicle gallery on view page */
.vehicle-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.vehicle-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.vehicle-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.85rem;
}

.profile-info-grid {
  display: grid;
  gap: 16px;
}

.profile-field {
  display: flex;
  flex-direction: column;
}

.profile-label {
  display: block;
  margin-bottom: 6px;
  opacity: 0.7;
  font-size: 0.9rem;
}

.profile-value {
  font-size: 1.1rem;
}

.profile-value-bold {
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.profile-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.profile-stat-label {
  opacity: 0.7;
  font-size: 0.9rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Admin Table Styles */
.admin-table-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
}

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

.admin-table thead tr {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
  padding: 12px;
}

.admin-table td.opacity-muted {
  opacity: 0.7;
  font-size: 0.9rem;
}

.admin-select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* ============================================
   DATATABLES STYLING
   ============================================ */

/* DataTables Wrapper */
.datatable-wrapper {
  position: relative;
}

/* DataTables Header (Search + Length Selector) */
.datatable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.datatable-search {
  flex: 1;
  min-width: 200px;
}

.datatable-search label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: 0;
}

.datatable-search input[type="search"] {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: #fff;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  min-width: 200px;
}

.datatable-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.datatable-search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.datatable-length {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.datatable-length label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: 0;
}

.datatable-length select {
  padding: var(--spacing-sm) var(--spacing-md);
  padding-right: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: #fff;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.datatable-length select:hover {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
}

.datatable-length select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.datatable-length select option {
  background: #1a1d24;
  color: #fff;
  padding: var(--spacing-sm);
}

/* DataTables Footer (Info + Pagination) */
.datatable-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.datatable-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

.datatable-pagination {
  display: flex;
  gap: var(--spacing-xs);
}

.datatable-pagination .paginate_button {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-width: 36px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.datatable-pagination .paginate_button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.datatable-pagination .paginate_button.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: var(--font-weight-semibold);
}

.datatable-pagination .paginate_button.current:hover {
  background: var(--accent);
  color: #000;
  transform: none;
}

.datatable-pagination .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.datatable-pagination .paginate_button.previous,
.datatable-pagination .paginate_button.next {
  font-weight: var(--font-weight-semibold);
}

/* DataTables Processing Indicator */
.dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  color: #fff;
  font-size: var(--font-size-sm);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

/* DataTables Empty State */
.dataTables_empty {
  text-align: center;
  padding: var(--spacing-xl) !important;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

/* DataTables Sorting Indicators */
.admin-table th.sorting,
.admin-table th.sorting_asc,
.admin-table th.sorting_desc {
  cursor: pointer;
  position: relative;
  padding-right: 30px;
  user-select: none;
  -webkit-user-select: none;
}

.admin-table th.sorting::after,
.admin-table th.sorting_asc::after,
.admin-table th.sorting_desc::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.admin-table th.sorting::after {
  border-top: 4px solid rgba(255, 255, 255, 0.3);
  border-bottom: 4px solid rgba(255, 255, 255, 0.3);
  margin-top: -2px;
}

.admin-table th.sorting_asc::after {
  border-bottom: 4px solid var(--accent);
  border-top: none;
}

.admin-table th.sorting_desc::after {
  border-top: 4px solid var(--accent);
  border-bottom: none;
}

.admin-table th.sorting:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-table th.sorting_asc,
.admin-table th.sorting_desc {
  color: var(--accent);
}

/* DataTables Row Hover */
.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
  transition: background var(--transition-base);
}

/* DataTables Responsive */
@media (max-width: 768px) {
  .datatable-header {
    flex-direction: column;
    align-items: stretch;
  }

  .datatable-search {
    width: 100%;
  }

  .datatable-search input[type="search"] {
    width: 100%;
    min-width: auto;
  }

  .datatable-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .datatable-pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .datatable-pagination .paginate_button {
    min-width: 32px;
    padding: var(--spacing-xs);
    font-size: var(--font-size-xs);
  }
}

/* Override DataTables default styles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 0;
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: var(--spacing-sm);
}

.dataTables_wrapper .dataTables_length select {
  margin-left: var(--spacing-sm);
  margin-right: var(--spacing-sm);
}

/* ============================================
   ADDITIONAL UI REFINEMENTS
   ============================================ */

/* Utility Classes for Common Patterns */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text Legibility Utilities */
.text-legible {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.text-legible-strong {
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: var(--font-weight-semibold);
}

.text-legible-heading {
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: var(--font-weight-bold);
}

.divider {
  height: 1px;
  background: var(--glass-border);
  margin: var(--spacing-lg) 0;
  border: none;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--glass-border);
  margin: 0 var(--spacing-md);
  border: none;
}

/* Enhanced Focus States for Better Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Improved Link Styles */
a:not(.btn):not(.admin-link):not(.dashboard-header-link):not(.navbar a) {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

a:not(.btn):not(.admin-link):not(.dashboard-header-link):not(.navbar a):hover {
  border-bottom-color: var(--accent);
  opacity: 0.9;
}

a:not(.btn):not(.admin-link):not(.dashboard-header-link):not(.navbar a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}

/* Loading Spinner Enhancement */
.btn-loading::after {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Enhanced Empty State */
.empty-state {
  animation: fade-in var(--transition-slow) ease-out;
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Improved Badge Animations */
.badge,
.status-badge {
  transition: all var(--transition-base);
}

.badge:hover,
.status-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* Enhanced Tooltip Styles (if tooltips are used) */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(11, 15, 20, 0.95);
  color: #fff;
  font-size: var(--font-size-xs);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  z-index: var(--z-tooltip);
  margin-bottom: var(--spacing-xs);
  animation: fade-in var(--transition-base) ease-out;
}

/* Selection Styles */
::selection {
  background: var(--accent);
  color: var(--dark);
}

::-moz-selection {
  background: var(--accent);
  color: var(--dark);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 15, 20, 0.5);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Print Styles */
@media print {

  .navbar,
  .mobile-bottom-nav,
  .dashboard-header,
  .dashboard-sidebar,
  .btn,
  .form-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .profile-card {
    border: 1px solid #ddd;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

.admin-select:focus {
  z-index: 1000;
}

.admin-select option {
  background: #1a1d24 !important;
  background-color: #1a1d24 !important;
  color: #fff !important;
  padding: 8px 12px !important;
}

.admin-select option:checked,
.admin-select option:hover {
  background: #2a2d34 !important;
  background-color: #2a2d34 !important;
}

.admin-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-button-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.admin-button-link:hover {
  opacity: 0.8;
}

.status-active {
  color: #51cf66;
}

.status-inactive {
  color: #ff6b6b;
}

.form-inline {
  display: inline;
}

.admin-form-inline-spaced {
  display: inline;
  margin-left: 8px;
}

/* Text Styles */
.text-center {
  text-align: center;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-muted {
  opacity: 0.8;
}

.text-muted-small {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* SETTINGS PAGE STYLES */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.settings-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}

.settings-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.settings-info-grid {
  display: grid;
  gap: 16px;
}

.settings-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-info-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-info-value {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

.form-help {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.margin-top {
  margin-top: 24px;
}

.margin-top-small {
  margin-top: 8px;
}

.margin-top-medium {
  margin-top: 16px;
}

.margin-bottom {
  margin-bottom: 20px;
}

/* Utility Classes for Inline Styles */
.form-group-flex {
  flex: 1;
}

.form-group-flex-2 {
  flex: 2;
}

.form-group-flex-min {
  flex: 1;
  min-width: 200px;
}

.form-group-flex-2-min {
  flex: 2;
  min-width: 250px;
}

.form-flex-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-flex-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-flex-gap {
  display: flex;
  gap: 16px;
}

.form-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.btn-full-width {
  width: 100%;
}

.btn-full-width-margin {
  width: 100%;
  margin-top: 12px;
}

.text-center-margin {
  text-align: center;
  margin-top: 16px;
}

.text-center-padding {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.display-none {
  display: none;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.glass-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.glass-card-content {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.glass-card-meta {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.glass-card-large {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
}

.glass-card-large-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.text-muted-small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.text-accent-bold {
  color: var(--accent);
  font-weight: 600;
}

.text-white-opacity {
  color: rgba(255, 255, 255, 0.8);
}

.text-white-opacity-7 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white-opacity-9 {
  color: rgba(255, 255, 255, 0.9);
}

.rating-gold {
  color: #ffd700;
  font-size: 1.2rem;
}

.rating-gold-small {
  color: #ffd700;
  font-size: 0.9rem;
}

.margin-left-small {
  margin-left: 8px;
}

.margin-top-small {
  margin-top: 12px;
}

.margin-top-medium {
  margin-top: 16px;
}

.margin-top-large {
  margin-top: 24px;
}

.margin-top-xl {
  margin-top: 32px;
}

.margin-bottom-small {
  margin-bottom: 12px;
}

.margin-bottom-medium {
  margin-bottom: 16px;
}

.padding-small {
  padding: 16px;
}

.padding-medium {
  padding: 20px;
}

.padding-large {
  padding: 24px;
}

.review-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-user-name {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.review-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.review-section {
  margin-bottom: 8px;
}

.review-pros {
  color: #4ade80;
}

.review-cons {
  color: #f87171;
}

.review-body {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-top: 8px;
}

.review-form-container {
  margin-top: 32px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
}

.review-form-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-form-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rating-star {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: color var(--transition-base);
}

.review-info-box {
  margin-top: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
}

.modal-title {
  margin-bottom: 16px;
  color: #fff;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.form-inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opacity-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.text-truncate {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-form {
  display: inline;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.debug-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.debug-error {
  color: #ff6b6b;
  margin-top: 8px;
}

.debug-muted {
  color: #999;
  margin-top: 8px;
}

.debug-details {
  margin-top: 8px;
}

.debug-pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.hours-row-hidden {
  display: none;
}

.form-row-center-text {
  align-self: center;
  margin: 0 8px;
}

.search-loading {
  text-align: center;
  padding: 60px 20px;
}

.search-loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.search-loading-text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.search-error {
  text-align: center;
  padding: 60px 20px;
  color: #ff6b6b;
}

.search-error-link {
  color: var(--accent);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-input-max-width {
  flex: 1;
  max-width: 400px;
}

.car-card-link {
  text-decoration: none;
}

@media (max-width: 900px) {
  .form-group-flex-min {
    min-width: 100%;
  }

  .form-group-flex-2-min {
    min-width: 100%;
  }

  .form-input-max-width {
    max-width: 100%;
  }
}

/* PLAN DISPLAY STYLES */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.plan-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.plan-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.plan-code {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-price {
  margin-bottom: 24px;
  text-align: center;
}

.plan-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.plan-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 4px;
}

.plan-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 60px;
}

.plan-features {
  flex: 1;
  margin-bottom: 24px;
}

.plan-feature {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-feature:last-child {
  border-bottom: none;
}

.plan-feature-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.plan-feature-value {
  color: #fff;
  font-weight: 600;
}

.plan-action {
  margin-top: auto;
}

.plan-comparison {
  margin-top: 48px;
}

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

/* DEALER PROFILE STYLES */
.dealer-header {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.dealer-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.dealer-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dealer-header-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
}

.dealer-logo-section {
  flex-shrink: 0;
}

.dealer-logo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--glass-border);
}

.dealer-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #000;
}

.dealer-info-section {
  flex: 1;
}

.dealer-name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.dealer-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dealer-rating .rating-stars {
  color: #ffd700;
  font-size: 1.2rem;
}

.dealer-rating .rating-value {
  font-weight: 600;
  color: #fff;
}

.dealer-rating .rating-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.dealer-location {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.dealer-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-top: 12px;
}

.dealer-contact-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dealer-details-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
}

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

.dealer-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

.dealer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dealer-sidebar-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
}

.dealer-sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.dealer-contact-item {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.dealer-contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.dealer-contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.dealer-contact-item a:hover {
  text-decoration: underline;
}

.dealer-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dealer-hour-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dealer-hour-item:last-child {
  border-bottom: none;
}

.dealer-hour-day {
  color: rgba(255, 255, 255, 0.8);
}

.dealer-hour-time {
  color: #fff;
  font-weight: 500;
}

.dealer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dealer-social-link {
  color: var(--accent);
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--transition-base);
}

.dealer-social-link:hover {
  color: #fff;
}

.dealer-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
}

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

  .dealer-header-content {
    flex-direction: column;
  }

  .dealer-contact-section {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Analytics Styles */
.analytics-filters {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-btn.active {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.analytics-metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.analytics-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.analytics-chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.analytics-table-container {
  overflow-x: auto;
}

@media (max-width: 768px) {
  .analytics-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-chart-container {
    height: 250px;
  }
}

/* Inspection Styles */
.inspection-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspection-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
}

.inspection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.inspection-header h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.inspection-score {
  text-align: center;
  padding: 12px 20px;
  background: rgba(0, 224, 255, 0.1);
  border: 1px solid rgba(0, 224, 255, 0.3);
  border-radius: 8px;
}

.inspection-score-large {
  text-align: center;
  padding: 20px 30px;
  background: rgba(0, 224, 255, 0.15);
  border: 2px solid rgba(0, 224, 255, 0.4);
  border-radius: 12px;
}

.inspection-score .score-value,
.inspection-score-large .score-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.inspection-score-large .score-value {
  font-size: 48px;
}

.inspection-score .score-label,
.inspection-score-large .score-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.inspection-scores {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.inspection-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.inspection-scores .score-item,
.inspection-scores-grid .score-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inspection-scores .score-item .score-label,
.inspection-scores-grid .score-item .score-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.inspection-scores .score-item .score-value,
.inspection-scores-grid .score-item .score-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.inspection-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inspection-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
}

/* Ownership Timeline Styles */
.ownership-timeline {
  position: relative;
  padding-left: 30px;
}

.ownership-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-marker {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--dark);
  z-index: 1;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 16px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.timeline-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.timeline-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Service Records Styles */
.service-records-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-record-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
}

.service-record-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.service-record-header h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.service-mileage {
  text-align: right;
}

.mileage-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.mileage-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.service-record-actions {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .inspection-scores {
    flex-direction: column;
    gap: 12px;
  }

  .inspection-scores-grid {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }

  .service-record-header {
    flex-direction: column;
    gap: 8px;
  }

  .service-mileage {
    text-align: left;
  }
}

/* ============================================
   GLOBAL ANIMATION UTILITIES
   ============================================ */

/* Scroll-triggered fade-up animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(6) {
  transition-delay: 0.5s;
}

/* Page content entrance */
.page-enter {
  animation: page-fade-in 0.4s ease-out both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SKELETON LOADING PLACEHOLDERS
   ============================================ */

.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.06) 25%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

  to {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 340px;
  border-radius: 20px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text-short {
  width: 60%;
}

.skeleton-image {
  height: 240px;
  border-radius: 20px 20px 0 0;
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: #000;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow), box-shadow var(--transition-slow);
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0, 224, 255, 0.3);
}

.scroll-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  box-shadow: 0 6px 28px rgba(0, 224, 255, 0.5);
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .scroll-to-top {
    bottom: 90px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: var(--line-height-relaxed);
  max-width: 600px;
}

.section-subtitle.text-center {
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================
   ACCESSIBILITY UTILITIES
   ============================================ */

/* .sr-only defined in Accessibility section - avoid duplicate */
.skip-to-main {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  font-weight: var(--font-weight-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10000;
  transition: top var(--transition-slow);
  text-decoration: none;
}

.skip-to-main:focus {
  top: 0;
}

/* ============================================
   DASHBOARD ENHANCEMENTS
   ============================================ */

/* Dashboard stat cards stagger entrance */
.dashboard-stat-card {
  animation: stat-card-enter 0.5s ease-out both;
}

.dashboard-stat-card:nth-child(1) {
  animation-delay: 0.05s;
}

.dashboard-stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

.dashboard-stat-card:nth-child(3) {
  animation-delay: 0.15s;
}

.dashboard-stat-card:nth-child(4) {
  animation-delay: 0.2s;
}

.dashboard-stat-card:nth-child(5) {
  animation-delay: 0.25s;
}

.dashboard-stat-card:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes stat-card-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dashboard action card hover icon bounce */
.dashboard-action-card:hover .action-icon {
  animation: icon-bounce 0.4s ease;
}

@keyframes icon-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }

  70% {
    transform: translateY(-2px);
  }
}

/* Dashboard sidebar active accent bar */
.dashboard-sidebar .sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  border-radius: 0 3px 3px 0;
}

.dashboard-sidebar .sidebar-link {
  position: relative;
}

/* ============================================
   LISTING DETAIL ENHANCEMENTS
   ============================================ */

/* Sticky sidebar on listing detail */
@media (min-width: 901px) {
  .listing-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
  }
}

/* Gallery image transition */
.listing-gallery-main img {
  transition: opacity var(--transition-slow);
}

/* Auth card: container for auth forms (register, login cards) */
.auth-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  animation: glass-card-pulse 3s ease-in-out infinite alternate;
}

/* Auth form inside card: use card padding only to avoid double padding */
.auth-card .auth-form,
.auth-card .form-container {
  padding: 0;
}

@keyframes glass-card-pulse {
  0% {
    border-color: var(--glass-border);
  }

  100% {
    border-color: rgba(0, 224, 255, 0.2);
  }
}

/* Gallery thumb active/hover states defined in listing gallery section above */