/* ============================================================================ */
/* CSS VARIABLES & RESET - EUROPEAN UNITY LEAGUE STYLE */
/* ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Inspired by European Unity League */
    --primary: #0a1b1f;           /* Deep dark teal background */
    --secondary: #1a2f35;         /* Slightly lighter dark teal */
    --accent: #243942;            /* Medium dark teal */
    --highlight: #2d4751;         /* Lighter teal accent */
    --dark: #050f12;              /* Almost black */
    --white: #ffffff;
    --light: #f0f2f4;
    --gray: #8b9bb3;
    --success: #4ade80;           /* Bright green like logo */
    --warning: #f59e0b;           /* Orange like logo */
    --error: #ef4444;             /* Red like logo */
    --info: #3b82f6;              /* Blue like logo */
    --purple: #8b5cf6;            /* Purple like logo */
    
    /* Gold gradients - replacing yellow */
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --gold-dark: #d97706;
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --gradient-gold-shine: linear-gradient(135deg, #fef3c7 0%, #fbbf24 30%, #f59e0b 70%, #d97706 100%);
    
    /* Main gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    
    /* Colorful gradients inspired by logo */
    --gradient-multicolor: linear-gradient(135deg, #4ade80 0%, #3b82f6 25%, #8b5cf6 50%, #ef4444 75%, #f59e0b 100%);
    --gradient-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.6);
    --shadow-gold: 0 4px 20px rgba(251, 191, 36, 0.3);
    
    /* Border radius - More angular/sharp design */
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 8px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ============================================================================ */
/* BASE STYLES */
/* ============================================================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--white);
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* ============================================================================ */
/* BUTTONS */
/* ============================================================================ */

.nav-auth > .btn-outline[href*="logout"] {
    display: none;
}

@media (max-width: 768px) {
    .nav-auth > .btn-outline[href*="logout"] {
        display: inline-flex;
    }
    .mobile-logout {
        display: none !important;
    }
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    font-size: 0.85rem;
    line-height: 1.2;
    min-height: 36px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold), 0 8px 30px rgba(251, 191, 36, 0.4);
    background: var(--gradient-gold-shine);
}

.btn-secondary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    color: var(--gold);
}
/* Style pour les images dans les tournament tabs */
.tournament-tab-content img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-tab-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* Style pour les conteneurs d'images */
.tournament-tab-content div:has(img) {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Loading states */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    overflow: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: inherit;
    z-index: 1;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================================ */
/* HEADER & NAVIGATION */
/* ============================================================================ */
.header {
    background: var(--gradient-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 52px;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-brand i {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover, 
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.user-menu {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--white);
    font-size: 0.85rem;
}

.user-greeting {
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================================================ */
/* HERO SECTION */
/* ============================================================================ */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ============================================================================ */
/* USER TYPES SECTION */
/* ============================================================================ */
.user-types {
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.user-types h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.type-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-multicolor);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(255,255,255,0.08);
}

.type-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-gold);
}

.type-icon i {
    font-size: 1.8rem;
    color: var(--dark);
}

.type-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
}

.type-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.type-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.type-card li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 2rem;
    font-size: 0.9rem;
}

.type-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================ */
/* ORGANIZER INFO SECTION */
/* ============================================================================ */
.organizer-info-section {
    padding: 2rem;
    margin-bottom: 2rem;
}

.organizer-info-banner {
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.organizer-info-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.organizer-banner-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.organizer-banner-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.organizer-banner-icon i {
    font-size: 1.8rem;
    color: var(--dark);
}

.organizer-banner-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.organizer-banner-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

.organizer-banner-action {
    flex-shrink: 0;
}

.organizer-banner-action .btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
}

.organizer-banner-action .btn:hover {
    background: var(--gradient-gold);
    color: var(--dark);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* ============================================================================ */
/* TOURNAMENTS SECTION */
/* ============================================================================ */
.tournaments-section {
    padding: 2rem;
}

.tournaments-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tournament Filters */
.tournament-filters {
    display: grid;
    grid-template-columns: 2fr auto auto auto;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9rem;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    background: rgba(255,255,255,0.15);
}

.tournament-filters select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.tournament-filters select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.tournament-filters select option {
    background: var(--secondary);
    color: var(--white);
}

/* Tournament Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Tournament Cards */
.tournament-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(255,255,255,0.08);
}

/* Tournament Date Categories */
.tournament-card[data-date-category="past"] {
    opacity: 0.7;
    border-left: 6px solid var(--gray);
}

.tournament-card[data-date-category="today"] {
    border-left: 6px solid var(--success);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.tournament-card[data-date-category="upcoming"] {
    border-left: 6px solid var(--info);
}

/* Date Indicators */
.date-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.date-indicator.past {
    background: linear-gradient(135deg, var(--gray), #6b7280);
    color: white;
}

.date-indicator.today {
    background: var(--gradient-green);
    color: white;
    animation: pulse-green 2s infinite;
}

.date-indicator.upcoming {
    background: var(--gradient-blue);
    color: white;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Tournament Image */
.tournament-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background: var(--secondary);
    transition: height 0.4s ease;
}

.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    filter: brightness(0.9);
}


.tournament-card:hover .tournament-image img {
    filter: brightness(1);
}

/* TCG Logo Overlay */
.tcg-logo-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    min-width: 48px;
    min-height: 48px;
    max-width: 180px;
    max-height: 180px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.tcg-logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    border-radius: var(--radius-sm);
}

.tcg-logo-alt {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Tournament Header */
.tournament-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.tournament-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tournament-title h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
    margin-right: 1rem;
    line-height: 1.3;
}

.tournament-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.info-item i {
    width: 16px;
    color: var(--gold);
    font-size: 0.8rem;
    text-align: center;
}

/* Tournament Actions */
.tournament-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.tournament-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
}

/* Loading spinner pour les boutons View */
.btn-view.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    min-height: 40px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-view.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    animation: spin-centered 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin-centered {
    to { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

.btn-view.loading i {
    display: none;
}

/* No Tournaments State */
.no-tournaments {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.no-tournaments i {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.5;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-tournaments h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* ============================================================================ */
/* MODALS */
/* ============================================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 27, 31, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
}

.close:hover {
    color: var(--white);
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================ */
/* FORMS */
/* ============================================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: var(--gray);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    background: rgba(255,255,255,0.15);
}

.form-group select option {
    background: var(--secondary);
    color: var(--white);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    accent-color: var(--gold);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.form-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--gold-light);
}

/* Form Validation */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.req-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    background: var(--error);
    color: white;
    flex-shrink: 0;
}

.requirement.valid {
    color: var(--success);
}

.requirement.valid .req-icon {
    background: var(--success);
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    min-height: 20px;
}

.validation-message.success {
    color: var(--success);
}

.validation-message.error {
    color: var(--error);
}

.form-group input.valid {
    border-color: var(--success);
}

.form-group input.invalid {
    border-color: var(--error);
}

/* ============================================================================ */
/* DEVELOPMENT NOTICE POPUP */
/* ============================================================================ */
.dev-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 27, 31, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.dev-notice-overlay.show {
    display: flex;
    opacity: 1;
}

.dev-notice {
    max-width: 700px;
    width: 95%;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--white);
    transform: scale(0.8);
    transition: transform 0.4s ease;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(255,255,255,0.2);
}

.dev-notice-overlay.show .dev-notice {
    transform: scale(1);
}

.dev-notice-header {
    background: var(--gradient-dark);
    color: white;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.dev-notice-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.dev-notice-icon {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5));
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dev-notice-title {
    font-weight: 900;
    font-size: 1.6rem;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dev-notice-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-style: italic;
}

.dev-notice-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.dev-notice-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
    border-color: var(--gold);
}

.dev-notice-content {
    padding: 2.5rem;
    background: rgba(255,255,255,0.02);
}

.welcome-section {
    margin-bottom: 2.5rem;
}

.highlight-text {
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--white);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.text-icon {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(255,255,255,0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-gold);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--dark);
}

.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Browser Notice */
.browser-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.browser-notice-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--warning);
    font-weight: 700;
    font-size: 1.1rem;
}

.browser-notice-header i {
    color: var(--warning);
    font-size: 1.3rem;
}

.browser-text {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.browser-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.browser-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.browser-item.recommended {
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid rgba(74, 222, 128, 0.3);
    color: var(--success);
}

.browser-item.not-recommended {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    opacity: 0.8;
}

.browser-item:hover {
    transform: translateY(-2px);
}

.browser-item i {
    font-size: 2rem;
}

.browser-item span {
    font-weight: 600;
}

.browser-item small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    margin-bottom: 2.5rem;
}

.contact-info {
    margin-top: 1.5rem;
    text-align: center;
}

.dev-notice-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    background: var(--gradient-gold);
    padding: 1rem 2rem;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-gold);
}

.dev-notice-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold), 0 10px 40px rgba(251, 191, 36, 0.4);
    background: var(--gradient-gold-shine);
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auth-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-auth {
    background: var(--gradient-gold);
    color: var(--dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
    text-decoration: none;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold), 0 10px 40px rgba(251, 191, 36, 0.4);
    background: var(--gradient-gold-shine);
}

.btn-auth.btn-register {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-auth.btn-register:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 10px 40px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.continue-button {
    position: relative;
}

.continue-button::before {
    content: '';
    display: block;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 0 auto 1.5rem;
}

.action-buttons:not(:has(.auth-buttons)) .continue-button::before {
    display: none;
}

.btn-got-it {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.btn-got-it:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.2);
    border-color: var(--gold);
}

.dev-notice-text {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.dev-notice-text:last-child {
    margin-bottom: 0;
}

.dev-notice-text strong {
    color: var(--white);
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================ */
/* NOTIFICATIONS */
/* ============================================================================ */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    z-index: 10001;
    max-width: 350px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification.success { 
    background: var(--gradient-green); 
}
.notification.error { 
    background: var(--gradient-red); 
}
.notification.warning { 
    background: var(--gradient-gold); 
    color: var(--dark); 
}
.notification.info { 
    background: var(--gradient-blue); 
}

/* ============================================================================ */
/* FOOTER */
/* ============================================================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 2rem 0 1.5rem;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    font-size: 0.8rem;
    opacity: 0.7;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================================ */
/* RESPONSIVE DESIGN */
/* ============================================================================ */

/* Tablet */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "brand auth burger";
        gap: 0.75rem;
        align-items: center;
        padding: 0;
    }
    
    .nav-brand {
        grid-area: brand;
    }
    
    .nav-auth {
        grid-area: auth;
        justify-self: end;
        gap: 0.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        grid-area: burger;
        justify-self: end;
    }
    
    .nav-menu {
        grid-area: menu;
        grid-column: 1 / -1;
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--gradient-dark);
        padding: 1.5rem;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 1rem;
        border-radius: var(--radius);
        backdrop-filter: blur(20px);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        border-radius: var(--radius);
        margin: 0.25rem 0;
    }

    .user-menu {
        gap: 0.5rem;
    }

    .user-greeting {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        min-width: 36px;
        text-align: center;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        min-height: 36px;
        font-size: 0.8rem;
    }

    .btn-text {
        display: none;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .type-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tournament-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tournaments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tournament-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }

    /* Organizer banner mobile */
    .organizer-banner-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
        text-align: center;
    }
    
    .organizer-banner-icon {
        margin: 0 auto;
    }
    
    .organizer-banner-action {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 1rem;
    }
    
    .organizer-banner-action .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    /* Dev notice mobile */
    .dev-notice {
        width: 95%;
        margin: 1rem;
    }
    
    .dev-notice-header {
        padding: 2rem;
    }
    
    .dev-notice-content {
        padding: 2rem;
    }
    
    .dev-notice-title {
        font-size: 1.4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .browser-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .auth-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-auth {
        width: 100%;
        max-width: 280px;
        padding: 1.25rem 2rem;
    }
    
    .action-buttons:not(:has(.auth-buttons)) {
        gap: 1.5rem;
    }
    
    .continue-button::before {
        display: none;
    }

    /* TCG Logo mobile */
    .tcg-logo-overlay {
        min-width: 40px;
        min-height: 40px;
        max-width: 140px;
        max-height: 140px;
        bottom: 8px;
        right: 8px;
        padding: 8px;
    }
    
    .tcg-logo {
        max-width: 100px;
        max-height: 100px;
    }
    
    .tcg-logo-alt {
        max-width: 60px;
        max-height: 60px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .navbar {
        min-height: 44px;
        gap: 0.5rem;
    }

    .nav-brand span {
        font-size: 1.1rem;
    }

    .nav-auth {
        gap: 0.25rem;
    }

    .btn {
        padding: 0.4rem 0.6rem;
        min-height: 32px;
        min-width: 32px;
    }

    .user-greeting {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-width: 32px;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 350px;
    }

    .stat-item {
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.3px;
    }

    .container {
        padding: 1rem;
    }

    .user-types,
    .organizer-info-section,
    .tournaments-section {
        padding: 1.5rem;
    }

    /* Dev notice très petit mobile */
    .dev-notice {
        width: calc(100% - 1rem);
        font-size: 0.9rem;
    }
    
    .dev-notice-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        position: relative;
    }
    
    .dev-notice-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .dev-notice-content {
        padding: 1.5rem;
    }
    
    .browser-icons {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .action-buttons {
        gap: 1.5rem;
    }
    
    .btn-auth {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
    }
    
    .btn-got-it {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .organizer-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .organizer-banner-text h3 {
        font-size: 1.3rem;
    }
    
    .organizer-banner-text p {
        font-size: 0.85rem;
    }

    /* TCG Logo très petit mobile */
    .tcg-logo-overlay {
        min-width: 36px;
        min-height: 36px;
        max-width: 120px;
        max-height: 120px;
        bottom: 6px;
        right: 6px;
        padding: 6px;
    }
    
    .tcg-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    .tcg-logo-alt {
        max-width: 50px;
        max-height: 50px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .btn.loading::after,
    .btn-view.loading::after {
        width: 1rem;
        height: 1rem;
        border-width: 1.5px;
    }
    
    .btn {
        min-height: 32px;
        font-size: 0.75rem;
    }
    
    .navbar {
        grid-template-columns: auto 1fr 32px;
        gap: 0.4rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .dev-notice-title {
        font-size: 1.2rem;
    }
}

/* ============================================================================ */
/* CUSTOM SCROLLBAR */
/* ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-gold-shine);
}










/* ============================================================================ */
/* DASHBOARD/PLAYER.PHP  SPECIFIC STYLES */
/* ============================================================================ */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 27, 31, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    gap: 1.5rem;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(251, 191, 36, 0.3);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.loading-subtext {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Join Tournament Section */
.join-tournament-section {
    margin-bottom: 2rem;
}

.join-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.join-card-header {
    padding: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.join-card-header h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-card-header h2 i {
    margin-right: 0.75rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-card-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
}

.join-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Code Input */
.code-input-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.code-digit {
    width: 3rem;
    height: 3rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.code-digit:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
    background: rgba(255,255,255,0.15);
}

.code-digit.filled {
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold);
}

.btn-join {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1rem;
    justify-content: center;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Tournaments List */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tournament-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.tournament-title-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.tournament-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-success {
    background: var(--gradient-green);
    color: white;
}

.badge-info {
    background: var(--gradient-blue);
    color: white;
}

.badge-warning {
    background: var(--gradient-gold);
    color: var(--dark);
}

.badge-error {
    background: var(--gradient-red);
    color: white;
}

/* Info Section */
.info-section {
    position: sticky;
    top: calc(var(--header-height, 80px) + 1rem);
}

.info-card {
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-gold);
}

.info-icon i {
    font-size: 2rem;
    color: var(--dark);
}

.info-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.code-example {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(251, 191, 36, 0.5);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.info-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .join-form {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .code-input-container {
        gap: 0.5rem;
    }
    
    .code-digit {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
    
    .tournament-title-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .tournament-badges {
        align-self: flex-start;
    }
    
    .info-section {
        position: static;
    }
    
    .join-card-header {
        padding: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }
    
    .info-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .code-input-container {
        gap: 0.4rem;
    }
    
    .code-digit {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.1rem;
    }
    
    .btn-join {
        min-width: 160px;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .code-example {
        font-size: 1.2rem;
        letter-spacing: 2px;
        padding: 1.25rem;
    }
}






