/**
 * ECV Tournaments - Professional CS2 Design
 * Tournament page styling with map banners and tabs
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --t-primary: var(--primary, #FF6B00);
    --t-primary-hover: var(--primary-hover, #FF8533);
    --t-primary-soft: rgba(255, 107, 0, 0.12);
    --t-success: #22c55e;
    --t-success-soft: rgba(34, 197, 94, 0.1);
    --t-error: #ef4444;
    --t-error-soft: rgba(239, 68, 68, 0.1);
    --t-live: #ef4444;
    --t-bg: var(--surface, #ffffff);
    --t-bg-alt: var(--surface-light, #f8fafc);
    --t-bg-dark: #0d0d0d;
    --t-border: var(--border, rgba(0, 0, 0, 0.1));
    --t-text: var(--text-primary, #1a1a2e);
    --t-text-secondary: var(--text-secondary, #64748b);
    --t-text-muted: var(--text-muted, #94a3b8);
    --t-radius: 12px;
    --t-radius-sm: 6px;
    --t-discord: #5865F2;
    --t-twitch: #9146FF;
    --t-gold: #FFD700;
    --t-silver: #C0C0C0;
    --t-bronze: #CD7F32;
}

/* ========================================
   Tournament Page - Professional Layout
   ======================================== */
.tournament-page-pro {
    background: var(--secondary, #0d0d0d);
    min-height: 100vh;
}

/* ========================================
   Hero Section with Map Banner
   ======================================== */
.tournament-hero-pro {
    position: relative;
    padding: 3rem 0 3.5rem;
    overflow: hidden;
}

.tournament-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.maps-banner-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
}

.maps-banner-hero .maps-banner-inner {
    display: flex;
    height: 100%;
    width: 100%;
}

.maps-banner-hero .map-chevron {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%, 30px 50%);
    margin-left: -30px;
}

.maps-banner-hero .map-chevron:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}

.maps-banner-hero .map-chevron[data-map="dust2"] { background-image: url('../../../../themes/ecv-play/assets/images/maps/dust2.jpg'); }
.maps-banner-hero .map-chevron[data-map="mirage"] { background-image: url('../../../../themes/ecv-play/assets/images/maps/mirage.jpg'); }
.maps-banner-hero .map-chevron[data-map="inferno"] { background-image: url('../../../../themes/ecv-play/assets/images/maps/inferno.jpg'); }
.maps-banner-hero .map-chevron[data-map="ancient"] { background-image: url('../../../../themes/ecv-play/assets/images/maps/ancient.jpg'); }
.maps-banner-hero .map-chevron[data-map="nuke"] { background-image: url('../../../../themes/ecv-play/assets/images/maps/nuke.jpg'); }
.maps-banner-hero .map-chevron[data-map="anubis"] { background-image: url('../../../../themes/ecv-play/assets/images/maps/anubis.jpg'); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.7) 0%, rgba(13, 13, 13, 0.95) 100%);
}

/* Game-specific hero backgrounds */
.game-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

/* Game-specific overlay colors */
.game-overlay-lol {
    background: linear-gradient(180deg, rgba(11, 196, 226, 0.15) 0%, rgba(13, 13, 13, 0.95) 100%);
}

.game-overlay-valorant {
    background: linear-gradient(180deg, rgba(255, 70, 85, 0.15) 0%, rgba(13, 13, 13, 0.95) 100%);
}

.game-overlay-smash {
    background: linear-gradient(180deg, rgba(61, 189, 170, 0.15) 0%, rgba(13, 13, 13, 0.95) 100%);
}

.game-overlay-cs2 {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1) 0%, rgba(13, 13, 13, 0.95) 100%);
}

/* Game accent colors for status badges and highlights */
.tournament-page-pro[data-game="lol"] .status-badge-pro,
.tournament-page-pro[data-game="lol"] .btn-action-pro.primary {
    background: linear-gradient(135deg, #0BC4E2 0%, #0A9BB5 100%);
}

.tournament-page-pro[data-game="valorant"] .status-badge-pro,
.tournament-page-pro[data-game="valorant"] .btn-action-pro.primary {
    background: linear-gradient(135deg, #FF4655 0%, #CC3844 100%);
}

.tournament-page-pro[data-game="smash"] .status-badge-pro,
.tournament-page-pro[data-game="smash"] .btn-action-pro.primary {
    background: linear-gradient(135deg, #3dbdaa 0%, #2E9A8A 100%);
}

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

/* Back Link */
.back-to-hub {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.back-to-hub:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.back-to-hub svg {
    transition: transform 0.2s ease;
}

.back-to-hub:hover svg {
    transform: translateX(-3px);
}

/* Title Section */
.tournament-title-section {
    margin-bottom: 2rem;
}

.status-badge-pro {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 1rem;
}

.status-badge-pro.status-active {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-badge-pro.status-registration {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-badge-pro.status-completed {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

/* Tournament title row with prize badge */
.tournament-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tournament-title-row h1 {
    margin: 0;
}

/* Prize badge in hero - next to title */
.prize-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
    color: #ffc107;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    white-space: nowrap;
}

.prize-badge-hero svg {
    fill: #ffc107;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

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

.tournament-title-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tournament-date-hero {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--t-text-muted);
    font-size: 1rem;
    margin: 0;
}

.tournament-date-hero svg {
    opacity: 0.6;
}

/* Stats Bar */
.tournament-stats-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 2rem;
    border-radius: var(--t-radius);
    margin-bottom: 2rem;
}

.stat-item-pro {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item-pro .stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--t-text-muted);
}

.stat-item-pro.highlight .stat-icon {
    background: var(--t-primary-soft);
    color: var(--t-primary);
}

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

.stat-value-pro {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.stat-item-pro.highlight .stat-value-pro {
    color: var(--t-primary);
}

.stat-label-pro {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider-pro {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Action Buttons */
.tournament-actions-hero {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-action-pro {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--t-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-action-pro.primary {
    background: var(--t-primary);
    color: #fff;
}

.btn-action-pro.primary:hover {
    background: var(--t-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.btn-action-pro.stream {
    background: var(--t-twitch);
    color: #fff;
}

.btn-action-pro.stream:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.btn-action-pro.stream .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.btn-action-pro.discord {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-action-pro.discord:hover {
    background: var(--t-discord);
    border-color: var(--t-discord);
}

/* ========================================
   Tab Navigation
   ======================================== */
.tournament-tabs-pro {
    background: var(--surface, #1a1f26);
    border-bottom: 1px solid var(--t-border);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.tabs-wrapper-pro {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0;
    overflow-x: auto;
}

.tournament-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--t-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--t-radius);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tournament-tab:hover {
    color: var(--t-text);
    background: var(--t-bg-alt);
}

.tournament-tab.active {
    color: var(--t-primary);
    background: var(--t-primary-soft);
}

.tournament-tab.highlight {
    color: var(--t-primary);
}

.tournament-tab.highlight.active {
    background: var(--t-primary);
    color: #fff;
}

.tab-count {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--t-bg-alt);
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
}

.tournament-tab.active .tab-count {
    background: rgba(255, 107, 0, 0.2);
}

/* ========================================
   Main Content Area
   ======================================== */
.tournament-main-pro {
    padding: 2rem 0 4rem;
}

.tab-content-pro {
    display: none;
}

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

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

/* ========================================
   Bracket Tab
   ======================================== */
.bracket-container-pro {
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    overflow: hidden;
}

.bracket-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--t-border);
    background: var(--t-bg-alt);
}

.bracket-header-pro h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0;
}

.bracket-header-pro h2 svg {
    color: var(--t-primary);
}

.live-stream-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--t-twitch);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.live-stream-badge:hover {
    transform: scale(1.05);
}

.bracket-content-pro {
    padding: 1.5rem;
    overflow-x: auto;
}

/* Bracket Pending */
.bracket-pending-pro {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
}

.pending-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-bg-alt);
    border-radius: 50%;
    color: var(--t-text-muted);
}

.bracket-pending-pro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0 0 0.5rem;
}

.bracket-pending-pro p {
    color: var(--t-text-secondary);
    margin: 0 0 1rem;
}

.deadline-note {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--t-primary-soft);
    color: var(--t-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
}

/* ========================================
   Teams Tab
   ======================================== */
.teams-container-pro {
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    overflow: hidden;
}

.teams-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--t-border);
    background: var(--t-bg-alt);
}

.teams-header-pro h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0;
}

.teams-header-pro h2 svg {
    color: var(--t-primary);
}

.teams-count-badge {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--t-primary);
    background: var(--t-primary-soft);
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

.teams-grid-pro {
    display: flex;
    flex-direction: column;
}

.team-card-pro {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--t-border);
    transition: background 0.2s;
}

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

.team-card-pro:hover {
    background: var(--t-bg-alt);
}

.team-card-pro.seed-1 { border-left: 4px solid var(--t-gold); }
.team-card-pro.seed-2 { border-left: 4px solid var(--t-silver); }
.team-card-pro.seed-3 { border-left: 4px solid var(--t-bronze); }

.team-seed {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--t-text-muted);
    background: var(--t-bg-alt);
    border-radius: 6px;
    flex-shrink: 0;
}

.team-card-pro.seed-1 .team-seed { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.team-card-pro.seed-2 .team-seed { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.team-card-pro.seed-3 .team-seed { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

.team-avatar-pro {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--t-primary), var(--t-primary-hover));
    border-radius: 10px;
    flex-shrink: 0;
}

.team-avatar-pro.has-logo {
    background: var(--t-bg-alt);
    border: 2px solid var(--t-primary);
    padding: 4px;
}

.team-avatar-pro span {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.team-avatar-pro .team-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ECV Team highlight */
.team-card-pro.ecv-team {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, transparent 100%);
}

.team-card-pro.ecv-team:hover {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, var(--t-bg-alt) 100%);
}

.team-info-pro {
    flex: 1;
    min-width: 0;
}

.team-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-name-pro {
    font-size: 1rem;
    font-weight: 600;
    color: var(--t-text);
    text-decoration: none;
}

a.team-name-pro:hover {
    color: var(--t-primary);
}

.team-tag-pro {
    font-size: 0.8125rem;
    color: var(--t-text-muted);
}

.team-meta-pro {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.team-meta-pro span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--t-text-secondary);
}

.team-meta-pro .captain svg {
    color: var(--t-gold);
}

.team-status-pro {
    flex-shrink: 0;
}

.status-badge-mini {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    background: var(--t-success-soft);
    color: var(--t-success);
}

.teams-empty-pro {
    text-align: center;
    padding: 4rem 2rem;
}

.teams-empty-pro p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--t-text);
    margin: 1rem 0 0.25rem;
}

.teams-empty-pro span {
    color: var(--t-text-secondary);
}

/* ========================================
   Info Tab
   ======================================== */
.info-container-pro {
    max-width: 900px;
}

.info-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-card-pro {
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    padding: 1.5rem;
}

.info-card-pro.description,
.info-card-pro.rules {
    grid-column: span 2;
}

.info-card-pro.discord-cta {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
    border-color: rgba(88, 101, 242, 0.3);
}

.info-card-pro h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0 0 1rem;
}

.info-card-pro h3 svg {
    color: var(--t-primary);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--t-border);
}

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

.info-row.highlight {
    background: var(--t-primary-soft);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--t-radius-sm);
    border-bottom: none;
}

.info-label {
    font-size: 0.9375rem;
    color: var(--t-text-secondary);
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--t-text);
}

.info-row.highlight .info-value {
    color: var(--t-primary);
}

.info-card-pro .prose {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--t-text-secondary);
}

.rules-list-pro {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rules-list-pro li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--t-text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.rules-list-pro li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--t-primary);
    border-radius: 50%;
}

/* Discord CTA */
.discord-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-discord);
    border-radius: 14px;
    color: #fff;
    flex-shrink: 0;
}

.discord-content {
    flex: 1;
}

.discord-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0 0 0.25rem;
}

.discord-content p {
    font-size: 0.9375rem;
    color: var(--t-text-secondary);
    margin: 0;
}

.discord-btn-pro {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--t-discord);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--t-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.discord-btn-pro:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* ========================================
   Register Tab
   ======================================== */
.register-container-pro {
    max-width: 600px;
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    overflow: hidden;
}

.register-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--t-border);
    background: var(--t-bg-alt);
}

.register-header-pro h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0;
}

.register-header-pro h2 svg {
    color: var(--t-primary);
}

.deadline-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--t-primary);
    background: var(--t-primary-soft);
    padding: 0.5rem 0.875rem;
    border-radius: 100px;
}

.register-form-pro {
    padding: 1.5rem;
}

/* ========================================
   Bracket Styling (Existing)
   ======================================== */
.bracket-wrap {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.bracket-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t-text-secondary);
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

.bracket-label.losers {
    margin-top: 2rem;
    color: var(--t-text-muted);
}

.bracket-label.grand {
    margin-top: 2rem;
    color: var(--t-primary);
}

.bracket-grid {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.round-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--t-text-muted);
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--t-bg-alt);
    border-radius: var(--t-radius-sm);
}

.round-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 0.75rem;
}

.match-box {
    background: var(--t-bg);
    border: 2px solid var(--t-border);
    border-radius: var(--t-radius-sm);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.match-box:hover {
    border-color: var(--t-primary);
}

.match-box.live {
    border-color: var(--t-live);
    animation: liveGlow 2s ease-in-out infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
}

.match-box.grand {
    border-color: var(--t-primary);
    border-width: 3px;
    background: linear-gradient(135deg, var(--t-bg) 0%, var(--t-primary-soft) 100%);
}

.match-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--t-border);
    transition: background 0.2s;
}

.match-slot:last-child {
    border-bottom: none;
}

.match-slot.winner {
    background: var(--t-success-soft);
}

.match-slot.winner .slot-name {
    color: var(--t-success);
    font-weight: 700;
}

.match-slot.winner .slot-score {
    color: var(--t-success);
}

.slot-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 0.75rem;
}

.slot-score {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--t-text);
    min-width: 20px;
    text-align: center;
    background: var(--t-bg-alt);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.bracket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--t-text-muted);
}

.bracket-empty svg {
    opacity: 0.3;
}

.bracket-empty span {
    font-size: 0.9375rem;
}

/* ========================================
   Registration Form Styles (Keep existing)
   ======================================== */
.reg-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--t-discord);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--t-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.reg-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--t-text-muted);
    font-size: 0.8125rem;
}

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

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--t-text-muted);
}

.input-row {
    display: flex;
    gap: 0.75rem;
}

.input-group {
    flex: 1;
}

.reg-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--t-border);
    border-radius: var(--t-radius-sm);
    background: var(--t-bg);
    color: var(--t-text);
    transition: border-color 0.2s;
}

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

.reg-form input:focus {
    outline: none;
    border-color: var(--t-primary);
}

.members-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-row-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-num {
    width: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--t-text-muted);
    text-align: center;
    flex-shrink: 0;
}

.member-row-compact input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    background: var(--t-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--t-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--t-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-msg {
    padding: 1rem;
    font-size: 0.9375rem;
    border-radius: var(--t-radius-sm);
    text-align: center;
}

.form-msg.success {
    background: var(--t-success-soft);
    color: var(--t-success);
}

.form-msg.error {
    background: var(--t-error-soft);
    color: var(--t-error);
}

/* Auth Required State */
.reg-auth-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--t-bg-alt);
    border: 2px dashed var(--t-border);
    border-radius: var(--t-radius);
}

.auth-icon {
    color: var(--t-primary);
    margin-bottom: 1rem;
}

.auth-icon.warning {
    color: #f59e0b;
}

.reg-auth-required h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0 0 0.5rem;
}

.reg-auth-required p {
    font-size: 0.9375rem;
    color: var(--t-text-secondary);
    margin: 0 0 1.5rem;
    max-width: 300px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
}

.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--t-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-auth.primary {
    background: var(--t-primary);
    color: white;
}

.btn-auth.primary:hover {
    background: var(--t-primary-hover);
    transform: translateY(-2px);
}

.btn-auth.secondary {
    background: var(--t-bg);
    color: var(--t-text);
    border: 2px solid var(--t-border);
}

.btn-auth.secondary:hover {
    border-color: var(--t-primary);
    color: var(--t-primary);
}

.btn-auth.discord {
    background: var(--t-discord);
    color: white;
}

.btn-auth.discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.auth-note {
    font-size: 0.8125rem;
    color: var(--t-text-muted);
    margin-top: 1rem;
}

/* Steps Flow - 2-step Discord setup */
.reg-auth-required.steps-flow {
    padding: 2rem 1.5rem;
}

.auth-steps {
    width: 100%;
    max-width: 320px;
    margin: 1.5rem 0;
}

.auth-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--t-text);
}

.step-divider {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0 0.25rem 16px;
    color: var(--t-text-muted);
    opacity: 0.5;
}

/* Discord Join Button - slightly different style */
.btn-auth.discord-join {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.btn-auth.discord-join:hover {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
}

/* Responsive steps */
@media (max-width: 480px) {
    .reg-auth-required.steps-flow {
        padding: 1.5rem 1rem;
    }

    .auth-steps {
        max-width: 100%;
    }

    .auth-step {
        gap: 0.75rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .btn-auth {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

/* Captain Info Display */
.captain-info-display {
    margin-bottom: 0.5rem;
}

.captain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--t-success-soft);
    color: var(--t-success);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
}

/* Readonly fields */
.readonly-field {
    background: var(--t-bg-alt) !important;
    color: var(--t-text-muted) !important;
    cursor: not-allowed;
}

/* Section hint */
.section-hint {
    font-weight: 400;
    font-size: 0.6875rem;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.7;
}

/* Member Discord Wrapper with validation status */
.member-discord-wrap {
    position: relative;
    flex: 1;
}

.member-discord-wrap input {
    width: 100%;
    padding-right: 2rem;
}

.member-status {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.member-status.valid::after {
    content: '✓';
    color: var(--t-success);
    font-weight: bold;
}

.member-status.invalid::after {
    content: '✗';
    color: var(--t-error);
    font-weight: bold;
}

.member-status.loading::after {
    content: '...';
    color: var(--t-text-muted);
}

/* Members note */
.members-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--t-text-muted);
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--t-bg-alt);
    border-radius: var(--t-radius-sm);
}

.members-note svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.members-note a {
    color: var(--t-primary);
    text-decoration: none;
}

.members-note a:hover {
    text-decoration: underline;
}

/* Spin animation for loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   Teams Widget (Sidebar)
   ======================================== */
.teams-widget {
    padding: 1.25rem;
}

.teams-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.teams-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0;
}

.teams-counter {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--t-primary);
    background: var(--t-primary-soft);
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
}

.teams-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--t-bg-alt);
    border-radius: var(--t-radius-sm);
    transition: background 0.2s;
}

.team-row:hover {
    background: var(--t-border);
}

.team-seed-num {
    width: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--t-primary);
    text-align: center;
    flex-shrink: 0;
}

.team-details {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.team-name-compact {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-tag-compact {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    flex-shrink: 0;
}

.teams-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--t-text-muted);
    font-size: 0.875rem;
}

.slots-info {
    margin-top: 1rem;
    padding: 0.625rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--t-primary);
    background: var(--t-primary-soft);
    border-radius: var(--t-radius-sm);
}

.slots-info.full {
    background: var(--t-error-soft);
    color: var(--t-error);
}

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

    .info-card-pro.description,
    .info-card-pro.rules,
    .info-card-pro.discord-cta {
        grid-column: span 1;
    }

    .info-card-pro.discord-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .tournament-hero-pro {
        padding: 6rem 0 2rem;
    }

    .tournament-title-section h1 {
        font-size: 2rem;
    }

    .tournament-stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .stat-divider-pro {
        display: none;
    }

    .stat-item-pro {
        min-width: calc(50% - 0.5rem);
    }

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

    .btn-action-pro {
        width: 100%;
        justify-content: center;
    }

    .tabs-wrapper-pro {
        gap: 0.125rem;
    }

    .tournament-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .tournament-tab span:not(.tab-count) {
        display: none;
    }

    .maps-banner-hero .map-chevron {
        clip-path: none;
        margin-left: 0;
    }

    .input-row {
        flex-direction: column;
    }

    .member-row-compact {
        flex-wrap: wrap;
    }

    .member-row-compact input {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .tournament-title-section h1 {
        font-size: 1.75rem;
    }

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

    .slot-name {
        font-size: 0.75rem;
    }
}

/* ========================================
   Tournament Page Sidebar
   ======================================== */

.tournament-main-pro .hub-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.tournament-main-pro .hub-main-content {
    min-width: 0;
}

.tournament-sidebar {
    position: sticky;
    top: 100px;
}

.tournament-sidebar .sidebar-widget {
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.tournament-sidebar .widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tournament-sidebar .widget-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--t-text);
    margin: 0;
}

.tournament-sidebar .widget-header svg {
    color: var(--t-primary);
}

.tournament-sidebar .sidebar-widget p {
    font-size: 0.875rem;
    color: var(--t-text-muted);
    margin: 0 0 1rem;
}

.tournament-sidebar .widget-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tournament-sidebar .widget-stat {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--t-surface-light);
    border-radius: 8px;
}

.tournament-sidebar .widget-stat .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-text);
}

.tournament-sidebar .widget-stat .stat-label {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-sidebar .widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
}

.tournament-sidebar .widget-btn.primary {
    background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-primary-dark, #2a9d8f) 100%);
    color: #fff;
}

.tournament-sidebar .widget-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 189, 170, 0.3);
}

.tournament-sidebar .widget-btn.discord {
    background: #5865F2;
    color: #fff;
    margin-top: 0.5rem;
}

.tournament-sidebar .widget-btn.discord:hover {
    background: #4752c4;
}

.tournament-sidebar .widget-deadline {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--t-text-muted);
    margin-top: 0.75rem;
}

/* Game Badge Widget */
.tournament-sidebar .game-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.tournament-sidebar .game-widget .game-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.tournament-sidebar .game-widget .game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--t-text);
}

.tournament-sidebar .game-widget.game-lol {
    border-color: rgba(11, 196, 226, 0.3);
}

.tournament-sidebar .game-widget.game-cs2 {
    border-color: rgba(255, 215, 0, 0.3);
}

.tournament-sidebar .game-widget.game-valorant {
    border-color: rgba(255, 70, 85, 0.3);
}

.tournament-sidebar .game-widget.game-smash {
    border-color: rgba(61, 189, 170, 0.3);
}

/* Discord Widget */
.tournament-sidebar .discord-widget-sidebar .widget-header svg {
    color: #5865F2;
}

/* Game-specific accent colors for registration button */
.tournament-page-pro[data-game="lol"] .tournament-sidebar .widget-btn.primary {
    background: linear-gradient(135deg, #0BC4E2 0%, #0A9BB5 100%);
}

.tournament-page-pro[data-game="valorant"] .tournament-sidebar .widget-btn.primary {
    background: linear-gradient(135deg, #FF4655 0%, #CC3844 100%);
}

.tournament-page-pro[data-game="smash"] .tournament-sidebar .widget-btn.primary {
    background: linear-gradient(135deg, #3dbdaa 0%, #2E9A8A 100%);
}

.tournament-page-pro[data-game="cs2"] .tournament-sidebar .widget-btn.primary {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF00 100%);
    color: #000;
}

/* Responsive: Hide sidebar on mobile */
@media (max-width: 1024px) {
    .tournament-main-pro .hub-grid {
        grid-template-columns: 1fr;
    }

    .tournament-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .tournament-sidebar {
        display: none;
    }
}

/* ========================================
   My Teams - Team Management Page
   ======================================== */
.my-teams-container {
    max-width: 900px;
    margin: 0 auto;
}

/* No Teams Message */
.no-teams-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
}

.no-teams-icon {
    margin-bottom: 1.5rem;
    color: var(--t-text-muted);
}

.no-teams-icon svg {
    opacity: 0.5;
}

.no-teams-message h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--t-text);
}

.no-teams-message p {
    margin: 0 0 1.5rem;
    color: var(--t-text-secondary);
}

/* Teams List */
.teams-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Team Card */
.my-team-card {
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.my-team-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Game-specific accent borders */
.my-team-card.game-cs2 {
    border-left: 3px solid var(--t-gold);
}

.my-team-card.game-lol {
    border-left: 3px solid #0BC4E2;
}

.my-team-card.game-valorant {
    border-left: 3px solid #FF4655;
}

.my-team-card.game-smash {
    border-left: 3px solid #3dbdaa;
}

/* Team Card Header */
.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--t-border);
    background: var(--t-bg-alt);
}

.team-identity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--t-primary);
    background: var(--t-primary-soft);
    padding: 0.25rem 0.5rem;
    border-radius: var(--t-radius-sm);
}

.team-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--t-text);
}

.team-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-status.status-registration {
    background: var(--t-success-soft);
    color: var(--t-success);
}

.team-status.status-seeding {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.team-status.status-active {
    background: var(--t-primary-soft);
    color: var(--t-primary);
}

.team-status.status-completed {
    background: rgba(100, 116, 139, 0.1);
    color: var(--t-text-secondary);
}

/* Tournament Info Row */
.team-tournament-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--t-bg-alt);
    border-bottom: 1px solid var(--t-border);
}

.tournament-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t-primary);
    text-decoration: none;
    transition: opacity 0.15s;
}

.tournament-link:hover {
    opacity: 0.8;
}

.tournament-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--t-text-secondary);
}

/* Team Members Section */
.team-members-section {
    padding: 1rem 1.25rem;
}

.members-header {
    margin-bottom: 0.75rem;
}

.members-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--t-text-muted);
}

.members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--t-bg-alt);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-sm);
    font-size: 0.875rem;
}

.member-item.captain {
    background: var(--t-primary-soft);
    border-color: var(--t-primary);
}

.member-role {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--t-text-muted);
    background: var(--t-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.member-item.captain .member-role {
    color: var(--t-primary);
}

.member-name {
    color: var(--t-text);
}

/* Team Card Footer */
.team-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--t-bg);
    border-top: 1px solid var(--t-border);
}

.registered-date {
    font-size: 0.75rem;
    color: var(--t-text-muted);
}

.team-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-team-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    border-radius: var(--t-radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-team-action.view {
    background: var(--t-bg-alt);
    color: var(--t-text);
    border: 1px solid var(--t-border);
}

.btn-team-action.view:hover {
    background: var(--t-bg);
    border-color: var(--t-primary);
    color: var(--t-primary);
}

.btn-team-action.delete {
    background: var(--t-error-soft);
    color: var(--t-error);
}

.btn-team-action.delete:hover {
    background: var(--t-error);
    color: #fff;
}

/* Delete Modal */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.team-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.team-modal .modal-content {
    position: relative;
    background: var(--t-bg);
    border-radius: var(--t-radius);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.team-modal h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--t-text);
}

.team-modal p {
    margin: 0 0 0.5rem;
    color: var(--t-text-secondary);
}

.team-modal .modal-warning {
    font-size: 0.875rem;
    color: var(--t-error);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--t-radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-modal.cancel {
    background: var(--t-bg-alt);
    color: var(--t-text);
    border: 1px solid var(--t-border);
}

.btn-modal.cancel:hover {
    background: var(--t-bg);
}

.btn-modal.confirm-delete {
    background: var(--t-error);
    color: #fff;
}

.btn-modal.confirm-delete:hover {
    background: #dc2626;
}

.btn-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .team-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .team-tournament-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .team-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .team-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Check-in System Styles
   ======================================== */

/* Check-in Tab */
.tournament-tab.checkin-tab {
    color: var(--t-success);
}

.tournament-tab.checkin-tab.active {
    background: var(--t-success-soft);
    color: var(--t-success);
}

/* Check-in Container */
.checkin-container-pro {
    background: var(--t-bg);
    border-radius: var(--t-radius);
    padding: 2rem;
    border: 1px solid var(--t-border);
}

.checkin-header-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.checkin-header-pro h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0;
}

.checkin-header-pro h2 svg {
    color: var(--t-success);
}

.checkin-deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.checkin-deadline-badge.open {
    background: var(--t-success-soft);
    color: var(--t-success);
}

.checkin-deadline-badge.closed {
    background: var(--t-error-soft);
    color: var(--t-error);
}

/* Check-in Window Status */
.checkin-window-status {
    margin-bottom: 2rem;
}

.checkin-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--t-radius);
    border: 1px solid var(--t-border);
}

.checkin-status-card .status-icon {
    margin-bottom: 1rem;
    color: var(--t-text-muted);
}

.checkin-status-card .status-icon.pulse svg {
    animation: pulse-glow 2s ease-in-out infinite;
}

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

.checkin-status-card.waiting {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, rgba(100, 116, 139, 0.05) 100%);
}

.checkin-status-card.waiting .status-icon {
    color: var(--t-text-secondary);
}

.checkin-status-card.open {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.checkin-status-card.open .status-icon {
    color: var(--t-success);
}

.checkin-status-card.closed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.checkin-status-card.closed .status-icon {
    color: var(--t-error);
}

.checkin-status-card.active {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0.05) 100%);
    border-color: rgba(255, 107, 0, 0.3);
}

.checkin-status-card.active .status-icon {
    color: var(--t-primary);
}

.checkin-status-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0 0 0.5rem;
}

.checkin-status-card p {
    color: var(--t-text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.checkin-status-card .start-time {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--t-bg-alt);
    border-radius: var(--t-radius-sm);
    font-size: 0.875rem;
    color: var(--t-text-muted);
}

/* Login/Discord Required States */
.checkin-login-required,
.checkin-discord-required,
.checkin-no-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background: var(--t-bg-alt);
    border-radius: var(--t-radius);
    border: 1px solid var(--t-border);
}

.checkin-login-required svg,
.checkin-discord-required svg,
.checkin-no-team svg {
    color: var(--t-text-muted);
    margin-bottom: 1rem;
}

.checkin-login-required h4,
.checkin-discord-required h4,
.checkin-no-team h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--t-text);
    margin: 0 0 0.5rem;
}

.checkin-login-required p,
.checkin-discord-required p,
.checkin-no-team p {
    color: var(--t-text-secondary);
    margin: 0 0 1.5rem;
}

.btn-login-checkin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--t-discord);
    color: #fff;
    border-radius: var(--t-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login-checkin:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

/* Team Check-in Card */
.team-checkin-card {
    background: var(--t-bg-alt);
    border-radius: var(--t-radius);
    border: 1px solid var(--t-border);
    overflow: hidden;
}

.team-checkin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--t-bg);
    border-bottom: 1px solid var(--t-border);
}

.team-checkin-header .team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-checkin-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0;
}

.team-checkin-header .team-tag {
    color: var(--t-text-muted);
    font-size: 0.875rem;
}

.checkin-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkin-progress .progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--t-text);
}

.checkin-progress .checked-count {
    color: var(--t-success);
}

.checkin-progress .progress-bar {
    width: 80px;
    height: 6px;
    background: var(--t-border);
    border-radius: 3px;
    overflow: hidden;
}

.checkin-progress .progress-fill {
    height: 100%;
    background: var(--t-success);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Team Members List */
.team-members-checkin {
    padding: 0.5rem 0;
}

.member-checkin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--t-border);
    transition: background 0.2s;
}

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

.member-checkin-row:hover {
    background: var(--t-bg);
}

.member-checkin-row.checked-in {
    background: var(--t-success-soft);
}

.member-checkin-row .member-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-checkin-row .captain-icon {
    color: var(--t-gold);
}

.member-checkin-row .member-name {
    font-weight: 600;
    color: var(--t-text);
}

.member-checkin-row .member-discord {
    color: var(--t-text-muted);
    font-size: 0.875rem;
}

.member-checkin-row .member-status {
    font-size: 0.875rem;
}

.member-checkin-row .status-checked {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--t-success);
    font-weight: 600;
}

.member-checkin-row .status-pending {
    color: var(--t-text-muted);
}

/* Check-in Actions */
.team-checkin-actions {
    padding: 1.25rem 1.5rem;
    background: var(--t-bg);
    border-top: 1px solid var(--t-border);
    text-align: center;
}

.btn-checkin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    background: var(--t-success);
    color: #fff;
    border: none;
    border-radius: var(--t-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkin:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-checkin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.checkin-complete-message,
.checkin-waiting-message {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    font-weight: 600;
}

.checkin-complete-message {
    color: var(--t-success);
}

.checkin-complete-message svg {
    color: var(--t-success);
}

.checkin-waiting-message {
    color: var(--t-text-secondary);
}

.checkin-not-available {
    color: var(--t-text-muted);
    font-size: 0.875rem;
}

/* Phone Input Styling */
.phone-row {
    flex-direction: column;
}

.phone-input-group {
    width: 100%;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--t-bg);
    border: 2px solid var(--t-border);
    border-radius: var(--t-radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--t-primary);
}

.phone-prefix {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    background: var(--t-bg-alt);
    color: var(--t-text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    border-right: 1px solid var(--t-border);
    white-space: nowrap;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    min-width: 0;
}

.phone-input-wrapper input[type="tel"]:focus {
    outline: none;
}

.phone-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--t-text-muted);
}

.phone-hint svg {
    color: #25D366; /* WhatsApp green */
}

/* Check-in Responsive */
@media (max-width: 640px) {
    .checkin-container-pro {
        padding: 1.25rem;
    }

    .checkin-header-pro {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkin-status-card {
        padding: 1.5rem;
    }

    .team-checkin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .checkin-progress {
        width: 100%;
    }

    .checkin-progress .progress-bar {
        flex: 1;
    }

    .member-checkin-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }

    .member-checkin-row .member-info {
        flex-wrap: wrap;
    }

    .team-checkin-actions {
        padding: 1rem;
    }

    .btn-checkin {
        max-width: 100%;
    }
}

/* ========================================
   Already Registered / Unregister Section
   ======================================== */
.ecv-already-registered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--t-bg);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
}

.ecv-already-registered .registered-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-success-soft);
    border-radius: 50%;
    color: var(--t-success);
    margin-bottom: 1.25rem;
}

.ecv-already-registered h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--t-text);
    margin: 0 0 1rem;
}

.ecv-already-registered .registered-team-name {
    font-size: 1rem;
    color: var(--t-text-secondary);
    margin: 0 0 0.5rem;
}

.ecv-already-registered .registered-team-name strong {
    color: var(--t-text);
    font-weight: 600;
}

.ecv-already-registered .team-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--t-primary);
    background: var(--t-primary-soft);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

.ecv-already-registered .registered-date {
    font-size: 0.875rem;
    color: var(--t-text-muted);
    margin: 0 0 1.5rem;
}

.ecv-already-registered .unregister-section {
    width: 100%;
    max-width: 360px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--t-border);
}

.ecv-already-registered .unregister-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #f59e0b;
    margin: 0 0 1rem;
    padding: 0.625rem 0.875rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--t-radius-sm);
}

.ecv-already-registered .unregister-warning svg {
    flex-shrink: 0;
}

.btn-unregister {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--t-error-soft);
    color: var(--t-error);
    border: 1px solid transparent;
    border-radius: var(--t-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-unregister:hover {
    background: var(--t-error);
    color: #fff;
    transform: translateY(-1px);
}

.btn-unregister:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-unregister .spin {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .ecv-already-registered {
        padding: 2rem 1.25rem;
    }

    .ecv-already-registered .registered-icon {
        width: 60px;
        height: 60px;
    }

    .ecv-already-registered h3 {
        font-size: 1.125rem;
    }
}
