/* Gamma Toner Technology - Ultra Modern Cyberpunk UI */
/* Color Scheme: Neon Red (#FF0000) and Deep Black (#000000) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #FF0000;
    --neon-red: #FF1A1A;
    --blood-red: #8B0000;
    --primary-black: #000000;
    --deep-black: #0a0a0a;
    --void-black: #050505;
    --white: #FFFFFF;
    --off-white: #f0f0f0;
    --gray-light: #1a1a1a;
    --gray-medium: #2d2d2d;
    --gray-dark: #404040;
    --success: #00ff88;
    --error: #ff0044;
    --warning: #ffaa00;
    --info: #00ccff;
    
    /* Effects */
    --glow-red: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.3), 0 0 60px rgba(255, 0, 0, 0.1);
    --glow-red-strong: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.5), 0 0 90px rgba(255, 0, 0, 0.3);
    --shadow-neon: 0 0 5px rgba(255, 0, 0, 0.5), 0 0 10px rgba(255, 0, 0, 0.3);
    --shadow-elevated: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    background: var(--void-black);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--void-black) 0%, var(--deep-black) 50%, #1a0000 100%);
    color: var(--off-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 0, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Header - Cyberpunk Glass */
.header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), var(--glow-red);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-radius: var(--radius-xl);
    padding: 10px 20px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    border: 2px solid var(--primary-red);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.logo img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.logo img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--glow-red-strong);
}

.logo img:hover::after {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.logo-text {
    color: var(--primary-red);
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #fff 0%, var(--primary-red) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* Navigation - Neon Links */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-neon);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px var(--primary-red);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.nav-menu a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu a:hover::after {
    opacity: 1;
    top: -8px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--primary-red);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    transition: var(--transition-bounce);
    cursor: pointer;
    position: relative;
}

.user-avatar::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-red);
    border-right-color: var(--primary-red);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.user-avatar:hover {
    transform: scale(1.15);
    box-shadow: var(--glow-red);
}

.user-name {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Hero Section - Cyberpunk Hero */
.hero-section {
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,0,0,0.8) 50%, rgba(40,0,0,0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff0000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--white);
    padding: 140px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.03) 2px,
            rgba(255, 0, 0, 0.03) 4px
        );
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translate(-50%, -60%); }
    100% { transform: translate(-50%, -40%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6),
        0 0 40px rgba(255, 0, 0, 0.4),
        0 0 80px rgba(255, 0, 0, 0.2);
    animation: titleFlicker 4s infinite;
}
@keyframes titleFlicker {
    0%, 100% { opacity: 1; }
    5% { opacity: 0.8; }
    10% { opacity: 1; }
    15% { opacity: 0.9; }
    20% { opacity: 1; }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 48px;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Card Styles - Glassmorphism Cards */
.card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        var(--glow-red);
}

.card:hover::before {
    opacity: 1;
    animation: borderFlow 2s linear infinite;
}

@keyframes borderFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.card-header {
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    padding-bottom: 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.75rem;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Form Styles - Cyber Inputs */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 0, 0, 0.2);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 
        0 0 0 4px rgba(255, 0, 0, 0.1),
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(255, 0, 68, 0.1), 0 0 20px rgba(255, 0, 68, 0.2);
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Button Styles - Cyberpunk Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--blood-red) 100%);
    color: var(--white);
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.4),
        0 0 30px rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(255, 0, 0, 0.6),
        var(--glow-red);
    background: linear-gradient(135deg, #ff1a1a 0%, #a00000 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: var(--white);
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--glow-red);
}

.btn-block {
    width: 100%;
}

/* Alert Styles - Neon Alerts */
.alert {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.alert-success::before {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.alert-error {
    background: rgba(255, 0, 68, 0.1);
    color: var(--error);
    border-color: rgba(255, 0, 68, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.1);
}

.alert-error::before {
    background: var(--error);
    box-shadow: 0 0 10px var(--error);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning);
    border-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.1);
}

.alert-warning::before {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
}

/* Auth Section - Cyberpunk Login */
.auth-section {
    display: flex;
    min-height: calc(100vh - 80px);
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at center, rgba(40,0,0,0.5) 0%, rgba(0,0,0,0.9) 70%),
        linear-gradient(135deg, var(--void-black) 0%, var(--deep-black) 100%);
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 0, 0, 0.02) 10px,
            rgba(255, 0, 0, 0.02) 20px
        );
    animation: diagonalMove 20s linear infinite;
}

@keyframes diagonalMove {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(0, 0); }
}
/* Auth Container Update */
.auth-container {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Left Info Panel */
.auth-info {
    background: rgba(10, 10, 10, 0.6);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.auth-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.auth-info-content {
    position: relative;
    z-index: 1;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.auth-logo-icon {
    font-size: 3.5rem;
    color: var(--primary-red);
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-logo-text {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.auth-logo-text span {
    color: var(--primary-red);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.auth-info-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.auth-info-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Features List */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-size: 1.1rem;
}

.auth-feature i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-red);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Toggle Buttons */
.auth-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.auth-toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-toggle-btn.active {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.auth-toggle-btn i {
    font-size: 1rem;
}

/* Form Visibility */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary-red);
}

.forgot-password {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ff3333;
    text-decoration: underline;
}

/* Form Hint */
.form-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.form-hint i {
    color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-info {
        order: -1;
    }
}
/* Dashboard Grid - Cyber Sidebar */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}

.sidebar {
    background: rgba(5, 5, 5, 0.95);
    padding: 32px 0;
    color: var(--white);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-menu {
    list-style: none;
    padding: 0 16px;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--primary-red);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-red);
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateX(8px);
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
    transform: scaleY(1);
}

.sidebar-menu a.active {
    background: rgba(255, 0, 0, 0.15);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-menu i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.dashboard-content {
    padding: 40px;
    background: transparent;
    overflow-y: auto;
}

/* Menu Grid - Holographic Cards */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.menu-item {
    background: rgba(20, 20, 20, 0.6);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 0, 0, 0.1), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(10, 10, 10, 0.9);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: 1;
}

.menu-item > * {
    position: relative;
    z-index: 2;
}

.menu-item:hover {
    border-color: rgba(255, 0, 0, 0.6);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        var(--glow-red);
}

.menu-item i {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
    transition: var(--transition);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.menu-item:hover i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: var(--glow-red);
}

.menu-item h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}
/*APPLACTION FORM*/
.application-section {
    max-width: 700px;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.application-section:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.service-item {
    background: #1a1a1a;
    border: 1px solid #330000;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.2);
}

.service-item.selected {
    background: linear-gradient(135deg, #330000 0%, #1a0000 100%);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.service-name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-subs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-sub {
    background: #242424;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 8px;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-sub:hover {
    background: #2a2a2a;
    border-color: #ff6666;
}

.service-sub.selected {
    background: #660000;
    border-color: #ff0000;
    color: #fff;
}

.blinking-text {
    text-align: center;
    color: #ff6666;
    font-size: 1.2rem;
    margin: 20px 0;
    animation: blink 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@keyframes blink {
    0% { opacity: 1; text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
    50% { opacity: 0.6; text-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
    100% { opacity: 1; text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #660000, #ff0000);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-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 ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
    background: linear-gradient(45deg, #800000, #ff3333);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.notification.success {
    background: linear-gradient(45deg, #006600, #00ff00);
    border-left: 5px solid #00ff00;
}

.notification.error {
    background: linear-gradient(45deg, #660000, #ff0000);
    border-left: 5px solid #ff0000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .application-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blinking-text {
        font-size: 1rem;
    }
}
/* Order Form */
.order-form {
    max-width: 900px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.courier-select {
    display: none;
    animation: fadeIn 0.4s ease;
}

.courier-select.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Orders List - Cyber List */
.orders-list {
    margin-top: 28px;
}

.order-item {
    background: rgba(20, 20, 20, 0.6);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-left: 4px solid var(--primary-red);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.order-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.order-item:hover {
    transform: translateX(12px);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        var(--glow-red);
}

.order-item:hover::before {
    opacity: 1;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.order-number {
    font-weight: 800;
    color: var(--white);
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.order-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    box-shadow: 0 0 10px transparent;
    transition: var(--transition);
}

.status-new { 
    background: rgba(30, 64, 175, 0.2); 
    color: #60a5fa; 
    border-color: rgba(96, 165, 250, 0.3);
}

.status-processing { 
    background: rgba(146, 64, 14, 0.2); 
    color: #fbbf24; 
    border-color: rgba(251, 191, 36, 0.3);
}

.status-completed { 
    background: rgba(6, 95, 70, 0.2); 
    color: #34d399; 
    border-color: rgba(52, 211, 153, 0.3);
}

.status-cancelled { 
    background: rgba(153, 27, 27, 0.2); 
    color: #f87171; 
    border-color: rgba(248, 113, 113, 0.3);
}

.order-details {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pagination - Cyber Buttons */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 14px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: var(--transition);
    font-weight: 700;
    min-width: 48px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.pagination a:hover {
    background: rgba(255, 0, 0, 0.2);
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--glow-red);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--blood-red) 100%);
    color: var(--white);
    border-color: var(--primary-red);
    box-shadow: var(--glow-red);
    transform: scale(1.1);
}

/* Chat Styles - Cyber Messenger */
.chat-container {
    height: 650px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.8);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        var(--glow-red);
    backdrop-filter: blur(20px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    background: 
        linear-gradient(180deg, rgba(5,5,5,0.9) 0%, rgba(10,10,10,0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff0000' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-message {
    display: flex;
    margin-bottom: 0;
    animation: messageSlide 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 85%;
    position: relative;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(30px) scale(0.8) rotate(-5deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.chat-message.own {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    transition: var(--transition);
}

.message-avatar:hover {
    transform: scale(1.2);
    border-color: var(--primary-red);
    box-shadow: var(--glow-red);
}

.message-content {
    max-width: 100%;
    padding: 18px 24px;
    border-radius: 24px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.chat-message:not(.own) .message-content {
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.chat-message.own .message-content {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9) 0%, rgba(139, 0, 0, 0.9) 100%);
    color: var(--white);
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    display: block;
    font-weight: 600;
}

.chat-message.own .message-time {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.message-image {
    max-width: 280px;
    border-radius: 16px;
    margin-top: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.message-image:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: var(--glow-red);
}

.chat-input {
    display: flex;
    padding: 24px;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    gap: 16px;
    align-items: center;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255, 0, 0, 0.2);
    border-radius: 30px;
    outline: none;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.chat-input input[type="text"]:focus {
    border-color: var(--primary-red);
    box-shadow: 
        0 0 0 4px rgba(255, 0, 0, 0.1),
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chat-input button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--blood-red) 100%);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    font-size: 1.25rem;
}

.chat-input button:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--glow-red-strong);
}

.file-upload-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 0, 0.3);
    background: rgba(20, 20, 20, 0.8);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.25rem;
}

.file-upload-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

/* Branches - Cyber Cards */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.branch-card {
    background: rgba(20, 20, 20, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.6s;
}

.branch-card:hover::before {
    left: 100%;
}

.branch-card:hover {
    border-color: rgba(255, 0, 0, 0.5);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        var(--glow-red);
}

.branch-card h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.branch-info {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.branch-info i {
    color: var(--primary-red);
    margin-top: 4px;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Contacts - Cyber Layout */
.contacts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-info {
    background: rgba(20, 20, 20, 0.6);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(255, 0, 0, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--primary-red);
}

.contact-item:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateX(12px);
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item i {
    font-size: 1.75rem;
    color: var(--primary-red);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 16px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.map-container {
    background: rgba(20, 20, 20, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(1.2) brightness(0.8);
}

/* Profile - Cyber Profile */
.profile-section {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
}

.profile-card {
    background: rgba(20, 20, 20, 0.6);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    border: 1px solid rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-red);
    margin-bottom: 28px;
    box-shadow: var(--glow-red);
    transition: var(--transition-bounce);
    position: relative;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-red);
    border-right-color: rgba(255, 0, 0, 0.5);
    animation: spin 3s linear infinite;
}

.profile-avatar:hover {
    transform: scale(1.08);
    box-shadow: var(--glow-red-strong);
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.profile-phone {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-upload label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--blood-red) 100%);
    color: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.avatar-upload label:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-red-strong);
}

/* Admin Panel - Dark Cyber Admin */
.admin-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--blood-red) 100%);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--glow-red);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
    width: 100%;
    max-width: 160px;
    height: auto;
    background: white;
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.admin-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.admin-nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 28px;
    opacity: 0.9;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.admin-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px white;
}

.admin-nav a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.admin-nav a:hover::after {
    width: 100%;
}

.admin-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    background: rgba(5, 5, 5, 0.98);
    padding: 24px 0;
    border-right: 1px solid rgba(255, 0, 0, 0.2);
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 600;
    margin: 0 12px;
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
    overflow: hidden;
}

.admin-sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 0, 0, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    background: rgba(255, 0, 0, 0.1);
}

.admin-sidebar a:hover::before,
.admin-sidebar a.active::before {
    width: 100%;
}

.admin-content {
    padding: 40px;
    background: 
        linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(20,0,0,0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff0000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    animation: borderFlow 3s linear infinite;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: var(--glow-red);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Data Table - Cyber Table */
.data-table {
    width: 100%;
    background: rgba(20, 20, 20, 0.8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.data-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(40,0,0,0.9) 100%);
    color: var(--white);
    padding: 20px;
    text-align: left;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.data-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(255, 0, 0, 0.05);
}

.data-table .actions {
    display: flex;
    gap: 10px;
}

.data-table .actions a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.btn-view { 
    background: rgba(30, 64, 175, 0.2); 
    color: #60a5fa; 
    border-color: rgba(96, 165, 250, 0.3);
}
.btn-view:hover { 
    background: #1e40af; 
    color: white; 
    box-shadow: 0 0 15px rgba(30, 64, 175, 0.5);
}

.btn-edit { 
    background: rgba(146, 64, 14, 0.2); 
    color: #fbbf24; 
    border-color: rgba(251, 191, 36, 0.3);
}
.btn-edit:hover { 
    background: #92400e; 
    color: white; 
    box-shadow: 0 0 15px rgba(146, 64, 14, 0.5);
}

.btn-delete { 
    background: rgba(153, 27, 27, 0.2); 
    color: #f87171; 
    border-color: rgba(248, 113, 113, 0.3);
}
.btn-delete:hover { 
    background: #991b1b; 
    color: white; 
    box-shadow: 0 0 15px rgba(153, 27, 27, 0.5);
}

/* Footer - Cyber Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 80px 0 32px;
    margin-top: 100px;
    border-top: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    box-shadow: 0 0 20px var(--primary-red);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: var(--primary-red);
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 16px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    box-shadow: 0 0 10px var(--primary-red);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition);
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-red);
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    padding-top: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    position: relative;
}

/* Loading Spinner - Cyber Spinner */
.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    border-right-color: var(--primary-red);
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal - Cyber Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 520px;
    width: 100%;
    animation: modalSlide 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        var(--glow-red);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-60px) scale(0.8) rotateX(10deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.modal-close {
    font-size: 32px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid transparent;
}

.modal-close:hover {
    color: var(--primary-red);
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Mobile Menu Toggle - Cyber Burger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    background: rgba(255, 0, 0, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 0, 0, 0.3);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-red);
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    box-shadow: 0 0 10px var(--primary-red);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    box-shadow: 0 0 10px var(--primary-red);
}

/* Sidebar Toggle - Floating Action Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--blood-red) 100%);
    color: white;
    border: none;
    box-shadow: var(--glow-red-strong);
    cursor: pointer;
    z-index: 999;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition-bounce);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.8); }
}

.sidebar-toggle:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 60px rgba(255, 0, 0, 1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--blood-red));
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff1a1a, #a00000);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Selection Styling */
::selection {
    background: rgba(255, 0, 0, 0.3);
    color: white;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* Responsive - Mobile Cyber */
@media (max-width: 1200px) {
    .container {
        padding: 32px 20px;
    }
    
    .dashboard-content {
        padding: 32px;
    }
}

@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .auth-box {
        padding: 36px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: -300px;
        top: 80px;
        width: 300px;
        height: calc(100vh - 80px);
        z-index: 998;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
        background: rgba(5, 5, 5, 0.98);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .contacts-section {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 72px;
        width: 280px;
        height: calc(100vh - 72px);
        z-index: 998;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(5, 5, 5, 0.98);
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 32px 24px;
        gap: 0;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 3px solid var(--primary-red);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 0, 0, 0.1);
        font-size: 1.1rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .user-menu .user-name {
        display: none;
    }
    
    .hero-section {
        padding: 100px 20px;
    }
    
    .hero-title {
        letter-spacing: 2px;
    }
    
    .container {
        padding: 24px 16px;
    }
    
    .card {
        padding: 28px;
        border-radius: var(--radius);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-item {
        padding: 32px 24px;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 24px;
    }
    
    .menu-item i {
        margin-bottom: 0;
        font-size: 2.5rem;
        min-width: 60px;
        text-align: center;
    }
    
    .menu-item div {
        flex: 1;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-card {
        padding: 28px;
    }
    
    .chat-container {
        height: calc(100vh - 180px);
        border-radius: var(--radius);
        margin: 0 -16px;
        width: calc(100% + 32px);
        border-left: none;
        border-right: none;
    }
    
    .chat-message {
        max-width: 92%;
    }
    
    .message-content {
        padding: 14px 18px;
    }
    
    .chat-input {
        padding: 16px;
        gap: 12px;
    }
    
    .chat-input input[type="text"] {
        padding: 14px 20px;
    }
    
    .chat-input button,
    .file-upload-btn {
        width: 50px;
        height: 50px;
    }
    
    .order-item {
        padding: 24px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .data-table {
        overflow-x: auto;
        display: block;
        border-radius: var(--radius);
    }
    
    .data-table table {
        min-width: 700px;
    }
    
    .footer-grid {
        gap: 40px;
    }
    
    .sidebar-toggle {
        width: 56px;
        height: 56px;
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .logo img {
        max-width: 140px;
        padding: 8px 16px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .btn {
        padding: 14px 24px;
        width: 100%;
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        margin-bottom: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination a,
    .pagination span {
        padding: 12px 16px;
        min-width: 44px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 28px;
        margin: 16px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .contact-item i {
        width: 48px;
        height: 48px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .menu-item:hover {
        transform: none;
    }
    
    .order-item:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Safe Area for Notched Phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: calc(12px + env(safe-area-inset-top));
    }
    
    .main-content {
        margin-top: calc(0px + env(safe-area-inset-top));
    }
    
    .sidebar,
    .admin-sidebar {
        top: calc(80px + env(safe-area-inset-top));
        height: calc(100vh - 80px - env(safe-area-inset-top));
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .sidebar-toggle {
        bottom: calc(32px + env(safe-area-inset-bottom));
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header,
    .sidebar,
    .admin-sidebar,
    .footer,
    .btn,
    .sidebar-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .dashboard-grid {
        display: block;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        background: white;
        color: black;
    }
    
    .card-title {
        color: black;
    }
}