/**
 * Premier Auto - Premium Modern Theme
 * Theme: Black Gloss, Charcoal, Orange Accent
 *
 * Section map:
 *   01 Tokens          02 Reset/Base      03 Animations      04 Utilities
 *   05 Buttons         06 Badges          07 Forms           08 Header/Nav
 *   09 Mobile Nav      10 Hero            11 Cards           12 Sections
 *   13 Footer          14 Vehicle Detail  15 Listing/Search  16 Account
 *   17 Auth            18 Handover        19 Values          20 Condition
 *   21 Notifications   22 Content Pages   23 A11y            24 Print
 */

/* ==========================================================================
   01 TOKENS
   ========================================================================== */
:root {
    /* Accent. These five names are a contract with get_accent_color_css() in
       includes/functions.php - the admin accent picker re-declares them at
       runtime. --orange-rgb is emitted there too, so every alpha composed from
       it follows the chosen accent instead of staying orange. */
    --orange: #F97316;
    --orange-light: #FB923C;
    --orange-dark: #EA580C;
    --orange-glow: rgba(249, 115, 22, 0.4);
    --orange-subtle: rgba(249, 115, 22, 0.1);
    --orange-rgb: 249, 115, 22;

    /* Elevation ladder. Prefer these over the raw --charcoal-* names below:
       surfaces should read as a stack of lit planes, not one flat grey. */
    --surface-page: #0a0a0a;
    --surface-sunken: #070707;
    --surface-raised: #141414;
    --surface-card: #1a1a1a;
    --surface-overlay: #242424;
    --surface-popover: #2d2d2d;

    /* Hairlines. White-alpha borders sit on any surface without banding. */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(var(--orange-rgb), 0.35);

    /* Focus + accent glows */
    --ring-focus: 0 0 0 3px rgba(var(--orange-rgb), 0.35);
    --glow-accent-sm: 0 0 20px rgba(var(--orange-rgb), 0.25);
    --glow-accent: 0 0 32px rgba(var(--orange-rgb), 0.32);

    /* Gold, reserved for won/premium moments (.badge-gold, .text-gold) */
    --gold: #E8C468;
    --gold-dark: #C9A34A;
    --gold-subtle: rgba(232, 196, 104, 0.12);

    /* Black Gloss & Charcoal - Premium Dark Theme */
    --black: #000000;
    --black-pure: #000000;
    --black-gloss: #0a0a0a;
    --black-rich: #0d0d0d;
    --charcoal-dark: #141414;
    --charcoal: #1a1a1a;
    --charcoal-mid: #242424;
    --charcoal-light: #2d2d2d;
    --charcoal-lighter: #3d3d3d;
    --charcoal-soft: #4a4a4a;

    /* Glass Effect Colors */
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --white: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #a3a3a3;
    --text-subtle: #737373;
    --text-dark: #171717;

    /* Gray Scale */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic Colors */
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.3);
    --error: #ef4444;
    --error-glow: rgba(239, 68, 68, 0.3);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.3);
    --info: #3b82f6;
    --info-glow: rgba(59, 130, 246, 0.3);
    --live: #ef4444;

    /* Gradients */
    --gradient-orange: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    --gradient-orange-glow: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    --gradient-dark: linear-gradient(180deg, var(--black-gloss) 0%, var(--charcoal) 100%);
    --gradient-card: linear-gradient(145deg, var(--charcoal-mid) 0%, var(--charcoal-dark) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-shine: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);

    /* Typography. Space Grotesk carries headings, prices and countdowns - its
       squared terminals and true tabular figures give the technical, engineered
       character the auction numbers want. Inter carries body and UI. */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* Tracking */
    --tracking-tight: -0.02em;
    --tracking-tighter: -0.03em;
    --tracking-wide: 0.08em;

    /* Font Sizes - Fluid */
    --text-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.2vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    --text-xl: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
    --text-4xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    --text-5xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
    --text-6xl: clamp(2.5rem, 2rem + 2vw, 3.75rem);
    --text-7xl: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Premium Depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Second layer composed from --orange-rgb so a themed accent glows in its
       own colour rather than staying orange. */
    --shadow-glow-orange: 0 0 30px var(--orange-glow), 0 0 60px rgba(var(--orange-rgb), 0.18);
    --shadow-glow-sm: 0 0 15px var(--orange-glow);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.1);
    --shadow-card-hover: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 1px rgba(255, 255, 255, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;

    --transition-fast: var(--duration-fast) var(--ease-out);
    --transition-base: var(--duration-base) var(--ease-out);
    --transition-slow: var(--duration-slow) var(--ease-out);
    --transition-spring: var(--duration-base) var(--ease-spring);

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --container-narrow: 960px;
    --container-padding: 1.5rem;
    --header-height: 80px;

    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    /* Mobile nav sits at modal level so toasts (800) stay reachable above it. */
    --z-nav-mobile: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
}

   /* === CSS RESET - Modern Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* The hidden attribute must always win: author display rules (e.g.
   .auction-countdown's display:flex) otherwise override the UA stylesheet
   and elements the JS hides/reveals via `hidden` stay visible. */
[hidden] {
    display: none !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    /* Native controls (checkboxes, scrollbars, date pickers, select popups)
       render dark instead of defaulting to a light chrome. */
    color-scheme: dark;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--black-gloss);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Remove default styles */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: var(--orange);
    color: var(--white);
}

   /* BASE TYPOGRAPHY */
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }

   /* LAYOUT UTILITIES */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container-wide {
    max-width: var(--container-wide);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.main-content {
    padding-top: var(--header-height);
}

   /* ANIMATION KEYFRAMES LIBRARY */

/* Fade animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide animations */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Float animation - for hero shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(2deg);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, 20px) scale(1.05);
    }
}

/* Pulse animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Live dot animation */
@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--error-glow);
    }
    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

/* Glow animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--orange-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--orange-glow), 0 0 60px rgba(249, 115, 22, 0.2);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px var(--orange-glow));
    }
    50% {
        filter: drop-shadow(0 0 25px var(--orange-glow));
    }
}

/* Shimmer/shine effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Rotate animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scale animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-15px);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Gradient animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Border glow animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(249, 115, 22, 0.3);
    }
    50% {
        border-color: rgba(249, 115, 22, 0.8);
    }
}

/* Typing cursor */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Card hover lift */
@keyframes cardLift {
    from {
        transform: translateY(0);
        box-shadow: var(--shadow-card);
    }
    to {
        transform: translateY(-8px);
        box-shadow: var(--shadow-card-hover);
    }
}

/* Reveal from bottom */
@keyframes revealUp {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Number counter tick */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shake for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

   /* ANIMATION UTILITY CLASSES */
.animate-fade-in {
    animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown var(--duration-slow) var(--ease-out) forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft var(--duration-slow) var(--ease-out) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight var(--duration-slow) var(--ease-out) forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale var(--duration-slow) var(--ease-out) forwards;
}

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

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

.animate-float-slow {
    animation: floatSlow 20s ease-in-out infinite;
}

.animate-float-reverse {
    animation: floatReverse 15s ease-in-out infinite;
}

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

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

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

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spinSlow 3s linear infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-scale-in {
    animation: scaleIn var(--duration-base) var(--ease-spring) forwards;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Staggered animation delays */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }
.animate-delay-700 { animation-delay: 700ms; }
.animate-delay-1000 { animation-delay: 1000ms; }

/* Initially hidden for animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

   /* UTILITY CLASSES */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text colors */
.text-white { color: var(--white); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-orange { color: var(--orange); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

/* Font weights */
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

/* Spacing - Margin */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Spacing - Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-4 { padding-inline: var(--space-4); }
.px-6 { padding-inline: var(--space-6); }
.py-2 { padding-block: var(--space-2); }
.py-4 { padding-block: var(--space-4); }
.py-6 { padding-block: var(--space-6); }
.py-8 { padding-block: var(--space-8); }
.py-12 { padding-block: var(--space-12); }
.py-16 { padding-block: var(--space-16); }
.py-20 { padding-block: var(--space-20); }

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

/* Z-index */
.z-0 { z-index: var(--z-base); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-dropdown { z-index: var(--z-dropdown); }
.z-sticky { z-index: var(--z-sticky); }
.z-fixed { z-index: var(--z-fixed); }
.z-modal { z-index: var(--z-modal); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Border radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow-orange); }

/* Transitions */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }
.transition-none { transition: none; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Select */
.select-none { user-select: none; }
.select-all { user-select: all; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

   /* GLASS MORPHISM BASE */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(
        145deg,
        rgba(45, 45, 45, 0.6) 0%,
        rgba(26, 26, 26, 0.8) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

   /* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal-lighter);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--charcoal-soft);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--charcoal-lighter) var(--charcoal-dark);
}

   /* RESPONSIVE UTILITIES */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.25rem;
        --header-height: 72px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --header-height: 64px;
    }

    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

@media (max-width: 640px) {
    :root {
        --container-padding: 1rem;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }

    .no-print {
        display: none !important;
    }
}

   /* PHASE 2: COMPONENTS */

/* ==========================================================================
   05 BUTTONS
   Height scale 36 / 44 / 52. Every button is a piece of polished marble:
   veined stone surface (layered gradients), a glass sheen on top (::before),
   and true 3D press physics - a solid lip under the face (the first
   box-shadow layer) that collapses as the button travels down on :active.
   Variants only set their stone colour, lip tint and glow; the machinery
   lives here once.
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-6);
    font-family: inherit;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    letter-spacing: -0.01em;
    line-height: 1;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast),
                filter var(--transition-fast),
                box-shadow var(--transition-base),
                transform var(--transition-fast);
    position: relative;

    /* 3D machinery */
    --btn-depth: 4px;                       /* height of the solid lip */
    --btn-raise: 0px;                       /* hover lift */
    --btn-edge: rgba(0, 0, 0, 0.72);        /* lip colour, variant-tinted */
    --btn-glow: 0 0 0 rgba(0, 0, 0, 0);     /* accent bloom, variant-tinted */
    transform: translateY(var(--btn-raise));
    box-shadow:
        0 var(--btn-depth) 0 var(--btn-edge),
        0 calc(var(--btn-depth) + 10px) 24px rgba(0, 0, 0, 0.45),
        var(--btn-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -3px 6px rgba(0, 0, 0, 0.28);
}

/* Glass sheen over the stone. Sits above the surface, fades out before the
   text baseline so labels stay crisp. */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.07) 38%,
        transparent 55%);
    pointer-events: none;
}

.btn:hover {
    --btn-raise: -2px;
    --btn-depth: 6px;
}

.btn:focus-visible {
    outline: none;
    box-shadow:
        var(--ring-focus),
        0 var(--btn-depth) 0 var(--btn-edge),
        0 calc(var(--btn-depth) + 10px) 24px rgba(0, 0, 0, 0.45),
        var(--btn-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -3px 6px rgba(0, 0, 0, 0.28);
}

/* Pressed: the button travels down onto its lip and the face shades over */
.btn:active {
    --btn-raise: 3px;
    --btn-depth: 1px;
    box-shadow:
        0 var(--btn-depth) 0 var(--btn-edge),
        0 4px 10px rgba(0, 0, 0, 0.4),
        var(--btn-glow),
        inset 0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.10);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.45;
    filter: grayscale(0.35);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Primary - polished orange marble, the accent CTA */
.btn-primary {
    background:
        radial-gradient(ellipse 130% 60% at 18% 6%, rgba(255, 255, 255, 0.34), transparent 46%),
        radial-gradient(ellipse 70% 45% at 78% 16%, rgba(255, 240, 224, 0.18), transparent 55%),
        repeating-linear-gradient(112deg,
            transparent 0 15px, rgba(255, 255, 255, 0.10) 15px 17px, transparent 17px 41px),
        repeating-linear-gradient(68deg,
            transparent 0 24px, rgba(80, 25, 0, 0.12) 24px 27px, transparent 27px 57px),
        radial-gradient(ellipse 90% 55% at 62% 98%, rgba(0, 0, 0, 0.30), transparent 62%),
        linear-gradient(160deg, var(--orange-light) 0%, var(--orange) 42%, var(--orange-dark) 100%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    border-color: transparent;
    --btn-edge: rgba(var(--orange-rgb), 0.5);
    --btn-glow: 0 0 26px rgba(var(--orange-rgb), 0.35);
}

.btn-primary:hover {
    filter: saturate(1.12) brightness(1.07);
    --btn-glow: 0 0 42px rgba(var(--orange-rgb), 0.55);
}

/* Secondary - dark graphite marble */
.btn-secondary {
    background:
        radial-gradient(ellipse 130% 60% at 20% 4%, rgba(255, 255, 255, 0.13), transparent 48%),
        repeating-linear-gradient(115deg,
            transparent 0 18px, rgba(255, 255, 255, 0.055) 18px 20px, transparent 20px 42px),
        repeating-linear-gradient(60deg,
            transparent 0 26px, rgba(255, 255, 255, 0.035) 26px 28px, transparent 28px 54px),
        radial-gradient(ellipse 85% 55% at 70% 100%, rgba(0, 0, 0, 0.5), transparent 60%),
        linear-gradient(160deg, #343434 0%, #202020 48%, #131313 100%);
    color: var(--text-secondary);
    border-color: var(--border-default);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--border-strong);
    --btn-glow: 0 0 22px rgba(var(--orange-rgb), 0.18);
}

/* Outline - dark marble with the accent ring, quieter companion to primary */
.btn-outline {
    background:
        radial-gradient(ellipse 130% 60% at 20% 4%, rgba(255, 255, 255, 0.10), transparent 48%),
        repeating-linear-gradient(115deg,
            transparent 0 18px, rgba(255, 255, 255, 0.05) 18px 20px, transparent 20px 42px),
        radial-gradient(ellipse 85% 55% at 70% 100%, rgba(0, 0, 0, 0.45), transparent 60%),
        linear-gradient(160deg, #2c2c2c 0%, #1b1b1b 50%, #111111 100%);
    color: var(--text-secondary);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--border-accent);
    color: var(--orange-light);
    --btn-glow: 0 0 24px rgba(var(--orange-rgb), 0.25);
}

/* Ghost - a shallower marble key for inline actions */
.btn-ghost {
    background:
        radial-gradient(ellipse 130% 60% at 20% 4%, rgba(255, 255, 255, 0.09), transparent 48%),
        repeating-linear-gradient(115deg,
            transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 20px, transparent 20px 42px),
        radial-gradient(ellipse 85% 55% at 70% 100%, rgba(0, 0, 0, 0.4), transparent 60%),
        linear-gradient(160deg, #262626 0%, #191919 50%, #101010 100%);
    color: var(--text-muted);
    border-color: var(--border-subtle);
    padding: 0 var(--space-4);
    --btn-depth: 3px;
}

.btn-ghost:hover {
    color: var(--white);
    border-color: var(--border-default);
    --btn-glow: 0 0 18px rgba(var(--orange-rgb), 0.15);
}

/* Watchlist save button */
.js-watchlist-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: 1px solid var(--charcoal-mid);
    margin-bottom: var(--space-3);
}

.js-watchlist-toggle:hover:not(:disabled) {
    border-color: var(--orange);
    color: var(--orange);
}

.js-watchlist-toggle.is-saved {
    color: var(--orange);
    border-color: var(--orange);
}

.js-watchlist-toggle:disabled {
    opacity: 0.6;
    cursor: progress;
}

/* Success - green marble, confirming actions (WhatsApp, pay, approve) */
.btn-success {
    background:
        radial-gradient(ellipse 130% 60% at 18% 6%, rgba(255, 255, 255, 0.30), transparent 46%),
        repeating-linear-gradient(112deg,
            transparent 0 15px, rgba(255, 255, 255, 0.10) 15px 17px, transparent 17px 36px),
        radial-gradient(ellipse 90% 55% at 62% 98%, rgba(0, 0, 0, 0.30), transparent 62%),
        linear-gradient(160deg, #4ade80 0%, var(--success) 42%, #15803d 100%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    border-color: transparent;
    --btn-edge: rgba(34, 197, 94, 0.45);
    --btn-glow: 0 0 24px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    filter: saturate(1.1) brightness(1.06);
    --btn-glow: 0 0 38px var(--success-glow);
}

/* Danger - red marble, destructive actions */
.btn-danger {
    background:
        radial-gradient(ellipse 130% 60% at 18% 6%, rgba(255, 255, 255, 0.28), transparent 46%),
        repeating-linear-gradient(112deg,
            transparent 0 15px, rgba(255, 255, 255, 0.09) 15px 17px, transparent 17px 36px),
        radial-gradient(ellipse 90% 55% at 62% 98%, rgba(0, 0, 0, 0.32), transparent 62%),
        linear-gradient(160deg, #f87171 0%, var(--error) 42%, #b91c1c 100%);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    border-color: transparent;
    --btn-edge: rgba(239, 68, 68, 0.45);
    --btn-glow: 0 0 24px rgba(239, 68, 68, 0.28);
}

.btn-danger:hover {
    filter: saturate(1.1) brightness(1.06);
    --btn-glow: 0 0 38px var(--error-glow);
}

/* Sizes - the lip scales with the face */
.btn-sm {
    min-height: 36px;
    padding: 0 var(--space-4);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
    --btn-depth: 3px;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.btn-lg {
    min-height: 52px;
    padding: 0 var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
    --btn-depth: 5px;
}

.btn-lg svg {
    width: 20px;
    height: 20px;
}

/* Block Button */
.btn-block {
    display: flex;
    width: 100%;
}

/* Icon Only Button */
.btn-icon {
    padding: 0;
    width: 44px;
    border-radius: var(--radius-lg);
}

.btn-icon.btn-sm {
    width: 36px;
}

.btn-icon svg {
    margin: 0;
}

/* Loading state - label hidden, spinner centred */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

   /* BADGES & PILLS */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    line-height: 1.4;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge svg {
    width: 12px;
    height: 12px;
}

/* Badge Variants */
.badge-orange {
    background: var(--orange-subtle);
    color: var(--orange-light);
    border: 1px solid var(--border-accent);
}

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

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

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-neutral {
    background: var(--surface-overlay);
    color: var(--text-muted);
    border: 1px solid var(--border-default);
}

/* Gold - reserved for won lots and premium standing. Emitted by PHP on
   vehicle detail headers and the account sidebar. */
.badge-gold {
    background: var(--gold-subtle);
    color: var(--gold);
    border: 1px solid rgba(232, 196, 104, 0.32);
}

/* Live - red glass with a breathing dot */
.badge-live {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--live);
    animation: pulseSoft 1.6s ease-in-out infinite;
}

/* Featured */
.badge-featured {
    background: var(--orange-subtle);
    color: var(--orange-light);
    border: 1px solid var(--border-accent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Ended - neutral glass for closed lots */
.badge-ended {
    background: rgba(10, 10, 10, 0.7);
    color: var(--text-muted);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

   /* LIVE DOT INDICATOR */
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    position: relative;
}

.live-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--error);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulseRing 1.5s ease-out infinite;
}

/* ==========================================================================
   07 FORMS
   44px controls on raised surfaces, accent focus ring from the token scale.
   ========================================================================== */

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Labels */
.form-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.form-label-required::after {
    content: ' *';
    color: var(--orange);
}

/* Base Input Styles */
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: var(--ring-focus);
    background: var(--surface-card);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-subtle);
}

/* Numeric fields read as figures, not prose */
input[type="number"] {
    font-variant-numeric: tabular-nums;
}

/* Select with custom arrow */
.form-select,
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 18px;
    padding-right: var(--space-10);
    cursor: pointer;
}

/* Keep the chevron visible once the focus style swaps the background colour */
.form-select:focus,
select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Native controls follow the accent */
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
    accent-color: var(--orange);
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
}

/* Textarea */
.form-textarea,
textarea {
    min-height: 120px;
    resize: vertical;
    line-height: var(--leading-relaxed);
}

/* Form Input with icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .input-icon {
    position: absolute;
    left: var(--space-4);
    color: var(--text-subtle);
    pointer-events: none;
    z-index: 1;
}

.input-group .input-icon svg {
    width: 18px;
    height: 18px;
}

.input-group .form-input,
.input-group input {
    padding-left: var(--space-12);
}

.input-group .input-icon-right {
    left: auto;
    right: var(--space-4);
}

.input-group .input-icon-right ~ .form-input,
.input-group .input-icon-right ~ input {
    padding-left: var(--space-4);
    padding-right: var(--space-12);
}

/* Error State */
.form-input.error,
.form-select.error,
input.error,
select.error,
textarea.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.form-input.error:focus,
input.error:focus {
    box-shadow: 0 0 0 3px var(--error-glow);
}

.form-error {
    font-size: var(--text-sm);
    color: var(--error);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Success State */
.form-input.success,
input.success {
    border-color: var(--success);
}

/* Hint Text */
.form-hint {
    font-size: var(--text-sm);
    color: var(--text-subtle);
}

/* Checkbox & Radio */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--orange);
    cursor: pointer;
}

.checkbox-text,
.radio-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.checkbox-text strong,
.radio-text strong {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.checkbox-text span,
.radio-text span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Form Row - Multiple inputs in a row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Section */
.form-section {
    margin-bottom: var(--space-8);
}

.form-section h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--orange);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--charcoal-lighter);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--space-4);
    padding-top: var(--space-4);
}

   /* ALERTS & NOTIFICATIONS */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    border: 1px solid;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--info);
}

/* ==========================================================================
   21 TOASTS
   showToast() in assets/js/main.js builds .toast > .toast-message +
   .toast-close and adds .toast-leaving on dismiss. These rules are the only
   styling for that DOM, so the class names here are a contract with the JS.
   ========================================================================== */
.toast {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    max-width: min(440px, calc(100vw - 2rem));
    transform: translateX(-50%) translateY(0);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: var(--surface-popover);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-2xl);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    z-index: var(--z-toast);
    animation: toastIn var(--duration-slow) var(--ease-spring) both;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* A 3px status rail rather than a saturated fill: legible on dark, and the
   message text stays high-contrast white. */
.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: var(--space-3);
    bottom: var(--space-3);
    width: 3px;
    border-radius: var(--radius-full);
    background: var(--info);
}

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-success::before { background: var(--success); }
.toast-error::before   { background: var(--error); }
.toast-info::before    { background: var(--info); }

.toast-success { border-color: rgba(34, 197, 94, 0.35); }
.toast-error   { border-color: rgba(239, 68, 68, 0.35); }

.toast-leaving {
    animation: toastOut var(--duration-base) var(--ease-out) forwards;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 var(--space-1);
    transition: color var(--transition-fast);
}

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

.toast-close:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
    border-radius: var(--radius-sm);
}

@keyframes toastIn {
    to {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    to {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
}

   /* LOADING SPINNER */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--charcoal-lighter);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

   /* EMPTY STATE */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-6);
    opacity: 0.5;
}

.empty-state h2 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    max-width: 400px;
    margin-bottom: var(--space-6);
}

   /* TOOLTIPS */
.tooltip {
    position: relative;
}

.tooltip::before,
.tooltip::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

.tooltip::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: var(--space-2) var(--space-3);
    background: var(--charcoal);
    color: var(--white);
    font-size: var(--text-xs);
    white-space: nowrap;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.tooltip::after {
    content: '';
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--charcoal);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltip:hover::before {
    transform: translateX(-50%) translateY(0);
}

   /* DIVIDERS */
.divider {
    height: 1px;
    background: var(--charcoal-lighter);
    margin: var(--space-4) 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--charcoal-lighter);
    margin: 0 var(--space-4);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-subtle);
    font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--charcoal-lighter);
}

   /* AVATAR */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: var(--text-lg);
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: var(--text-2xl);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

   /* PROGRESS BAR */
.progress {
    width: 100%;
    height: 8px;
    background: var(--charcoal-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar-animated {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        90deg,
        var(--orange) 0%,
        var(--orange-light) 50%,
        var(--orange) 100%
    );
    background-size: 200% 100%;
}

/* ==========================================================================
   08 HEADER / NAV
   ========================================================================== */

/* Header Container */
.header,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-subtle);
    z-index: var(--z-fixed);
    transition: background var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
}

/* Scrolled state. Applied by initHeaderScroll() in main.js once the page
   leaves the top, so the bar gains contrast over light vehicle photography. */
.header.scrolled {
    background: rgba(8, 8, 8, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    border-bottom-color: var(--border-default);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-6);
}

   /* LOGO */
.logo,
.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    text-decoration: none;
    transition: opacity var(--transition-fast);
    position: relative;
    z-index: 10;
}

.logo:hover,
.header-logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 42px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.03);
}

.logo-text {
    font-family: var(--font-display);
    color: var(--white);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-tight);
}

.logo-icon,
.header-logo .logo-icon {
    width: 40px;
    height: 40px;
    color: var(--orange);
    filter: drop-shadow(0 0 10px var(--orange-glow));
}

   /* DESKTOP NAVIGATION */
.nav-desktop,
.desktop-nav {
    display: none;
    align-items: center;
    gap: var(--space-1);
}

@media (min-width: 1024px) {
    .nav-desktop,
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    color: var(--text-muted);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--white);
    background: var(--glass-hover);
}

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

/* Underline slides in on hover, sits fixed on the current page */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
    transition: width var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - var(--space-8));
}

.nav-link.active::after {
    box-shadow: var(--glow-accent-sm);
}

/* Live indicator in nav */
.nav-link .live-dot {
    width: 6px;
    height: 6px;
}

   /* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Phone Number */
.header-phone {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.header-phone:hover {
    color: var(--orange);
    background: var(--charcoal-light);
}

.header-phone svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
}

@media (min-width: 1024px) {
    .header-phone {
        display: flex;
    }
}

/* Auth Buttons - Desktop */
.header-auth {
    display: none;
    align-items: center;
    gap: var(--space-2);
}

@media (min-width: 1024px) {
    .header-auth {
        display: flex;
    }
}

/* Button visibility in header actions */
.header-actions > .btn-ghost,
.header-actions > .btn-primary {
    display: none;
}

@media (min-width: 1024px) {
    .header-actions > .btn-ghost,
    .header-actions > .btn-primary {
        display: inline-flex;
    }
}

/* Sign In Button */
.btn-sign-in {
    padding: var(--space-2) var(--space-4);
    color: var(--text-muted);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.btn-sign-in:hover {
    color: var(--white);
    background: var(--charcoal-light);
}

/* Register Button */
.btn-register {
    padding: var(--space-2) var(--space-5);
    background: var(--gradient-orange);
    color: var(--white);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.btn-register:hover {
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-2px);
}

   /* USER MENU DROPDOWN */
.user-menu {
    position: relative;
}

.user-menu-btn,
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1);
    border-radius: var(--radius-full);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.user-menu-btn:hover,
.user-menu-toggle:hover {
    background: var(--charcoal-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.user-name {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }
}

/* User Dropdown */
.user-menu-dropdown,
.user-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    width: 240px;
    background: var(--charcoal);
    border: 1px solid var(--charcoal-lighter);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-fast);
    overflow: hidden;
    z-index: var(--z-dropdown);
}

.user-menu.open .user-menu-dropdown,
.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-menu-item,
.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.user-menu-item:hover,
.dropdown-item:hover {
    background: var(--charcoal-light);
    color: var(--white);
}

.user-menu-item svg,
.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-subtle);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.user-menu-item:hover svg,
.dropdown-item:hover svg {
    color: var(--orange);
}

.user-menu-divider,
.dropdown-divider {
    height: 1px;
    background: var(--charcoal-lighter);
    margin: var(--space-1) 0;
}

/* Logout/Danger Item */
.user-menu-item.logout,
.dropdown-item-danger {
    color: var(--error);
}

.user-menu-item.logout svg,
.dropdown-item-danger svg {
    color: var(--error);
}

.user-menu-item.logout:hover,
.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

   /* === MOBILE MENU TOGGLE - Three Dots === */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
    z-index: calc(var(--z-modal) + 10);
}

.mobile-menu-toggle:hover {
    background: var(--charcoal-light);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Three Dots Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transition: all var(--transition-base);
}

/* Active state - dots turn to X */
.mobile-menu-toggle.active .hamburger {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::before {
    transform: translateY(11px);
    background: var(--orange);
}

.mobile-menu-toggle.active .hamburger::after {
    transform: translateY(-11px);
    background: var(--orange);
}

.mobile-menu-toggle.active .hamburger span {
    transform: scaleX(3);
    background: var(--orange);
}

/* Legacy span-based support - hide if using new hamburger */
.mobile-menu-toggle span:not(.hamburger):not(.hamburger span) {
    display: none;
}

/* ==========================================================================
   09 MOBILE NAV
   Rendered outside <header> so it escapes the header's backdrop-filter
   stacking context. Sits at --z-nav-mobile (500), which keeps toasts (800)
   reachable above an open menu.
   ========================================================================== */
.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-nav-mobile);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-mobile.open {
    display: block;
    animation: navMobileIn var(--duration-base) var(--ease-out);
}

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

@media (min-width: 1024px) {
    .nav-mobile,
    .nav-mobile.open { display: none; }
}

/* Branded top bar: logo + close, sticky so close stays reachable mid-scroll */
.nav-mobile-top {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 72px;
    margin: 0 calc(-1 * var(--space-5)) var(--space-4);
    padding: max(var(--space-3), env(safe-area-inset-top, 0px)) var(--space-5) var(--space-3);
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 2;
}

.nav-mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.nav-mobile-logo img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.nav-mobile-logo .logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    white-space: nowrap;
}

/* Close button */
.nav-mobile-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-overlay);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.nav-mobile-close:hover,
.nav-mobile-close:active {
    background: var(--orange-subtle);
    border-color: var(--border-accent);
    color: var(--orange-light);
}

.nav-mobile-close:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

.nav-mobile-close svg {
    width: 20px;
    height: 20px;
}

/* Inner container */
.nav-mobile-inner {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: 0 var(--space-5) calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
}

/* Staggered entrance for the menu blocks */
.nav-mobile.open .nav-mobile-inner > * {
    animation: navItemIn var(--duration-slow) var(--ease-out) backwards;
}

.nav-mobile.open .nav-mobile-inner > *:nth-child(2) { animation-delay: 40ms; }
.nav-mobile.open .nav-mobile-inner > *:nth-child(3) { animation-delay: 80ms; }
.nav-mobile.open .nav-mobile-inner > *:nth-child(4) { animation-delay: 120ms; }
.nav-mobile.open .nav-mobile-inner > *:nth-child(5) { animation-delay: 160ms; }
.nav-mobile.open .nav-mobile-inner > *:nth-child(6) { animation-delay: 200ms; }

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

/* User card - the whole card links to the account dashboard */
.nav-mobile-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    background: var(--gradient-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-fast);
}

.nav-mobile-user:hover,
.nav-mobile-user:active {
    border-color: var(--border-accent);
}

.nav-mobile-avatar {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--white);
    flex-shrink: 0;
    box-shadow: var(--glow-accent-sm);
}

.nav-mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-mobile-user-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--white);
}

.nav-mobile-user-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.nav-mobile-user-chevron {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--text-subtle);
    flex-shrink: 0;
}

/* Section container */
.nav-mobile-section {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-card);
}

/* Section label */
.nav-mobile-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-subtle);
    padding: var(--space-2) var(--space-3) var(--space-1);
}

/* Navigation links */
.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 54px;
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-mobile-link + .nav-mobile-link {
    margin-top: 2px;
}

.nav-mobile-link:hover,
.nav-mobile-link:active {
    background: var(--orange-subtle);
    color: var(--orange-light);
}

/* Icon chips - the squared tiles that give each row its weight */
.nav-mobile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-overlay);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--orange-light);
    flex-shrink: 0;
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.nav-mobile-icon svg {
    width: 19px;
    height: 19px;
}

.nav-mobile-link:hover .nav-mobile-icon,
.nav-mobile-link:active .nav-mobile-icon {
    background: var(--gradient-orange);
    border-color: transparent;
    color: var(--white);
}

.nav-mobile-live-dot {
    margin-left: auto;
    margin-right: var(--space-2);
}

/* Notification badge */
.nav-mobile-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    color: var(--white);
}

/* Admin link highlight */
.nav-mobile-link-admin {
    color: var(--orange);
}

.nav-mobile-link-admin .nav-mobile-icon {
    background: var(--orange-subtle);
    border-color: var(--border-accent);
    color: var(--orange);
}

/* Call CTA - mirrors the desktop header phone, but tap-to-call */
.nav-mobile-phone {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-1);
    background: linear-gradient(135deg, rgba(var(--orange-rgb), 0.14) 0%, rgba(var(--orange-rgb), 0.05) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-mobile-phone:hover,
.nav-mobile-phone:active {
    border-color: var(--orange);
    box-shadow: var(--glow-accent-sm);
}

.nav-mobile-icon-phone {
    background: var(--gradient-orange);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--glow-accent-sm);
}

.nav-mobile-phone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-mobile-phone-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

.nav-mobile-phone-number {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

/* Sign out */
.nav-mobile-signout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: var(--space-4);
    margin-top: var(--space-5);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.nav-mobile-signout:hover,
.nav-mobile-signout:active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--error);
}

.nav-mobile-signout svg {
    width: 18px;
    height: 18px;
}

/* Auth buttons for logged out */
.nav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.nav-mobile-auth .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: var(--text-base);
}

/* Desktop nav links have no place inside the overlay */
.nav-mobile .nav-link {
    display: none;
}

/* ==========================================================================
   10 HERO
   Layered background: photograph (when set) -> admin overlay colour -> a fade
   into the page so the section dissolves into the content below.
   --hero-image and --hero-overlay are set inline by index.php from the
   admin branding settings; both are consumed here.
   ========================================================================== */

.hero,
.hero-section {
    position: relative;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: center;
    padding: var(--space-20) 0 var(--space-24);
    background: linear-gradient(150deg,
                var(--surface-page) 0%,
                var(--surface-raised) 55%,
                var(--surface-card) 100%);
    overflow: hidden;
}

/* Phones: a near-fullscreen hero forces a tall portrait crop out of the
   (landscape) dealership photo - one giant vehicle slice and dead space.
   Shorter box = saner crop and the content starts sooner. Top padding must
   clear the fixed header, which overlays the hero. */
@media (max-width: 767px) {
    .hero,
    .hero-section {
        min-height: min(62vh, 560px);
        padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-16);
    }
}

/* Bottom fade so the hero resolves into the page rather than stopping dead */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(180deg, transparent 0%, var(--surface-page) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Background Effects */
.hero-bg,
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Animated Background Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Two accent orbs give the backdrop depth. A third read as haze, so it is
   suppressed rather than removed - the markup still emits it. */
.shape,
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--orange);
    filter: blur(90px);
    opacity: 0.14;
}

.shape-1,
.hero-shape-1 {
    width: 620px;
    height: 620px;
    top: -220px;
    right: -160px;
    animation: floatSlow 25s ease-in-out infinite;
}

.shape-2,
.hero-shape-2 {
    width: 460px;
    height: 460px;
    bottom: -180px;
    left: -170px;
    background: var(--orange-light);
    opacity: 0.10;
    animation: floatReverse 20s ease-in-out infinite;
}

.shape-3,
.hero-shape-3 {
    display: none;
}

/* Hero Background Image */
.hero-bg-image {
    /* Anchored at 70% down, not center: dealership photos carry the vehicles
       in the lower half, and on wide screens a centered cover-crop cut their
       roofs off while keeping empty sky. */
    background: var(--hero-image) center 70% / cover no-repeat;
}

/* Phones use the dedicated upright hero when one is uploaded (index.php sets
   --hero-image-mobile to the desktop photo otherwise, so the var is always
   defined). A purpose-made portrait image fits the box, so center it. */
@media (max-width: 767px) {
    .hero-bg-image {
        background-image: var(--hero-image-mobile, var(--hero-image));
        background-position: center;
    }
}

.hero-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

/* Where supported, ease the admin overlay off toward the top-right so the
   photograph reads as a photograph instead of a uniformly murky wall. The
   headline sits left/centre, which keeps full strength where text needs it. */
@supports (background: color-mix(in srgb, red 50%, transparent)) {
    .hero-bg-image::before {
        background: linear-gradient(100deg,
            var(--hero-overlay, rgba(0, 0, 0, 0.6)) 35%,
            color-mix(in srgb, var(--hero-overlay, rgba(0, 0, 0, 0.6)) 60%, transparent) 100%);
    }
}

.hero-bg-image .hero-shapes {
    opacity: 0.3;
}

/* Hero without image also gets overlay for consistency */
.hero-bg:not(.hero-bg-image)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay, transparent);
    pointer-events: none;
    z-index: 0;
}

/* Grid Pattern Overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
}

/* Hide grid on hero with image */
.hero:has(.hero-bg-image)::before {
    display: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.hero-badge .live-dot {
    background: var(--orange);
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-7xl);
    font-weight: var(--font-bold);
    color: var(--white);
    line-height: 1.04;
    margin-bottom: var(--space-6);
    letter-spacing: var(--tracking-tighter);
    text-wrap: balance;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 55ch;
    line-height: var(--leading-relaxed);
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* Hero Actions/Buttons */
.hero-buttons,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

/* Hero Stats - a single glass strip of proof points */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    padding: var(--space-5) var(--space-6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: fit-content;
    max-width: 100%;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero-stat,
.hero-stats .stat {
    text-align: left;
    position: relative;
    padding-right: var(--space-8);
}

/* Hairline between stats, not after the last */
.hero-stats .stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: var(--border-default);
}

.hero-stats .stat:last-child {
    padding-right: 0;
}

.hero-stat-value,
.hero-stats .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
}

.hero-stat-label,
.hero-stats .stat-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

@media (max-width: 640px) {
    .hero-stats {
        gap: var(--space-5);
        width: 100%;
    }

    .hero-stat,
    .hero-stats .stat {
        padding-right: var(--space-5);
    }
}

/* ==========================================================================
   11 QUICK SEARCH
   The markup emits .quick-search > .search-form directly - there is no
   .search-card wrapper - so the form itself carries the floating card.
   ========================================================================== */
.quick-search {
    position: relative;
    z-index: 10;
    margin-top: -56px;
    padding: 0 var(--container-padding);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-6);
    background: rgba(26, 26, 26, 0.88);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

@media (min-width: 768px) {
    .search-form {
        grid-template-columns: repeat(3, 1fr) auto;
        align-items: end;
    }
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.search-field label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

/* The submit button aligns with the 44px fields beside it */
.search-form .btn {
    min-height: 44px;
}

   /* === PHASE 5: CARDS - Premium Vehicle Cards === */

/* Card Grid */
.vehicle-grid,
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .vehicle-grid,
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vehicle-grid,
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 4-column variant */
.vehicle-grid-4,
.card-grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .vehicle-grid-4,
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vehicle-grid-4,
    .card-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Base Card Styles */
.vehicle-card,
.car-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.vehicle-card:hover,
.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-accent);
}

/* Card Image */
.vehicle-image,
.card-image {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--surface-raised);
    overflow: hidden;
    display: block;
}

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

.vehicle-card:hover .vehicle-image img,
.car-card:hover .card-image img {
    transform: scale(1.04);
}

/* Scrim so badges and the countdown chip stay legible over any photograph */
.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.35) 0%,
                transparent 30%,
                transparent 60%,
                rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

/* No Image Placeholder */
.no-image,
.vehicle-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--surface-raised) 0%, var(--surface-overlay) 100%);
    color: var(--text-subtle);
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.no-image svg,
.vehicle-placeholder svg {
    width: 44px;
    height: 44px;
    opacity: 0.4;
}

/* Card Body */
.card-body,
.vehicle-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-5);
    z-index: 2;
}

/* Card Title */
.card-title,
.vehicle-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-title a:hover {
    color: var(--orange-light);
}

/* Variant line - the trim level under the title */
.card-variant {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Location - pushed to the foot of the card */
.card-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.card-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Card Specs */
.card-specs,
.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-subtle);
}

.card-specs span,
.vehicle-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.card-specs span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--charcoal-lighter);
    border-radius: 50%;
}

.card-specs span:first-child::before {
    display: none;
}

/* Card Footer - pinned to the bottom so cards in a row align. Wraps rather
   than squeezing the price when value tags sit alongside it. */
.card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.card-footer .price-group {
    flex: 1 1 auto;
    min-width: 0;
}

   /* AUCTION CARD SPECIFICS */
.auction-card {
    position: relative;
}

/*
 * Card badge stack.
 *
 * Every status chip shares one top-left column and every card puts the
 * watchlist heart top-right, so nothing can overlap regardless of which
 * combination a vehicle qualifies for. Chips are siblings inside .card-image
 * with no wrapper, so the second and third in document order are pushed down
 * by sibling selectors. Real combinations: featured+discount (search),
 * featured alone, discount alone, auction alone.
 */
.auction-badge,
.discount-badge,
.featured-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
}

/* Second chip in the stack */
.featured-badge ~ .auction-badge,
.featured-badge ~ .discount-badge,
.auction-badge ~ .discount-badge,
.auction-badge ~ .featured-badge {
    top: 48px;
}

/* Third chip, if a vehicle ever qualifies for all three */
.featured-badge ~ .auction-badge ~ .discount-badge {
    top: 84px;
}

.auction-badge {
    background: rgba(239, 68, 68, 0.9);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.35);
}

.auction-badge .live-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
}

.auction-badge .live-dot::before {
    background: var(--white);
}

.discount-badge {
    background: rgba(34, 197, 94, 0.92);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
}

.featured-badge {
    background: rgba(var(--orange-rgb), 0.92);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(var(--orange-rgb), 0.35);
}

/* Ended / upcoming variants sit in the same stack */
.auction-badge-ended,
.auction-badge-upcoming {
    background: rgba(10, 10, 10, 0.8);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    box-shadow: none;
}

/* Auction Countdown chip - bottom right, over the scrim */
.auction-countdown {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(10, 10, 10, 0.78);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: var(--text-xs);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    z-index: 3;
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: 1;
}

.countdown-time {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    color: var(--white);
    font-size: var(--text-sm);
    line-height: 1.1;
}

.auction-countdown.urgent {
    border-color: rgba(239, 68, 68, 0.5);
}

.auction-countdown.urgent .countdown-time {
    color: #fca5a5;
    animation: pulseSoft 1.6s ease-in-out infinite;
}

.auction-countdown.ended .countdown-time {
    color: var(--text-muted);
}

/* Current Bid Display */
.current-bid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bid-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.bid-amount {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tight);
    color: var(--white);
}

.bid-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

   /* DEAL/DISCOUNT CARD SPECIFICS */
.deal-card {
    position: relative;
}

/* Price Group. Was-price sits above the current price so the two never
   compete on the same baseline. */
.price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.deal-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.deal-price,
.price-now {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    line-height: 1.1;
    /* Prices are one unit - never let "R 749 000" break across lines */
    white-space: nowrap;
}

.deal-was,
.price-was {
    font-size: var(--text-sm);
    color: var(--text-subtle);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-decoration: line-through;
}

.watchlist-btn.active {
    background: var(--error);
}

.watchlist-btn.active svg {
    fill: currentColor;
}

/* ==========================================================================
   12 SECTIONS
   ========================================================================== */

/* Base Section */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
}

.section-dark {
    background: var(--surface-raised);
}

.section-darker {
    background: var(--surface-page);
}

/* Section Header */
.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.section-header-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    line-height: 1.15;
}

.section-title svg {
    width: 26px;
    height: 26px;
    color: var(--orange);
    flex-shrink: 0;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 60ch;
}

   /* === FEATURES GRID - "Why Choose Us" Section === */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Feature Card */
.feature-card {
    position: relative;
    padding: var(--space-8);
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: transform var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    color: var(--orange);
    transition: background var(--transition-base),
                color var(--transition-base),
                box-shadow var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--orange);
    color: var(--white);
    box-shadow: var(--glow-accent-sm);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    margin-bottom: var(--space-3);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

/* Why Section Specific */
.why-section {
    background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface-page) 100%);
}

   /* === CTA SECTION - Call to Action === */
.cta-section {
    background: var(--black-gloss);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-12);
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-dark) 100%);
    border: 1px solid var(--charcoal-lighter);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent 40%, rgba(249, 115, 22, 0.1) 50%, transparent 60%);
    animation: shine 4s infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 280px;
}

.cta-content h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-3);
}

.cta-content p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.cta-image {
    position: relative;
    z-index: 1;
    color: var(--charcoal-lighter);
    opacity: 0.3;
}

.cta-image svg {
    width: 200px;
    height: auto;
}

@media (max-width: 768px) {
    .cta-card {
        padding: var(--space-8);
    }

    .cta-image {
        display: none;
    }
}

   /* AUCTIONS SECTION */
/* Homepage bands alternate page / raised so sections read as distinct
   without needing rules between them. */
.auctions-section {
    background: var(--surface-page);
}

   /* DEALS SECTION */
.deals-section {
    background: var(--surface-raised);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

   /* LISTINGS SECTION */
.listings-section {
    background: var(--surface-page);
}

   /* BREADCRUMB */
.breadcrumb {
    padding: var(--space-4) 0;
    background: var(--charcoal-dark);
    border-bottom: 1px solid var(--charcoal-lighter);
}

.breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb span:not(:last-child) {
    color: var(--text-subtle);
}

   /* PAGE CONTENT WRAPPER */
.page-content {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* ==========================================================================
   13 FOOTER
   ========================================================================== */

/* Footer Main */
.site-footer {
    background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface-sunken) 100%);
    position: relative;
    overflow: hidden;
}

/* Hairline that fades in from the accent at centre */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
                transparent 0%,
                rgba(var(--orange-rgb), 0.5) 50%,
                transparent 100%);
}

.footer-main {
    padding: var(--space-16) 0;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

/* Footer Brand Section */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--white);
    margin-bottom: var(--space-4);
    transition: all var(--transition-fast);
}

.footer-logo:hover {
    color: var(--orange);
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    color: var(--orange);
}

.footer-logo .logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer-logo .logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: inherit;
    -webkit-text-fill-color: unset;
    background: none;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

/* Footer Contact Info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--orange);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
    flex-shrink: 0;
}

/* Footer Links */
.footer-links h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--orange);
    transform: translateX(4px);
}

/* Footer Middle - Social & Newsletter */
.footer-middle {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--charcoal-lighter);
    border-bottom: 1px solid var(--charcoal-lighter);
}

.footer-middle-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.social-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-overlay);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-muted);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

.social-link:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-sm);
}

.social-link:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

/* Knocked-out detail inside a glyph (the YouTube play triangle). Tracks the
   button background rather than a hardcoded hex, so it survives theme changes. */
.social-link .icon-knockout {
    fill: var(--surface-overlay);
    transition: fill var(--transition-fast);
}

.social-link:hover .icon-knockout {
    fill: var(--orange);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Newsletter */
.newsletter-signup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.newsletter-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.newsletter-form {
    display: flex;
    align-items: stretch;
    background: var(--charcoal-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--charcoal-lighter);
    transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
    border-color: var(--orange);
}

.newsletter-form input {
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    color: var(--white);
    font-size: var(--text-sm);
    min-width: 200px;
}

.newsletter-form input::placeholder {
    color: var(--text-subtle);
}

.newsletter-form button {
    padding: var(--space-3) var(--space-4);
    background: var(--orange);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--orange-light);
}

.newsletter-form button svg {
    width: 18px;
    height: 18px;
}

/* Footer Bottom */
/* Service-area strip: quiet, but present on every page for local search */
.footer-areas {
    padding: var(--space-5) 0;
    border-top: 1px solid var(--charcoal-lighter);
}

.footer-areas p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-subtle);
    max-width: 72ch;
}

.footer-areas strong {
    color: var(--text-muted);
    font-weight: var(--font-semibold);
}

.footer-areas a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.footer-areas a:hover {
    color: var(--orange-light);
}

.footer-bottom {
    padding: var(--space-6) 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.copyright {
    font-size: var(--text-sm);
    color: var(--text-subtle);
}

/* Footer Badges */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--charcoal-light);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.footer-badges .badge svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

   /* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-glow-sm);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--orange-light);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

   /* === PHASE 8: PAGES - Vehicle Detail, Search, etc. === */

   /* VEHICLE DETAIL PAGE */
/* minmax(0, ...) everywhere: with plain 1fr the track's min size is the
   content's min-content width, and .gallery-thumbs (5+ fixed 80px thumbs)
   makes that wider than a phone screen - the whole page then renders
   oversized and clipped behind body{overflow-x:hidden}. */
.vehicle-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-8) 0;
}

@media (min-width: 1024px) {
    .vehicle-detail {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

/* Vehicle Gallery */
.vehicle-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

.gallery-main {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--charcoal-dark);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

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

/* Swipeable photo strip. NOT a native scroll container: scroll-snap physics
   proved unreliable in the Android WebView (quick flicks snapped back), so
   main.js translates the track directly - slides follow the finger 1:1 and
   release advances by velocity/distance. pan-y keeps vertical page
   scrolling native when the touch starts on a photo. */
.gallery-track {
    display: flex;
    height: 100%;
    touch-action: pan-y;
    will-change: transform;
}

.gallery-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    touch-action: pan-y;
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-slide img {
    display: block;
}

/* Whole photo visible, same as the fullscreen viewer: the photo sits
   uncropped over a blurred cover backdrop of itself, so portrait phone
   shots aren't reduced to a horizontal slice by a 16:10 cover-crop. */
.gallery-main .gallery-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) brightness(0.5) saturate(1.15);
    transform: scale(1.18);
}

.gallery-main .gallery-slide-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid var(--border-default);
    color: var(--white);
    backdrop-filter: blur(6px);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.gallery-arrow:hover {
    background: rgba(10, 10, 10, 0.8);
    border-color: var(--border-strong);
}

.gallery-arrow-prev { left: var(--space-3); }
.gallery-arrow-next { right: var(--space-3); }

/* Touch screens swipe; arrows would only cover the photo */
@media (hover: none) and (pointer: coarse) {
    .gallery-arrow { display: none; }
}

.gallery-count {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    z-index: 2;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    background: rgba(10, 10, 10, 0.65);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.gallery-expand {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid var(--border-default);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.gallery-expand:hover {
    background: rgba(10, 10, 10, 0.8);
}

/* Fullscreen photo viewer */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    /* Solid, not translucent: page text ghosting through reads as a glitch */
    background: #050505;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--space-3) + env(safe-area-inset-top, 0px)) var(--space-4) var(--space-3);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
}

.lightbox-count {
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    font-variant-numeric: tabular-nums;
}

.lightbox-close {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-default);
    color: var(--white);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* JS-translated like .gallery-track; every gesture in the viewer is custom
   (slide, pull-to-close, pinch, pan), so touches are fully claimed here */
.lightbox-track {
    flex: 1;
    display: flex;
    touch-action: none;
    will-change: transform;
    min-height: 0;
}

.lightbox-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    padding: calc(var(--space-16) + env(safe-area-inset-top, 0px)) var(--space-2)
             calc(var(--space-20) + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
}

.lightbox-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    cursor: zoom-in;
    will-change: transform;
    -webkit-user-drag: none;
    user-select: none;
}

.lightbox-slide img.is-zoomed {
    cursor: grab;
}

.lightbox-slide img.is-panning {
    cursor: grabbing;
}

.lightbox-slide img.is-settling {
    transition: transform 0.25s var(--ease-out, ease-out);
}

/* Thumbnail strip inside the viewer */
.lightbox-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-3)
             calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    overflow-x: auto;
    scrollbar-width: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

/* Centered when they fit, scrollable from the edge when they don't */
.lightbox-thumb:first-child { margin-left: auto; }
.lightbox-thumb:last-child { margin-right: auto; }

.lightbox-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 42px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-thumb.active {
    border-color: var(--orange);
    opacity: 1;
}

.lightbox-thumb:hover {
    opacity: 0.9;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-default);
    color: var(--white);
    transition: background var(--transition-fast);
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.16);
}

.lightbox-arrow-prev { left: var(--space-4); }
.lightbox-arrow-next { right: var(--space-4); }

@media (hover: none) and (pointer: coarse) {
    .lightbox-arrow { display: none; }
}

.no-image-large {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    color: var(--text-subtle);
    background: linear-gradient(145deg, var(--charcoal-dark) 0%, var(--charcoal) 100%);
}

.no-image-large svg {
    width: 80px;
    height: 80px;
    opacity: 0.4;
}

/* Gallery Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: var(--space-1);
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: var(--orange);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vehicle Info Panel */
.vehicle-info {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
    align-self: start;
    min-width: 0;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.vehicle-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-2);
}

.vehicle-variant {
    font-size: var(--text-lg);
    color: var(--text-muted);
}

/* Price Card */
.vehicle-price-card {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-accent);
    box-shadow: inset 0 1px 0 rgba(var(--orange-rgb), 0.18);
}

.price-main {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tighter);
    color: var(--white);
    line-height: 1.1;
}

.price-neg {
    display: inline-block;
    margin-top: var(--space-2);
    padding: var(--space-1) var(--space-2);
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
}

.discount-tag {
    display: inline-block;
    margin-left: var(--space-3);
    padding: var(--space-1) var(--space-2);
    background: var(--success);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: var(--radius-md);
}

/* Vehicle Specs Grid */
.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4);
    background: var(--charcoal);
    border-radius: var(--radius-lg);
    border: 1px solid var(--charcoal-lighter);
}

.spec-item svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
    margin-bottom: var(--space-2);
}

.spec-label {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--white);
}

/* Vehicle Location */
.vehicle-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--charcoal);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.vehicle-location svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
}

/* Vehicle Actions */
.vehicle-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Share row (car detail): WhatsApp-first, plus the native share sheet on
   phones and a copy-link fallback everywhere else */
.vehicle-share {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--charcoal);
    border: 1px solid var(--charcoal-lighter);
    border-radius: var(--radius-lg);
}

.share-label {
    display: block;
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 0 var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: color var(--transition-fast),
                border-color var(--transition-fast),
                background var(--transition-fast);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-btn:hover {
    color: var(--white);
    background: var(--surface-overlay);
    border-color: var(--border-strong);
}

.share-btn.share-whatsapp:hover {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.45);
}

.share-btn.share-facebook:hover {
    color: #4293ff;
    border-color: rgba(66, 147, 255, 0.45);
}

.share-btn.js-copy-link.is-copied {
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.45);
}

   /* VEHICLE TABS */
.vehicle-tabs {
    margin-top: var(--space-8);
    margin-bottom: var(--space-16);
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: var(--space-2);
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-5);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.tab-btn:hover {
    color: var(--white);
    background: var(--glass-hover);
}

.tab-btn:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

.tab-btn.active {
    background: var(--surface-overlay);
    color: var(--white);
    box-shadow: inset 0 -2px 0 var(--orange);
}

/* Tab Content */
.tabs-content {
    padding: var(--space-6);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.tab-panel {
    display: none;
    animation: fadeIn var(--duration-fast) var(--ease-out);
}

.tab-panel.active {
    display: block;
}

/* Specs Table */
.specs-table {
    background: var(--charcoal);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--charcoal-lighter);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--charcoal-lighter);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-name {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.spec-val {
    color: var(--white);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

/* Features List */
.features-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-6);
}

.feature-category h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--orange);
    margin-bottom: var(--space-4);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.feature-list li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

/* Faults List */
.faults-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.fault-item {
    padding: var(--space-4);
    background: var(--charcoal);
    border-radius: var(--radius-xl);
    border: 1px solid var(--charcoal-lighter);
}

.fault-header {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.fault-severity {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.fault-item.fault-minor .fault-severity {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.fault-item.fault-major .fault-severity {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.fault-category {
    padding: var(--space-1) var(--space-2);
    background: var(--charcoal-light);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.fault-item h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin-bottom: var(--space-2);
}

.fault-item p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.fault-cost {
    font-size: var(--text-sm);
    color: var(--warning);
}

/* Work Timeline */
.work-timeline {
    position: relative;
    padding-left: var(--space-8);
}

.work-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--charcoal-lighter);
}

.work-item {
    position: relative;
    padding-bottom: var(--space-6);
}

.work-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-8) - 4px);
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid var(--charcoal-dark);
}

.work-date {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    margin-bottom: var(--space-2);
}

.work-type {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.work-content h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin-bottom: var(--space-2);
}

.work-content p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.work-workshop {
    font-size: var(--text-xs);
    color: var(--text-subtle);
}

@media (min-width: 1024px) {
}

/*
 * Listing page header band. Used by /search, /auctions and the content-page
 * shell, all of which emitted these classes with no rule behind them.
 */
.page-header,
.about-hero {
    position: relative;
    padding: var(--space-12) 0 var(--space-10);
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

/* Faint accent wash so the band is not a flat rectangle */
.page-header::before,
.about-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(var(--orange-rgb), 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-content,
.about-hero .container {
    position: relative;
    z-index: 1;
}

.page-title,
.about-hero h1 {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tighter);
    color: var(--white);
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.page-subtitle,
.about-hero p {
    margin-top: var(--space-3);
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 62ch;
}

/*
 * Search layout: filter rail beside results. Collapses to a stack below
 * 1024px, where the rail becomes a full-width card above the grid.
 */
.search-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-10) 0;
}

@media (min-width: 1024px) {
    .search-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

.search-sidebar {
    height: fit-content;
}

@media (min-width: 1024px) {
    .search-sidebar {
        position: sticky;
        top: calc(var(--header-height) + var(--space-6));
    }
}

.filter-form {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-card);
}

.filter-section {
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

/* These inherit the global control styling; declared explicitly so the filter
   rail's controls are searchable as a set rather than relying on element
   selectors alone. */
.filter-input,
.filter-select {
    width: 100%;
}

/* Pairs that sit side by side (price from/to). */
.filter-section .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.filter-form .btn + .btn {
    margin-top: var(--space-2);
}

/* Mobile "Filters" toggle in the results header - desktop keeps the rail */
.filter-toggle {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    min-height: 42px;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.filter-toggle:hover,
.filter-toggle:active {
    border-color: var(--border-accent);
    color: var(--white);
}

.filter-toggle svg {
    color: var(--orange);
    flex-shrink: 0;
}

.filter-toggle-count {
    min-width: 20px;
    height: 20px;
    padding: 0 var(--space-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    color: var(--white);
}

/* Sheet chrome (handle + title bar) and backdrop only exist on mobile */
.filter-sheet-bar,
.filter-backdrop {
    display: none;
}

/*
 * Below the sidebar breakpoint the filter rail becomes a bottom sheet: opened
 * from the "Filters" button, slides up over a backdrop, fields scroll in the
 * middle, actions pinned at the bottom. Results are visible immediately
 * instead of a full screen of filter controls above them.
 */
@media (max-width: 1023px) {
    .filter-toggle {
        display: inline-flex;
    }

    .search-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: auto;
        max-height: min(88dvh, 640px);
        display: flex;
        flex-direction: column;
        background: var(--surface-card);
        border: 1px solid var(--border-default);
        border-bottom: none;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        box-shadow: var(--shadow-2xl);
        z-index: var(--z-popover);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform var(--duration-base) var(--ease-out),
                    visibility 0s linear var(--duration-base);
        overflow: hidden;
    }

    .search-sidebar.open {
        transform: translateY(0);
        visibility: visible;
        transition: transform var(--duration-base) var(--ease-out);
    }

    .filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: calc(var(--z-popover) - 1);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--duration-base) var(--ease-out),
                    visibility 0s linear var(--duration-base);
    }

    .filter-backdrop.open {
        opacity: 1;
        visibility: visible;
        transition: opacity var(--duration-base) var(--ease-out);
    }

    .filter-sheet-bar {
        display: block;
        flex-shrink: 0;
        padding: var(--space-2) var(--space-5) var(--space-3);
        border-bottom: 1px solid var(--border-subtle);
    }

    .filter-sheet-handle {
        display: block;
        width: 44px;
        height: 4px;
        margin: 0 auto var(--space-3);
        background: var(--charcoal-lighter);
        border-radius: var(--radius-full);
    }

    .filter-sheet-titlebar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-4);
    }

    .filter-sheet-title {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        font-family: var(--font-display);
        font-size: var(--text-xl);
        font-weight: var(--font-bold);
        color: var(--white);
    }

    .filter-sheet-close {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--surface-overlay);
        border: 1px solid var(--border-default);
        border-radius: var(--radius-full);
        color: var(--text-secondary);
        cursor: pointer;
        transition: background var(--transition-fast), color var(--transition-fast);
    }

    .filter-sheet-close:hover,
    .filter-sheet-close:active {
        background: var(--orange-subtle);
        color: var(--orange-light);
    }

    /* The form fills the sheet: fields scroll, actions stay pinned */
    .filter-form {
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .filter-fields {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
        align-items: end;
        padding: var(--space-4) var(--space-5);
    }

    /* Free-text search spans the full row; selects flow two-up */
    .filter-fields .filter-section:first-child {
        grid-column: 1 / -1;
    }

    .filter-section {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .filter-actions {
        flex-shrink: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
        gap: var(--space-3);
        padding: var(--space-4) var(--space-5)
                 calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border-subtle);
        background: var(--surface-card);
    }

    /* Clear sits left of Apply inside the pinned footer */
    .filter-actions .btn[type="submit"] {
        order: 2;
    }

    .filter-actions .btn-ghost {
        order: 1;
        border: 1px solid var(--border-default);
    }

    .filter-form .filter-actions .btn + .btn {
        margin-top: 0;
    }
}

/*
 * Horizontal filter toolbar on /auctions.
 */
.filters-section {
    padding: var(--space-6) 0 0;
}

.filters-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
    .filters-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }
}

.filters-form .filter-group {
    margin-bottom: 0;
}

.filter-results {
    margin-top: var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.filter-results strong {
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.filter-group {
    margin-bottom: var(--space-5);
}

.filter-group label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

/* Search Results */
.search-results {
    min-height: 400px;
}

.results-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.results-count {
    font-size: var(--text-lg);
    color: var(--text-muted);
}

.results-count span {
    color: var(--white);
    font-weight: var(--font-bold);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.results-sort label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

.results-sort select {
    padding: var(--space-2) var(--space-3);
    min-width: 180px;
}

.view-toggle button.active {
    background: var(--orange);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
    flex-wrap: wrap;
}

/* .pagination-page is the numbered link; it had no rule, so page numbers
   rendered as bare text between two styled prev/next buttons. */
.pagination-btn,
.pagination-page {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.pagination-btn:hover,
.pagination-page:hover {
    background: var(--surface-overlay);
    border-color: var(--border-strong);
    color: var(--white);
}

.pagination-btn:focus-visible,
.pagination-page:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

.pagination-page.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    font-weight: var(--font-semibold);
}

.pagination-page.active:hover {
    background: var(--orange);
    color: var(--white);
}

.pagination-btn:disabled,
.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ellipsis between page ranges */
.pagination-pages .pagination-gap {
    color: var(--text-subtle);
    padding: 0 var(--space-1);
}

   /* PHASE 9: ACCOUNT DASHBOARD */

/* Account Layout */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-8) 0;
}

@media (min-width: 1024px) {
    .account-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Account Sidebar */
.account-sidebar {
    background: var(--charcoal);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--charcoal-lighter);
    height: fit-content;
}

.account-user {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--charcoal-lighter);
}

/* Account Navigation */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.account-nav-item:hover {
    color: var(--white);
    background: var(--charcoal-light);
}

.account-nav-item.active {
    color: var(--orange);
    background: rgba(249, 115, 22, 0.1);
}

.account-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-nav-item.danger {
    color: var(--error);
}

.account-nav-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.account-header {
    margin-bottom: var(--space-8);
}

.account-header h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-2);
}

.account-header p {
    font-size: var(--text-base);
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--charcoal);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--charcoal-lighter);
    text-align: center;
}

.stat-card-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--orange);
    margin-bottom: var(--space-1);
}

.stat-card-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==========================================================================
   17 AUTH
   Matches what the auth templates emit:
     .auth-container > .auth-logo + .auth-card
     .auth-card > .auth-title + .auth-subtitle + .alert + form + .auth-alt
   The previous rules here described a different markup shape (.auth-header,
   .auth-form, .remember-forgot, .social-login) that no page renders.
   ========================================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-5);
    background: linear-gradient(150deg, var(--surface-page) 0%, var(--surface-raised) 100%);
    position: relative;
    overflow: hidden;
}

/* Accent orbs behind the card */
.auth-container::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -25%;
    width: 760px;
    height: 760px;
    background: var(--orange);
    filter: blur(140px);
    opacity: 0.18;
    border-radius: 50%;
    pointer-events: none;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -20%;
    width: 560px;
    height: 560px;
    background: var(--orange-light);
    filter: blur(140px);
    opacity: 0.12;
    border-radius: 50%;
    pointer-events: none;
}

/* Wordmark above the card */
.auth-logo {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-8);
}

.auth-logo a {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.auth-logo a:hover {
    opacity: 0.85;
}

.auth-logo img {
    height: 48px;
    width: auto;
}

/* Card */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-2xl);
    z-index: 1;
}

.auth-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    text-align: center;
    line-height: 1.15;
}

.auth-subtitle {
    margin-top: var(--space-2);
    margin-bottom: var(--space-8);
    font-size: var(--text-base);
    color: var(--text-muted);
    text-align: center;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.auth-card .form-group {
    gap: var(--space-2);
}

/* Two-up name fields on register */
.auth-card .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 480px) {
    .auth-card .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-card .btn {
    min-height: 52px;
    font-size: var(--text-base);
}

/* Remember me / terms consent */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 1px;
}

.checkbox-group a {
    color: var(--orange);
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Forgot-password link under the submit button */
.form-footer {
    text-align: center;
    font-size: var(--text-sm);
}

.form-footer a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.form-footer a:hover {
    color: var(--orange);
}

/* Cross-link to the other auth page */
.auth-alt {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.auth-alt a {
    color: var(--orange);
    font-weight: var(--font-medium);
}

.auth-alt a:hover {
    text-decoration: underline;
}

/* Verification result: a status glyph above the message */
.auth-card-centered {
    text-align: center;
}

.auth-card-centered .auth-subtitle {
    margin-bottom: var(--space-6);
}

.auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-3xl);
    line-height: 1;
}

.auth-icon-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.auth-icon-error {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--warning);
}

/* Alerts inside the card */
.auth-card .alert {
    margin-bottom: var(--space-6);
}

/* .alert-danger is the auth pages' name for the shared .alert-error */
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-6);
    }
}

   /* === ERROR PAGES (404, 500, etc.) === */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: radial-gradient(ellipse at 50% 0%,
                rgba(var(--orange-rgb), 0.10) 0%,
                transparent 60%),
                linear-gradient(160deg, var(--surface-page) 0%, var(--surface-raised) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

/* The error pages emit a bare <h1> for the status code, so the code styling
   is bound to the element rather than a class the markup never carries. */
.error-code,
.error-content h1 {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 11rem);
    font-weight: var(--font-bold);
    line-height: 1;
    letter-spacing: var(--tracking-tighter);
    background: linear-gradient(160deg, var(--white) 0%, rgba(255, 255, 255, 0.25) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.error-title,
.error-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.error-message,
.error-content p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

   /* MODALS */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--charcoal);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--charcoal-lighter);
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-base);
    overflow: hidden;
}

.modal-backdrop.open .modal {
    transform: scale(1) translateY(0);
}

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

.modal-header h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--white);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--charcoal-light);
    color: var(--white);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--charcoal-lighter);
}

   /* ADMIN PANEL STYLES */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

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

.admin-sidebar {
    background: var(--charcoal-dark);
    border-right: 1px solid var(--charcoal-lighter);
    padding: var(--space-6);
    position: fixed;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        transition: left var(--transition-base);
        z-index: var(--z-fixed);
    }

    .admin-sidebar.open {
        left: 0;
    }
}

.admin-content {
    margin-left: 260px;
    padding: var(--space-8);
    background: var(--black-gloss);
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .admin-content {
        margin-left: 0;
    }
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--charcoal);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--charcoal-lighter);
}

.data-table th,
.data-table td {
    padding: var(--space-4);
    text-align: left;
}

.data-table th {
    background: var(--charcoal-dark);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--charcoal-lighter);
}

.data-table td {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--charcoal-lighter);
}

.data-table tbody tr:hover {
    background: var(--charcoal-light);
}

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

/* Action buttons in tables */
.table-actions {
    display: flex;
    gap: var(--space-2);
}

.table-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal-light);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.table-action-btn:hover {
    color: var(--white);
}

.table-action-btn.edit:hover {
    background: var(--info);
}

.table-action-btn.delete:hover {
    background: var(--error);
}

.table-action-btn svg {
    width: 16px;
    height: 16px;
}

   /* AUTO-BID (PROXY BID) STYLES */
.auto-bid-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--charcoal-light);
}

.auto-bid-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--charcoal-mid);
    border: 1px solid var(--charcoal-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auto-bid-toggle:hover {
    background: var(--charcoal-light);
    color: var(--white);
    border-color: var(--orange);
}

.auto-bid-toggle svg {
    color: var(--orange);
}

.auto-bid-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--charcoal-mid);
    border-radius: var(--radius-md);
    border: 1px solid var(--charcoal-light);
}

.auto-bid-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.auto-bid-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--orange-subtle);
    border: 1px solid var(--orange);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.auto-bid-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auto-bid-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange);
}

.auto-bid-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auto-bid-actions .btn-ghost {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auto-bid-actions .btn-ghost:hover {
    color: var(--error);
}

   /* INVOICE STYLES */
.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invoice-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--charcoal-mid);
    border: 1px solid var(--charcoal-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.invoice-card:hover {
    border-color: var(--charcoal-lighter);
}

.invoice-card.invoice-overdue {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.invoice-card-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.invoice-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.invoice-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.invoice-number {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono, monospace);
}

.invoice-card-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.invoice-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.invoice-detail .detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.invoice-detail .detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.invoice-detail .detail-value.text-danger {
    color: var(--error);
}

.overdue-label {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--error);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.invoice-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Invoice Payment Info Box */
.invoice-payment-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--charcoal-mid);
    border: 1px solid var(--charcoal-light);
    border-radius: var(--radius-lg);
}

.invoice-payment-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.75rem 0;
}

.invoice-payment-info > p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-method {
    padding: 1rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-md);
}

.payment-method strong {
    display: block;
    font-size: 0.875rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.payment-method p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.payment-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0;
}

.payment-note strong {
    color: var(--orange);
}

/* Filter count badges */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.375rem;
    margin-left: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--charcoal-light);
    border-radius: 10px;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive invoice cards */
@media (max-width: 768px) {
    .invoice-card {
        flex-direction: column;
    }

    .invoice-card-image {
        width: 100%;
        height: 150px;
    }

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

/* ============================================
   /* HANDOVER STYLES */
============================================ */
.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--orange);
}

/* Handover Progress Card */
.handover-progress-card {
    padding: 1.5rem;
    background: var(--charcoal-mid);
    border: 1px solid var(--charcoal-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h3 {
    margin: 0;
    font-size: 1rem;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--charcoal-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange) 0%, var(--success) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Handover Columns */
.handover-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.handover-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.handover-section {
    padding: 1.25rem;
    background: var(--charcoal-mid);
    border: 1px solid var(--charcoal-light);
    border-radius: var(--radius-lg);
}

.handover-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--white);
}

/* Invoice Summary Card */
.invoice-summary-card {
    background: var(--charcoal-dark);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--charcoal-light);
}

.invoice-summary-row:last-of-type {
    border-bottom: none;
}

.invoice-summary-row.total {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--charcoal-lighter);
}

.invoice-summary-row span:first-child {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Upload Form */
.upload-form .form-group {
    margin-bottom: 1rem;
}

.upload-form .form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.upload-form .form-input {
    width: 100%;
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-md);
}

.document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal-light);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

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

.document-info strong {
    display: block;
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 0.125rem;
}

.document-info .text-muted {
    display: block;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.checklist-item.completed {
    opacity: 0.7;
}

.checklist-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--charcoal-lighter);
    border-radius: 4px;
    color: var(--success);
}

.checklist-item.completed .checklist-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.checklist-content {
    flex: 1;
}

.checklist-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
}

.checklist-item.completed .checklist-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.checklist-completed {
    display: block;
    font-size: 0.6875rem;
    color: var(--success);
    margin-top: 0.25rem;
}

/* Help Card */
.help-card {
    padding: 1rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-md);
}

.help-card p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Won Auctions List */
.won-auctions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.won-auction-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--charcoal-mid);
    border: 1px solid var(--charcoal-light);
    border-radius: var(--radius-lg);
}

.won-auction-image {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.won-auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.won-auction-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.won-auction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.won-auction-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--white);
}

.won-auction-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.won-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.won-detail .detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.won-detail .detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
}

.won-auction-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Mini Progress Bar */
.mini-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--charcoal-light);
    border-radius: 3px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 3px;
}

.mini-progress span {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 30px;
}

/* Admin Handover Specific */
.handover-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--charcoal-light);
}

.handover-vehicle-info h2 {
    margin: 0;
    font-size: 1.25rem;
}

.handover-status-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-badge {
    padding: 0.375rem 0.75rem;
    background: var(--charcoal-light);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-breadcrumb {
    margin-bottom: 1rem;
}

.admin-breadcrumb a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.admin-breadcrumb a:hover {
    color: var(--orange);
}

.info-grid {
    display: grid;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-item span,
.info-item a {
    font-size: 0.875rem;
}

.admin-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-md);
}

.admin-checklist-item.completed {
    opacity: 0.7;
}

.admin-checklist-item .checklist-checkbox {
    background: none;
    border: 2px solid var(--charcoal-lighter);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.admin-checklist-item .checklist-checkbox:hover {
    border-color: var(--orange);
}

.admin-checklist-item .checklist-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.checklist-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header-flex h3 {
    margin: 0;
}

.upload-section {
    padding: 1rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

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

/* Responsive handover */
@media (max-width: 768px) {
    .handover-columns {
        grid-template-columns: 1fr;
    }

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

    .won-auction-card {
        flex-direction: column;
    }

    .won-auction-image {
        width: 100%;
        height: 180px;
    }

    .won-auction-details {
        grid-template-columns: 1fr 1fr;
    }
}

/* === TRADE & RETAIL VALUE INDICATORS === */

/* Value tags on listing cards */
.value-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--charcoal-lighter);
}

.value-tag {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: var(--font-medium);
}

.value-tag.trade {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.value-tag.retail {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Market values on detail pages */
.market-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--charcoal-lighter);
}

.market-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.market-value.trade {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.market-value.retail {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.market-value .value-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.market-value.trade .value-amount {
    font-size: 1rem;
    font-weight: var(--font-semibold);
    color: #22c55e;
}

.market-value.retail .value-amount {
    font-size: 1rem;
    font-weight: var(--font-semibold);
    color: #3b82f6;
}

/* Auction market values */
.auction-market-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-lg);
}

.market-value-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.market-value-item .value-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.market-value-item.trade .value-amount {
    font-size: 1.125rem;
    font-weight: var(--font-bold);
    color: #22c55e;
}

.market-value-item.retail .value-amount {
    font-size: 1.125rem;
    font-weight: var(--font-bold);
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 480px) {
    .market-values,
    .auction-market-values {
        grid-template-columns: 1fr;
    }
}

/* === CARD FEATURES & TRANSPARENCY === */

/* Top features on listing cards */
.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--charcoal-lighter);
    margin-top: 0.5rem;
}

.card-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.card-feature svg {
    color: var(--orange);
    flex-shrink: 0;
}

/* Transparency badge (fault disclosure) */
.card-transparency {
    padding: 0.375rem 0;
}

.transparency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-radius: var(--radius-sm);
}

.transparency-badge svg {
    flex-shrink: 0;
}

/* === DETAIL PAGE ENHANCEMENTS === */

/* Feature pills on overview tab */
.feature-highlights {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--charcoal-lighter);
}

.feature-highlights h4 {
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: var(--charcoal);
    border: 1px solid var(--charcoal-lighter);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.feature-pill svg {
    color: var(--orange);
}

.feature-pill.more {
    background: var(--charcoal-dark);
    color: var(--text-muted);
}

/* Fault summary on overview tab */
.fault-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-lg);
}

.fault-summary h4 {
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.fault-summary-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.fault-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.fault-summary-item .count {
    font-size: 1.25rem;
    font-weight: var(--font-bold);
}

.fault-summary-item .label {
    font-size: 0.6875rem;
    text-transform: uppercase;
}

.fault-summary-item.minor {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.fault-summary-item.moderate {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.fault-summary-item.major {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.fault-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Faults intro */
.faults-intro,
.work-intro {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--charcoal-dark);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.faults-intro svg,
.work-intro svg {
    color: #fbbf24;
    flex-shrink: 0;
}

.work-intro svg {
    color: var(--orange);
}

.faults-intro p,
.work-intro p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Work timeline improvements */
.work-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--charcoal);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--orange);
}

.work-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.work-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.work-type {
    display: inline-block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    background: var(--orange-subtle);
    color: var(--orange);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.work-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.work-workshop {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.work-cost {
    font-size: 0.75rem;
    color: var(--orange);
    font-weight: var(--font-medium);
}

/* Tab count badge */
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: var(--font-semibold);
    background: var(--charcoal-lighter);
    border-radius: var(--radius-full);
    margin-left: 0.375rem;
}

.tab-count.fault-count {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Responsive work timeline */
@media (max-width: 640px) {
    .work-item {
        grid-template-columns: 1fr;
    }

    .work-date {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--charcoal-lighter);
    }
}

/* ==========================================================================
   CONDITION REPORT
   ========================================================================== */

.tab-count.condition-score {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.condition-report-card {
    background: var(--charcoal);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.condition-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--charcoal-lighter);
}

.condition-overall {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.overall-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.overall-value {
    font-size: 2rem;
    font-weight: var(--font-bold);
}

.overall-max {
    font-size: 1rem;
    color: var(--text-muted);
}

.assessed-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.condition-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.condition-category {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--charcoal-lighter);
    border-radius: var(--radius-md);
}

.category-icon svg {
    color: var(--text-muted);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.category-label {
    font-size: 0.875rem;
    font-weight: var(--font-medium);
}

.category-bar {
    height: 6px;
    background: var(--charcoal-lighter);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.category-score {
    font-size: 1rem;
    font-weight: var(--font-semibold);
    text-align: right;
}

/* Score colors */
.score-1 { color: #ef4444; }
.score-2 { color: #f97316; }
.score-3 { color: #eab308; }
.score-4 { color: #22c55e; }
.score-5 { color: #10b981; }

.bar-fill.score-1 { background: #ef4444; }
.bar-fill.score-2 { background: #f97316; }
.bar-fill.score-3 { background: #eab308; }
.bar-fill.score-4 { background: #22c55e; }
.bar-fill.score-5 { background: #10b981; }

.condition-notes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--charcoal-lighter);
}

.condition-notes h4 {
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    margin-bottom: 0.5rem;
}

.condition-notes p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.condition-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--charcoal-lighter);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.score-1 { background: #ef4444; }
.dot.score-2 { background: #f97316; }
.dot.score-3 { background: #eab308; }
.dot.score-4 { background: #22c55e; }
.dot.score-5 { background: #10b981; }

/* Responsive */
@media (max-width: 640px) {
    .condition-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .condition-category {
        grid-template-columns: 36px 1fr 36px;
    }

    .condition-legend {
        gap: 0.75rem;
    }
}

/* ================================================================
   NOTIFICATION BELL & DROPDOWN
   ================================================================ */

.notification-bell {
    position: relative;
}

.notification-bell-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notification-bell-toggle:hover {
    background: var(--charcoal-mid);
    color: var(--white);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--orange);
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 2rem);
    background: var(--charcoal);
    border: 1px solid var(--charcoal-lighter);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.notification-bell.active .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--charcoal-lighter);
}

.notification-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.notification-mark-read {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--orange);
    cursor: pointer;
    padding: 0;
}

.notification-mark-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 0.875rem;
}

.notification-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--charcoal-mid);
}

.notification-item:hover {
    background: var(--charcoal-mid);
}

.notification-item.unread {
    background: rgba(249, 115, 22, 0.05);
}

.notification-item.unread:hover {
    background: rgba(249, 115, 22, 0.1);
}

.notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--charcoal-light);
    color: var(--text-muted);
}

.notification-icon.notification-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.notification-icon.notification-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.notification-icon.notification-muted {
    background: var(--charcoal-light);
    color: var(--text-subtle);
}

.notification-icon.notification-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.notification-icon.notification-default {
    background: var(--charcoal-light);
    color: var(--text-muted);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.notification-item.unread .notification-title {
    font-weight: 600;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-subtle);
}

.notification-footer {
    display: block;
    padding: 0.875rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--orange);
    text-decoration: none;
    border-top: 1px solid var(--charcoal-lighter);
    transition: background 0.15s ease;
}

.notification-footer:hover {
    background: var(--charcoal-mid);
}

/* Mobile notification dropdown */
@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

/* ================================================================
   NOTIFICATIONS PAGE
   ================================================================ */

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--charcoal);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--charcoal-lighter);
}

.notification-row {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--charcoal-mid);
    transition: all 0.2s ease;
}

.notification-row:last-child {
    border-bottom: none;
}

.notification-row:hover {
    background: var(--charcoal-mid);
}

.notification-row.unread {
    background: rgba(249, 115, 22, 0.05);
    border-left: 3px solid var(--orange);
}

.notification-row.unread:hover {
    background: rgba(249, 115, 22, 0.1);
}

.notification-row .notification-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.notification-body {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.notification-main {
    flex: 1;
    min-width: 0;
}

.notification-row .notification-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
}

.notification-row .notification-title a {
    color: inherit;
    text-decoration: none;
}

.notification-row .notification-title a:hover {
    color: var(--orange);
}

.notification-row.unread .notification-title {
    font-weight: 600;
}

.notification-row .notification-message {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.notification-row .notification-time {
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-shrink: 0;
}

.notification-actions .btn-sm {
    padding: 0.375rem;
}

/* Account header with button */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-header > div:first-child {
    flex: 1;
}

@media (max-width: 640px) {
    .notification-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .notification-body {
        flex-direction: column;
        gap: 0.75rem;
    }

    .notification-actions {
        justify-content: flex-end;
    }

    .account-header {
        flex-direction: column;
    }
}

/* Nav badge for sidebar notification count */
.account-nav-item .nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--orange);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ========================================
   Content pages (terms, privacy, FAQ, how it works)
======================================== */
.legal-content {
    max-width: 72ch;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    margin: var(--space-10) 0 var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin: var(--space-6) 0 var(--space-2);
}

.legal-content p,
.legal-content li {
    margin-bottom: var(--space-3);
}

.legal-content ul {
    padding-left: var(--space-5);
    list-style: disc;
}

.legal-content strong {
    color: var(--white);
}

.legal-content a {
    color: var(--orange);
    text-decoration: underline;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--text-subtle);
    margin-bottom: var(--space-6);
}

/* FAQ accordion */
.faq-item {
    border: 1px solid var(--charcoal-mid);
    border-radius: 10px;
    margin-bottom: var(--space-3);
    background: var(--charcoal-dark);
}

.faq-item summary {
    cursor: pointer;
    padding: var(--space-4);
    color: var(--white);
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--orange);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary:hover {
    color: var(--orange);
}

.faq-item > p {
    padding: 0 var(--space-4) var(--space-4);
    margin: 0;
}

/* ========================================
   Watchlist heart on listing cards
======================================== */
.car-card {
    position: relative;
}

.card-watchlist {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.card-watchlist:hover {
    background: rgba(26, 26, 26, 0.92);
    transform: scale(1.08);
}

.card-watchlist.is-saved {
    color: var(--orange);
}

.card-watchlist svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Auction outcome (ended / upcoming state)
======================================== */
.auction-outcome {
    margin: 1.25rem 0;
}

.outcome-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--charcoal-light);
}

.outcome-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.outcome-card p {
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.outcome-card .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.outcome-won {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.08);
}

.outcome-upcoming {
    border-color: var(--orange-glow);
}

/* ========================================
   SALESPERSON CONTACT CARD
   ======================================== */

.salesperson-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--charcoal-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.sp-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-orange);
}

.sp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-initials {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.sp-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sp-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sp-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.sp-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sp-title {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.sp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sp-actions-standalone {
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .salesperson-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .sp-actions {
        width: 100%;
    }
}

/* Vehicle description (Overview tab) */
.vehicle-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 2fr 3fr;
    }
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--charcoal-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a.contact-method:hover {
    border-color: var(--orange);
    transform: translateX(4px);
}

.contact-method strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.contact-method span {
    color: var(--text-secondary);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-subtle, rgba(249, 115, 22, 0.1));
    color: var(--orange);
    border-radius: var(--radius-full);
}

.contact-icon-whatsapp {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.business-hours {
    padding: 1.25rem;
    background: var(--charcoal-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.business-hours h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.business-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.business-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.business-hours li span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.business-hours .note {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--orange);
}

.contact-form-wrapper {
    padding: 1.5rem;
    background: var(--charcoal-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.contact-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--charcoal);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
}

@media (min-width: 640px) {
    .contact-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   15 AUCTION DETAIL
   The bid column had no styling at all - countdown, bid box, bid form and bid
   history all rendered as default browser blocks on the site's most important
   page. Class names and DOM order below are a contract with
   assets/js/auction-live.js, which polls every 10s and writes into
   .bid-amount-large, .bid-current .bid-label, .bid-info span:first-child,
   .reserve-status, .bid-minimum, #bidAmount and #highBidderStatus.
   ========================================================================== */

.auction-detail {
    display: grid;
    /* minmax(0,1fr), not 1fr: the thumb strip must not set the track's min
       width on phones (see .vehicle-detail) */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-8) 0;
    align-items: start;
}

@media (min-width: 1024px) {
    .auction-detail {
        grid-template-columns: minmax(0, 1fr) 440px;
        gap: var(--space-10);
    }
}

.auction-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-width: 0;
}

.auction-info .vehicle-title {
    margin-bottom: 0;
}

.auction-info .vehicle-variant {
    margin-top: calc(-1 * var(--space-4));
    color: var(--text-muted);
}

/* Live / ended flag over the gallery */
.auction-badge-large {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(239, 68, 68, 0.92);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    border-radius: var(--radius-full);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
}

.auction-badge-large .live-dot,
.auction-badge-large .live-dot::before {
    background: var(--white);
}

.auction-badge-large.auction-badge-ended {
    background: rgba(10, 10, 10, 0.82);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    box-shadow: none;
}

/* ---- Countdown ---------------------------------------------------------- */
.auction-countdown-large {
    padding: var(--space-5);
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.auction-countdown-large .countdown-label {
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-2);
    background: var(--surface-overlay);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    line-height: 1;
}

.countdown-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

/* Under an hour main.js adds .urgent; at zero it adds .ended */
.auction-countdown-large.urgent {
    border-color: rgba(239, 68, 68, 0.4);
}

.auction-countdown-large.urgent .countdown-value {
    color: #fca5a5;
}

.auction-countdown-large.urgent .countdown-unit {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.auction-countdown-large.ended .countdown-value {
    color: var(--text-muted);
}

.auction-ended-msg {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* ---- Current bid -------------------------------------------------------- */
.bid-display {
    position: relative;
    padding: var(--space-6);
    background: var(--surface-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 1px 0 rgba(var(--orange-rgb), 0.22),
                var(--glow-accent-sm);
}

/* auction-live.js flips this element's inline display between none and block */
#highBidderStatus {
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.bid-current {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.bid-current .bid-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

.bid-amount-large {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tighter);
    color: var(--white);
    line-height: 1.05;
}

.bid-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.reserve-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.reserve-status.met {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.reserve-status.not-met {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--warning);
}

/* ---- Bid form ----------------------------------------------------------- */
.bid-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bid-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Currency prefix and amount read as one control */
.bid-input-group {
    display: flex;
    align-items: stretch;
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bid-input-group:focus-within {
    border-color: var(--orange);
    box-shadow: var(--ring-focus);
}

.bid-currency {
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    background: var(--surface-overlay);
    border-right: 1px solid var(--border-default);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
}

.bid-input-group input {
    flex: 1;
    min-width: 0;
    min-height: 56px;
    padding: 0 var(--space-4);
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--white);
}

.bid-input-group input:focus {
    background: transparent;
    box-shadow: none;
}

.bid-minimum {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.bid-form .btn {
    margin-top: var(--space-2);
}

/* ---- Auto-bid ----------------------------------------------------------- */
.auto-bid-section {
    padding: var(--space-4);
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.auto-bid-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-2) 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.auto-bid-toggle:hover {
    color: var(--orange-light);
}

.auto-bid-toggle svg {
    color: var(--orange);
    flex-shrink: 0;
}

.auto-bid-form {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.auto-bid-info {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

.auto-bid-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--orange-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
}

.auto-bid-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.auto-bid-value {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    color: var(--orange-light);
}

.auto-bid-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

/* ---- Signed-out prompt -------------------------------------------------- */
.bid-login-prompt {
    padding: var(--space-6);
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
}

.bid-login-prompt p {
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.bid-login-prompt p:last-child {
    margin-bottom: 0;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
}

.bid-login-prompt a:not(.btn) {
    color: var(--orange);
    font-weight: var(--font-medium);
}

/* ---- Bid history -------------------------------------------------------- */
.bid-history {
    margin: var(--space-10) 0;
    padding: var(--space-6);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.bid-history h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    margin-bottom: var(--space-5);
}

.bid-list {
    display: flex;
    flex-direction: column;
}

.bid-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--border-subtle);
    border-left: 2px solid transparent;
}

.bid-item:last-child {
    border-bottom: none;
}

/* Leading bid */
.bid-item.winning {
    background: var(--orange-subtle);
    border-left-color: var(--orange);
    border-radius: var(--radius-md);
}

.bidder {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.bidder-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--orange-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--orange-light);
}

.bidder-name {
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Scoped: bare .bid-amount is also written by auction-live.js on cards */
.bid-item .bid-amount {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--white);
    white-space: nowrap;
}

.bid-item.winning .bid-amount {
    color: var(--orange-light);
}

.bid-time {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .bid-item {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: var(--space-1);
    }

    .bid-time {
        grid-column: 2;
        text-align: right;
    }
}

/* ==========================================================================
   16 ACCOUNT AREA
   The dashboard stat row, the bids list and the status pills were all emitted
   by the templates with no matching rule - the stylesheet carried a different
   vocabulary (.stats-grid, .bids-table, .account-content) that no markup uses.
   ========================================================================== */

.account-main {
    min-width: 0;
}

.account-header {
    margin-bottom: var(--space-8);
}

.account-header h1 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    line-height: 1.15;
}

.account-header p {
    margin-top: var(--space-2);
    color: var(--text-muted);
}

/* ---- Sidebar identity card ---------------------------------------------- */
.account-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.user-avatar-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-2);
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--white);
    box-shadow: var(--glow-accent-sm);
}

.account-user-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--white);
}

.account-user-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    word-break: break-word;
}

/* ---- Dashboard stat tiles ----------------------------------------------- */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.account-stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--orange-subtle);
    border: 1px solid var(--border-accent);
    color: var(--orange);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon-blue {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.stat-icon-red {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-content h3,
.stat-content .stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    line-height: 1.1;
}

.stat-content p,
.stat-content .stat-label {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

/* ---- Dashboard activity lists -------------------------------------------
   Recent Bids and Watchlist on the dashboard use their own vocabulary
   (.account-section / .activity-*), none of which had rules - both lists
   rendered as full-bleed stacked images.
   ------------------------------------------------------------------------ */
.account-section {
    margin-bottom: var(--space-8);
}

.section-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.section-header-row h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
}

.link-gold {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--orange);
    text-decoration: none;
    white-space: nowrap;
}

.link-gold:hover {
    color: var(--orange-light);
    text-decoration: underline;
}

.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--surface-raised);
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-xl);
    color: var(--text-muted);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.activity-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.activity-item:hover {
    background: var(--surface-overlay);
    border-color: var(--border-accent);
}

.activity-image {
    width: 88px;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-raised);
    flex-shrink: 0;
}

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

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-content h4,
.activity-content strong {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-content p,
.activity-content span {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.activity-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .activity-item {
        grid-template-columns: 72px minmax(0, 1fr);
        row-gap: var(--space-2);
    }

    .activity-status {
        grid-column: 2;
        justify-content: flex-start;
    }
}

/* ---- Dashboard watchlist preview ----------------------------------------
   Its own vocabulary again (.watchlist-grid / .watchlist-card), unstyled, so
   the preview rendered as full-bleed stacked images.
   ------------------------------------------------------------------------ */
.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}

.watchlist-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.watchlist-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.watchlist-image {
    display: block;
    aspect-ratio: 16/10;
    background: var(--surface-raised);
    overflow: hidden;
}

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

.watchlist-info {
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.watchlist-info h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watchlist-info p {
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
}

/* ---- Filter pills -------------------------------------------------------- */
.account-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 38px;
    padding: 0 var(--space-4);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.filter-btn:hover {
    background: var(--surface-overlay);
    border-color: var(--border-strong);
    color: var(--white);
}

.filter-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.filter-btn:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

/* ---- Bids list ----------------------------------------------------------- */
.bids-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bid-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-5);
    padding: var(--space-4);
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.bid-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.bid-card-image {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-raised);
}

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

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--surface-raised) 0%, var(--surface-overlay) 100%);
    color: var(--text-subtle);
}

.no-image-small svg {
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.bid-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.bid-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.bid-card-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
}

.bid-card-header h3 a {
    color: inherit;
    text-decoration: none;
}

.bid-card-header h3 a:hover {
    color: var(--orange-light);
}

.bid-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.bid-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bid-detail .detail-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

.bid-detail .detail-value {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--white);
}

.bid-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
}

@media (max-width: 640px) {
    .bid-card {
        grid-template-columns: 1fr;
    }
}

/* ---- Status pills -------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-winning {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.status-outbid {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.status-won {
    background: var(--gold-subtle);
    border: 1px solid rgba(232, 196, 104, 0.35);
    color: var(--gold);
}

.status-lost,
.status-ended {
    background: var(--surface-overlay);
    border: 1px solid var(--border-default);
    color: var(--text-muted);
}

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

/* ---- Watchlist remove ---------------------------------------------------- */
.watchlist-remove {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(10, 10, 10, 0.78);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
}

.watchlist-remove:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: transparent;
    color: var(--white);
}

.watchlist-remove:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

.watchlist-remove svg {
    width: 16px;
    height: 16px;
}

/* The remove button is a sibling of .card-image, so the card is the
   positioning context. */
.watchlist-page .car-card,
.card-grid .car-card {
    position: relative;
}

/* ==========================================================================
   22 CONTENT PAGES (sell, about, account forms)
   Another set of templates written against class names with no rules behind
   them: the sell page's steps and form, the about page's story and values,
   and the account settings/profile form cards.
   ========================================================================== */

/* Alternating band, used between sections on the sell page */
.section-alt {
    background: var(--surface-raised);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* ---- Sell page ---------------------------------------------------------- */
.sell-hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-12);
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.sell-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(var(--orange-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.sell-hero-content {
    position: relative;
    z-index: 1;
    max-width: 60ch;
}

.sell-hero h1 {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tighter);
    color: var(--white);
    line-height: 1.1;
}

.sell-hero p {
    margin-top: var(--space-3);
    font-size: var(--text-lg);
    color: var(--text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    position: relative;
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.step-number {
    position: absolute;
    top: var(--space-5);
    right: var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: 1;
    color: rgba(var(--orange-rgb), 0.16);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-5);
    background: var(--orange-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    color: var(--orange);
}

.step-icon svg {
    width: 26px;
    height: 26px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    margin-bottom: var(--space-2);
}

.step-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

.sell-form-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
}

.sell-form-header {
    margin-bottom: var(--space-8);
    text-align: center;
}

.sell-form-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
}

.sell-form-header p {
    margin-top: var(--space-2);
    color: var(--text-muted);
}

.sell-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Section captions inside the form ("Your Details", "Vehicle Details") */
.sell-form h3 {
    margin-top: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--orange);
}

.sell-form h3:first-child {
    margin-top: 0;
}

.sell-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .sell-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- About page --------------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (min-width: 900px) {
    .about-content {
        grid-template-columns: 1.3fr 1fr;
    }
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.about-text p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    max-width: 68ch;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    color: rgba(var(--orange-rgb), 0.35);
}

.about-image-placeholder svg {
    width: 45%;
    height: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    padding: var(--space-7) var(--space-6);
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-5);
    background: var(--orange-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    color: var(--orange);
}

.value-icon svg {
    width: 26px;
    height: 26px;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--white);
    margin-bottom: var(--space-2);
}

.value-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

/* About stat tiles use their own value/label names */
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-tight);
    color: var(--orange);
    line-height: 1.1;
}

.stat-text {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

/* ---- Account forms ------------------------------------------------------ */
.account-form-card {
    padding: var(--space-6);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-card);
}

.account-form-card h2,
.account-form-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    color: var(--white);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.account-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .account-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Destructive settings sit in their own visually separated block */
.danger-zone {
    padding: var(--space-6);
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xl);
}

.danger-zone h2,
.danger-zone h3 {
    color: #fca5a5;
    border-bottom-color: rgba(239, 68, 68, 0.25);
}

/* ---- Small gaps found by the coverage harness --------------------------- */
.card-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.watchlist-item {
    position: relative;
}

.faq-list {
    max-width: 72ch;
    margin: 0 auto;
}

/* ==========================================================================
   23 ACCESSIBILITY
   Must stay last: the reduced-motion block overrides animation declarations
   from every section above it.
   ========================================================================== */

/* Skip link - visible only once focused */
.skip-link {
    position: fixed;
    top: var(--space-3);
    left: var(--space-3);
    z-index: calc(var(--z-toast) + 1);
    padding: var(--space-3) var(--space-5);
    background: var(--orange);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--transition-base);
}

.skip-link:focus {
    transform: translateY(0);
    outline: none;
}

/* Anchor targets clear the fixed header */
[id] {
    scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

/*
 * Reduced motion. The theme leans on entrance animations for opacity, so
 * these cannot simply be switched off - elements would stay invisible.
 * Instead animations are collapsed to a single instant iteration, which
 * lands every element on its final state with no movement.
 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    /* Purely decorative motion has nothing to land on - stop it outright. */
    .hero-shapes,
    .shape,
    .live-dot::before,
    .badge-live::before {
        animation: none !important;
    }

    /* Hover lifts are movement too */
    .btn:hover,
    .car-card:hover,
    .social-link:hover,
    .feature-card:hover {
        transform: none !important;
    }
}

/* === Auction fee transparency panel ==================================== */
/* Shows the all-in cost beside the bid box; amounts are updated live by
   auction-live.js as the price moves. */
.fee-estimate {
    background: var(--surface-2, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.fee-estimate-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    opacity: 0.85;
}

.fee-row-total {
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    font-weight: 700;
    opacity: 1;
}

.fee-row-total .fee-amount-total {
    color: var(--gold, #D4AF37);
}
