/* Referral Codes Club - Futuristic Professional Design */
/* Modern dark theme with glassmorphism and gradient accents */

:root {
    /* Primary gradient palette - Vibrant cyan to purple */
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --primary-rgb: 6, 182, 212;
    
    /* Accent colors */
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: #a78bfa;
    --accent-rgb: 139, 92, 246;
    
    /* Semantic colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;
    --danger-light: #f87171;
    
    /* Dark theme base colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.8);
    --bg-card-hover: rgba(30, 30, 42, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Text colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    
    /* Border colors */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(6, 182, 212, 0.3);
    --border-glow: rgba(6, 182, 212, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    --font-display: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(139, 92, 246, 0.3);
    
    /* Spacing & Sizing */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Legacy compatibility */
    --secondary: #64748b;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { 
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(6, 182, 212, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: all var(--transition);
}
a:hover { 
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { 
    margin: 0 0 1rem; 
    font-weight: 700; 
    line-height: 1.2; 
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem; color: var(--text-secondary); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons - Futuristic Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled::before { display: none; }

.btn-primary { 
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
    color: var(--white);
}

.btn-secondary { 
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}
.btn-secondary:hover { 
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline { 
    background: transparent;
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
}
.btn-outline:hover { 
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-link { 
    background: none;
    padding: 0;
    color: var(--text-muted);
    border: none;
}
.btn-link:hover { color: var(--primary); }
.btn-link::before { display: none; }

/* Forms - Glassmorphism Style */
.form-group { margin-bottom: 1.5rem; }
.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="date"], input[type="search"], textarea, select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all var(--transition);
}
input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15), var(--shadow-glow);
    background: var(--bg-card-hover);
}
textarea { resize: vertical; min-height: 120px; }
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-hint { 
    display: block; 
    margin-top: 0.5rem; 
    font-size: 0.8125rem; 
    color: var(--text-muted);
}

.checkbox-label { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.75rem; 
    cursor: pointer; 
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] { 
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.password-input { position: relative; }
.toggle-password { 
    position: absolute; 
    right: 1rem; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text-muted); 
    padding: 0;
    transition: color var(--transition);
}
.toggle-password:hover { color: var(--primary); }

/* Alerts - Dark Theme */
.alert { 
    padding: 1rem 1.25rem; 
    border-radius: var(--radius); 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    backdrop-filter: blur(10px);
    border: 1px solid;
}
.alert-success { 
    background: rgba(16, 185, 129, 0.15); 
    color: var(--success-light);
    border-color: rgba(16, 185, 129, 0.3);
}
.alert-error { 
    background: rgba(239, 68, 68, 0.15); 
    color: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.3);
}
.alert-warning { 
    background: rgba(245, 158, 11, 0.15); 
    color: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.3);
}
.alert-info { 
    background: rgba(6, 182, 212, 0.15); 
    color: var(--primary-light);
    border-color: rgba(6, 182, 212, 0.3);
}
.alert-close { 
    background: none; 
    border: none; 
    font-size: 1.25rem; 
    cursor: pointer; 
    opacity: 0.6;
    color: inherit;
}
.alert-close:hover { opacity: 1; }

/* Badges - Glowing Style */
.badge { 
    display: inline-flex; 
    align-items: center; 
    padding: 0.25rem 0.75rem; 
    font-size: 0.75rem; 
    font-weight: 600; 
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}
.badge-featured { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.2));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-verified { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-expired { 
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-user { 
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
}
.badge-premium { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-admin { 
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.2));
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Status badges */
.status-badge { 
    display: inline-flex; 
    padding: 0.375rem 0.75rem; 
    font-size: 0.75rem; 
    font-weight: 600; 
    border-radius: var(--radius);
    letter-spacing: 0.02em;
}
.status-approved { 
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pending { 
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-rejected { 
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Header - Glassmorphism */
.site-header { 
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 500;
}
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }
}
.header-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 2rem; 
    padding: 1rem 0;
}
.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem;
}
.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.logo:hover { 
    opacity: 0.9;
}
.logo-icon { 
    font-size: 1.75rem;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
}

.header-search { 
    flex: 1; 
    max-width: 480px; 
    position: relative;
}
.header-search input { 
    width: 100%; 
    padding: 0.75rem 3rem 0.75rem 1.25rem; 
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
}
.header-search input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.header-search button { 
    position: absolute; 
    right: 1rem; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text-muted);
    transition: color var(--transition);
}
.header-search button:hover { color: var(--primary); }

.main-nav { display: flex; align-items: center; position: static; }
.nav-menu { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    list-style: none; 
    margin: 0; 
    padding: 0;
}
.nav-menu > li > a { 
    display: flex; 
    align-items: center; 
    padding: 0.625rem 1rem; 
    color: var(--text-primary); 
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-menu > li > a:hover { 
    color: var(--primary-light); 
    background: var(--bg-glass-hover);
}

/* Submit Code Button - Sleek Style */
.nav-menu > li > a.btn.btn-primary.btn-sm {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}
.nav-menu > li > a.btn.btn-primary.btn-sm:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-1px);
}

.has-dropdown { position: relative; }
.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    min-width: 220px; 
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 50;
    backdrop-filter: blur(20px);
    padding: 0.5rem;
}
.has-dropdown:hover .dropdown-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(5px);
}
.dropdown-menu li a { 
    display: block; 
    padding: 0.625rem 1rem; 
    color: var(--text-secondary); 
    font-size: 0.875rem;
    border-radius: calc(var(--radius) - 4px);
    transition: all var(--transition);
}
.dropdown-menu li a:hover { 
    background: var(--bg-glass-hover); 
    color: var(--text-primary);
}
.dropdown-right { left: auto; right: 0; }
.divider { 
    border-top: 1px solid var(--border-primary); 
    margin: 0.5rem 0;
}

.user-menu .user-toggle { display: flex; align-items: center; gap: 0.5rem; }
.user-avatar { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    background: var(--gradient-primary);
    color: var(--white); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.875rem; 
    font-weight: 600; 
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.user-avatar:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.mobile-menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0.5rem;
}
.mobile-menu-toggle span { 
    display: block; 
    width: 24px; 
    height: 2px; 
    background: var(--text-secondary); 
    margin: 5px 0; 
    transition: all var(--transition);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .mobile-menu-toggle { display: block; z-index: 110; }
    
    /* Hamburger animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu { 
        display: none;
        position: fixed; 
        top: 70px; 
        left: 0; 
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column; 
        align-items: stretch;
        padding: 1rem; 
        gap: 0.25rem; 
        border-top: 1px solid var(--border-primary);
        z-index: 9999;
        overflow-y: auto;
    }
    .nav-menu.active { display: flex; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { 
        padding: 0.875rem 1rem; 
        border-radius: var(--radius);
        display: block;
    }
    .nav-menu > li > a:hover,
    .nav-menu > li > a:active {
        background: var(--bg-glass-hover);
    }
    
    /* Mobile dropdown - collapsed by default */
    .has-dropdown > a::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: auto;
        transition: transform 0.2s;
    }
    .has-dropdown.open > a::after {
        transform: rotate(-135deg);
    }
    .dropdown-menu { 
        position: static; 
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: none; 
        box-shadow: none; 
        border: none; 
        padding: 0;
        margin: 0;
        background: transparent;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
    }
    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 0.5rem 0 0.5rem 1rem;
    }
    .dropdown-menu li a {
        padding: 0.625rem 1rem;
    }
    
    /* User menu adjustments */
    .user-menu .user-toggle {
        justify-content: flex-start;
    }
    .user-name {
        display: inline;
    }
    
    /* Submit button full width on mobile */
    .nav-menu > li > a.btn.btn-primary.btn-sm {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Hero Section - Futuristic */
.hero { 
    background: var(--bg-secondary);
    position: relative;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 100% 100% at 50% -50%, rgba(6, 182, 212, 0.2), transparent 70%),
        radial-gradient(ellipse 80% 80% at 80% 50%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(6, 182, 212, 0.1), transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { 
    color: var(--text-primary); 
    font-size: 3.5rem; 
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { 
    font-size: 1.25rem; 
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-search { 
    max-width: 640px; 
    margin: 0 auto 3rem; 
    display: flex; 
    gap: 0.75rem;
    position: relative;
}
.hero-search input { 
    flex: 1; 
    padding: 1.125rem 1.5rem; 
    font-size: 1rem; 
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.hero-search input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.hero-search .btn { 
    padding: 1.125rem 2rem;
    border-radius: var(--radius-lg);
}
.hero-stats { 
    display: flex; 
    justify-content: center; 
    gap: 4rem;
}
.stat { text-align: center; }
.stat-number { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { 
    font-size: 0.9375rem; 
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 640px) {
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1rem; }
    .hero-search { flex-direction: column; }
    .hero-stats { gap: 2rem; flex-wrap: wrap; }
    .stat-number { font-size: 2rem; }
}

/* Sections */
.section { padding: 4rem 0; }
.section-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 2rem;
}
.section-header h2 { 
    margin: 0;
    font-size: 1.75rem;
    color: var(--text-primary);
}
.view-all { 
    font-size: 0.875rem; 
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.view-all:hover {
    color: var(--primary-light);
}

/* Code Cards - Glassmorphism */
.codes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.codes-grid-4 { grid-template-columns: repeat(4, 1fr); }
.codes-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) { .codes-grid, .codes-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .codes-grid, .codes-grid-4, .codes-grid-2 { grid-template-columns: 1fr; } }

.code-card { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}
.code-card:hover { 
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.code-card.featured { 
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.05), var(--bg-card));
}
.code-card.featured:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}
.code-card.expired { opacity: 0.6; }
.code-card .badge { position: absolute; top: 1rem; right: 1rem; }

.code-card-header { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1.25rem;
}
.code-brand { 
    width: 52px; 
    height: 52px; 
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    flex-shrink: 0;
}
.code-brand img { width: 100%; height: 100%; object-fit: contain; padding: 0.375rem; }
.brand-initial { 
    font-size: 1.25rem; 
    font-weight: 700; 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.code-meta { flex: 1; min-width: 0; }
.code-meta .brand-name { 
    display: block; 
    font-weight: 600; 
    color: var(--text-primary); 
    font-size: 0.9375rem;
}
.code-meta .category-name { 
    font-size: 0.8125rem; 
    color: var(--text-muted);
}

.code-card-body { margin-bottom: 1.25rem; }
.code-title { font-size: 1rem; margin-bottom: 0.5rem; }
.code-title a { color: var(--text-primary); }
.code-title a:hover { color: var(--primary); }
.code-description { 
    font-size: 0.875rem; 
    color: var(--text-secondary); 
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.code-discount { 
    font-size: 1.25rem; 
    font-weight: 700;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.code-card-footer { 
    border-top: 1px solid var(--border-primary); 
    padding-top: 1.25rem;
}
.code-card-footer .btn-referral {
    margin-bottom: 1rem;
    text-align: center;
    display: block;
}
.code-box { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.code-text { 
    flex: 1; 
    padding: 0.75rem 1rem; 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.05em;
}
.btn-copy { 
    position: relative; 
    padding: 0.75rem 1.25rem; 
    background: var(--gradient-primary);
    color: var(--white); 
    border: none; 
    border-radius: var(--radius); 
    cursor: pointer; 
    font-size: 0.8125rem; 
    font-weight: 600;
    transition: all var(--transition);
}
.btn-copy:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}
.btn-copy .copied-text { display: none; }
.btn-copy.copied .copy-text { display: none; }
.btn-copy.copied .copied-text { display: inline; }
.btn-copy.copied { background: var(--success); }

.code-stats { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    font-size: 0.8125rem;
}
.vote-buttons { display: flex; align-items: center; gap: 0.375rem; }
.btn-vote { 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    cursor: pointer; 
    padding: 0.375rem 0.5rem; 
    color: var(--text-muted); 
    transition: all var(--transition);
}
.btn-vote:hover { 
    border-color: var(--border-accent);
    color: var(--text-secondary);
}
.btn-upvote.active, .btn-upvote:hover { 
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}
.btn-downvote.active, .btn-downvote:hover { 
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
}
.vote-score { 
    font-weight: 600; 
    min-width: 2.5rem; 
    text-align: center;
    color: var(--text-primary);
}
.code-expires { color: var(--text-muted); }
.code-expires.expired { color: var(--danger); }

/* Code List Item */
.codes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.code-list-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    padding: 1rem; 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.code-list-item:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}
.code-list-item.expired { opacity: 0.6; }
.code-list-brand { 
    width: 44px; 
    height: 44px; 
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    flex-shrink: 0;
}
.code-list-brand img { width: 100%; height: 100%; object-fit: contain; }
.code-list-content { flex: 1; min-width: 0; }
.code-list-content h4 { margin: 0 0 0.25rem; font-size: 0.9375rem; }
.code-list-content h4 a { color: var(--text-primary); }
.code-list-content h4 a:hover { color: var(--primary); }
.code-list-meta { font-size: 0.8125rem; color: var(--text-muted); }
.code-list-meta .separator { margin: 0 0.5rem; }
.code-list-action { flex-shrink: 0; }

/* Categories Grid - Futuristic */
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card:hover { 
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.category-card:hover::before { opacity: 1; }
.category-icon { 
    font-size: 2.5rem; 
    margin-bottom: 0.75rem;
    filter: grayscale(0);
}
.category-name { 
    font-weight: 600; 
    color: var(--text-primary); 
    margin-bottom: 0.25rem;
}
.category-count { 
    font-size: 0.8125rem; 
    color: var(--text-muted);
}

/* Brands Grid - Futuristic */
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }

.brand-card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}
.brand-card:hover { 
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.brand-card img { 
    width: 64px; 
    height: 64px; 
    object-fit: contain; 
    margin-bottom: 0.75rem;
    filter: brightness(0.9);
}
.brand-card:hover img { filter: brightness(1); }
.brand-initial { 
    width: 64px; 
    height: 64px; 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}
.brand-name { 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: var(--text-primary); 
    margin-bottom: 0.25rem;
}
.brand-count { 
    font-size: 0.75rem; 
    color: var(--text-muted);
}

/* Two Column Layout */
.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 768px) { .two-column { grid-template-columns: 1fr; } }

/* How It Works - Futuristic */
.how-it-works { 
    background: var(--bg-secondary);
    position: relative;
}
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(6, 182, 212, 0.08), transparent);
    pointer-events: none;
}
.how-it-works .container { position: relative; z-index: 1; }
.how-it-works h2 { margin-bottom: 2.5rem; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }
.step { 
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.step:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}
.step-icon { 
    font-size: 3rem; 
    margin-bottom: 1.25rem;
    display: inline-block;
}
.step h3 { 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.step p { 
    color: var(--text-secondary); 
    margin: 0;
    line-height: 1.6;
}

/* Newsletter - Futuristic */
.newsletter-section { 
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: 4rem 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.1), transparent 70%);
    pointer-events: none;
}
.newsletter-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 3rem;
    position: relative;
    z-index: 1;
}
.newsletter-content h3 { 
    color: var(--text-primary); 
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.newsletter-content p { 
    margin: 0; 
    color: var(--text-secondary);
}
.newsletter-form { display: flex; gap: 0.75rem; }
.newsletter-form input { 
    padding: 0.875rem 1.25rem; 
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    min-width: 300px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
@media (max-width: 768px) {
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { min-width: auto; }
}

/* Footer - Futuristic */
.site-footer { 
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 4rem 0 2rem;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 3rem; 
    margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { 
    color: var(--text-primary); 
    font-size: 1rem; 
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.footer-col p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { 
    color: var(--text-muted); 
    font-size: 0.9375rem;
    transition: all var(--transition);
}
.footer-col a:hover { 
    color: var(--primary);
}
.social-links { 
    display: flex; 
    gap: 0.75rem; 
    margin-top: 1.5rem;
}
.social-links a { 
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all var(--transition);
}
.social-links a:hover { 
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.footer-bottom { 
    border-top: 1px solid var(--border-primary); 
    padding-top: 2rem; 
    text-align: center; 
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-bottom p { margin: 0.25rem 0; }

/* Auth Pages - Futuristic */
.auth-page { max-width: 460px; margin: 4rem auto; padding: 0 1.5rem; }
.auth-card { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}
.auth-card h1 { 
    text-align: center; 
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.auth-subtitle { 
    text-align: center; 
    color: var(--text-muted); 
    margin-bottom: 2rem;
}
.auth-form { margin-bottom: 1.5rem; }
.forgot-link { 
    font-size: 0.875rem;
    color: var(--primary);
}
.auth-footer { 
    text-align: center; 
    font-size: 0.9375rem; 
    color: var(--text-muted);
}
.auth-footer a { color: var(--primary); }

/* Dashboard - Futuristic */
.dashboard-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 2rem; 
    padding: 2rem 0;
}
@media (max-width: 1024px) { .dashboard-layout { grid-template-columns: 1fr; } }

.dashboard-sidebar { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 90px;
    backdrop-filter: blur(10px);
}
@media (max-width: 1024px) { .dashboard-sidebar { position: static; } }

.user-card { 
    text-align: center; 
    padding-bottom: 1.5rem; 
    border-bottom: 1px solid var(--border-primary); 
    margin-bottom: 1.5rem;
}
.user-avatar-large { 
    width: 88px; 
    height: 88px; 
    border-radius: 50%; 
    background: var(--gradient-primary);
    color: var(--white); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2rem; 
    font-weight: 700; 
    margin: 0 auto 1rem; 
    overflow: hidden;
    border: 3px solid var(--bg-tertiary);
    box-shadow: var(--shadow-glow);
}
.user-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.user-card h2 { 
    font-size: 1.25rem; 
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.user-role { 
    font-size: 0.8125rem; 
    color: var(--text-muted); 
    text-transform: capitalize;
}

.dashboard-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.dashboard-nav a { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.75rem 1rem; 
    color: var(--text-secondary); 
    border-radius: var(--radius); 
    font-size: 0.9375rem;
    transition: all var(--transition);
}
.dashboard-nav a:hover { 
    background: var(--bg-glass-hover); 
    color: var(--text-primary);
}
.dashboard-nav a.active { 
    background: var(--gradient-primary); 
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.nav-divider { 
    height: 1px; 
    background: var(--border-primary); 
    margin: 0.75rem 0;
}

.dashboard-main h1 { 
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}
.stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}
.stat-card .stat-icon { 
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}
.stat-card .stat-value { 
    display: block; 
    font-size: 1.75rem; 
    font-weight: 700; 
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card .stat-label { 
    font-size: 0.8125rem; 
    color: var(--text-muted);
}

.quick-actions { margin-bottom: 2rem; }
.quick-actions h2 { 
    font-size: 1.125rem; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.action-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.recent-section h2 { 
    font-size: 1.125rem; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.dashboard-table-wrapper { 
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}
.dashboard-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.dashboard-table th, .dashboard-table td { 
    padding: 1rem 1.25rem; 
    text-align: left; 
    border-bottom: 1px solid var(--border-primary);
}
.dashboard-table th { 
    font-weight: 600; 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    background: var(--bg-tertiary);
}
.dashboard-table td { color: var(--text-secondary); }
.dashboard-table tr:hover td { background: var(--bg-glass-hover); }
.dashboard-table a { color: var(--text-primary); }
.dashboard-table a:hover { color: var(--primary); }

.code-cell { display: flex; flex-direction: column; gap: 0.25rem; }
.code-snippet { 
    font-family: var(--font-mono); 
    font-size: 0.8125rem; 
    color: var(--primary-light); 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    padding: 0.25rem 0.5rem; 
    border-radius: 4px;
}

.action-buttons-small { display: flex; gap: 0.5rem; }
.btn-icon { 
    width: 34px; 
    height: 34px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius); 
    cursor: pointer; 
    color: var(--text-muted); 
    transition: all var(--transition);
}
.btn-icon:hover { 
    background: var(--bg-glass-hover); 
    border-color: var(--border-accent);
    color: var(--primary);
}
.btn-icon.btn-danger:hover { 
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

.inline-form { display: inline; }
.delete-form { display: inline; }

.empty-state { 
    text-align: center; 
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}
.empty-icon { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.5; }
.empty-state h2 { 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.empty-state p { 
    color: var(--text-muted); 
    margin-bottom: 2rem;
}

/* Filter Tabs - Futuristic */
.filter-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-tabs a { 
    padding: 0.625rem 1.25rem; 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-muted); 
    border-radius: var(--radius); 
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.filter-tabs a:hover { 
    background: var(--bg-glass-hover); 
    border-color: var(--border-accent);
    color: var(--text-primary);
}
.filter-tabs a.active { 
    background: var(--gradient-primary); 
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.filter-tabs .badge { 
    margin-left: 0.5rem; 
    background: rgba(255,255,255,0.2); 
    padding: 0.125rem 0.5rem; 
    border-radius: 9999px;
    font-size: 0.75rem;
}

.page-header-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 2rem; 
    flex-wrap: wrap; 
    gap: 1rem;
}
.page-header-row h1 { color: var(--text-primary); }

/* Settings - Futuristic */
.settings-section { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.settings-section h2 { 
    font-size: 1.125rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 1rem; 
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}
.settings-form { max-width: 600px; }

.avatar-upload { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.current-avatar { 
    width: 88px; 
    height: 88px; 
    border-radius: 50%; 
    overflow: hidden; 
    background: var(--bg-tertiary);
    border: 3px solid var(--border-secondary);
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.current-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { 
    font-size: 2rem; 
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.avatar-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.avatar-actions small { color: var(--gray-500); font-size: 0.8125rem; }

.info-grid { display: grid; gap: 1rem; }
.info-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 0.75rem 0; 
    border-bottom: 1px solid var(--border-primary);
}
.info-label { color: var(--text-muted); }
.info-value { 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    color: var(--text-primary);
}
.upgrade-link { font-size: 0.8125rem; color: var(--primary); }

/* Code Detail Page - Futuristic */
.code-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 2rem 0; }
@media (max-width: 1024px) { .code-detail-layout { grid-template-columns: 1fr; } }

.breadcrumb { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 0.875rem; 
    color: var(--text-muted); 
    padding: 1rem 0; 
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-muted); opacity: 0.5; }
.breadcrumb .current { color: var(--text-secondary); }

.code-detail { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.code-detail.expired { opacity: 0.7; }

.code-detail-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 1.5rem; 
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}
.code-brand-info { display: flex; align-items: center; gap: 1rem; }
.brand-logo { 
    width: 68px; 
    height: 68px; 
    border-radius: var(--radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.375rem; }
.brand-initial-large { 
    font-size: 1.5rem; 
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.code-brand-info .brand-name { 
    font-weight: 600; 
    color: var(--text-primary); 
    display: block; 
    margin-bottom: 0.25rem;
}
.code-type-badge { 
    font-size: 0.75rem; 
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    color: var(--text-muted);
    border-radius: var(--radius);
}
.code-badges { display: flex; gap: 0.5rem; }

.code-detail-body { padding: 2rem; }
.code-detail-body h1 { 
    font-size: 1.75rem; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.discount-highlight { 
    font-size: 1.75rem; 
    font-weight: 700;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.code-description { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    line-height: 1.7;
}

.use-referral-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
}

/* Report Code Section */
.report-code-section {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-report {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-report:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.btn-report svg {
    opacity: 0.7;
}

.btn-report:hover svg {
    opacity: 1;
}
.code-box-large { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.code-display { 
    flex: 1; 
    padding: 1.25rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    display: flex; 
    align-items: center;
}
.code-display code { 
    font-family: var(--font-mono); 
    font-size: 1.375rem; 
    font-weight: 600; 
    color: var(--primary-light);
    letter-spacing: 0.05em;
}
.btn-copy-large { padding: 1.25rem 2rem; font-size: 1rem; }

.use-code-btn { margin-bottom: 1.5rem; }

.code-instructions { 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.code-instructions h3 { 
    font-size: 1rem; 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.instructions-content { color: var(--text-secondary); font-size: 0.9375rem; }

.code-detail-footer { 
    padding: 1.5rem 2rem; 
    border-top: 1px solid var(--border-primary);
}
.code-meta-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 1rem; 
    flex-wrap: wrap; 
    gap: 1rem;
}
.code-stats-detail { 
    display: flex; 
    gap: 1.5rem; 
    color: var(--text-muted); 
    font-size: 0.9375rem;
}
.code-stats-detail span { display: flex; align-items: center; gap: 0.375rem; }

.vote-buttons-large { display: flex; align-items: center; gap: 0.5rem; }
.vote-buttons-large .btn-vote { 
    display: flex; 
    align-items: center; 
    gap: 0.375rem; 
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all var(--transition);
}
.vote-buttons-large .btn-vote:hover { 
    border-color: var(--border-accent);
    color: var(--text-secondary);
}
.vote-buttons-large .btn-upvote.active { 
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--success-light);
}
.vote-buttons-large .btn-downvote.active { 
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger-light);
}
.vote-buttons-large .vote-score { 
    font-size: 1.125rem; 
    font-weight: 600; 
    min-width: 3rem; 
    text-align: center;
    color: var(--text-primary);
}

.code-submitter { font-size: 0.9375rem; color: var(--text-muted); }
.code-submitter a { color: var(--text-secondary); font-weight: 500; }
.code-submitter a:hover { color: var(--primary); }
.code-expiry { font-size: 0.9375rem; color: var(--text-muted); }
.code-expiry.expired { color: var(--danger); }

.social-share { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding-top: 1rem; 
    border-top: 1px solid var(--border-primary); 
    margin-top: 1rem;
}
.social-share span { font-size: 0.875rem; color: var(--text-muted); }
.share-btn { 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.share-btn:hover { 
    border-color: var(--border-accent);
    color: var(--text-secondary);
}
.share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: var(--white); }
.share-btn.twitter:hover { background: #1da1f2; border-color: #1da1f2; color: var(--white); }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; color: var(--white); }

.code-actions { margin-top: 1rem; }
.report-code { 
    display: flex; 
    align-items: center; 
    gap: 0.375rem; 
    font-size: 0.875rem; 
    color: var(--text-muted);
}
.report-code:hover { color: var(--danger); }

/* Sidebar - Futuristic */
.code-detail-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.sidebar-widget h3 { 
    font-size: 1rem; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.codes-list-small { display: flex; flex-direction: column; gap: 0.5rem; }
.code-list-item-small { 
    display: block; 
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.code-list-item-small:hover { 
    border-color: var(--border-accent);
    color: var(--text-primary);
}
.view-all-link { display: block; margin-top: 1rem; font-size: 0.875rem; color: var(--primary); }

/* Related Codes */
.related-codes { margin-top: 2rem; }
.related-codes h2 { 
    font-size: 1.25rem; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Modal - Futuristic */
.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}
.modal-content { 
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s;
}
.modal.active .modal-content { transform: translateY(0) scale(1); }
.modal-lg { max-width: 680px; }
.modal-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
}
.modal-header h3 { 
    margin: 0;
    color: var(--text-primary);
}
.modal-close { 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.modal-close:hover { 
    border-color: var(--border-accent);
    color: var(--text-primary);
}
.modal-content form { padding: 1.5rem; }
.modal-footer { 
    display: flex; 
    justify-content: flex-end; 
    gap: 0.75rem; 
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-label { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    cursor: pointer; 
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.radio-label:hover { background: var(--bg-glass-hover); }
.radio-label input { accent-color: var(--primary); }

/* Pagination - Futuristic */
.pagination-nav { display: flex; justify-content: center; margin-top: 3rem; }
.pagination { display: flex; gap: 0.375rem; list-style: none; padding: 0; margin: 0; }
.page-item { display: inline-block; }
.page-link { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 40px; 
    height: 40px; 
    padding: 0 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.page-link:hover { 
    border-color: var(--border-accent);
    color: var(--text-primary);
}
.page-item.active .page-link { 
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.page-item.disabled .page-link { opacity: 0.4; cursor: not-allowed; }

/* Search Page - Futuristic */
.search-page { padding: 2rem 0; }
.search-header { margin-bottom: 2rem; }
.search-header h1 { 
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.search-form-large { display: flex; gap: 0.75rem; max-width: 640px; }
.search-form-large input { flex: 1; padding: 1rem 1.25rem; font-size: 1rem; }
.search-meta { margin-bottom: 1.5rem; color: var(--text-muted); }

.no-results { 
    text-align: center; 
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}
.no-results-icon { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.5; }
.no-results h2 { 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.no-results p { color: var(--text-muted); margin-bottom: 2rem; }
.no-results-suggestions { text-align: left; max-width: 400px; margin: 0 auto; }
.no-results-suggestions h3 { 
    font-size: 1rem; 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.no-results-suggestions ul { color: var(--text-secondary); }

.search-suggestions { padding: 2rem 0; }
.search-suggestions h2 { 
    font-size: 1.125rem; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.popular-brands, .category-tags { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2rem; }
.popular-brand-tag, .category-tag { 
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.popular-brand-tag:hover, .category-tag:hover { 
    border-color: var(--primary);
    color: var(--primary);
}

/* Category/Brand Pages - Futuristic */
.category-header, .brand-header { margin-bottom: 2rem; }
.category-header h1, .brand-header h1 { 
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.category-description { color: var(--text-secondary); margin-bottom: 0.5rem; }
.brand-description { 
    color: var(--text-secondary); 
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.brand-description p { margin-bottom: 0.75rem; }
.brand-description p:last-child { margin-bottom: 0; }
.brand-description h2, .brand-description h3, .brand-description h4 { 
    color: var(--text-primary); 
    margin: 1rem 0 0.5rem; 
}
.brand-description h2:first-child, .brand-description h3:first-child, .brand-description h4:first-child { margin-top: 0; }
.brand-description ul, .brand-description ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.brand-description li { margin-bottom: 0.25rem; }
.brand-description a { color: var(--primary); }
.brand-description a:hover { text-decoration: underline; }
.results-count { color: var(--text-muted); font-size: 0.9375rem; }

.brand-info { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.brand-logo-large { 
    width: 88px; 
    height: 88px; 
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
}
.brand-logo-large img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.brand-initial-large { 
    font-size: 2rem; 
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-details h1 { margin-bottom: 0.5rem; }
.brand-website { font-size: 0.9375rem; color: var(--primary); }

.filter-bar { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 1.5rem; 
    flex-wrap: wrap; 
    gap: 1rem;
}
.filter-sort { display: flex; align-items: center; gap: 0.75rem; }
.filter-sort label { font-size: 0.875rem; color: var(--text-muted); }
.filter-sort select { 
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* All Categories Page - Futuristic */
.page-header { 
    text-align: center; 
    margin-bottom: 3rem; 
    padding: 3rem 0;
}
.page-header h1 { 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.page-header p { color: var(--text-muted); margin: 0; }

.categories-grid-large { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .categories-grid-large { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .categories-grid-large { grid-template-columns: 1fr; } }

.category-card-large { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.category-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card-large:hover { 
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.category-card-large:hover::before { opacity: 1; }
.category-icon-large { font-size: 3rem; margin-bottom: 1rem; }
.category-card-large h2 { 
    font-size: 1.25rem; 
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.category-card-large p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.category-count-badge { 
    display: inline-block; 
    padding: 0.375rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* All Brands Page - Futuristic */
.alphabet-nav { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
    justify-content: center; 
    margin-bottom: 2rem; 
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}
.alphabet-nav a { 
    width: 38px; 
    height: 38px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
}
.alphabet-nav a:hover { 
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.brands-alphabetical { margin-top: 1rem; }
.brand-group { margin-bottom: 2.5rem; }
.brand-letter { 
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.brands-grid-small { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
@media (max-width: 768px) { .brands-grid-small { grid-template-columns: repeat(2, 1fr); } }
.brand-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.brand-item:hover { 
    border-color: var(--border-accent);
}
.brand-item .brand-name { color: var(--text-primary); }
.brand-item .brand-count { 
    font-size: 0.8125rem; 
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

/* Submit Page - Futuristic */
.submit-page { max-width: 740px; margin: 3rem auto; padding: 0 1.5rem; }
.submit-header { text-align: center; margin-bottom: 2.5rem; }
.submit-header h1 { 
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.submit-header p { color: var(--text-muted); }
.submit-form { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}
.form-section { 
    margin-bottom: 2.5rem; 
    padding-bottom: 2.5rem; 
    border-bottom: 1px solid var(--border-primary);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h2 { 
    font-size: 1.125rem; 
    margin-bottom: 1.5rem; 
    color: var(--text-primary);
}
.form-actions { text-align: center; padding-top: 1.5rem; }
.form-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--text-muted); }

/* Error Page - Futuristic */
.error-page { 
    text-align: center; 
    padding: 5rem 1.5rem;
}
.error-page h1 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* Ad Containers */
.ad-container { padding: 1rem 0; text-align: center; }
.ad-header { background: var(--gray-100); }
.ad-sidebar { margin-bottom: 1.5rem; }

/* Flash Messages Container */
.flash-messages { padding: 0.5rem 0; }

/* Toast Notifications */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 280px; max-width: 400px; animation: slideIn 0.3s ease; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--primary); }
.toast-message { flex: 1; font-size: 0.9375rem; color: var(--gray-800); }
.toast-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--gray-400); padding: 0; line-height: 1; }
.toast-close:hover { color: var(--gray-600); }
.toast-fade-out { animation: fadeOut 0.3s ease forwards; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Search Suggestions Dropdown */
.search-suggestions-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 0.25rem; max-height: 400px; overflow-y: auto; opacity: 0; visibility: hidden; transition: all var(--transition); z-index: 100; }
.search-suggestions-dropdown.active { opacity: 1; visibility: visible; }
.suggestion-group { padding: 0.5rem 0; }
.suggestion-group:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.suggestion-group-title { padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.suggestion-item { display: flex; flex-direction: column; padding: 0.5rem 1rem; color: var(--gray-700); }
.suggestion-item:hover { background: var(--gray-50); }
.suggestion-title { font-weight: 500; }
.suggestion-meta { font-size: 0.8125rem; color: var(--gray-500); }
.no-suggestions { padding: 1rem; text-align: center; color: var(--gray-500); font-size: 0.875rem; }

/* Form Field Errors */
input.error, textarea.error, select.error { border-color: var(--danger); }
.field-error { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--danger); }

/* Confirm Modal */
.confirm-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.2s; }
.confirm-modal.active { opacity: 1; visibility: visible; }
.confirm-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.confirm-content { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 400px; width: 90%; text-align: center; }
.confirm-content p { margin-bottom: 1.5rem; font-size: 1rem; color: var(--gray-700); }
.confirm-buttons { display: flex; justify-content: center; gap: 0.75rem; }

/* Admin Notifications */
.admin-notification { position: fixed; top: 1rem; right: 1rem; z-index: 9999; padding: 0.875rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; transform: translateX(120%); transition: transform 0.3s ease; }
.admin-notification.show { transform: translateX(0); }
.notification-success { border-left: 4px solid var(--success); }
.notification-error { border-left: 4px solid var(--danger); }
.notification-warning { border-left: 4px solid var(--warning); }
.notification-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--gray-400); }

/* Admin Panel Styles - Futuristic */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 1024px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-sidebar { 
    background: var(--bg-primary);
    border-right: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
@media (max-width: 1024px) { 
    .admin-sidebar { position: fixed; left: -260px; width: 260px; z-index: 1000; transition: left 0.3s; } 
    .admin-sidebar.open { left: 0; } 
}

.admin-logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid var(--border-primary); margin-bottom: 1rem; }
.admin-logo a { color: var(--text-primary); font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

.admin-nav { padding: 0 0.75rem; }
.admin-nav a { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.75rem 1rem; 
    color: var(--text-muted); 
    border-radius: var(--radius); 
    margin-bottom: 0.25rem; 
    font-size: 0.9375rem; 
    transition: all var(--transition);
}
.admin-nav a:hover { background: var(--bg-glass-hover); color: var(--text-primary); }
.admin-nav a.active { background: var(--gradient-primary); color: var(--white); }
.admin-nav-divider { height: 1px; background: var(--border-primary); margin: 1rem 0.75rem; }
.admin-nav-label { padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.admin-main { background: var(--bg-secondary); min-height: 100vh; }
.admin-header { 
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.sidebar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (max-width: 1024px) { .sidebar-toggle { display: block; } }
.sidebar-toggle span { display: block; width: 20px; height: 2px; background: var(--text-muted); margin: 4px 0; }

.admin-content { padding: 2rem; }
.admin-content h1 { color: var(--text-primary); }
.admin-page-header { margin-bottom: 1.5rem; }
.admin-page-header h1 { font-size: 1.5rem; margin-bottom: 0.25rem; color: var(--text-primary); }
.admin-page-header p { color: var(--text-muted); margin: 0; }

.admin-card { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}
.admin-card-header { 
    padding: 1rem 1.5rem; 
    border-bottom: 1px solid var(--border-primary); 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}
.admin-card-header h2 { font-size: 1rem; margin: 0; color: var(--text-primary); }
.admin-card-body { padding: 1.5rem; }
.admin-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-primary); background: var(--bg-tertiary); }

.admin-table-wrapper { 
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { 
    padding: 1rem 1.25rem; 
    text-align: left; 
    border-bottom: 1px solid var(--border-primary);
}
.admin-table th { 
    font-weight: 600; 
    color: var(--text-muted); 
    font-size: 0.8125rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    background: var(--bg-tertiary);
}
.admin-table td { font-size: 0.9375rem; color: var(--text-secondary); }
.admin-table tr:hover td { background: var(--bg-glass-hover); }
.admin-table .actions { white-space: nowrap; }
.admin-table a { color: var(--primary); }
.admin-table code { 
    background: var(--bg-tertiary); 
    padding: 0.25rem 0.5rem; 
    border-radius: var(--radius); 
    font-size: 0.8125rem;
    color: var(--primary-light);
}

/* Admin Filters */
.admin-filters { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1rem; 
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.admin-filters .search-form { 
    display: flex; 
    gap: 0.5rem;
}
.admin-filters .search-form input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    min-width: 200px;
}

/* Admin Action Dropdown */
.action-dropdown { position: relative; display: inline-block; }
.action-dropdown .dropdown-toggle { 
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
}
.action-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
}
.action-dropdown:hover .dropdown-menu,
.action-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}
.action-dropdown .dropdown-menu a,
.action-dropdown .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    text-align: left;
    color: var(--text-secondary);
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition);
}
.action-dropdown .dropdown-menu a:hover,
.action-dropdown .dropdown-menu button:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}
.action-dropdown .dropdown-menu .text-success { color: var(--success) !important; }
.action-dropdown .dropdown-menu .text-danger { color: var(--danger) !important; }
.action-dropdown .dropdown-divider { 
    height: 1px; 
    background: var(--border-primary); 
    margin: 0.5rem 0;
}
.action-dropdown .dropdown-form { margin: 0; }

/* Admin Stats Mini */
.stats-mini { 
    display: flex; 
    gap: 0.75rem; 
    font-size: 0.8125rem; 
    color: var(--text-muted);
}
.stats-mini span { white-space: nowrap; }

/* Editor Toolbar - Futuristic */
.editor-toolbar { 
    display: flex; 
    gap: 0.25rem; 
    padding: 0.5rem; 
    background: var(--bg-tertiary); 
    border: 1px solid var(--border-secondary); 
    border-bottom: none; 
    border-radius: var(--radius) var(--radius) 0 0;
}
.editor-toolbar button { 
    width: 32px; 
    height: 32px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-secondary); 
    border-radius: var(--radius); 
    cursor: pointer;
    color: var(--text-muted);
}
.editor-toolbar button:hover { background: var(--bg-glass-hover); color: var(--text-primary); }
.editor-content { 
    min-height: 150px; 
    padding: 0.75rem; 
    border: 1px solid var(--border-secondary); 
    border-radius: 0 0 var(--radius) var(--radius); 
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.editor-content:focus { outline: none; border-color: var(--primary); }

/* Settings Tabs - Futuristic */
.settings-tabs { 
    display: flex; 
    gap: 0.25rem; 
    margin-bottom: 1.5rem; 
    border-bottom: 1px solid var(--border-primary);
}
.settings-tab { 
    padding: 0.75rem 1.25rem; 
    color: var(--text-muted); 
    font-size: 0.9375rem; 
    border-bottom: 2px solid transparent; 
    margin-bottom: -1px; 
    cursor: pointer;
    transition: all var(--transition);
}
.settings-tab:hover { color: var(--text-primary); }
.settings-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* Expiring Soon Indicator */
.expiring-soon { color: var(--warning); font-weight: 500; }

/* Legal Pages - Futuristic */
.legal-page { padding: 2rem 0 4rem; }
.legal-content { 
    max-width: 800px; 
    margin: 0 auto; 
    background: var(--bg-card); 
    border: 1px solid var(--border-primary); 
    border-radius: var(--radius-lg); 
    padding: 2.5rem;
}
.legal-content h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.legal-content .last-updated { 
    color: var(--text-muted); 
    font-size: 0.9375rem; 
    margin-bottom: 2rem; 
    padding-bottom: 1rem; 
    border-bottom: 1px solid var(--border-primary);
}
.legal-content section { margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.25rem; color: var(--text-primary); margin-bottom: 1rem; padding-top: 1rem; }
.legal-content h3 { font-size: 1rem; color: var(--text-secondary); margin: 1rem 0 0.5rem; }
.legal-content p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }

/* Trademark Disclaimer Banner - Futuristic */
.trademark-disclaimer { 
    background: var(--bg-tertiary); 
    border: 1px solid var(--border-primary); 
    border-radius: var(--radius); 
    padding: 1rem; 
    margin-bottom: 1.5rem; 
    font-size: 0.8125rem; 
    color: var(--text-muted);
}
.trademark-disclaimer a { color: var(--primary); }
.trademark-notice { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Current Logo Display - Futuristic */
.current-logo { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-top: 0.75rem; 
    padding: 0.75rem; 
    background: var(--bg-tertiary); 
    border-radius: var(--radius);
}
.current-logo img { 
    width: 60px; 
    height: 60px; 
    object-fit: contain; 
    border-radius: var(--radius); 
    background: var(--bg-secondary); 
    padding: 0.25rem; 
    border: 1px solid var(--border-secondary);
}

/* Admin Brand Table - Futuristic */
.brand-cell { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo-small { 
    width: 32px; 
    height: 32px; 
    object-fit: contain; 
    border-radius: var(--radius); 
    background: var(--bg-tertiary);
}
.brand-initial-small { 
    width: 32px; 
    height: 32px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-tertiary); 
    border-radius: var(--radius); 
    font-weight: 600; 
    color: var(--text-muted); 
    font-size: 0.875rem;
}
.btn-toggle { background: none; border: none; cursor: pointer; font-size: 1.25rem; padding: 0.25rem; color: var(--text-muted); }
.btn-toggle.active { color: #f59e0b; }

/* SEO Content Section - Futuristic */
.seo-content { background: var(--bg-tertiary); padding: 3rem 0; }
.seo-text { max-width: 900px; margin: 0 auto; }
.seo-text h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.seo-text h3 { font-size: 1.125rem; margin: 1.5rem 0 0.75rem; color: var(--text-secondary); }
.seo-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }

/* Social Login */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}
.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}
.social-login-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}
.btn-google:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}
.btn-google svg {
    flex-shrink: 0;
}

/* Brand Actions */
.brand-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Magic Link Option */
.magic-link-option {
    text-align: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}
.magic-link-option a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.magic-link-option a:hover {
    text-decoration: underline;
}
