/* ==========================================
   DASHBOARD - ESPORTS BLACK & RED THEME
   Gaming Dashboard Template
   ========================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Colors */
    --color-primary: #FF0000;
    --color-primary-dark: #CC0000;
    --color-primary-light: #FF3333;
    --color-secondary: #000000;
    --color-bg-dark: #0A0A0A;
    --color-bg-darker: #050505;
    --color-bg-light: #1A1A1A;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #CCCCCC;
    --color-text-muted: #999999;
    --color-accent: #FF0000;
    --color-success: #00FF00;
    --color-warning: #FFA500;
    --color-error: #FF3333;
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-subheading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(255, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(255, 0, 0, 0.2);
    --shadow-lg: 0 8px 40px rgba(255, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================
   AUTHENTICATION PAGES STYLES
   ========================================== */

/* Auth Page Background */
.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 50%, #1a0000 100%);
    z-index: -1;
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Matrix Canvas */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

/* Auth Container */
.auth-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    z-index: 10;
}

/* Back Home Link */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-family: var(--font-subheading);
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.back-home:hover {
    color: var(--color-primary);
    background: rgba(255, 0, 0, 0.1);
    transform: translateX(-5px);
}

/* Auth Card */
.auth-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary), transparent, var(--color-primary));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.auth-card:hover::before {
    opacity: 1;
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: iconFloat 3s ease-in-out infinite;
}

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

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.7rem;
}

.form-label i {
    color: var(--color-primary);
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: var(--transition-normal);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: var(--transition-normal);
}

.form-input:focus ~ .input-focus-border {
    width: 100%;
}

.input-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.4rem;
    font-family: var(--font-body);
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    padding: 0.5rem;
}

.toggle-password:hover {
    color: var(--color-primary);
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.7rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar.weak::before {
    width: 25%;
    background: var(--color-error);
}

.strength-bar.medium::before {
    width: 50%;
    background: var(--color-warning);
}

.strength-bar.good::before {
    width: 75%;
    background: #00CCFF;
}

.strength-bar.strong::before {
    width: 100%;
    background: var(--color-success);
}

.strength-text {
    font-size: 0.85rem;
    font-family: var(--font-subheading);
    font-weight: 600;
    min-width: 60px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.terms-check {
    justify-content: flex-start;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
}

.forgot-link,
.terms-link {
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.forgot-link:hover,
.terms-link:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-subheading);
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.btn-submit.small {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    margin-top: 1.5rem;
}

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

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

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5);
}

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

.btn-submit.loading .btn-text {
    opacity: 0.6;
}

.btn-submit.loading .btn-icon {
    animation: spin 1s linear infinite;
}

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

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-submit:hover .btn-glow {
    opacity: 1;
}

/* Social Divider */
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-divider span {
    padding: 0 1rem;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.social-btn {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-subheading);
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-normal);
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-btn.google:hover {
    background: #DB4437;
    border-color: #DB4437;
}

.social-btn.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.social-btn.steam:hover {
    background: #171a21;
    border-color: #171a21;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.register-link {
    color: var(--color-primary);
    font-weight: 700;
    transition: var(--transition-fast);
}

.register-link:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.support-link {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: float 6s ease-in-out infinite;
}

.float-icon:nth-child(2) {
    animation-delay: -2s;
}

.float-icon:nth-child(3) {
    animation-delay: -4s;
}

.float-icon:nth-child(4) {
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message.show {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-success) 0%, #00CC00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 0, 0.8);
    }
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.success-message p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Security Info */
.security-info {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.security-info i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.security-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--color-success);
}

.notification.error {
    border-left: 4px solid var(--color-error);
}

.notification i {
    font-size: 1.5rem;
}

.notification.success i {
    color: var(--color-success);
}

.notification.error i {
    color: var(--color-error);
}

.notification span {
    font-family: var(--font-subheading);
    font-size: 1rem;
    color: var(--color-text-primary);
}

/* ==========================================
   DASHBOARD MAIN STYLES
   ========================================== */

/* Dashboard Container */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg-dark);
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 0, 0, 0.2);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition-normal);
}

.sidebar-logo {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.sidebar-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-logo i {
    font-size: 1.8rem;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 0 1rem;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section-title {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: var(--transition-normal);
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 0, 0, 0.1);
    color: var(--color-primary);
    transform: translateX(5px);
}

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

.menu-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.menu-badge {
    margin-left: auto;
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.9);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.mobile-menu-toggle:hover {
    background: var(--color-primary-light);
    transform: scale(1.05);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    transition: var(--transition-normal);
}

/* Top Bar */
.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-left h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.topbar-left p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 300px;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.topbar-search input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    outline: none;
}

.topbar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.topbar-notifications,
.topbar-profile {
    position: relative;
    cursor: pointer;
}

.notification-btn,
.profile-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.notification-btn:hover,
.profile-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: var(--color-primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.stat-trend.up {
    background: rgba(0, 255, 0, 0.1);
    color: var(--color-success);
}

.stat-trend.down {
    background: rgba(255, 0, 0, 0.1);
    color: var(--color-error);
}

.stat-content h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-family: var(--font-subheading);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Card */
.dashboard-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.card-link {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--color-primary-light);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Large Desktop */
@media (min-width: 1920px) {
    .dashboard-main {
        padding: 3rem 4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .dashboard-sidebar {
        width: 240px;
    }
    
    .dashboard-main {
        margin-left: 240px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .dashboard-sidebar {
        width: 250px;
    }

    .dashboard-main {
        margin-left: 250px;
        padding: 2.5rem 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .topbar-search input {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Network Tree */
    .network-tree-container {
        overflow-x: auto;
        padding: 2rem 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    /* Dashboard Layout */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1100;
        width: 50px;
        height: 50px;
        background: var(--color-primary);
        border: none;
        border-radius: 8px;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
        transition: var(--transition-fast);
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        background: var(--color-primary-dark);
        transform: scale(1.05);
    }

    .dashboard-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .dashboard-sidebar.active {
        left: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 5rem 1.5rem 1.5rem;
        width: 100%;
    }

    /* Topbar */
    .dashboard-topbar {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .topbar-left {
        width: 100%;
    }

    .topbar-left h1 {
        font-size: 1.8rem;
    }
    
    .topbar-left p {
        font-size: 0.95rem;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .topbar-search {
        flex: 1;
        min-width: 200px;
    }

    .topbar-search input {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1rem 1rem 3.2rem;
    }
    
    .topbar-actions {
        display: flex;
        gap: 1rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.8rem;
    }

    /* Sidebar Menu */
    .sidebar-logo {
        padding: 1.5rem 1.2rem;
    }
    
    .sidebar-logo h2 {
        font-size: 1.5rem;
    }

    .menu-item {
        font-size: 1.15rem;
        padding: 1.1rem 1.2rem;
    }

    .menu-item i {
        font-size: 1.4rem;
        min-width: 35px;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        top: 5rem;
        width: auto;
    }
    
    /* Auth Pages */
    .auth-container {
        padding: 1.5rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .register-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .form-label {
        font-size: 1.05rem;
    }

    .form-input {
        padding: 1.1rem 1.2rem;
        font-size: 1.05rem;
    }

    .btn-submit {
        padding: 1.3rem 2rem;
        font-size: 1.15rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-btn {
        flex-direction: row;
        justify-content: center;
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
    }

    .social-btn i {
        font-size: 1.6rem;
    }

    .float-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .back-home {
        font-size: 1.05rem;
        padding: 0.9rem 1.5rem;
    }

    .checkbox-label {
        font-size: 1rem;
    }

    .auth-footer p {
        font-size: 1rem;
    }
    
    /* Content Tables */
    .content-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .content-table {
        min-width: 600px;
    }
    
    /* Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Network Tree */
    .network-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .network-controls .btn-group {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .tree-node {
        margin: 0.5rem;
    }
    
    .tree-node-card {
        min-width: 200px;
    }
    
    /* Profile Page */
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin: 0 auto;
    }
    
    /* Form Options */
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Tournament Cards */
    .tournament-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .dashboard-main {
        padding: 5rem 1rem 1rem;
    }
    
    .auth-container {
        padding: 1rem;
    }

    .auth-card,
    .register-card {
        padding: 1.8rem 1.2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .topbar-left h1 {
        font-size: 1.6rem;
    }
    
    .dashboard-sidebar {
        width: 260px;
    }
    
    .sidebar-logo h2 {
        font-size: 1.3rem;
    }
    
    .menu-item {
        font-size: 1.05rem;
        padding: 1rem;
    }
    
    .menu-section-title {
        font-size: 0.85rem;
        padding: 1rem 1rem 0.5rem;
    }
    
    /* Buttons */
    .btn-submit {
        padding: 1.2rem 1.8rem;
        font-size: 1.1rem;
    }
    
    .action-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Network Node */
    .tree-node-card {
        min-width: 180px;
        padding: 1rem;
    }
    
    .node-avatar {
        width: 50px;
        height: 50px;
    }
    
    .node-name {
        font-size: 0.95rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .topbar-left h1 {
        font-size: 1.4rem;
    }
    
    .stat-content h3 {
        font-size: 1.6rem;
    }
    
    .dashboard-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card,
    .register-card {
        padding: 1.5rem 1.2rem;
    }

    .auth-logo {
        margin-bottom: 1.5rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .dashboard-main {
        padding: 4.5rem 1.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .dashboard-sidebar {
        width: 220px;
    }
    
    .dashboard-main {
        margin-left: 220px;
    }
    
    .sidebar-logo h2 {
        font-size: 1.3rem;
    }
    
    .menu-item {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
    
    .menu-item i {
        font-size: 1.2rem;
        min-width: 30px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .menu-item {
        min-height: 48px;
    }
    
    .action-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-menu-toggle {
        min-height: 48px;
        min-width: 48px;
    }
    
    .btn-submit:active {
        transform: scale(0.98);
    }
    
    .menu-item:active {
        background: rgba(255, 0, 0, 0.15);
    }
}

/* Print Styles */
@media print {
    .dashboard-sidebar,
    .mobile-menu-toggle,
    .topbar-actions,
    .action-buttons {
        display: none;
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stat-card,
    .content-card {
        break-inside: avoid;
    }
}
