/* ==========================================================================
   Versa Vista P2P Engine — Design System
   A premium dark-mode-first design with vibrant accent gradients.
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Drift Native Variables */
    --black: #0a0a08;
    --white: #f5f2ec;
    --cream: #ede8de;
    --gold: #c8a84b;
    --gold-light: #e2c97e;
    --rust: #b84c2b;
    --green: #2a4a35;
    --green-mid: #3d6b4f;
    --muted: #7a7669;
    --fs-hero: clamp(4.5rem, 12vw, 11rem);
    --fs-xl: clamp(2.5rem, 5vw, 4.5rem);
    --fs-lg: clamp(1.4rem, 3vw, 2.2rem);
    --fs-md: clamp(1rem, 1.5vw, 1.2rem);

    /* Legacy compatibility mapped to Drift */
    --vv-bg-primary: var(--black);
    --vv-bg-secondary: var(--cream);
    --vv-bg-card: rgba(245, 242, 236, 0.04);
    --vv-bg-card-hover: rgba(245, 242, 236, 0.08);
    --vv-bg-glass: rgba(10, 10, 8, 0.85);
    --vv-bg-input: var(--white);

    --vv-text-primary: var(--white);
    --vv-text-secondary: rgba(245, 242, 236, 0.7);
    --vv-text-muted: var(--muted);
    --vv-text-inverse: var(--black);

    /* Accent — Drift Gold */
    --vv-accent: var(--gold);
    --vv-accent-light: var(--gold-light);
    --vv-accent-dark: #a88a38;
    --vv-gradient: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    --vv-gradient-subtle: linear-gradient(135deg, rgba(200, 168, 75, 0.1) 0%, rgba(226, 201, 126, 0.05) 100%);

    /* Status Colors */
    --vv-success: #5fb87a;
    --vv-warning: var(--gold);
    --vv-danger: var(--rust);
    --vv-info: #0ea5e9;

    /* Borders */
    --vv-border: rgba(245, 242, 236, 0.1);
    --vv-border-strong: rgba(245, 242, 236, 0.2);

    /* Shadows */
    --vv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --vv-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --vv-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
    --vv-shadow-glow: 0 0 30px rgba(200, 168, 75, 0.15);

    /* Typography */
    --vv-font: 'DM Sans', sans-serif;
    --vv-font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --vv-container: 1400px;
    --vv-radius-sm: 2px;
    --vv-radius-md: 4px;
    --vv-radius-lg: 6px;
    --vv-radius-xl: 8px;
    --vv-radius-full: 9999px;

    /* Transitions */
    --vv-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --vv-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--vv-font);
    background: var(--vv-bg-primary);
    color: var(--vv-text-primary);
    line-height: 1.6;
    font-size: 16px;
    padding-top: 80px;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.25s ease;
    opacity: 0.6;
}

body:hover .cursor {
    opacity: 1;
}

a {
    color: var(--vv-accent-light);
    text-decoration: none;
    transition: color var(--vv-transition);
}

a:hover {
    color: var(--vv-text-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.vv-container {
    max-width: var(--vv-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 8px 16px;
    background: var(--vv-accent);
    color: white;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.vv-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--vv-bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--vv-border);
    transition: background var(--vv-transition);
}

.vv-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

/* Logo */
.vv-header__brand a,
.vv-header__logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: var(--vv-text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.vv-logo-icon {
    font-size: 1.6rem;
}

/* Nav */
.vv-header__nav {
    flex: 1;
}

.vv-nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    justify-content: center;
}

.vv-nav-link {
    padding: 8px 16px;
    border-radius: var(--vv-radius-full);
    color: var(--vv-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--vv-transition);
}

.vv-nav-link:hover {
    color: var(--vv-text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Header Actions */
.vv-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Dropdown */
.vv-user-dropdown {
    position: relative;
}

.vv-user-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--vv-radius-full);
    border: 1px solid var(--vv-border);
    background: transparent;
    color: var(--vv-text-primary);
    cursor: pointer;
    transition: all var(--vv-transition);
    font-size: 0.9rem;
}

.vv-user-dropdown__trigger:hover {
    border-color: var(--vv-border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.vv-user-dropdown__trigger img {
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.vv-user-dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: var(--vv-bg-card);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius-md);
    box-shadow: var(--vv-shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--vv-transition);
    z-index: 1001;
}

.vv-user-dropdown.open .vv-user-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vv-user-dropdown__menu a {
    display: block;
    padding: 10px 16px;
    color: var(--vv-text-secondary);
    font-size: 0.875rem;
    transition: all var(--vv-transition);
}

.vv-user-dropdown__menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--vv-text-primary);
}

.vv-user-dropdown__menu hr {
    border: none;
    border-top: 1px solid var(--vv-border);
    margin: 4px 0;
}

.vv-user-dropdown__menu .vv-logout {
    color: var(--vv-danger);
}

.vv-user-dropdown__menu .vv-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Mobile Burger */
.vv-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.vv-header__burger span {
    width: 24px;
    height: 2px;
    background: var(--vv-text-primary);
    border-radius: 2px;
    transition: all var(--vv-transition);
}

/* Mobile Menu */
.vv-mobile-menu {
    display: none;
    background: var(--vv-bg-secondary);
    border-top: 1px solid var(--vv-border);
    padding: 16px 24px;
}

.vv-mobile-menu.open {
    display: block;
}

.vv-mobile-nav {
    list-style: none;
}

.vv-mobile-nav li {
    border-bottom: 1px solid var(--vv-border);
}

.vv-mobile-nav a {
    display: block;
    padding: 14px 0;
    color: var(--vv-text-primary);
    font-size: 1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.vv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--vv-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--vv-font);
    border: none;
    cursor: pointer;
    transition: all var(--vv-transition);
    text-decoration: none;
    white-space: nowrap;
}

.vv-btn--primary {
    background: var(--vv-gradient);
    color: var(--black);
    box-shadow: 0 2px 12px rgba(200, 168, 75, 0.3);
}

.vv-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(200, 168, 75, 0.5);
    color: var(--black);
}

.vv-btn--ghost {
    background: transparent;
    color: var(--vv-text-secondary);
    border: 1px solid var(--vv-border);
}

.vv-btn--ghost:hover {
    border-color: var(--vv-accent);
    color: var(--vv-accent-light);
    background: rgba(200, 168, 75, 0.08);
}

.vv-btn--danger {
    background: var(--vv-danger);
    color: white;
}

.vv-btn--lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.vv-btn--block {
    width: 100%;
}

.vv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.vv-card {
    background: var(--vv-bg-card);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius-lg);
    overflow: hidden;
    transition: all var(--vv-transition);
}

.vv-card:hover {
    border-color: var(--vv-border-strong);
    box-shadow: var(--vv-shadow-md);
    transform: translateY(-2px);
}

/* Car Card */
.vv-car-card {
    position: relative;
}

.vv-car-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vv-car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--vv-transition-slow);
}

.vv-car-card:hover .vv-car-card__image img {
    transform: scale(1.05);
}

.vv-car-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--vv-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--vv-bg-glass);
    backdrop-filter: blur(8px);
    color: var(--vv-text-primary);
}

.vv-car-card__body {
    padding: 16px 20px;
}

.vv-car-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vv-text-primary);
    margin-bottom: 6px;
}

.vv-car-card__location {
    font-size: 0.8rem;
    color: var(--vv-text-muted);
    margin-bottom: 12px;
}

.vv-car-card__specs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.vv-car-card__spec {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--vv-text-secondary);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--vv-radius-full);
}

.vv-car-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--vv-border);
}

.vv-car-card__price {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--vv-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vv-car-card__price span {
    font-size: 0.8rem;
    font-weight: 400;
    -webkit-text-fill-color: var(--vv-text-muted);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.vv-form-group {
    margin-bottom: 20px;
}

.vv-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vv-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vv-input,
.vv-select,
.vv-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--vv-bg-input);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius-md);
    color: var(--black);
    font-family: var(--vv-font);
    font-size: 0.95rem;
    transition: all var(--vv-transition);
}

.vv-input:focus,
.vv-select:focus,
.vv-textarea:focus {
    outline: none;
    border-color: var(--vv-accent);
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.15);
}

.vv-input::placeholder {
    color: rgba(10, 10, 8, 0.3);
}

.vv-textarea {
    min-height: 100px;
    resize: vertical;
}

.vv-select {
    cursor: pointer;
}

/* ==========================================================================
   SEARCH BAR (Hero)
   ========================================================================== */

.vv-search-bar {
    display: flex;
    gap: 0;
    background: var(--vv-bg-card);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius-xl);
    padding: 6px;
    box-shadow: var(--vv-shadow-lg);
}

.vv-search-bar__field {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
}

.vv-search-bar__field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--vv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.vv-search-bar__field input,
.vv-search-bar__field select {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--vv-text-primary);
    font-size: 0.95rem;
    font-family: var(--vv-font);
    outline: none;
}

.vv-search-bar__divider {
    width: 1px;
    background: var(--vv-border);
    margin: 8px 0;
}

.vv-search-bar__submit {
    padding: 12px 28px;
    background: var(--vv-gradient);
    border: none;
    border-radius: var(--vv-radius-xl);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--vv-transition);
    white-space: nowrap;
}

.vv-search-bar__submit:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   RESULTS GRID
   ========================================================================== */

.vv-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 32px 0;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */

.vv-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
}

.vv-dashboard__sidebar {
    background: var(--vv-bg-secondary);
    border-right: 1px solid rgba(10, 10, 8, 0.1);
    padding: 32px 0;
    color: var(--black);
}

.vv-dashboard__sidebar strong {
    color: var(--black);
}

.vv-dashboard__nav {
    list-style: none;
}

.vv-dashboard__nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(10, 10, 8, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    transition: all var(--vv-transition);
    border-left: 3px solid transparent;
}

.vv-dashboard__nav li a:hover,
.vv-dashboard__nav li a.active {
    color: var(--black);
    background: rgba(200, 168, 75, 0.1);
    border-left-color: var(--vv-accent);
}

.vv-dashboard__content {
    padding: 32px;
    overflow-y: auto;
    background: var(--black);
    color: var(--white);
}

.vv-dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.vv-dashboard__title {
    font-size: 2.2rem;
    font-weight: 400;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
    color: var(--white);
}

/* Stat Cards */
.vv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.vv-stat-card {
    background: var(--vv-bg-card);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius-md);
    padding: 20px;
}

.vv-stat-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.vv-stat-card__value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--vv-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   STATUS BADGES
   ========================================================================== */

.vv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--vv-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.vv-status--pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--vv-warning);
}

.vv-status--held {
    background: rgba(59, 130, 246, 0.15);
    color: var(--vv-info);
}

.vv-status--released {
    background: rgba(16, 185, 129, 0.15);
    color: var(--vv-success);
}

.vv-status--disputed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--vv-danger);
}

.vv-status--refunded {
    background: rgba(148, 163, 184, 0.15);
    color: var(--vv-text-muted);
}

.vv-status--verified {
    background: rgba(16, 185, 129, 0.15);
    color: var(--vv-success);
}

.vv-status--unverified {
    background: rgba(239, 68, 68, 0.15);
    color: var(--vv-danger);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.vv-table {
    width: 100%;
    border-collapse: collapse;
}

.vv-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--vv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--vv-border);
}

.vv-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--vv-border);
    font-size: 0.9rem;
    color: var(--vv-text-secondary);
}

.vv-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.vv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.vv-modal-overlay.open {
    display: flex;
}

.vv-modal {
    background: var(--vv-bg-secondary);
    border: 1px solid rgba(10, 10, 8, 0.1);
    border-radius: var(--vv-radius-lg);
    padding: 32px;
    max-width: 560px;
    width: 90%;
    box-shadow: var(--vv-shadow-lg);
    animation: vv-modal-in 0.3s ease;
    color: var(--black);
}

@keyframes vv-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vv-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.vv-modal__title {
    font-size: 1.3rem;
    font-weight: 700;
}

.vv-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 10, 8, 0.08);
    color: var(--black);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--vv-transition);
}

.vv-modal__close:hover {
    background: rgba(10, 10, 8, 0.15);
    color: var(--black);
}

/* Modal scoped contrast overrides — cream bg needs dark text */
.vv-modal .vv-form-group label {
    color: var(--black);
}

.vv-modal .vv-modal__title {
    color: var(--black);
}

.vv-modal .vv-input,
.vv-modal .vv-select,
.vv-modal .vv-textarea {
    background: var(--white);
    border-color: rgba(10, 10, 8, 0.15);
    color: var(--black);
}

.vv-modal .vv-input:focus,
.vv-modal .vv-select:focus,
.vv-modal .vv-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.2);
}

.vv-modal .vv-input::placeholder {
    color: rgba(10, 10, 8, 0.35);
}

.vv-modal .vv-btn--primary {
    background: var(--vv-gradient);
    color: var(--black);
}

.vv-modal p,
.vv-modal span,
.vv-modal h2,
.vv-modal h3 {
    color: var(--black);
}

/* ==========================================================================
   LOADING / SKELETON
   ========================================================================== */

.vv-skeleton {
    background: linear-gradient(90deg, var(--vv-bg-card) 25%, var(--vv-bg-card-hover) 50%, var(--vv-bg-card) 75%);
    background-size: 200% 100%;
    animation: vv-shimmer 1.5s infinite;
    border-radius: var(--vv-radius-sm);
}

@keyframes vv-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.vv-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--vv-border);
    border-top-color: var(--vv-accent);
    border-radius: 50%;
    animation: vv-spin 0.7s linear infinite;
}

@keyframes vv-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.vv-footer {
    background: var(--vv-bg-secondary);
    border-top: 1px solid var(--vv-border);
    padding: 64px 0 32px;
    margin-top: 80px;
}

.vv-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.vv-footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--vv-text-primary);
    margin-bottom: 12px;
}

.vv-footer__tagline {
    color: var(--vv-text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 320px;
}

.vv-footer__col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vv-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.vv-footer__col ul {
    list-style: none;
}

.vv-footer__col li {
    margin-bottom: 10px;
}

.vv-footer__col a {
    color: var(--vv-text-muted);
    font-size: 0.9rem;
    transition: color var(--vv-transition);
}

.vv-footer__col a:hover {
    color: var(--vv-text-primary);
}

.vv-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.vv-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
    transition: all var(--vv-transition);
}

.vv-social-link:hover {
    background: var(--vv-accent);
    transform: translateY(-2px);
}

.vv-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--vv-border);
}

.vv-footer__bottom p {
    color: var(--vv-text-muted);
    font-size: 0.8rem;
}

.vv-footer__badges {
    display: flex;
    gap: 12px;
}

.vv-badge {
    padding: 4px 12px;
    border-radius: var(--vv-radius-full);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.7rem;
    color: var(--vv-text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .vv-dashboard {
        grid-template-columns: 1fr;
    }

    .vv-dashboard__sidebar {
        border-right: none;
        border-bottom: 1px solid var(--vv-border);
        padding: 16px 0;
    }

    .vv-dashboard__nav {
        display: flex;
        overflow-x: auto;
        padding: 0 16px;
    }

    .vv-dashboard__nav li a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 16px;
        white-space: nowrap;
    }

    .vv-dashboard__nav li a.active {
        border-bottom-color: var(--vv-accent);
    }
}

@media (max-width: 768px) {
    .vv-header__nav {
        display: none;
    }

    .vv-header__actions {
        display: none;
    }

    .vv-header__burger {
        display: flex;
    }

    .vv-search-bar {
        flex-direction: column;
        border-radius: var(--vv-radius-lg);
    }

    .vv-search-bar__divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .vv-search-bar__submit {
        border-radius: var(--vv-radius-md);
        margin: 8px;
    }

    .vv-results-grid {
        grid-template-columns: 1fr;
    }

    .vv-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .vv-footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .vv-footer__badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .vv-dashboard__content {
        padding: 20px;
    }

    .vv-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .vv-footer__grid {
        grid-template-columns: 1fr;
    }

    .vv-stats-grid {
        grid-template-columns: 1fr;
    }

    .vv-car-card__image {
        height: 180px;
    }
}

/* ==========================================================================
   HOMEPAGE SECTIONS
   ========================================================================== */

/* Hero */
.vv-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}

.vv-hero__inner {
    max-width: 880px;
    margin: 0 auto;
}

.vv-hero__tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--vv-radius-full);
    background: var(--vv-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vv-accent-light);
    margin-bottom: 24px;
}

.vv-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.vv-gradient-text {
    background: var(--vv-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vv-hero__subtitle {
    font-size: 1.1rem;
    color: var(--vv-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Sections */
.vv-section {
    padding: 80px 0;
}

.vv-section--dark {
    background: var(--vv-bg-secondary);
}

.vv-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.vv-section__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.vv-section__sub {
    color: var(--vv-text-secondary);
    font-size: 1rem;
}

/* How It Works — Steps */
.vv-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.vv-step {
    text-align: center;
    padding: 32px 20px;
}

.vv-step__number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--vv-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.vv-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.vv-step p {
    color: var(--vv-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Trust Cards */
.vv-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vv-trust-card {
    text-align: center;
    padding: 40px 24px;
}

.vv-trust-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.vv-trust-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.vv-trust-card p {
    color: var(--vv-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.vv-cta-section {
    background: radial-gradient(ellipse at 50% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
}

/* Loading / Empty */
.vv-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.vv-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--vv-text-muted);
}

/* Responsive — Homepage */
@media (max-width: 768px) {
    .vv-hero {
        padding: 60px 0 40px;
    }

    .vv-steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vv-trust-grid {
        grid-template-columns: 1fr;
    }

    .vv-section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .vv-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */

.vv-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 48px 24px;
}

.vv-auth-card {
    max-width: 440px;
    width: 100%;
    padding: 40px;
}

.vv-auth-card__header {
    text-align: center;
    margin-bottom: 32px;
}

.vv-auth-card__header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 12px 0 6px;
}

.vv-auth-card__header p {
    color: var(--vv-text-secondary);
    font-size: 0.9rem;
}

.vv-auth-error {
    padding: 12px 16px;
    border-radius: var(--vv-radius-sm);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--vv-danger);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.vv-auth-card__footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--vv-border);
    color: var(--vv-text-secondary);
    font-size: 0.9rem;
}

/* Role Selector */
.vv-role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.vv-role-option input {
    display: none;
}

.vv-role-option__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    border-radius: var(--vv-radius-md);
    border: 2px solid var(--vv-border);
    cursor: pointer;
    transition: all var(--vv-transition);
    text-align: center;
}

.vv-role-option__card strong {
    font-size: 0.9rem;
}

.vv-role-option__card small {
    color: var(--vv-text-muted);
    font-size: 0.75rem;
}

.vv-role-option input:checked+.vv-role-option__card {
    border-color: var(--vv-accent);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vv-role-option__card:hover {
    border-color: var(--vv-border-strong);
}

/* ==========================================================================
   CAR DETAIL PAGE
   ========================================================================== */

.vv-car-detail {
    padding: 32px 0 80px;
}

/* Gallery */
.vv-car-gallery {
    margin-bottom: 32px;
}

.vv-car-gallery__main {
    border-radius: var(--vv-radius-lg);
    overflow: hidden;
    height: 480px;
    background: var(--vv-bg-secondary);
}

.vv-car-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vv-car-gallery__placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.vv-car-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.vv-car-gallery__thumb {
    width: 80px;
    height: 56px;
    border-radius: var(--vv-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--vv-transition);
    background: none;
    padding: 0;
}

.vv-car-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vv-car-gallery__thumb.active,
.vv-car-gallery__thumb:hover {
    border-color: var(--vv-accent);
}

/* Content Grid */
.vv-car-detail__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.vv-car-detail__header {
    margin-bottom: 24px;
}

.vv-car-detail__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 8px 0 6px;
}

.vv-car-detail__location {
    color: var(--vv-text-muted);
    font-size: 0.9rem;
}

/* Spec Grid */
.vv-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.vv-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--vv-bg-card);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius-md);
}

.vv-spec-icon {
    font-size: 1.3rem;
}

.vv-spec-label {
    color: var(--vv-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vv-spec-value {
    color: var(--vv-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: auto;
}

/* Description & Sections */
.vv-car-detail__description,
.vv-car-detail__features,
.vv-car-detail__rules {
    margin-bottom: 32px;
}

.vv-car-detail__description h2,
.vv-car-detail__features h2,
.vv-car-detail__rules h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.vv-prose {
    color: var(--vv-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.vv-prose p {
    margin-bottom: 12px;
}

/* Feature Tags */
.vv-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vv-feature-tag {
    padding: 6px 14px;
    border-radius: var(--vv-radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: var(--vv-success);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Owner Card */
.vv-owner-card {
    padding: 20px;
}

.vv-owner-card__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vv-owner-card__inner img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
}

.vv-owner-card__info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.vv-owner-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.vv-owner-card__since {
    color: var(--vv-text-muted);
    font-size: 0.8rem;
}

/* Booking Sidebar */
.vv-car-detail__sidebar {
    position: sticky;
    top: 96px;
}

.vv-booking-card {
    padding: 28px;
}

.vv-booking-card__price {
    margin-bottom: 20px;
}

.vv-booking-note {
    text-align: center;
    margin-top: 12px;
    color: var(--vv-text-muted);
    font-size: 0.8rem;
}

/* Cost Breakdown */
.vv-cost-breakdown {
    margin: 16px 0 20px;
}

.vv-cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--vv-text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--vv-border);
}

.vv-cost-row--total {
    color: var(--vv-text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: none;
    padding-top: 12px;
}

/* Availability Card */
.vv-avail-card {
    padding: 20px;
    margin-top: 16px;
}

.vv-avail-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.vv-booked-dates {
    list-style: none;
}

.vv-booked-dates li {
    padding: 6px 0;
    color: var(--vv-text-secondary);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--vv-border);
}

/* ==========================================================================
   FILTER BAR (Search Page)
   ========================================================================== */

.vv-search-page {
    padding: 48px 0 80px;
}

.vv-search-page__header {
    text-align: center;
    margin-bottom: 32px;
}

.vv-filter-bar {
    background: var(--vv-bg-card);
    border: 1px solid var(--vv-border);
    border-radius: var(--vv-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.vv-filter-bar__row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.vv-filter-bar__field {
    flex: 1;
    min-width: 140px;
}

.vv-filter-bar__field--small {
    flex: 0.6;
    min-width: 100px;
}

.vv-filter-bar__field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--vv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.vv-filter-bar__submit {
    flex-shrink: 0;
}

.vv-search-meta {
    color: var(--vv-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   RESPONSIVE — Phase 4 Pages
   ========================================================================== */

@media (max-width: 1024px) {
    .vv-car-detail__grid {
        grid-template-columns: 1fr;
    }

    .vv-car-detail__sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .vv-car-gallery__main {
        height: 280px;
    }

    .vv-spec-grid {
        grid-template-columns: 1fr;
    }

    .vv-filter-bar__row {
        flex-direction: column;
    }

    .vv-role-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vv-auth-card {
        padding: 24px;
    }
}

/* ==========================================================================
   DRIFT GLOBAL (Header, Footer, Cursor)
   ========================================================================== */

/* NAV */
.drift-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 3rem;
}

.drift-nav>.vv-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.drift-nav .nav-bg {
    position: absolute;
    inset: 0;
    background: rgba(245, 242, 236, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 10, 8, 0.06);
    pointer-events: none;
}

.drift-nav .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.15em;
    color: var(--black);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.drift-nav .logo span {
    color: var(--gold);
}

.drift-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 0;
    margin: 0;
}

.drift-nav ul a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.drift-nav ul a:hover {
    opacity: 1;
}

.drift-nav .nav-cta {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.6rem 1.5rem !important;
    border: 1px solid var(--black) !important;
    color: var(--black) !important;
    border-radius: 2px;
    opacity: 1 !important;
    transition: background 0.2s, color 0.2s !important;
}

.drift-nav .nav-cta:hover {
    background: var(--black) !important;
    color: var(--white) !important;
}

/* FOOTER */
.contact-footer {
    background: var(--black);
    border-top: 1px solid rgba(245, 242, 236, 0.08);
    padding: 3rem;
}

.contact-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo-sm {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    color: var(--white);
    text-decoration: none;
}

.footer-logo-sm span {
    color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: rgba(245, 242, 236, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy-sm {
    font-size: 0.72rem;
    color: rgba(245, 242, 236, 0.25);
}