/* ==========================================
   MG MALIK YT - COMPLETE REDESIGN V3
   Professional Gaming Tournament Platform
   Desktop + Mobile Responsive - Equal Priority
   ========================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Brand Colors */
    --primary: #ff6b35;
    --primary-dark: #e05525;
    --primary-light: #ff8555;
    --secondary: #00d4ff;
    --secondary-dark: #00a8cc;
    --secondary-light: #33ddff;
    
    /* Backgrounds */
    --bg-primary: #0a0e27;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-elevated: #232d42;
    --bg-overlay: rgba(10, 14, 39, 0.97);
    --bg-glass: rgba(26, 34, 53, 0.7);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Effects */
    --accent-glow: rgba(255, 107, 53, 0.4);
    --accent-glow-cyan: rgba(0, 212, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Poppins', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ==========================================
   HEADER - MODERN & SLEEK
   ========================================== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

/* ==========================================
   HERO SECTION - PREMIUM GAMING STYLE
   ========================================== */
.hero {
    margin-top: 70px;
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.08) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

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

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 20px;
}

.title-main {
    display: block;
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px var(--accent-glow);
    margin-bottom: 8px;
}

.title-sub {
    display: block;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.hero-text {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
}

.stat-item {
    padding: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    display: none;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--accent-glow), 0 0 0 0 rgba(255, 107, 53, 0.7);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 0 8px 30px var(--accent-glow), 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% { 
        box-shadow: 0 8px 30px var(--accent-glow), 0 0 0 15px rgba(255, 107, 53, 0);
    }
}

/* Shimmer Effect */
.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.8), 0 0 0 0 rgba(255, 107, 53, 0);
    animation: none;
}

/* Icon bounce on hover */
.cta-btn:hover i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-3px); }
}

.cta-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* ==========================================
   TOURNAMENTS SECTION - CARD GRID
   ========================================== */
.tournaments {
    padding: 60px 24px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header-mobile {
    margin-bottom: 40px;
    text-align: center;
}

.section-title-mobile {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-title-mobile::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.chip {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Tournament Grid */
.tournament-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ==========================================
   TOURNAMENT CARD - MODERN GAMING DESIGN
   ========================================== */
.tournament-card-mobile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.tournament-card-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tournament-card-mobile:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow);
}

.tournament-card-mobile:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header-mobile {
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.card-title-mobile {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.card-mode i {
    color: var(--secondary);
    font-size: 14px;
}

.type-badge-mobile {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.type-badge-mobile.free {
    background: rgba(0, 212, 255, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.type-badge-mobile.paid {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.time-info-mobile {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.time-block i {
    color: var(--primary);
    font-size: 13px;
}

.time-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Card Body */
.card-body-mobile {
    padding: 24px;
}

.info-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.info-box {
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.info-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.info-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.info-value {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.info-value.gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FREE ENTRY BADGE - Special Styling */
.free-entry-badge {
    grid-column: 1 / -1;
    padding: 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.free-entry-badge i {
    font-size: 22px;
    color: var(--secondary);
}

.free-entry-badge span {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Slots Bar */
.slots-bar {
    margin-bottom: 20px;
}

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

.slots-text {
    font-size: 13px;
    color: var(--text-muted);
}

.slots-text strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

.slots-progress {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.slots-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    position: relative;
}

.slots-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

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

/* Register Button */
.register-btn-mobile {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.register-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

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

/* ==========================================
   QUICK TABS SECTION
   ========================================== */
.quick-tabs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px;
    background: rgba(0, 0, 0, 0.2);
}

.tab-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn i {
    font-size: 22px;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.tab-btn:hover:not(.active) {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Rules */
.rules-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rule-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.rule-item i {
    font-size: 26px;
    color: var(--primary);
    flex-shrink: 0;
}

.rule-item h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.rule-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Winners */
.winners-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.winner-card-mobile {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.winner-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.winner-item:last-child {
    border-bottom: none;
}

.winner-rank {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    font-family: var(--font-display);
}

.winner-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.winner-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
}

.winner-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e89a5f 100%);
    color: #000;
}

.winner-details {
    flex: 1;
}

.winner-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.winner-team {
    font-size: 13px;
    color: var(--text-dim);
}

.winner-prize {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

/* Social Links */
.social-links-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.social-card i {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.social-card:nth-child(1) i {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
}

.social-card:nth-child(2) i {
    background: rgba(228, 64, 95, 0.15);
    color: #e4405f;
}

.social-card:nth-child(3) i {
    background: rgba(88, 101, 242, 0.15);
    color: #5865f2;
}

.social-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.social-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-mobile {
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-mobile p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0;
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close:hover {
    background: var(--primary);
    color: var(--text-primary);
    border-color: var(--primary);
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-block {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.form-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: var(--primary-light);
}

/* ==========================================
   NOTIFICATIONS
   ========================================== */
.notification-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    animation: slideIn 0.3s ease;
}

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

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

.notification-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}

.notification-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification.success .notification-title i {
    color: #00ff88;
}

.notification.error .notification-title i {
    color: #ff4444;
}

.notification.warning .notification-title i {
    color: #ffaa00;
}

.notification.info .notification-title i {
    color: var(--secondary);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ==========================================
   RESPONSIVE - MOBILE OPTIMIZATION
   ========================================== */
@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .brand {
        font-size: 18px;
    }
    
    .hero {
        padding: 40px 16px;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .cta-btn {
        padding: 16px 36px;
        font-size: 15px;
    }
    
    .tournaments {
        padding: 40px 16px 80px;
    }
    
    .tournament-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-chips {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    
    .filter-chips::-webkit-scrollbar {
        display: none;
    }
    
    .chip {
        flex-shrink: 0;
    }
    
    .tab-buttons {
        flex-direction: row;
    }
    
    .tab-btn {
        min-width: auto;
        flex: 1;
        padding: 14px 16px;
    }
    
    .tab-btn span {
        font-size: 11px;
    }
    
    .rules-compact,
    .winners-compact,
    .social-links-compact {
        grid-template-columns: 1fr;
    }
    
    .quick-tabs {
        padding: 40px 16px;
    }
    
    .modal-content {
        padding: 28px;
    }
    
    .notification-container {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* ==========================================
   RESPONSIVE - DESKTOP OPTIMIZATION
   ========================================== */
@media (min-width: 1200px) {
    .tournament-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-stats {
        gap: 32px;
    }
    
    .rules-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1600px) {
    .tournament-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
