/* ==========================================================================
   VALORA — Global Design System Tokens & Base Foundation
   Phase 2: Global UI Tokens, Typography, Buttons & Navigation System
   ========================================================================== */

:root {
    /* Background Canvas Tokens */
    --vl-bg-base: #08080a;
    --vl-bg-surface: #101014;
    --vl-bg-surface-elevated: #16161c;
    --vl-bg-surface-active: #1d1d25;
    --vl-bg-glass: rgba(14, 14, 18, 0.78);
    --vl-bg-glass-elevated: rgba(22, 22, 28, 0.85);

    /* VALORA Crimson Accent Tokens (WCAG AA Compliant 4.7+:1 with white text) */
    --vl-accent: #dc2626;
    --vl-accent-hover: #b91c1c;
    --vl-accent-active: #991b1b;
    --vl-accent-glow: rgba(220, 38, 38, 0.32);
    --vl-accent-subtle: rgba(220, 38, 38, 0.14);
    --vl-accent-subtle-hover: rgba(220, 38, 38, 0.22);
    --vl-accent-border: rgba(220, 38, 38, 0.4);

    /* Secondary Accent Tokens */
    --vl-accent-cool: #3b82f6;
    --vl-accent-cool-subtle: rgba(59, 130, 246, 0.14);
    --vl-accent-amber: #d97706;
    --vl-accent-emerald: #059669;

    /* Typography & Content Colors (High Contrast WCAG AA) */
    --vl-text-primary: #f8fafc;
    --vl-text-secondary: #cbd5e1;
    --vl-text-muted: #94a3b8;
    --vl-text-disabled: #64748b;

    /* Border & Divider Tokens */
    --vl-border-subtle: rgba(255, 255, 255, 0.08);
    --vl-border-medium: rgba(255, 255, 255, 0.16);
    --vl-border-strong: rgba(255, 255, 255, 0.26);

    /* Radii Tokens */
    --vl-radius-xs: 6px;
    --vl-radius-sm: 10px;
    --vl-radius-md: 14px;
    --vl-radius-lg: 20px;
    --vl-radius-xl: 28px;
    --vl-radius-full: 9999px;

    /* Elevation & Shadows */
    --vl-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --vl-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
    --vl-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --vl-shadow-glow: 0 0 24px var(--vl-accent-glow);
    --vl-shadow-glow-lg: 0 0 48px rgba(220, 38, 38, 0.48);

    /* Layout & Sizing */
    --vl-header-height: 72px;
    --vl-header-height-mobile: 64px;
    --vl-max-width: 1200px;
    --vl-transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --vl-transition-base: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --vl-transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--vl-bg-base);
    color: var(--vl-text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Glassmorphism System */
.vl-glass {
    background: var(--vl-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--vl-border-subtle);
}

.vl-glass-elevated {
    background: var(--vl-bg-glass-elevated);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--vl-border-medium);
    box-shadow: var(--vl-shadow-md);
}

.vl-glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--vl-bg-surface);
    border: 1px solid var(--vl-border-subtle);
    border-radius: var(--vl-radius-lg);
    box-shadow: var(--vl-shadow-sm);
    transition: transform var(--vl-transition-smooth), border-color var(--vl-transition-smooth), box-shadow var(--vl-transition-smooth);
}

.vl-glass-card:hover {
    border-color: var(--vl-border-medium);
    box-shadow: var(--vl-shadow-md);
    transform: translateY(-2px);
}

/* Typography Hierarchy */
.vl-display-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--vl-text-primary);
}

.vl-section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--vl-text-primary);
}

.vl-subheading {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--vl-text-secondary);
}

.vl-caption {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vl-text-muted);
}

/* VALORA Wordmark & Vector/Image Logo System */
.vl-wordmark {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--vl-text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    user-select: none;
    transition: opacity 0.2s ease;
}

.vl-wordmark:hover {
    opacity: 0.9;
}

.vl-wordmark-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--vl-accent);
    display: inline-block;
    box-shadow: 0 0 10px var(--vl-accent);
    margin-left: 2px;
    margin-bottom: 2px;
}

/* Button System (Micro-Scale & Smooth Feedback) */
.vl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    padding: 12px 24px;
    border-radius: var(--vl-radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    transition: transform var(--vl-transition-base), background-color var(--vl-transition-base), box-shadow var(--vl-transition-base), border-color var(--vl-transition-base);
    outline: none;
}

.vl-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--vl-accent-glow), 0 0 0 1px var(--vl-accent);
}

.vl-btn:active {
    transform: scale(0.97);
}

.vl-btn-primary {
    background: var(--vl-accent);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--vl-shadow-glow);
}

.vl-btn-primary:hover {
    background: var(--vl-accent-hover);
    box-shadow: var(--vl-shadow-glow-lg);
    transform: translateY(-1px);
}

.vl-btn-primary:active {
    background: var(--vl-accent-active);
    transform: translateY(0) scale(0.97);
}

.vl-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--vl-text-primary);
    border-color: var(--vl-border-medium);
}

.vl-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--vl-border-strong);
    transform: translateY(-1px);
}

.vl-btn-ghost {
    background: transparent;
    color: var(--vl-text-secondary);
    border-color: transparent;
}

.vl-btn-ghost:hover {
    color: var(--vl-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.vl-btn-danger {
    background: var(--vl-accent-subtle);
    color: #fecaca;
    border-color: var(--vl-accent-border);
}

.vl-btn-danger:hover {
    background: var(--vl-accent);
    color: #ffffff;
    box-shadow: var(--vl-shadow-glow);
}

.vl-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--vl-border-subtle);
    color: var(--vl-text-secondary);
    transition: color var(--vl-transition-base), background-color var(--vl-transition-base), border-color var(--vl-transition-base);
    cursor: pointer;
}

.vl-btn-icon:hover {
    color: var(--vl-text-primary);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--vl-border-medium);
}

/* Badges & Indicators */
.vl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--vl-radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.vl-badge-subtle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--vl-text-secondary);
    border: 1px solid var(--vl-border-medium);
}

.vl-badge-accent {
    background: var(--vl-accent-subtle);
    color: #fca5a5;
    border: 1px solid var(--vl-accent-border);
}

.vl-badge-amber {
    background: rgba(217, 119, 6, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.vl-badge-live {
    background: rgba(5, 150, 105, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.vl-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    position: relative;
}

.vl-dot-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.4;
    animation: vlPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    will-change: transform, opacity;
}

@keyframes vlPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Header & Navigation */
.vl-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--vl-header-height, 72px);
    background: var(--vl-bg-glass, rgba(10, 10, 14, 0.85));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--vl-border-subtle, rgba(255, 255, 255, 0.08));
    z-index: 990;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.vl-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .vl-header-container {
        padding: 0 24px;
    }
}

.vl-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

@media (min-width: 768px) {
    .vl-nav-links {
        display: flex;
    }
}

.vl-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--vl-radius-md);
    color: var(--vl-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    user-select: none;
}

.vl-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.vl-nav-item.active {
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

.vl-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--vl-accent);
}

.vl-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vl-header-login-btn {
    display: none;
}

@media (min-width: 768px) {
    .vl-header-login-btn {
        display: inline-flex;
    }
}

.vl-header-cta {
    padding: 9px 18px;
    font-size: 0.875rem;
}

/* Mobile Nav Toggle Button */
.vl-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--vl-radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--vl-border-subtle);
    color: var(--vl-text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.vl-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--vl-border-medium);
}

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

/* Mobile Avatar Button (Header right on mobile) */
.vl-mobile-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--vl-border-medium);
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.vl-mobile-avatar-btn:hover, .vl-mobile-avatar-btn:active {
    transform: scale(1.04);
    border-color: var(--vl-accent);
    box-shadow: 0 0 12px var(--vl-accent-glow);
}

.vl-mobile-avatar-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vl-mobile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vl-accent) 0%, #991b1b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .vl-mobile-avatar-btn {
        display: none;
    }
}

/* Desktop User Profile Menu & Dropdown */
.vl-profile-menu-container {
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .vl-profile-menu-container {
        display: block;
    }
}

.vl-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    border-radius: var(--vl-radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--vl-border-subtle);
    cursor: pointer;
    color: var(--vl-text-primary);
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    outline: none;
}

.vl-profile-chip:hover, .vl-profile-chip[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--vl-border-medium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vl-profile-chip:active {
    transform: scale(0.98);
}

.vl-profile-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vl-accent) 0%, #991b1b 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.vl-profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vl-profile-avatar-wrap span {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.vl-profile-name {
    font-size: 0.84375rem;
    font-weight: 600;
    color: #f8fafc;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vl-profile-chevron {
    width: 14px;
    height: 14px;
    color: var(--vl-text-muted);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.vl-profile-chip[aria-expanded="true"] .vl-profile-chevron {
    transform: rotate(180deg);
    color: #ffffff;
}

/* Desktop Profile Dropdown */
.vl-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: rgba(18, 18, 24, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--vl-radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 6px;
    z-index: 1000;
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.vl-profile-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.vl-dropdown-header {
    padding: 10px 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--vl-border-subtle);
    margin-bottom: 4px;
}

.vl-dropdown-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vl-accent) 0%, #991b1b 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.vl-dropdown-avatar span {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
}

.vl-dropdown-user-info {
    min-width: 0;
    flex: 1;
}

.vl-dropdown-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.vl-dropdown-email {
    font-size: 0.75rem;
    color: var(--vl-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.vl-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--vl-radius-sm);
    color: var(--vl-text-secondary);
    font-size: 0.84375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.vl-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.vl-dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--vl-text-muted);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.vl-dropdown-item:hover svg {
    color: #ffffff;
}

.vl-dropdown-divider {
    height: 1px;
    background: var(--vl-border-subtle);
    margin: 4px 0;
}

.vl-dropdown-item.vl-dropdown-item-danger {
    color: #f87171;
}

.vl-dropdown-item.vl-dropdown-item-danger svg {
    color: #f87171;
}

.vl-dropdown-item.vl-dropdown-item-danger:hover {
    background: rgba(220, 38, 38, 0.14);
    color: #fca5a5;
}

.vl-dropdown-item.vl-dropdown-item-danger:hover svg {
    color: #fca5a5;
}

/* Mobile Nav Drawer & Backdrop */
.vl-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vl-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.vl-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 88vw;
    height: 100dvh;
    background: #0e0f14;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 995;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px 0 0 20px;
}

.vl-mobile-drawer.open {
    transform: translateX(0);
}

.vl-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 4px;
}

.vl-drawer-header .vl-wordmark {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.vl-drawer-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    padding: 0;
}

.vl-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.vl-drawer-close-btn:active {
    transform: scale(0.94);
}

.vl-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    margin-bottom: auto;
}

.vl-mobile-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.96875rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.vl-mobile-nav-link svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    stroke-width: 1.9;
    flex-shrink: 0;
    transition: color 0.15s ease, stroke 0.15s ease;
}

.vl-mobile-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.vl-mobile-nav-link:hover svg {
    color: #ffffff;
}

/* Subtle left accent bar for active page */
.vl-mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5px;
    height: 28px;
    background: #e11d48;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vl-mobile-nav-link.active {
    color: #ef4444;
    font-weight: 600;
    background: transparent;
}

.vl-mobile-nav-link.active::before {
    opacity: 1;
}

.vl-mobile-nav-link.active svg {
    color: #ef4444;
    stroke: #ef4444;
}

.vl-mobile-nav-link.active span {
    color: #ef4444;
}

/* Drawer Action Buttons */
.vl-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.vl-drawer-login-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.vl-drawer-login-btn svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    flex-shrink: 0;
}

.vl-drawer-login-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.24);
}

.vl-drawer-login-btn:active {
    transform: scale(0.98);
}

.vl-drawer-cta-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e11d48;
    background: linear-gradient(135deg, #e11d48 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.vl-drawer-cta-btn svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    fill: #ffffff;
    flex-shrink: 0;
}

.vl-drawer-cta-btn:hover {
    background: #f43f5e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.vl-drawer-cta-btn:active {
    transform: scale(0.98);
}

.vl-drawer-logout-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.vl-drawer-logout-btn svg {
    width: 18px;
    height: 18px;
    color: #ef4444;
    fill: none;
    stroke: currentColor;
    flex-shrink: 0;
}

.vl-drawer-logout-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.vl-drawer-logout-btn:hover svg {
    color: #ffffff;
    stroke: #ffffff;
}

/* Drawer Footer Badges */
.vl-drawer-footer-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    gap: 8px;
}

.vl-drawer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}

.vl-drawer-badge svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    stroke-width: 2;
    flex-shrink: 0;
}

.vl-drawer-badge.vl-badge-encrypted svg {
    color: #10b981;
    stroke: #10b981;
}

/* Inputs and Modals */
.vl-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--vl-border-subtle);
    border-radius: var(--vl-radius-md);
    padding: 12px 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.vl-input:focus {
    border-color: var(--vl-accent);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px var(--vl-accent-subtle);
}

/* Mobile Drawer User Card & Menu Items */
.vl-drawer-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vl-border-subtle);
    border-radius: var(--vl-radius-md);
    margin-bottom: 4px;
}

.vl-drawer-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vl-accent) 0%, #991b1b 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vl-drawer-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vl-drawer-user-avatar span {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 800;
}

.vl-drawer-user-info {
    min-width: 0;
    flex: 1;
}

.vl-drawer-user-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.vl-drawer-user-email {
    font-size: 0.75rem;
    color: var(--vl-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin-top: 2px;
}

.vl-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--vl-radius-md);
    color: var(--vl-text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    min-height: 48px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.vl-drawer-item:hover, .vl-drawer-item:active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--vl-border-subtle);
}

.vl-drawer-item svg {
    width: 18px;
    height: 18px;
    color: var(--vl-text-muted);
    flex-shrink: 0;
}

.vl-drawer-item:hover svg {
    color: #ffffff;
}

.vl-drawer-item-danger {
    color: #f87171 !important;
    background: rgba(220, 38, 38, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
    margin-top: 4px;
}

.vl-drawer-item-danger svg {
    color: #f87171 !important;
}

.vl-drawer-item-danger:hover, .vl-drawer-item-danger:active {
    background: rgba(220, 38, 38, 0.18) !important;
    color: #fca5a5 !important;
}

.vl-drawer-divider {
    height: 1px;
    background: var(--vl-border-subtle);
    margin: 6px 0;
}

/* Modals System (Profile & Settings) */
.vl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vl-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.vl-modal-card {
    background: linear-gradient(180deg, #161620 0%, #0d0d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--vl-radius-xl);
    padding: 28px 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--vl-shadow-lg), 0 0 60px rgba(0, 0, 0, 0.9);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    position: relative;
}

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

.vl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vl-border-subtle);
}

.vl-modal-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vl-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--vl-border-subtle);
    color: var(--vl-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.vl-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* ==========================================================================
   Global Footer System
   ========================================================================== */
.vl-footer {
    background: #060608;
    border-top: 1px solid var(--vl-border-subtle);
    padding: 64px 20px 32px;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .vl-footer {
        padding: 72px 32px 36px;
    }
}

@media (min-width: 1024px) {
    .vl-footer {
        padding: 80px 40px 40px;
    }
}

@media (min-width: 1280px) {
    .vl-footer {
        padding: 88px 48px 44px;
    }
}

.footer-content {
    max-width: var(--vl-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 320px;
}

.footer-col h3,
.footer-col .footer-col-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--vl-text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: var(--vl-max-width);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--vl-border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--vl-text-muted);
    font-size: 0.8125rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* Core Production Atomic Utilities (Replaces Tailwind CDN completely) */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.flex-col { flex-direction: column !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-2\.5 { gap: 10px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.gap-6 { gap: 24px !important; }
.gap-8 { gap: 32px !important; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 8px !important; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 14px !important; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 16px !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-w-0 { min-width: 0px !important; }
.max-w-full { max-width: 100% !important; }
.w-4 { width: 16px !important; }
.h-4 { height: 16px !important; }
.w-5 { width: 20px !important; }
.h-5 { height: 20px !important; }
.w-12 { width: 48px !important; }
.h-12 { height: 48px !important; }
.w-14 { width: 56px !important; }
.h-14 { height: 56px !important; }

.m-0 { margin: 0 !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-1\.5 { margin-bottom: 6px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 20px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-4 { margin-top: 16px !important; }
.ml-1 { margin-left: 4px !important; }
.mr-3 { margin-right: 12px !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-8 { padding: 32px !important; }
.py-2\.5 { padding-top: 10px !important; padding-bottom: 10px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.pt-2 { padding-top: 8px !important; }

.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-\[11px\] { font-size: 11px !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 900 !important; }

.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-tighter { letter-spacing: -0.05em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.uppercase { text-transform: uppercase !important; }
.text-center { text-align: center !important; }

.text-white { color: #ffffff !important; }
.text-gray-300 { color: #cbd5e1 !important; }
.text-gray-400 { color: #94a3b8 !important; }
.text-red-400 { color: #f87171 !important; }
.text-red-500 { color: #ef4444 !important; }
.text-emerald-400 { color: #34d399 !important; }

.bg-zinc-900 { background-color: #18181b !important; }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1) !important; }
.border-red-500\/20 { border-color: rgba(239, 68, 68, 0.2) !important; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2) !important; }
.rounded-full { border-radius: 9999px !important; }
.resize-none { resize: none !important; }

.disabled\:opacity-50:disabled { opacity: 0.5 !important; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed !important; }

@media (min-width: 640px) {
    :root {
        --vl-header-height: var(--vl-header-height);
    }
    .sm\:inline { display: inline !important; }
    .sm\:flex { display: flex !important; }
    .sm\:hidden { display: none !important; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
}

@media (max-width: 640px) {
    :root {
        --vl-header-height: var(--vl-header-height-mobile);
    }
    .vl-header-container { padding: 0 16px; }
    .vl-header-cta { padding: 8px 14px; font-size: 0.8125rem; }
}

