/* ============================================
   FF Tournament Hub - Dark Gaming Theme
   Complete Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #ff1a1a;
    --primary-dark: #cc0000;
    --primary-light: #ff4d4d;
    --primary-glow: rgba(255, 26, 26, 0.3);
    --secondary: #ff6600;
    --accent: #00ff88;
    --accent-blue: #00b4ff;
    --accent-purple: #8b5cf6;

    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #16162a;
    --bg-card-hover: #1e1e3a;
    --bg-input: #0d0d1a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --text-dark: #0a0a0f;

    --border-color: #2a2a4a;
    --border-glow: rgba(255, 26, 26, 0.2);

    --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.5);
    --shadow-glow: 0 0 20px rgba(255, 26, 26, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(255, 26, 26, 0.2);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --header-height: 70px;
    --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

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

.text-red { color: var(--primary); }
.text-green { color: var(--accent); }
.text-blue { color: var(--accent-blue); }
.text-muted { color: var(--text-muted); }

/* ============================================
   Preloader
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.preloader-ring {
    animation: preloader-rotate 2s linear infinite;
    transform-origin: center;
}

.preloader-triangle {
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: preloader-load 2s ease-in-out forwards;
}

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

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

@keyframes preloader-load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
}

.nav-logo-text {
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 5px;
}

.nav-list a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text-primary);
    background: rgba(255, 26, 26, 0.1);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Notification */
.nav-notification {
    position: relative;
}

.notif-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-normal);
}

.notif-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 100;
}

.notif-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notif-header h4 {
    font-size: 0.95rem;
}

.notif-header a {
    font-size: 0.8rem;
    color: var(--primary);
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    transition: var(--transition-fast);
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-item.unread {
    background: rgba(255, 26, 26, 0.05);
}

.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item-icon.tournament { background: rgba(255, 26, 26, 0.15); color: var(--primary); }
.notif-item-icon.payment { background: rgba(0, 255, 136, 0.15); color: var(--accent); }
.notif-item-icon.team { background: rgba(0, 180, 255, 0.15); color: var(--accent-blue); }
.notif-item-icon.prize { background: rgba(255, 102, 0, 0.15); color: var(--secondary); }
.notif-item-icon.system { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-content h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.notif-item-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-content small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.notif-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* User Menu */
.nav-user {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.user-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 26, 26, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-user-info img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.dropdown-user-info strong {
    display: block;
    font-size: 0.9rem;
}

.dropdown-user-info small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.dropdown-balance {
    padding: 12px 20px;
    background: rgba(255, 26, 26, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-balance span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.dropdown-balance strong {
    font-size: 1.1rem;
    color: var(--accent);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.text-red { color: var(--primary) !important; }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 26, 26, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(255, 26, 26, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #e65c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 26, 26, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-glow {
    animation: btn-glow 2s ease-in-out infinite;
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 26, 26, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(255, 26, 26, 0.6); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 26, 26, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 102, 0, 0.2), transparent),
        radial-gradient(2px 2px at 60% 40%, rgba(255, 26, 26, 0.3), transparent),
        radial-gradient(2px 2px at 80% 80%, rgba(0, 255, 136, 0.2), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(255, 26, 26, 0.2), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(0, 180, 255, 0.2), transparent);
    background-size: 200px 200px;
    animation: particles-drift 20s linear infinite;
}

@keyframes particles-drift {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 26, 26, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 26, 26, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 26, 26, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-title-line {
    display: block;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    animation: fadeInUp 1.4s ease;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.hero-stat-value .counter-suffix {
    color: var(--primary);
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(10, 10, 15, 0.7));
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(255, 26, 26, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.card-body {
    padding: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer {
    padding: 15px 24px;
    border-top: 1px solid var(--border-color);
}

/* Tournament Card */
.tournament-card {
    position: relative;
    overflow: hidden;
}

.tournament-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.tournament-card-badge.live {
    background: var(--primary);
    color: white;
    animation: pulse-badge 2s ease-in-out infinite;
}

.tournament-card-badge.upcoming {
    background: var(--accent-blue);
    color: white;
}

.tournament-card-badge.free {
    background: var(--accent);
    color: var(--text-dark);
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tournament-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tournament-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 26, 26, 0.1), transparent);
}

.tournament-card-image .game-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.tournament-card-type {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tournament-card-body {
    padding: 20px;
}

.tournament-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tournament-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.tournament-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.tournament-card-meta-item i {
    width: 16px;
    color: var(--primary);
}

.tournament-card-prize {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.tournament-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.tournament-card-slots {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tournament-card-slots strong {
    color: var(--text-primary);
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   Features Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: rgba(255, 26, 26, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 26, 26, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Prize Pool Section
   ============================================ */
.prize-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    position: relative;
    overflow: hidden;
}

.prize-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 26, 26, 0.03) 0%, transparent 50%);
    animation: prize-rotate 30s linear infinite;
}

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

.prize-display {
    text-align: center;
    position: relative;
    z-index: 1;
}

.prize-amount {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.prize-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.prize-breakdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.prize-tier {
    text-align: center;
    padding: 20px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 150px;
}

.prize-tier.tier-1 { border-color: rgba(255, 215, 0, 0.3); }
.prize-tier.tier-2 { border-color: rgba(192, 192, 192, 0.3); }
.prize-tier.tier-3 { border-color: rgba(205, 127, 50, 0.3); }

.prize-tier-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.prize-tier-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.tier-1 .prize-tier-amount { color: #ffd700; }
.tier-2 .prize-tier-amount { color: #c0c0c0; }
.tier-3 .prize-tier-amount { color: #cd7f32; }

/* ============================================
   How It Works
   ============================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
}

.step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(50% + 50px);
    width: calc(100% - 100px);
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.step:last-child::after {
    display: none;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    border-color: rgba(255, 26, 26, 0.3);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   Sponsors
   ============================================ */
.sponsors-section {
    background: var(--bg-secondary);
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.sponsor-item {
    padding: 20px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.sponsor-item:hover {
    opacity: 1;
    border-color: rgba(255, 26, 26, 0.3);
    color: var(--text-primary);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(255, 26, 26, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: var(--transition-normal);
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 26, 26, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-normal);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.1);
}

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

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 4px;
}

.form-success {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 4px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 26, 26, 0.05) 0%, transparent 70%);
}

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

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.cta-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 30px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background:
        radial-gradient(1px 1px at 10% 20%, var(--primary), transparent),
        radial-gradient(1px 1px at 30% 60%, var(--secondary), transparent),
        radial-gradient(1px 1px at 70% 30%, var(--primary), transparent),
        radial-gradient(1px 1px at 90% 80%, var(--accent), transparent);
    background-size: 100px 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.footer-contact i {
    width: 16px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 26, 26, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 26, 26, 0.5);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: var(--bg-primary);
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-page {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
}

.dashboard-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition-normal);
}

.dashboard-sidebar .sidebar-user {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.dashboard-sidebar .sidebar-user img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: 10px;
}

.dashboard-sidebar .sidebar-user h4 {
    font-size: 0.95rem;
}

.dashboard-sidebar .sidebar-user p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 26, 26, 0.05);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: rgba(255, 26, 26, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
}

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

.dashboard-title h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.dashboard-title p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: rgba(255, 26, 26, 0.3);
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.red { background: rgba(255, 26, 26, 0.15); color: var(--primary); }
.stat-icon.green { background: rgba(0, 255, 136, 0.15); color: var(--accent); }
.stat-icon.blue { background: rgba(0, 180, 255, 0.15); color: var(--accent-blue); }
.stat-icon.orange { background: rgba(255, 102, 0, 0.15); color: var(--secondary); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   Tables
   ============================================ */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-tertiary);
}

th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 14px 20px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    color: var(--text-secondary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   Badges & Status
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: rgba(0, 255, 136, 0.15); color: var(--accent); }
.badge-warning { background: rgba(255, 102, 0, 0.15); color: var(--secondary); }
.badge-danger { background: rgba(255, 26, 26, 0.15); color: var(--primary); }
.badge-info { background: rgba(0, 180, 255, 0.15); color: var(--accent-blue); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.badge-default { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--accent);
}

.alert-danger {
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid rgba(255, 26, 26, 0.2);
    color: var(--primary);
}

.alert-warning {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.2);
    color: var(--secondary);
}

.alert-info {
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 180, 255, 0.2);
    color: var(--accent-blue);
}

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

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 15px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================
   Tabs
   ============================================ */
.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab {
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

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

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 26, 26, 0.05) 0%, transparent 70%);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-secondary);
}

.breadcrumb-sep {
    color: var(--text-muted);
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    min-width: 50px;
}

.mobile-nav-item svg,
.mobile-nav-item i {
    width: 20px;
    height: 20px;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.mobile-nav-item span {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
}

.mobile-nav-item:hover {
    color: var(--text-secondary);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.mobile-nav-item .nav-badge {
    position: absolute;
    top: 0;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
}

/* Add padding to main content to account for bottom nav on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .main-content {
        padding-bottom: 75px;
    }

    .dashboard-main {
        padding-bottom: 85px;
    }

    .back-to-top {
        bottom: 80px;
    }

    .footer {
        padding-bottom: 75px;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.show {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    .nav-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .prize-breakdown {
        gap: 15px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .dashboard-main {
        padding: 20px 15px;
    }

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

    .notif-dropdown {
        width: 300px;
        right: -50px;
    }

    .step::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .user-name {
        display: none;
    }
}

/* ============================================
   Tournament Detail Page
   ============================================ */
.tournament-detail {
    padding-top: var(--header-height);
}

.tournament-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    position: relative;
}

.tournament-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.tournament-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
}

.tournament-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tournament-meta-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.tournament-meta-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tournament-meta-item .value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================
   Leaderboard
   ============================================ */
.leaderboard-table {
    width: 100%;
}

.leaderboard-table .rank-1 { color: #ffd700; }
.leaderboard-table .rank-2 { color: #c0c0c0; }
.leaderboard-table .rank-3 { color: #cd7f32; }

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-player img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* ============================================
   Wallet Page
   ============================================ */
.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.wallet-balance-card h3 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    position: relative;
}

.wallet-balance-card .balance {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    position: relative;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    position: relative;
}

.wallet-actions .btn {
    flex: 1;
}

/* ============================================
   Team Page
   ============================================ */
.team-card {
    text-align: center;
    padding: 30px;
}

.team-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--border-color);
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: -5px;
    margin-top: 15px;
}

.team-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.team-member-avatar:first-child {
    margin-left: 0;
}

/* ============================================
   Chat / Support
   ============================================ */
.chat-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 500px;
}

.chat-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-header h3 {
    font-size: 1rem;
}

.chat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(42, 42, 74, 0.3);
}

.chat-list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.chat-list-item.active {
    background: rgba(255, 26, 26, 0.05);
    border-left: 3px solid var(--primary);
}

.chat-main {
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.chat-message.admin {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.chat-message.admin .chat-message-content {
    background: rgba(255, 26, 26, 0.1);
}

.chat-message-content p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-message-content small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary);
}

/* ============================================
   Admin Panel Styles
   ============================================ */
.admin-body {
    background: var(--bg-primary);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-header h2 {
    font-size: 1rem;
    font-family: var(--font-display);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.admin-nav a:hover {
    background: rgba(255, 26, 26, 0.05);
    color: var(--text-primary);
}

.admin-nav a.active {
    background: rgba(255, 26, 26, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.admin-nav a i {
    width: 18px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-topbar h1 {
    font-size: 1.3rem;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .btn,
    .no-print {
        display: none !important;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .stat-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}
