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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0a0a0f;
    color: #ffffff;
}

a {
    text-decoration: none;
}

/* ===== LIVE TICKER ===== */
.live-ticker {
    background: #0d0d1a;
    border-bottom: 1px solid #1a1a2e;
    padding: 8px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 0;
}

.ticker-label {
    background: #ff3232;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 14px;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ticker-track {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: flex;
    gap: 60px;
    animation: ticker 35s linear infinite;
    white-space: nowrap;
    padding-left: 30px;
}

.ticker-content span {
    font-size: 13px;
    color: #aaaaaa;
    white-space: nowrap;
    flex-shrink: 0;
}

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

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background-color: #0d0d1a;
    border-bottom: 1px solid #1a1a2e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo span {
    color: #00f5ff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

nav ul a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    padding-bottom: 4px;
}

nav ul a:hover {
    color: #00f5ff;
}

.nav-active {
    color: #00f5ff !important;
    border-bottom: 2px solid #00f5ff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #00f5ff, #0080ff);
    color: #000000;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00f5ff;
    border: 2px solid #00f5ff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #00f5ff;
    color: #000000;
}

.btn-large {
    padding: 14px 32px;
    font-size: 15px;
}

.btn-small {
    padding: 6px 16px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 900;
}

/* ===== HERO DASHBOARD ===== */
.hero-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 40px;
    background: radial-gradient(ellipse at top left, #0d0d2e 0%, #0a0a0f 60%);
    min-height: 90vh;
    align-items: center;
    border-bottom: 1px solid #1a1a2e;
}

/* HERO LEFT */
.hero-badge {
    display: inline-block;
    background: rgba(0, 245, 255, 0.1);
    color: #00f5ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-left h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-left h1 span {
    background: linear-gradient(135deg, #00f5ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-left p {
    font-size: 17px;
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 12px;
    width: fit-content;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #00f5ff;
}

.hero-stat-label {
    font-size: 11px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: #1a1a2e;
}

/* HERO RIGHT — FEATURED TOURNAMENT */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-label {
    font-size: 12px;
    font-weight: 700;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.featured-tournament {
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.featured-tournament::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #00f5ff, #0080ff);
}

.featured-live-badge {
    display: inline-block;
    background: rgba(255, 50, 50, 0.15);
    color: #ff3232;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
    animation: pulse 2s infinite;
}

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

.featured-game-tag {
    font-size: 12px;
    font-weight: 700;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.featured-tournament h2 {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.featured-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.featured-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0a0a0f;
    border: 1px solid #1a1a2e;
    border-radius: 10px;
    padding: 12px;
}

.detail-icon {
    font-size: 24px;
}

.featured-detail div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-value {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
}

.detail-label {
    font-size: 11px;
    color: #aaaaaa;
    text-transform: uppercase;
}

.featured-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaaaaa;
}

.progress-bar {
    background: #1a1a2e;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #00f5ff, #0080ff);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ===== DASHBOARD GRID ===== */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    padding: 40px;
    border-bottom: 1px solid #1a1a2e;
}

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

.dash-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.dash-link {
    font-size: 13px;
    color: #00f5ff;
    font-weight: 600;
    transition: opacity 0.2s;
}

.dash-link:hover {
    opacity: 0.7;
}

/* TOURNAMENT CARDS IN DASHBOARD */
.dash-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dash-tournament-card {
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s;
}

.dash-tournament-card:hover {
    border-color: #00f5ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.1);
}

.dtc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
}

.dtc-live {
    background: rgba(255, 50, 50, 0.1);
    color: #ff3232;
}

.dtc-upcoming {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
}

.dtc-free {
    background: rgba(0, 255, 100, 0.1);
    color: #00ff64;
}

.dtc-game {
    font-size: 11px;
    font-weight: 700;
    color: #00f5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-tournament-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.dtc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dtc-info span {
    font-size: 12px;
    color: #aaaaaa;
}

.dtc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #1a1a2e;
}

.dtc-entry {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

/* SIDE COLUMN */
.dash-col-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dash-widget {
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 16px;
    padding: 24px;
}

/* LIVE PULSE */
.live-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ff3232;
    font-weight: 700;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff3232;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
    display: inline-block;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ACTIVITY FEED */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a2e;
}

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

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-text p {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.4;
}

.activity-text strong {
    color: #00f5ff;
}

.activity-text span {
    font-size: 11px;
    color: #555555;
    margin-top: 2px;
    display: block;
}

/* TOP CLANS */
.top-clans {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-clan-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a2e;
    transition: all 0.2s;
}

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

.top-clan-row:hover {
    padding-left: 4px;
}

.tenzo-clan {
    background: rgba(0, 245, 255, 0.03);
    border-radius: 8px;
    padding: 10px 8px;
    margin: 2px -8px;
}

.clan-pos {
    font-size: 13px;
    font-weight: 900;
    color: #00f5ff;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.clan-emoji {
    font-size: 22px;
    flex-shrink: 0;
}

.clan-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.clan-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.clan-meta {
    font-size: 11px;
    color: #555555;
}

.clan-trophies {
    font-size: 12px;
    color: #ffa500;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== GAMES ROW ===== */
.games-section {
    padding: 40px;
    border-bottom: 1px solid #1a1a2e;
    background: #0d0d1a;
}

.games-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.game-pill {
    background: #0a0a0f;
    border: 1px solid #1a1a2e;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #aaaaaa;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-pill:hover {
    border-color: #00f5ff;
    color: #00f5ff;
    transform: translateY(-2px);
}

.game-active {
    border-color: #00f5ff;
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.05);
}

.game-count {
    font-size: 11px;
    color: #555555;
    font-weight: 500;
}

.game-active .game-count {
    color: #00f5ff;
    opacity: 0.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 60px 40px;
    background: radial-gradient(ellipse at center, #0d0d2e 0%, #0a0a0f 70%);
    border-bottom: 1px solid #1a1a2e;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 16px;
    color: #aaaaaa;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
footer {
    background: #0d0d1a;
    border-top: 1px solid #1a1a2e;
    padding: 60px 40px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.footer-brand p {
    font-size: 13px;
    color: #555555;
    margin-top: 8px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13px;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #00f5ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1a1a2e;
    font-size: 13px;
    color: #333333;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== AUTH PAGES (shared) ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    background: #0a0a0f;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #00f5ff;
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.form-input option {
    background: #0d0d1a;
    color: #ffffff;
}

.btn-join {
    background: linear-gradient(135deg, #00f5ff, #0080ff);
    color: #000000;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

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

.error-message {
    font-size: 13px;
    color: #ff3232;
    text-align: center;
    min-height: 20px;
    font-weight: 600;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 0;
}

.success-icon { font-size: 72px; }

.success-message h3 {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
}

.success-message p {
    font-size: 15px;
    color: #aaaaaa;
    line-height: 1.6;
}

.success-message strong {
    color: #00f5ff;
    font-weight: 900;
}

.success-details {
    display: flex;
    gap: 20px;
    background: #0a0a0f;
    border: 1px solid #1a1a2e;
    border-radius: 12px;
    padding: 16px 24px;
    margin: 8px 0;
}

.success-details span {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
}

.success-note {
    color: #00f5ff !important;
    font-weight: 700 !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    .live-ticker { display: none; }

    nav { padding: 16px 20px; }

    nav ul { display: none; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #0d0d1a;
        border-bottom: 1px solid #1a1a2e;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        z-index: 99;
    }

    .nav-links.open { display: flex; }

    .hero-dashboard {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        min-height: auto;
        gap: 40px;
    }

    .hero-left h1 { font-size: 48px; }

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

    .dashboard {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .dash-cards {
        grid-template-columns: 1fr;
    }

    .games-section { padding: 30px 20px; }

    .games-row { gap: 8px; }

    .game-pill {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cta-banner { padding: 40px 20px; }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons a { width: 100%; }
    .cta-buttons button { width: 100%; }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }

    footer { padding: 40px 20px 20px; }

}

@media (max-width: 1024px) and (min-width: 769px) {

    .hero-dashboard {
        gap: 24px;
        padding: 40px 24px;
    }

    .hero-left h1 { font-size: 52px; }

    .dashboard {
        grid-template-columns: 1fr 320px;
        padding: 24px;
    }

    .dash-cards {
        grid-template-columns: 1fr 1fr;
    }

}
/* ===== PAGE HEADER (shared across all pages) ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 40px;
    background: radial-gradient(ellipse at top left, #0d0d2e 0%, #0a0a0f 60%);
    border-bottom: 1px solid #1a1a2e;
    gap: 40px;
    flex-wrap: wrap;
}

.page-header-content h1 {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-header-content p {
    font-size: 16px;
    color: #aaaaaa;
    line-height: 1.6;
    max-width: 500px;
}

.page-header-stats {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
}

.ph-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.ph-value {
    font-size: 36px;
    font-weight: 900;
    color: #00f5ff;
}

.ph-label {
    font-size: 12px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FILTERS BAR (shared) ===== */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #0d0d1a;
    border-bottom: 1px solid #1a1a2e;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid #1a1a2e;
    border-radius: 20px;
    padding: 8px 20px;
    color: #aaaaaa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Segoe UI', sans-serif;
}

.filter-btn:hover {
    border-color: #00f5ff;
    color: #00f5ff;
}

.filter-active {
    background: rgba(0, 245, 255, 0.1);
    border-color: #00f5ff;
    color: #00f5ff;
}

.filter-select {
    background: #0a0a0f;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
    padding: 8px 16px;
    color: #aaaaaa;
    font-size: 13px;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: #00f5ff;
    color: #ffffff;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }
    .page-header-stats {
        gap: 24px;
        justify-content: center;
    }
    .filters-bar {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===== AUTH NAV STATE ===== */
.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-username {
    color: #00f5ff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #00f5ff22;
    padding: 6px 14px;
    border-radius: 20px;
    background: #00f5ff11;
    transition: all 0.2s;
}

.nav-username:hover {
    background: #00f5ff22;
}

.btn-logout {
    background: transparent;
    border: 1px solid #ff3232;
    color: #ff3232;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-logout:hover {
    background: #ff323222;
}