:root {
    --bg-dark: #08090b;
    --sidebar-bg: #0b0c0f;
    --card-bg: #121418;
    --card-inner: #1a1d23;
    --accent-gold: #ffb800;
    --accent-gold-hover: #e5a600;
    --gold-gradient: linear-gradient(135deg, #ffb800 0%, #e5a600 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(255, 184, 0, 0.2) 0%, rgba(229, 166, 0, 0.1) 100%);
    --text-primary: #ffffff;
    --text-secondary: #8e9297;
    --text-muted: #5c6066;
    --border-color: #1e2229;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 240px;
}

.no-transition * {
    transition: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    border-right: 1px solid var(--border-color);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.logo-area {
    text-align: center;
    margin-bottom: 25px;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--accent-gold);
    margin-bottom: 30px;
    width: 100%;
}

.logo-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.gold-crown {
    color: var(--accent-gold);
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.4));
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.logo-subtitle {
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 44px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
    line-height: 1;
}

.nav-item i {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item:hover {
    background: var(--gold-gradient);
    color: #000;
    transform: translateY(-2px);
}

.nav-item:hover i {
    color: #000;
}

.nav-item.btn-gold-gradient {
    background: var(--gold-gradient-soft);
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.nav-item.btn-gold-gradient:hover {
    background: var(--gold-gradient);
    color: #000;
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--gold-gradient-soft);
    color: var(--accent-gold);
}

.logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.2));
}

.nav-spacer {
    height: 10px;
}


.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-card-new {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    position: relative;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.2);
}

.user-avatar-small {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info-new {
    display: flex;
    flex-direction: column;
}

.username-new {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.status-new {
    font-size: 11px;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-new .dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.level-badge {
    position: absolute;
    top: 60px;
    left: 15px;
    background: #1a1d23;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.xp-container {
    margin-top: 25px;
}

.xp-bar {
    height: 4px;
    background: #1a1d23;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-progress {
    height: 100%;
    background: var(--gold-gradient);
}

.xp-text {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
}

.user-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.user-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.user-nav a:hover {
    color: var(--accent-gold);
}

.user-nav a i {
    width: 16px;
    color: #fff;
}

.logout-btn-new {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.logout-btn-new:hover {
    background-color: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.2);
    color: #ff4b4b;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-1px);
}

.sidebar-footer {
    margin-top: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-primary);
}

.theme-toggle {
    display: flex;
    background-color: #000;
    border-radius: 20px;
    padding: 4px;
    justify-content: space-between;
}

.theme-btn {
    flex: 1;
    text-align: center;
    padding: 6px;
    border-radius: 16px;
    font-size: 10px;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-muted);
}

.theme-btn.active {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 24px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    width: 400px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    padding: 12px 16px 12px 48px;
    border-radius: 30px;
    color: var(--text-primary);
    outline: none;
}

.auth-btns {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.user-status-bar {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 24px;
    width: 100%;
    justify-content: space-between;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border: 2px solid var(--card-bg);
    border-radius: 50%;
}

.user-details .user-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-tag {
    background-color: var(--accent-gold);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.user-id {
    font-size: 10px;
    color: var(--text-muted);
}

.user-stats-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-group {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: var(--border-color);
}

.hero-section {
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    padding: 60px;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 9, 11, 0.9) 0%, rgba(8, 9, 11, 0.4) 50%, rgba(8, 9, 11, 0) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent-gold);
}

.hero-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.prize-pool-card {
    position: absolute;
    right: 60px;
    bottom: 60px;
    background-color: rgba(18, 20, 24, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 240px;
}

.prize-pool-card h5 {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.prize-pool-card .amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

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

.section-header h2 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.tournament-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.tournament-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.tournament-img {
    height: 180px;
    position: relative;
}

.tournament-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-gold);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tournament-body {
    padding: 20px;
}

.tournament-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.tournament-meta {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 16px;
}

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

.tournament-prize .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tournament-prize .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

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

.scoreboard-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    padding-bottom: 16px;
}

.scoreboard-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.rank-1 { color: var(--accent-gold); }

.profile-card {
    display: flex;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 2px solid var(--accent-gold);
}

.profile-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-info .status {
    font-size: 12px;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

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

.stat-item .val {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.stat-item .lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-bottom: 100px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-box {
        width: 100%;
        margin-right: 16px;
    }
    .user-status-bar {
        padding: 8px 16px;
    }
    .user-stats-section {
        display: none;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        height: auto;
        min-height: 300px;
        padding: 40px 20px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .prize-pool-card {
        position: static;
        width: 100%;
        margin-top: 24px;
        background-color: var(--card-bg);
    }
    .top-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .auth-btns {
        width: 100%;
    }
    .auth-btns button {
        flex: 1;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

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

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    gap: 4px;
}

.mobile-nav-item i {
    font-size: 18px;
}

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

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-gold);
}

.tournament-detail-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(rgba(8, 9, 11, 0.7), rgba(8, 9, 11, 0.7)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    margin-bottom: 32px;
}

.tournament-hero-content {
    flex: 1;
}

.tournament-hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 12px 0;
    text-transform: uppercase;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.reg-status {
    background: rgba(255, 184, 0, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tournament-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.stat-box {
    background: rgba(18, 20, 24, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-box i {
    color: var(--accent-gold);
    font-size: 20px;
}

.stat-box .lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

.stat-box .val {
    font-size: 14px;
    font-weight: 700;
}

.prize-breakdown-card {
    width: 320px;
    background: rgba(18, 20, 24, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
}

.prize-breakdown-card h4 {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.prize-main {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.prize-list {
    list-style: none;
    margin-bottom: 24px;
}

.prize-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prize-list li span:last-child {
    font-weight: 700;
    color: var(--accent-gold);
}

.detail-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
    overflow-x: auto;
}

.detail-tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 16px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.tab-item:hover, .tab-item.active {
    color: var(--accent-gold);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
}

.tab-item i {
    margin-right: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 24px;
}

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

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .tournament-detail-hero {
        flex-direction: column;
        padding: 40px 24px;
    }
    .prize-breakdown-card {
        width: 100%;
    }
    .tournament-hero-stats {
        flex-direction: column;
        gap: 12px;
    }
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item i {
    color: var(--accent-gold);
    font-size: 20px;
    margin-top: 4px;
}

.info-item .lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-item .val {
    font-size: 12px;
    color: var(--text-secondary);
}

.reg-progress-container {
    margin: 24px 0;
}

.reg-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb800 0%, #e5a600 100%);
    border-radius: 3px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.countdown-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.countdown-box .num {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.countdown-box .unit {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.organizer-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.organizer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
}

.organizer-name {
    font-size: 14px;
    font-weight: 700;
}

.organizer-name i {
    color: #3b82f6;
    margin-left: 4px;
}

.organizer-links {
    display: flex;
    gap: 12px;
}

.organizer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.organizer-links a:hover {
    color: var(--text-primary);
}

.rules-list {
    list-style: none;
}

.rules-list li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.rules-list li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

.bracket-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    overflow: hidden;
}

.bracket-scroll {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.bracket-round {
    min-width: 250px;
}

.round-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-around;
    height: 100%;
}

.bracket-match {
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.bracket-match:hover {
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.team-row:last-child {
    border-bottom: none;
}

.team-info-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-info-mini img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.team-row.winner span {
    color: var(--accent-gold);
    font-weight: 700;
}

.score {
    font-weight: 800;
    color: var(--text-muted);
}

.winner .score {
    color: var(--accent-gold);
}

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

.section-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.count-badge {
    background: var(--gold-gradient-soft);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.search-mini {
    position: relative;
}

.search-mini i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
}

.search-mini input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 15px 10px 35px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    width: 250px;
    outline: none;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.team-card-mini {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.team-card-mini:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.team-card-inner img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
}

.team-name-mini {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.team-rank-mini {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.team-members-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.member-tag {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.team-card-mini:hover .member-tag {
    border-color: rgba(255, 184, 0, 0.3);
    color: #fff;
}

.schedule-container {
    max-width: 800px;
    margin: 0 auto;
}

.day-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
}

.schedule-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.schedule-item:hover {
    border-color: var(--accent-gold);
    background: var(--card-inner);
}

.schedule-item .time {
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 14px;
    min-width: 80px;
}

.match-preview {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.match-preview .vs {
    color: var(--text-muted);
    font-size: 12px;
}

.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill.upcoming {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.premium-table {
    margin-top: 10px;
}

.premium-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
}

.premium-table td {
    padding: 15px;
}

.rank-circle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    background: var(--card-inner);
}

.rank-circle.rank-1 { background: var(--accent-gold); color: #000; }
.rank-circle.rank-2 { background: #c0c0c0; color: #000; }

.team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-cell img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.points-cell {
    font-weight: 800;
    color: var(--accent-gold);
}

.matches-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-chip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-chip.active, .filter-chip:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition-fast);
}

.match-card:hover {
    border-color: var(--accent-gold);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.live-indicator {
    color: #ff4b4b;
    font-weight: 800;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ff4b4b;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.match-teams {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

.team-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-vertical img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
}

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

.watch-btn {
    width: 100%;
    background: var(--gold-gradient-soft);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.watch-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.rules-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
}

.rules-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-nav-link {
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules-nav-link i {
    width: 16px;
}

.rules-nav-link.active, .rules-nav-link:hover {
    background: var(--gold-gradient-soft);
    color: var(--accent-gold);
}

.rules-section h3 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--accent-gold);
}

.rule-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.rule-num {
    font-weight: 800;
    color: var(--accent-gold);
    min-width: 30px;
}

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

.bracket-sub-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.sub-nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 1px;
}

.sub-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sub-nav-item.active {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.2);
}

.stage-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.stage-pane.active {
    display: block;
}

.tournament-format-container {
    padding: 20px 0;
}

.format-stage {
    margin-bottom: 60px;
}

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

.stage-badge {
    display: inline-block;
    background: var(--gold-gradient-soft);
    color: var(--accent-gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stage-header h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.stage-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.stage-stats {
    display: flex;
    gap: 20px;
}

.stage-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stage-stats .stat i {
    color: var(--accent-gold);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.groups-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.group-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.group-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.group-card.premium {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(255, 184, 0, 0.05) 100%);
    border-width: 2px;
}

.group-card.ultimate {
    background: radial-gradient(circle at center, rgba(255, 184, 0, 0.1) 0%, var(--card-bg) 100%);
    border: 2px solid var(--accent-gold);
    max-width: 500px;
    margin: 0 auto;
}

.group-name {
    background: var(--card-inner);
    padding: 15px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.group-teams-list {
    padding: 10px 0;
    min-height: 200px;
}

.group-team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

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

.group-team-item:nth-child(-n+4) {
    background: rgba(74, 222, 128, 0.05);
}

.stage-header.highlight h2 {
    color: var(--accent-gold);
}

.group-team-item .team-idx {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    width: 20px;
}

.group-team-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.group-team-item .team-name {
    font-size: 13px;
    font-weight: 600;
    flex-grow: 1;
}

.advance-note {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--card-inner);
    text-transform: uppercase;
}

.advance-note.gold {
    color: var(--accent-gold);
}

.stage-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    color: var(--text-muted);
    font-size: 24px;
    position: relative;
}

.stage-separator::before, .stage-separator::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0 40px;
}

.tbd-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
    letter-spacing: 1px;
}

.winner-reveal {
    padding: 20px;
    text-align: center;
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
}

.winner-reveal i {
    font-size: 24px;
}

@media (max-width: 1200px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
    .groups-grid-2 {
        grid-template-columns: 1fr;
    }
}



.live-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 75, 75, 0.1);
    color: #ff4b4b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 75, 75, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4b4b;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 75, 75, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); }
}

.featured-stream-container {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.stream-embed-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.stream-embed-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.stream-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.badge-live {
    background: #ff4b4b;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 12px;
    display: inline-block;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 184, 0, 0.4);
}

.match-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition-fast);
}

.match-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.live-indicator {
    color: #ff4b4b;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-indicator::before {
 width: 6px;
 height: 6px;
 background: #ff4b4b;
 border-radius: 50%;
}

.match-type {
 font-size: 10px;
 color: var(--text-muted);
 text-transform: uppercase;
}

.match-teams {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 20px;
}

.team-vertical {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 10px;
}

.team-vertical img {
 width: 50px;
 height: 50px;
 border-radius: 50%;
 background: var(--card-inner);
 padding: 8px;
}

.team-vertical span {
 font-size: 12px;
 font-weight: 600;
}

.match-score {
 display: flex;
 align-items: center;
 gap: 15px;
}

.score-num {
 font-size: 24px;
 font-weight: 800;
}

.score-sep {
 color: var(--text-muted);
 font-weight: 800;
}

.watch-btn {
 width: 100%;
 padding: 12px;
 background: var(--card-inner);
 border: 1px solid var(--border-color);
 color: #fff;
 border-radius: 8px;
 font-size: 12px;
 font-weight: 600;
 cursor: pointer;
 transition: var(--transition-fast);
}

.watch-btn:hover {
 background: var(--accent-gold);
 color: #000;
 border-color: var(--accent-gold);
}

.top-players-podium {
 display: flex;
 justify-content: center;
 align-items: flex-end;
 gap: 30px;
 margin-top: 60px;
 margin-bottom: 60px;
}

.podium-item {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}

.podium-avatar-wrapper {
 position: relative;
 margin-bottom: 15px;
}

.podium-avatar-wrapper img {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 border: 4px solid var(--border-color);
 background: var(--card-bg);
}

.podium-item.first .podium-avatar-wrapper img {
 width: 130px;
 height: 130px;
 border-color: var(--accent-gold);
 box-shadow: 0 0 30px rgba(255, 184, 0, 0.2);
}

.podium-item.second .podium-avatar-wrapper img {
 border-color: #c0c0c0;
}

.podium-item.third .podium-avatar-wrapper img {
 border-color: #cd7f32;
}

.rank-badge {
 position: absolute;
 bottom: -5px;
 right: 50%;
 transform: translateX(50%);
 width: 28px;
 height: 28px;
 background: var(--card-bg);
 border: 2px solid var(--border-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 800;
 font-size: 12px;
}

.podium-item.first .rank-badge { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }
.podium-item.second .rank-badge { background: #c0c0c0; color: #000; border-color: #c0c0c0; }
.podium-item.third .rank-badge { background: #cd7f32; color: #fff; border-color: #cd7f32; }

.crown-icon {
 position: absolute;
 top: -25px;
 left: 50%;
 transform: translateX(-50%);
 font-size: 24px;
 color: var(--accent-gold);
 filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.5));
}

.podium-name {
 font-size: 18px;
 font-weight: 700;
 margin-bottom: 5px;
}

.podium-points {
 font-size: 12px;
 color: var(--accent-gold);
 font-weight: 700;
}

.player-cell {
 display: flex;
 align-items: center;
 gap: 12px;
}

.player-cell img {
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background: var(--card-inner);
}

.me-badge {
 font-size: 9px;
 background: var(--accent-gold);
 color: #000;
 padding: 2px 6px;
 border-radius: 4px;
 font-weight: 800;
}

.points-cell.highlight {
 color: var(--accent-gold);
 font-weight: 700;
}

.rule-box {
 display: flex;
 gap: 20px;
 padding: 20px;
 background: var(--card-inner);
 border-radius: 12px;
 border: 1px solid var(--border-color);
 margin-bottom: 15px;
}

.rule-id {
 width: 40px;
 height: 40px;
 background: var(--accent-gold);
 color: #000;
 border-radius: 8px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 800;
 flex-shrink: 0;
}

.rule-content h3 {
 font-size: 16px;
 margin-bottom: 8px;
}

.rule-content p {
 font-size: 14px;
 color: var(--text-secondary);
 line-height: 1.6;
}

.news-card {
 background: var(--card-bg);
 border-radius: 20px;
 overflow: hidden;
 border: 1px solid var(--border-color);
 transition: var(--transition-fast);
}

.news-card:hover {
 border-color: var(--accent-gold);
}

.news-card.featured {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 0;
}

.news-img {
 position: relative;
 height: 240px;
}

.news-card.featured .news-img {
 height: 100%;
}

.news-img img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.badge-category {
 position: absolute;
 top: 20px;
 left: 20px;
 background: var(--accent-gold);
 color: #000;
 padding: 4px 12px;
 border-radius: 6px;
 font-size: 10px;
 font-weight: 800;
 text-transform: uppercase;
}

.news-body {
 padding: 30px;
}

.news-meta {
 font-size: 12px;
 color: var(--text-muted);
 margin-bottom: 12px;
}

.news-body h2 {
 font-size: 24px;
 margin-bottom: 16px;
 line-height: 1.3;
}

.news-body h3 {
 font-size: 18px;
 margin-bottom: 12px;
}

.news-body p {
 font-size: 14px;
 color: var(--text-secondary);
 line-height: 1.6;
 margin-bottom: 20px;
}

.read-more {
 color: var(--accent-gold);
 text-decoration: none;
 font-weight: 700;
 font-size: 12px;
 display: flex;
 align-items: center;
 gap: 8px;
}

.support-card {
 text-align: center;
 padding: 40px 20px;
}

.support-card i {
 font-size: 40px;
 color: var(--accent-gold);
 margin-bottom: 20px;
}

.support-card h3 {
 font-size: 18px;
 margin-bottom: 12px;
}

.support-card p {
 font-size: 13px;
 color: var(--text-muted);
 margin-bottom: 24px;
}

.faq-item {
 padding: 20px 0;
}

.faq-question {
 font-size: 16px;
 font-weight: 700;
 margin-bottom: 10px;
 color: var(--text-primary);
}

.faq-answer {
 font-size: 14px;
 color: var(--text-secondary);
 line-height: 1.6;
}

.faq-divider {
 height: 1px;
 background: var(--border-color);
}


.tournament-lb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.tournament-mini-lb {
    padding: 20px;
    border-radius: 20px;
    background: var(--card-bg);
    transition: var(--transition-fast);
}

.tournament-mini-lb:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.t-lb-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.t-lb-header img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.t-lb-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.t-lb-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.t-lb-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.t-lb-row {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--card-inner);
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid transparent;
}

.t-lb-row.top-1 {
    border-color: rgba(255, 184, 0, 0.2);
    background: rgba(255, 184, 0, 0.05);
}

.t-lb-row .pos {
    width: 30px;
    font-weight: 800;
    color: var(--text-muted);
}

.t-lb-row.top-1 .pos {
    color: var(--accent-gold);
}

.t-lb-row .team {
    flex-grow: 1;
    font-weight: 600;
}

.t-lb-row .prize {
    font-weight: 700;
    color: var(--accent-gold);
}

.highlight-row {
    background: rgba(255, 184, 0, 0.05);
}

.gold-txt {
    color: var(--accent-gold);
}

.me-tag {
    font-size: 9px;
    background: var(--accent-gold);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 8px;
}

.name-col {
    display: flex;
    align-items: center;
}

.name-txt {
    font-weight: 600;
}

@media (max-width: 1200px) {
    .tournament-lb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tournament-lb-grid {
        grid-template-columns: 1fr;
    }
}


.leaderboard-v2 {
    padding: 0 !important;
    background: #060709;
}

.lb-header-v2 {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 40px;
}

.lb-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.lb-header-content {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.lb-title-group h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.lb-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-updates {
    color: #05ff00;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background: #05ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #05ff00;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); opacity: 0.5; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.lb-header-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    padding: 15px 5px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.lb-tab.active {
    color: var(--accent-gold);
}

.lb-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.lb-layout {
 display: flex;
 gap: 30px;
 padding: 30px 40px;
}

.lb-main-area {
 flex-grow: 1;
 display: flex;
 flex-direction: column;
 gap: 20px;
}

.lb-filters-bar {
 background: rgba(255, 255, 255, 0.02);
 border: 1px solid var(--border-color);
 padding: 15px 25px;
 border-radius: 12px;
 display: flex;
 align-items: center;
 gap: 25px;
}

.filter-item {
 display: flex;
 flex-direction: column;
 gap: 5px;
}

.filter-item label {
 font-size: 9px;
 font-weight: 800;
 color: var(--text-muted);
 text-transform: uppercase;
}

.filter-item select {
 background: #0b0c0f;
 border: 1px solid var(--border-color);
 color: #fff;
 padding: 8px 15px;
 border-radius: 6px;
 font-size: 13px;
 min-width: 120px;
 outline: none;
}

.btn-filters-v2 {
 background: none;
 border: 1px solid var(--accent-gold);
 color: var(--accent-gold);
 padding: 10px 20px;
 border-radius: 8px;
 font-size: 11px;
 font-weight: 800;
 cursor: pointer;
 margin-left: auto;
 display: flex;
 align-items: center;
 gap: 10px;
}

.lb-table-header {
 display: flex;
 padding: 0 25px;
 font-size: 10px;
 font-weight: 800;
 color: var(--text-muted);
 text-transform: uppercase;
}

.col-rank { width: 80px; }
.col-player { flex-grow: 1; }
.col-kills { width: 100px; text-align: center; }
.col-wins { width: 100px; text-align: center; }
.col-kd { width: 100px; text-align: center; }
.col-points { width: 120px; text-align: right; }
.col-actions { width: 50px; text-align: right; }

.lb-table-body {
 display: flex;
 flex-direction: column;
 gap: 8px;
}

.lb-row-v2 {
 background: rgba(255, 255, 255, 0.02);
 border: 1px solid transparent;
 padding: 15px 25px;
 border-radius: 12px;
 display: flex;
 align-items: center;
 transition: var(--transition-fast);
}

.lb-row-v2:hover {
 background: rgba(255, 255, 255, 0.04);
}

.lb-row-v2.top-rank {
 background: rgba(255, 184, 0, 0.03);
 border-color: rgba(255, 184, 0, 0.1);
}

.lb-row-v2.rank-1 { border-color: var(--accent-gold); box-shadow: inset 0 0 20px rgba(255, 184, 0, 0.05); }

.rank-wreath {
 position: relative;
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
}

.wreath-img {
 position: absolute;
 width: 100%;
 height: 100%;
}

.rank-wreath span {
 position: relative;
 z-index: 2;
 font-weight: 900;
 font-size: 16px;
 color: var(--accent-gold);
}

.silver-tint { filter: grayscale(1) brightness(1.2); }
.bronze-tint { filter: sepia(1) saturate(2) hue-rotate(-20deg) brightness(0.8); }

.team-logo-v2 {
 width: 40px;
 height: 40px;
 border-radius: 8px;
 margin-right: 15px;
}

.team-logo-placeholder {
 width: 40px;
 height: 40px;
 border-radius: 8px;
 margin-right: 15px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 800;
 color: #fff;
}

.player-info-v2 {
 display: flex;
 flex-direction: column;
}

.team-name-v2 {
 font-weight: 800;
 font-size: 14px;
 display: flex;
 align-items: center;
 gap: 8px;
}

.verified-icon { color: var(--accent-gold); font-size: 10px; }
.region-v2 { font-size: 10px; color: var(--text-muted); font-weight: 600; }

.gold-txt-bold { color: var(--accent-gold); font-weight: 900; font-size: 16px; }

.lb-user-footer {
 background: #0b0c0f;
 border: 1px solid var(--accent-gold);
 padding: 20px 40px;
 border-radius: 16px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-top: 20px;
 position: sticky;
 bottom: 20px;
 box-shadow: 0 10px 40px rgba(0,0,0,0.5);
 z-index: 10;
}

.user-rank-box {
 display: flex;
 align-items: center;
 gap: 30px;
}

.user-rank-num {
 display: flex;
 flex-direction: column;
}

.user-rank-num .label { font-size: 9px; font-weight: 800; color: var(--accent-gold); }
.user-rank-num .value { font-size: 32px; font-weight: 900; line-height: 1; }

.user-profile-v2 {
 display: flex;
 align-items: center;
 gap: 15px;
}

.user-profile-v2 img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--accent-gold); }
.user-info-txt { display: flex; flex-direction: column; }
.user-info-txt .name { font-weight: 800; font-size: 18px; }
.user-info-txt .region { font-size: 11px; color: var(--text-muted); }

.user-stats-v2 {
 display: flex;
 gap: 40px;
}

.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-box .label { font-size: 9px; font-weight: 800; color: var(--text-muted); margin-bottom: 4px; }
.stat-box .value { font-size: 18px; font-weight: 800; }

.user-percentile { text-align: right; }
.user-percentile .percent { color: #05ff00; font-weight: 900; font-size: 16px; display: block; }
.user-percentile .subtext { font-size: 11px; color: var(--text-muted); }

.lb-sidebar-v2 {
 width: 320px;
 display: flex;
 flex-direction: column;
 gap: 25px;
}

.lb-sidebar-card {
 background: rgba(255, 255, 255, 0.02);
 border: 1px solid var(--border-color);
 border-radius: 16px;
 padding: 20px;
}

.card-header-v2 {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 20px;
}

.lb-sidebar-card h3 { font-size: 13px; font-weight: 900; color: #fff; margin-bottom: 15px; }
.card-header-v2 h3 { margin-bottom: 0; }

.mini-select {
 background: #000;
 border: 1px solid var(--border-color);
 color: var(--text-muted);
 font-size: 10px;
 padding: 4px 8px;
 border-radius: 4px;
 outline: none;
}

.performers-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 10px;
}

.performer-box {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}

.performer-box .label { font-size: 7px; font-weight: 800; color: var(--text-muted); margin-bottom: 10px; height: 16px; }

.performer-logo {
 width: 50px;
 height: 50px;
 background: #000;
 border-radius: 10px;
 border: 1px solid var(--border-color);
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 900;
 margin-bottom: 10px;
 position: relative;
}

.performer-logo img { width: 30px; height: 30px; }

.featured .performer-logo {
 width: 65px;
 height: 80px;
 border-color: var(--accent-gold);
 box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

.featured .performer-logo img { width: 45px; height: 45px; }

.performer-box .name { font-size: 9px; font-weight: 800; margin-bottom: 2px; }
.performer-box .stat { font-size: 11px; font-weight: 900; color: var(--accent-gold); }

.green-glow { box-shadow: 0 0 15px rgba(5, 255, 0, 0.1); }
.red-glow { box-shadow: 0 0 15px rgba(255, 0, 0, 0.1); }

.live-dot-mini { color: #05ff00; font-size: 9px; font-weight: 800; }
.live-feed-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }

.feed-item {
 display: flex;
 align-items: center;
 gap: 12px;
}

.feed-item img, .team-logo-placeholder.mini { width: 30px; height: 30px; border-radius: 6px; }

.feed-txt { display: flex; flex-direction: column; flex-grow: 1; }
.feed-txt .name { font-size: 11px; font-weight: 800; }
.feed-txt .action { font-size: 10px; color: var(--text-secondary); }
.feed-item .time { font-size: 9px; color: var(--text-muted); }

.btn-view-all-v2 {
 width: 100%;
 background: rgba(255, 255, 255, 0.03);
 border: 1px solid var(--border-color);
 color: var(--text-muted);
 padding: 10px;
 border-radius: 8px;
 font-size: 10px;
 font-weight: 800;
 cursor: pointer;
 transition: var(--transition-fast);
}

.btn-view-all-v2:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.about-list { display: flex; flex-direction: column; gap: 15px; }
.about-item { display: flex; gap: 12px; align-items: flex-start; }
.about-item i { color: var(--accent-gold); font-size: 14px; margin-top: 3px; }
.about-item p { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 1200px) {
 .lb-layout { flex-direction: column; }
 .lb-sidebar-v2 { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
 .lb-sidebar-v2 { grid-template-columns: 1fr; }
 .lb-filters-bar { flex-wrap: wrap; }
 .col-kd, .col-wins, .col-kills { display: none; }
 .lb-user-footer { flex-direction: column; gap: 20px; text-align: center; }
 .user-rank-box { flex-direction: column; gap: 10px; }
}


.wreath-icon-fa {
    position: absolute;
    font-size: 32px;
    opacity: 0.3;
}
.rank-1 .wreath-icon-fa { color: var(--accent-gold); opacity: 0.5; }
.silver-txt { color: #c0c0c0; }
.bronze-txt { color: #cd7f32; }


.lb-table-body {
    gap: 0 !important; 
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-row-v2 {
    background: #0d0e10 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 0 !important;
    padding: 6px 25px !important;
}

.lb-row-v2:last-child {
    border-bottom: none !important;
}

.lb-row-v2.top-rank {
    position: relative;
}

.lb-row-v2.rank-1 {
    background: linear-gradient(90deg, #2a1d00 0%, #1a1200 100%) !important;
    border-top: 2px solid #ffb800 !important;
    border-bottom: 2px solid #ffb800 !important;
    box-shadow: 0 0 30px rgba(255, 184, 0, 0.1);
    z-index: 5;
}

.lb-row-v2.rank-2 {
    background: linear-gradient(90deg, #1c1c1c 0%, #111111 100%) !important;
    border-top: 1px solid rgba(192, 192, 192, 0.3) !important;
    border-bottom: 1px solid rgba(192, 192, 192, 0.3) !important;
    z-index: 4;
}

.lb-row-v2.rank-3 {
    background: linear-gradient(90deg, #1d1400 0%, #110c00 100%) !important;
    border-top: 1px solid rgba(205, 127, 50, 0.3) !important;
    border-bottom: 1px solid rgba(205, 127, 50, 0.3) !important;
    z-index: 3;
}

.rank-wreath {
    width: 36px;
    height: 36px;
}

.rank-wreath span {
    font-size: 14px;
    font-weight: 900;
}

.rank-1 .rank-wreath span { color: #ffb800; text-shadow: 0 0 10px rgba(255, 184, 0, 0.5); }
.rank-2 .rank-wreath span { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.rank-3 .rank-wreath span { color: #cd7f32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }

.rank-1 .wreath-icon-fa { color: #ffb800; opacity: 0.8 !important; font-size: 28px; }
.rank-2 .wreath-icon-fa { color: #ffffff; opacity: 0.6 !important; font-size: 28px; }
.rank-3 .wreath-icon-fa { color: #cd7f32; opacity: 0.6 !important; font-size: 28px; }

.team-logo-v2 {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-row-v2 .team-name-v2 {
    font-size: 13px;
    color: #fff;
}

.lb-row-v2 .region-v2 {
    font-size: 11px;
}

.gold-txt-bold {
    color: #ffb800 !important;
    font-size: 15px !important;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.3);
}

.lb-row-v2 .col-actions {
    color: var(--text-muted);
    font-size: 12px;
}


.lb-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.lb-tab-pane.active {
    display: block;
}

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

.tournament-lb-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tournament-mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition-fast);
}

.tournament-mini-card:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.04);
}

.t-mini-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.t-mini-header img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.t-mini-info h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.t-mini-info span { font-size: 11px; color: var(--accent-gold); font-weight: 700; }

.t-mini-ranks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.t-mini-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #0b0c0f;
    border-radius: 8px;
    font-size: 12px;
}

.t-mini-row.gold { border-left: 3px solid var(--accent-gold); }

.t-mini-row .pos { width: 25px; font-weight: 900; color: var(--text-muted); }
.t-mini-row.gold .pos { color: var(--accent-gold); }
.t-mini-row .name { flex-grow: 1; font-weight: 700; }
.t-mini-row .pts { font-weight: 800; color: var(--accent-gold); }

.btn-mini-view {
    width: 100%;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-mini-view:hover {
    border-color: var(--accent-gold);
    color: #fff;
}

.friends-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 20px;
    border: 1px dashed var(--border-color);
}

.friends-empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.friends-empty-state h4 { font-size: 18px; margin-bottom: 10px; }
.friends-empty-state p { color: var(--text-muted); font-size: 13px; max-width: 300px; margin: 0 auto; }


.rules-header { position: relative; height: 250px; border-radius: 20px; overflow: hidden; margin-bottom: 30px; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; } .rules-header-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; } .rules-header-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.7) 50%, rgba(8, 9, 11, 0.4) 100%); z-index: 0; } .rules-header-content { position: relative; z-index: 1; } .rules-header-title { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; } .rules-header-title i { color: var(--accent-gold); font-size: 28px; background: rgba(255, 184, 0, 0.1); padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 184, 0, 0.2); } .rules-header-title h1 { font-size: 32px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; } .rules-header-subtitle { color: var(--text-secondary); font-size: 14px; max-width: 600px; } .rules-tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 0; } .rules-tab { padding: 12px 24px; color: var(--text-secondary); font-weight: 700; font-size: 13px; text-transform: uppercase; cursor: pointer; transition: var(--transition-fast); border-bottom: 3px solid transparent; } .rules-tab:hover { color: var(--text-primary); } .rules-tab.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); } .rules-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; } .rules-content-section { display: flex; flex-direction: column; gap: 15px; } .rule-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 20px; transition: var(--transition-fast); cursor: pointer; } .rule-item:hover { border-color: var(--accent-gold); transform: translateX(5px); background: var(--card-inner); } .rule-icon-box { width: 50px; height: 50px; background: var(--card-inner); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent-gold); font-size: 20px; flex-shrink: 0; border: 1px solid var(--border-color); } .rule-item-content { flex-grow: 1; } .rule-item-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; } .rule-item-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; } .rule-chevron { color: var(--accent-gold); font-size: 14px; opacity: 0.5; } .rule-item:hover .rule-chevron { opacity: 1; } .rules-sidebar { display: flex; flex-direction: column; gap: 20px; } .sidebar-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; } .sidebar-card h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--text-primary); } .summary-list { display: flex; flex-direction: column; gap: 20px; } .summary-item { display: flex; gap: 15px; } .summary-icon { color: var(--accent-gold); font-size: 18px; margin-top: 2px; } .summary-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; } .summary-info p { font-size: 12px; color: var(--text-secondary); line-height: 1.4; } .sidebar-card.important { border: 1px solid rgba(255, 184, 0, 0.3); } .important-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; } .download-btn { width: 100%; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: var(--transition-fast); cursor: pointer; } .btn-outline-gold { background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); } .btn-outline-gold:hover { background: var(--accent-gold); color: #000; } .btn-solid-gold { background: var(--accent-gold); color: #000; border: none; } .btn-solid-gold:hover { background: var(--accent-gold-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3); } .questions-card { background: #0b0c0f; } .questions-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; } .rules-tab-content { display: none; } .rules-tab-content.active { display: flex; }
