/**
 * 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: 7rem 0 3rem;
    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%);
}

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

/* Back Link */
.back-to-hub {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--t-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-to-hub:hover {
    color: #fff;
}

/* 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;
}

.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);
}

/* ========================================
   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;
    }
}
