/**
 * GGMyWallet v2.0 - Main Stylesheet
 * Premium Dark Luxury Theme
 * 
 * Design System: Modern, Minimal, Premium
 * Inspired by: Revolut, N26, Wise, Monzo
 * 
 * 🔒 CSS STRUCTURE:
 * - This file: Desktop-first styles (1024px+)
 * - mobile.css: Mobile overrides (768px and below) - LOCKED
 * - custom-dropdown.css: Component-specific styles
 * 
 * Load Order: main.css → mobile.css → custom-dropdown.css
 * 
 * Desktop Changes: Edit this file
 * Mobile Changes: Edit mobile.css ONLY (with @media queries)
 */

/* ============================================
   CSS RESET & BASE
   ============================================ */
   
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Remove blue outline on all elements */
    outline: none !important;
}

/* ============================================
   GLOBAL FOCUS STYLES - Remove Blue Outline
   ============================================ */

/* Remove outline on ALL interactive elements */
button,
a,
input,
select,
textarea,
[role="button"],
[tabindex] {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Remove focus outline but keep accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-ghost:focus,
.icon-btn:focus,
.quick-action-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Add subtle focus ring only for keyboard users (Tab key) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25) !important;
    border-radius: 4px;
}

:root {
    /* ===== COLOR PALETTE - PREMIUM DARK THEME ===== */
    
    /* Primary Colors */
    --primary: #ef4444;
    --primary-light: #f87171;
    --primary-dark: #dc2626;
    --primary-rgb: 239, 68, 68;
    
    /* Accent Colors */
    --accent: #f97316;
    --gold: #fbbf24;
    
    /* Gradients - Modern */
    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-primary-soft: linear-gradient(135deg, rgba(239,68,68,0.2) 0%, rgba(220,38,38,0.1) 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --gradient-card: linear-gradient(135deg, rgba(239,68,68,0.05) 0%, rgba(220,38,38,0.02) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-bg-light: rgba(42, 42, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px) saturate(180%);
    
    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    
    /* Gray Scale */
    --gray-900: #0A0A0A;
    --gray-800: #1A1A1A;
    --gray-700: #2A2A2A;
    --gray-600: #3A3A3A;
    --gray-500: #4A4A4A;
    --gray-400: #5A5A5A;
    --gray-300: #6A6A6A;
    --gray-200: #8A8A8A;
    --gray-100: #AAAAAA;
    --gray-50: #CCCCCC;
    
    /* Semantic Colors */
    --success: #00C853;
    --warning: #FFB300;
    --danger: #FF3B30;
    --info: #0A84FF;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-tertiary: #6A6A6A;
    
    /* ===== TYPOGRAPHY ===== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --font-mono: 'DM Mono', 'Roboto Mono', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* ===== SPACING ===== */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    
    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* ===== SHADOWS ===== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.7);
    
    /* Colored Shadows */
    --shadow-glow: 0 0 24px rgba(239, 68, 68, 0.5);
    --shadow-glow-soft: 0 0 32px rgba(239, 68, 68, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(249, 115, 22, 0.4);
    
    /* 3D Elevation Shadows */
    --shadow-elevation-low: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-elevation-medium: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-elevation-high: 0 16px 48px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.35);
    
    /* Inner Shadow for Depth */
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Easing Functions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* ===== Z-INDEX SYSTEM ===== */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

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); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-light);
}

strong, b {
    font-weight: var(--font-bold);
}

small {
    font-size: var(--text-sm);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-sm {
    max-width: 640px;
}

.container-lg {
    max-width: 1536px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Primary */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Button Accent */
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #A01528 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent), var(--shadow-lg);
}

/* Button Outline */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* Button Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-700);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.card-body {
    padding: var(--space-2) 0;
}

.card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-700);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 2px solid var(--gray-600);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    font-size: var(--text-sm);
    color: var(--danger);
    margin-top: var(--space-2);
}

.form-input.error {
    border-color: var(--danger);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-800);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-logo {
    width: 40px;
    height: 40px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}

.navbar-link {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.navbar-link:hover {
    color: var(--text-primary);
}

.navbar-link.active {
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flex */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-4 { gap: var(--space-4) !important; }
.gap-6 { gap: var(--space-6) !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Text Colors */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }

/* Margins & Padding */
.m-0 { margin: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.p-0 { padding: 0 !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.6s var(--ease-out);
}

.slide-in {
    animation: slideIn 0.6s var(--ease-out);
}

/* ============================================
   MODERN UI COMPONENTS - GLASSMORPHISM & 3D
   ============================================ */

/* Glass Effect - Premium */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-light {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.bg-gradient-card {
    background: var(--gradient-card);
}

/* Elevated Cards - 3D Effect */
.card-elevated {
    transform: translateZ(0);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-elevated:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-elevation-high);
}

/* Glow Effects */
.glow {
    box-shadow: var(--shadow-glow);
}

.glow-soft {
    box-shadow: var(--shadow-glow-soft);
}

.glow-hover {
    transition: box-shadow var(--transition-base);
}

.glow-hover:hover {
    box-shadow: var(--shadow-glow);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Ripple Effect Container */
.ripple-container {
    position: relative;
    overflow: hidden;
}

/* Float Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scale on Hover */
.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Rotate on Hover */
.hover-rotate {
    transition: transform var(--transition-base);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Smooth Transitions */
.transition-all {
    transition: all var(--transition-base);
}

.transition-transform {
    transition: transform var(--transition-base);
}

.transition-colors {
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hero {
        min-height: 80vh;
        padding: var(--space-12) 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
}

/* ============================================
   LOADING & SKELETON
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-800) 25%,
        var(--gray-700) 50%,
        var(--gray-800) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-700);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   GRID LAYOUTS - Desktop Default
   ============================================ */

.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Desktop Default - Sidebar & Layout */
.sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 41, 59, 0.98) 50%,
        rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: 
        0 0 60px rgba(0, 0, 0, 0.5),
        4px 0 30px rgba(239, 68, 68, 0.1),
        inset 1px 0 0 rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform var(--transition-base);
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Sidebar Header - Premium Branding */
.sidebar-header {
    padding: var(--space-5) var(--space-4);
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(239, 68, 68, 0.05) 100%);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    position: relative;
    overflow: hidden;
}

/* Animated Glow Effect */
.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(239, 68, 68, 0.1) 0%, 
        transparent 60%);
    /* Animation removed for desktop - static glow is cleaner */
}

@keyframes sidebarGlow {
    0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(180deg); }
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-4);
    right: var(--space-4);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ef4444 50%, 
        transparent 100%);
    border-radius: 2px;
}

.sidebar-brand {
    position: relative;
    z-index: 1;
    gap: var(--space-3);
}

.sidebar-brand h2 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 68, 68, 0.3) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    border-radius: 4px;
}

.nav-section {
    margin-bottom: var(--space-5);
}

/* Section Title - Badge Style */
.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-3);
    padding: var(--space-1) var(--space-3);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-section-title::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
}

/* Nav Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link i {
    font-size: 1.125rem;
    min-width: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.nav-link:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateX(4px);
}

.nav-link:hover i {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link.active i {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(239, 68, 68, 0.4);
}

/* Sidebar User Profile Section */
.sidebar-user {
    padding: var(--space-4);
    margin: 0 var(--space-3) var(--space-4);
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.sidebar-user::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(239, 68, 68, 0.15) 0%, 
        transparent 60%);
    pointer-events: none;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.user-info-text {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-status-badge::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Logout Button */
.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    margin: var(--space-3) var(--space-3) var(--space-4);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-xl);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.sidebar-logout:active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: scale(0.98);
}

.sidebar-logout i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.sidebar-logout:active i {
    transform: translateX(-4px);
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    width: calc(100% - 280px);
    max-width: calc(100vw - 280px);
    box-sizing: border-box;
}

/* ===== MOBILE HEADER - Hidden on desktop ===== */
.mobile-header {
    display: none;
}

/* Mobile Menu Toggle Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    cursor: pointer;
    z-index: var(--z-modal);
    font-size: 1.25rem;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Overlay - Hidden on desktop */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: var(--z-dropdown);
}

.mobile-menu-overlay.active {
    display: block;
}

/* ============================================
   🔒 MOBILE BREAKPOINT - Let mobile.css handle this
   Note: Styles below are fallback only. Main mobile 
   styles are in mobile.css with higher specificity.
   ============================================ */

@media (max-width: 768px) {
    /* ===== LAYOUT ADJUSTMENTS ===== */
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide sidebar by default, show when active */
    .sidebar {
        width: 100%;
        max-width: 280px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: var(--z-modal);
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    /* ===== TYPOGRAPHY ===== */
    body {
        font-size: var(--text-sm);
    }
    
    h1 {
        font-size: var(--text-3xl) !important;
    }
    
    h2 {
        font-size: var(--text-2xl) !important;
    }
    
    h3 {
        font-size: var(--text-lg) !important;
    }
    
    /* ===== SPACING ===== */
    .container {
        padding: var(--space-4);
    }
    
    .section {
        padding: var(--space-4) 0;
    }
    
    /* ===== GRID LAYOUTS ===== */
    .grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* ===== CARDS ===== */
    .card {
        border-radius: var(--radius-xl);
        padding: var(--space-5);
    }
    
    /* ===== BUTTONS ===== */
    button, .btn {
        min-height: 48px;
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .btn-group {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    /* ===== FORMS ===== */
    input, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .form-group {
        margin-bottom: var(--space-4);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    /* ===== HERO SECTION ===== */
    .hero {
        padding: var(--space-6) var(--space-4);
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero p {
        font-size: var(--text-sm);
    }
    
    /* ===== MODALS ===== */
    .modal-content {
        width: 95%;
        max-width: 100%;
        border-radius: var(--radius-2xl);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: var(--space-5) var(--space-4);
        font-size: var(--text-xl);
    }
    
    .modal-footer {
        gap: var(--space-2);
        padding: var(--space-4);
    }
    
    .modal-footer button {
        flex: 1;
        width: 100%;
    }
    
    /* ===== TABLES ===== */
    table {
        font-size: var(--text-xs);
    }
    
    th, td {
        padding: var(--space-2) var(--space-2);
    }
    
    /* ===== FLEX LAYOUTS ===== */
    .flex-between {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
    }
    
    .flex-center {
        flex-direction: column;
    }
    
    /* ===== HIDE ON MOBILE ===== */
    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .main-content {
        padding-top: 50px;
    }
    
    h1 {
        font-size: var(--text-2xl) !important;
    }
    
    h2 {
        font-size: var(--text-xl) !important;
    }
    
    h3 {
        font-size: var(--text-base) !important;
    }
    
    .container {
        padding: var(--space-3);
    }
    
    .card {
        padding: var(--space-4);
    }
    
    button, .btn {
        padding: var(--space-3) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* ===== MINI CARDS ===== */
    .mini-card {
        padding: var(--space-3);
        border-radius: var(--radius-lg);
    }
    
    /* ===== STAT DISPLAY ===== */
    .stat-value {
        font-size: var(--text-2xl);
    }
    
    .stat-label {
        font-size: var(--text-xs);
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    button:hover, .btn:hover, .icon-btn:hover {
        transform: none;
        box-shadow: var(--shadow-elevation-low);
    }
    
    /* Add active state instead */
    button:active, .btn:active, .icon-btn:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-elevation-medium);
    }
    
    /* Larger touch targets */
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Prevent text selection on tap */
    button, .btn, .nav-item {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding-top: 50px;
    }
    
    .hero {
        padding: var(--space-3) var(--space-4);
    }
    
    h1 {
        font-size: var(--text-2xl);
    }
}

/* ===== UTILITY CLASSES ===== */
.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block;
    }
    
    .show-mobile-flex {
        display: flex;
    }
    
    .show-mobile-grid {
        display: grid;
    }
}
