/* ============================================
   RESPAWN 2027 — LAN Party Website
   Dark/Modern Theme with Red Accent
   ============================================ */

:root {
    --bg-deep: #08090d;
    --bg-primary: #0c0e14;
    --bg-secondary: #12151e;
    --bg-card: #161922;
    --bg-card-hover: #1a1e2a;
    --text-primary: #e8eaef;
    --text-secondary: #7a8194;
    --text-muted: #4a5068;
    --accent: #c81e28;
    --accent-bright: #e62e3a;
    --accent-dark: #8a1520;
    --accent-glow: rgba(200, 30, 40, 0.3);
    --success: #2dd4a0;
    --danger: #ef4444;
    --warning: #f5a623;
    --border: #1e2233;
    --border-light: #262b3d;
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--accent-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ff3d4a; }

/* ---- Landing Backdrop ---- */
.landing-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200, 30, 40, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(200, 30, 40, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 10% 60%, rgba(120, 20, 30, 0.10) 0%, transparent 50%),
        var(--bg-deep);
    overflow: hidden;
}

.landing-backdrop::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    top: -150px;
    right: -50px;
    background: radial-gradient(circle, rgba(200, 30, 40, 0.15) 0%, transparent 65%);
    animation: bgDrift1 20s ease-in-out infinite;
    pointer-events: none;
}

.landing-backdrop::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -50px;
    background: radial-gradient(circle, rgba(200, 30, 40, 0.10) 0%, transparent 65%);
    animation: bgDrift2 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-100px, 80px); }
    66% { transform: translate(60px, 40px); }
}

@keyframes bgDrift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -60px); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 30, 40, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 30, 40, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 0%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
}

/* ---- Particles ---- */
.landing-particles,
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.landing-particles canvas,
.bg-particles canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---- Landing Container ---- */
.landing-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6vh 2rem 2rem;
    gap: 1.5rem;
}

/* ---- Hero ---- */
.landing-hero {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    width: min(340px, 80vw);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(200, 30, 40, 0.25));
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(200, 30, 40, 0.25)); }
    50% { filter: drop-shadow(0 0 60px rgba(200, 30, 40, 0.4)); }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-counter {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-top: 0.4rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ---- Countdown ---- */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cd-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: 0.02em;
}

.cd-lbl {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.cd-sep {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.countdown-live {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ---- Login Card ---- */
.login-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: min(420px, 90vw);
    animation: fadeInUp 0.8s ease-out 0.5s both;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 30, 40, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.login-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.card-logo {
    width: 140px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(200, 30, 40, 0.2));
}

/* ---- Form ---- */
.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: rgba(200, 30, 40, 0.03);
}

.form-group input::placeholder {
    color: transparent;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition);
    background: var(--bg-card);
    padding: 0 0.35rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.input-line {
    display: none;
}

/* ---- Remember Me / Checkbox ---- */
.remember-row {
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-label input:checked ~ .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(200, 30, 40, 0.25);
}
.login-card .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
    box-shadow: 0 6px 30px rgba(200, 30, 40, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(200, 30, 40, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* ---- Card Footer ---- */
.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-footer a {
    font-weight: 500;
}

/* ---- Alerts ---- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(45, 212, 160, 0.1);
    border: 1px solid rgba(45, 212, 160, 0.2);
    color: #6ee7b7;
}

.alert-warning {
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    color: #fbbf24;
}

.recent-signups {
    max-width: 400px;
    margin: 1rem auto 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.recent-signups strong {
    color: var(--text-primary);
}

.info-hint {
    max-width: 400px;
    margin: 1.25rem auto 0;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

/* Password toggle */
.pw-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 0;
}
.pw-toggle:hover { color: var(--text-primary); }
.pw-toggle .pw-eye-closed { display: none; }
.pw-toggle.is-visible .pw-eye-open { display: none; }
.pw-toggle.is-visible .pw-eye-closed { display: inline; }
.form-group:has(.pw-toggle) input { padding-right: 2.2rem; }

/* ---- Register Layout ---- */
.register-layout {
    padding-top: 5vh;
    justify-content: center;
}

.register-card {
    width: min(480px, 90vw);
    animation-delay: 0.2s;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
    z-index: 2;
}

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

/* ---- Dashboard ---- */
.dashboard-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.dash-logo {
    height: 48px;
    width: auto;
}

.dash-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.dash-content {
    display: flex;
    justify-content: center;
}

.dash-content .login-card {
    width: min(600px, 100%);
    animation-delay: 0.1s;
}

/* ---- Countdown Widget ---- */
.countdown-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.countdown-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1;
    letter-spacing: 0.02em;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.countdown-live {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    animation: timelinePulse 2s ease-in-out infinite;
}

@media (max-width: 480px) {
    .countdown-num { font-size: 1.5rem; }
    .countdown-box { min-width: 48px; }
}

/* ---- Stats Page ---- */
.stats-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stats-player-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background var(--transition), border-color var(--transition);
    color: var(--text-primary);
}

.stats-player-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.stats-top-1 {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.04);
}

.stats-top-2 {
    border-color: rgba(192, 192, 192, 0.25);
    background: rgba(192, 192, 192, 0.03);
}

.stats-top-3 {
    border-color: rgba(205, 127, 50, 0.25);
    background: rgba(205, 127, 50, 0.03);
}

.stats-rank {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
    color: var(--text-muted);
}

.stats-top-1 .stats-rank { color: #ffd700; }
.stats-top-2 .stats-rank { color: #c0c0c0; }
.stats-top-3 .stats-rank { color: #cd7f32; }

.stats-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stats-avatar-initial {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stats-name {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-detail {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.stats-wins { color: var(--success); }
.stats-losses { color: var(--danger); }
.stats-winrate { color: var(--text-secondary); }

.stats-tournaments {
    font-size: 0.75rem;
    white-space: nowrap;
}

.stats-results {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stats-result-card {
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.stats-result-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
}

.stats-result-team {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
}

.stats-result-team.is-winner {
    color: var(--success);
    font-weight: 600;
}

.stats-result-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    min-width: 40px;
    text-align: center;
}

.stats-result-meta {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .stats-player-row { flex-wrap: wrap; gap: 0.4rem; }
    .stats-detail { width: 100%; justify-content: flex-start; padding-left: calc(24px + 32px + 1.5rem); }
    .stats-tournaments { display: none; }
}

/* ---- Dashboard Result Feed ---- */
.dash-result-feed {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dash-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    gap: 0.5rem;
}

.dash-result-teams {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.dash-result-teams .is-winner {
    color: var(--success);
    font-weight: 600;
}

.dash-result-score {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

/* ---- Dashboard Predictions ---- */
.dash-predictions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-prediction-card {
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: opacity var(--transition);
}

.dash-prediction-done {
    opacity: 0.5;
}

.dash-prediction-meta {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
}

.dash-prediction-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-prediction-vs {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.dash-pred-btn {
    flex: 1;
    font-size: 0.8rem !important;
    padding: 0.35rem 0.5rem !important;
}

.dash-pred-btn.dash-pred-selected {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* ---- Dashboard Grid + Sidebar ---- */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.dash-main {
    min-width: 0;
}

.dash-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.dash-timeline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

/* ---- Checklist Widget ---- */
.dash-checklist {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.checklist-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.checklist-progress-bar {
    height: 100%;
    background: var(--success);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.checklist-progress-label {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.checklist-item:hover {
    background: var(--bg-card-hover);
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checklist-check {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
}

.checklist-item.is-checked .checklist-check {
    background: var(--success);
    border-color: var(--success);
}

.checklist-item.is-checked .checklist-check::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-label {
    font-size: 0.82rem;
    color: var(--text-primary);
    transition: color var(--transition);
}

.checklist-item.is-checked .checklist-label {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color var(--transition), transform var(--transition);
}

.gallery-item:hover {
    border-color: var(--border-light);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gallery-lightbox-close:hover { opacity: 1; }

.gallery-lightbox-caption {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Admin Gallery */
.gallery-dropzone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: border-color var(--transition), background var(--transition);
    cursor: pointer;
}

.gallery-dropzone.is-dragover {
    border-color: var(--accent-bright);
    background: rgba(200, 30, 40, 0.05);
}

.gallery-dropzone-content svg {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.gallery-dropzone-content p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.gallery-upload-progress {
    margin-top: 0.75rem;
}

.gallery-upload-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.gallery-upload-fill {
    height: 100%;
    background: var(--accent-bright);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gallery-upload-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.admin-gallery-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.admin-gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.admin-gallery-actions {
    display: flex;
    gap: 0.3rem;
    padding: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.timeline-day {
    margin-bottom: 1.5rem;
}

.timeline-day:last-child {
    margin-bottom: 0;
}

.timeline-day-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.timeline-track {
    position: relative;
    padding-left: 16px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-light);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -16px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-card);
    z-index: 1;
}

.timeline-cat-turnier .timeline-dot {
    border-color: var(--accent-bright);
    background: var(--accent-dark);
    box-shadow: 0 0 6px var(--accent-glow);
}

.timeline-cat-pause .timeline-dot {
    border-color: var(--warning);
    background: rgba(245, 166, 35, 0.2);
}

.timeline-cat-allgemein .timeline-dot {
    border-color: var(--text-muted);
    background: rgba(74, 80, 104, 0.2);
}

.timeline-now .timeline-dot {
    animation: timelinePulse 2s ease-in-out infinite;
}

.timeline-past {
    opacity: 0.45;
}

.timeline-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.timeline-cat-turnier .timeline-time {
    color: var(--accent-bright);
}

.timeline-cat-pause .timeline-time {
    color: var(--warning);
}

.timeline-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.timeline-card-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.timeline-now .timeline-card-title {
    color: #fff;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 4px var(--accent-glow); }
    50% { box-shadow: 0 0 12px var(--accent-glow), 0 0 20px var(--accent-glow); }
}

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

    .dash-sidebar {
        position: static;
        max-height: none;
    }
}

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

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

/* ---- Desktop: hide mobile elements ---- */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }

    .mobile-sidebar,
    .sidebar-backdrop {
        display: none !important;
    }
}

/* ---- Mobile: hide desktop nav, show burger + sidebar ---- */
@media (max-width: 768px) {
    .header-nav {
        display: none !important;
    }

    .nav-dropdown {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .mobile-sidebar {
        display: flex !important;
    }

    .sidebar-backdrop {
        display: block !important;
    }

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

    .page-content {
        padding: 1.5rem;
    }

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

@media (max-width: 600px) {
    .landing-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .hero-logo {
        width: min(260px, 70vw);
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cd-block {
        min-width: 45px;
    }

    .cd-num {
        font-size: 1.5rem;
    }

    .dash-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .attendee-card {
        padding: 0.85rem 1rem;
    }

    .profile-header-card {
        padding: 1.5rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

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

/* ---- Site Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo span {
    display: none;
}

.header-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.site-header .header-logo img {
    height: 120px;
    margin: 40px 0 -20px -40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.header-nav a {
    padding: 0.45rem 0.6rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.header-nav a.active {
    color: var(--accent-bright);
    background: rgba(200, 30, 40, 0.08);
}

/* ---- Nav Badge (notification dot) ---- */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: #fff;
    background: var(--danger);
    border-radius: 9px;
    margin-left: 0.3rem;
    vertical-align: middle;
    line-height: 1;
}

.nav-badge-burger {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-left: 0;
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
    padding: 0 4px;
}

.sidebar-link .nav-badge {
    margin-left: auto;
}

.header-nav .nav-logout {
    color: var(--text-muted);
    margin-left: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.header-nav .nav-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* ---- Desktop Admin Dropdown ---- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.9rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown-toggle svg {
    transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--transition);
    z-index: 200;
}

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

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 1rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* ---- Mobile Sidebar ---- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    z-index: 1000;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sidebar-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

body.sidebar-open {
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-header .header-logo {
    gap: 0.15rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-header .header-logo span {
    display: inline;
}

.sidebar-header .header-logo img {
    height: 70px;
}

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.sidebar-close:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: var(--accent-bright);
    background: rgba(200, 30, 40, 0.08);
    border-right: 3px solid var(--accent);
}

.sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link.active svg {
    opacity: 1;
}

/* Sidebar Admin Section */
.sidebar-admin-section {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.sidebar-admin-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.sidebar-admin-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-admin-chevron {
    margin-left: auto;
    transition: transform var(--transition);
}

.sidebar-admin-section.expanded .sidebar-admin-chevron {
    transform: rotate(180deg);
}

.sidebar-admin-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-admin-section.expanded .sidebar-admin-links {
    max-height: 500px;
}

.sidebar-sublink {
    padding-left: 3.25rem;
    font-size: 0.82rem;
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    flex-shrink: 0;
}

button.sidebar-logout {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    width: 100%;
    text-align: left;
}

.sidebar-logout {
    color: var(--text-muted) !important;
}

.sidebar-logout:hover {
    color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

.nav-toggle {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 110;
    transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

.nav-toggle .burger {
    width: 20px;
    height: 14px;
    position: relative;
}

.nav-toggle .burger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-toggle .burger span:nth-child(1) { top: 0; }
.nav-toggle .burger span:nth-child(2) { top: 6px; }
.nav-toggle .burger span:nth-child(3) { top: 12px; }

/* Burger -> X animation */
.nav-toggle.active .burger span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
    background: var(--accent-bright);
}

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

.nav-toggle.active .burger span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
    background: var(--accent-bright);
}


/* ---- Page Content ---- */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(2rem + 15px) 2rem 2rem;
    min-height: calc(100vh - 60px - 60px);
    overflow-x: hidden;
}

/* ---- Page Header ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.page-header-stats {
    display: flex;
    gap: 0.6rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.stat-chip.confirmed {
    background: rgba(45, 212, 160, 0.1);
    border: 1px solid rgba(45, 212, 160, 0.2);
    color: var(--success);
}

.stat-chip.total {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}
a.stat-chip.beamer-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    gap: 0.35rem;
    transition: border-color var(--transition), color var(--transition);
}
a.stat-chip.beamer-link:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ── Server Browser ───────────────────────────────── */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.server-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.server-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.2s;
}
.server-card:hover {
    border-color: var(--border-light);
}
.server-card.server-online {
    border-left: 3px solid var(--success);
}
.server-card.server-offline {
    opacity: 0.5;
}
/* Free server (warmup, no match) */
.server-card.server-free {
    border-left-color: #5ba4cf;
    border-color: rgba(91, 164, 207, 0.15);
    border-style: dashed;
    border-left-style: solid;
}
.server-card.server-free:hover {
    border-color: rgba(91, 164, 207, 0.35);
}
.server-free-body {
    text-align: center;
    padding: 0.75rem 0;
}
.server-free-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5ba4cf;
    letter-spacing: 0.02em;
}
.server-free-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
/* Deathmatch server */
.server-card.server-deathmatch {
    border-left-color: #27d960;
    border-color: rgba(39, 217, 96, 0.2);
    background: linear-gradient(135deg, rgba(39, 217, 96, 0.06) 0%, var(--card-bg) 50%);
}
.server-card.server-deathmatch:hover {
    border-color: rgba(39, 217, 96, 0.4);
}
.server-dm-body {
    text-align: center;
    padding: 0.75rem 0;
}
.server-dm-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27d960;
    letter-spacing: 0.01em;
}
.server-dm-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
/* Tournament match: active (Gruppenphase, etc.) */
.server-card.server-match-active {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, rgba(200, 30, 40, 0.04) 0%, var(--card-bg) 50%);
}
/* Tournament match: playoff (Halbfinale, Viertelfinale) */
.server-card.server-match-playoff {
    border-left-color: #b07adb;
    background: linear-gradient(135deg, rgba(176, 122, 219, 0.06) 0%, var(--card-bg) 50%);
}
.server-card.server-match-playoff .scoreboard-team {
    color: #c99ef0;
}
/* Tournament match: final (Finale, Grand Final, Reset) */
.server-card.server-match-final {
    border-left-color: #f5a623;
    border-color: rgba(245, 166, 35, 0.25);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.07) 0%, var(--card-bg) 50%);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.08);
}
.server-card.server-match-final .scoreboard-team {
    color: #f5c462;
}
.server-card.server-match-final .scoreboard-num {
    color: #f5a623;
}
.server-card.server-match-final .server-meta {
    color: rgba(245, 166, 35, 0.6);
}
.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.server-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.server-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.server-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.server-status-dot.online {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}
.server-status-dot.offline {
    background: var(--text-secondary);
}
.server-game {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Scoreboard */
.server-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.scoreboard-team {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    flex: 1;
    overflow: visible;
    position: relative;
}
.scoreboard-left { text-align: right; }
.scoreboard-right { text-align: left; }
.scoreboard-score {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    flex-shrink: 0;
}
.scoreboard-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    min-width: 1.1em;
    text-align: center;
}
.scoreboard-sep {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Server meta line */
.server-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}
.server-offline-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem 0;
}

/* Team name hover tooltip */
.team-name-hover {
    position: relative;
    cursor: default;
    border-bottom: 1px dotted var(--text-muted);
}
.team-name-hover:hover {
    color: var(--accent-bright);
}
.team-players-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
}
.team-name-hover:hover .team-players-tooltip {
    display: block;
}
.server-phase {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    line-height: 1.4;
}
.server-phase-warmup, .server-phase-mapvote {
    color: var(--warning);
    background: rgba(245, 166, 35, 0.1);
}
.server-phase-knife, .server-phase-sidepick {
    color: var(--accent-bright);
    background: rgba(200, 30, 40, 0.1);
}
.server-phase-live {
    color: var(--success);
    background: rgba(40, 167, 69, 0.12);
}
.server-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    justify-content: center;
}
.server-connect-btn {
    align-self: flex-start;
}
.server-watch-btn {
    align-self: flex-start;
    background: rgba(91, 164, 207, 0.1);
    border: 1px solid rgba(91, 164, 207, 0.3);
    color: #5ba4cf;
}
.server-watch-btn:hover {
    background: rgba(91, 164, 207, 0.2);
    border-color: #5ba4cf;
    color: #7bbde6;
    box-shadow: 0 4px 16px rgba(91, 164, 207, 0.25);
    transform: translateY(-1px);
}
.server-watch-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 164, 207, 0.2);
}

/* ── Server Guide ─────────────────────────────────── */

.server-guide {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    overflow: hidden;
}
.server-guide-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: background var(--transition);
}
.server-guide-toggle::-webkit-details-marker { display: none; }
.server-guide-toggle::marker { display: none; content: ''; }
.server-guide-toggle:hover {
    background: var(--bg-card-hover);
}
.server-guide-toggle svg:first-child {
    color: var(--text-muted);
    flex-shrink: 0;
}
.server-guide-chevron {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.server-guide[open] .server-guide-chevron {
    transform: rotate(180deg);
}
.server-guide-content {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
}
.server-guide-content h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.35rem;
}
.server-guide-content h3:first-child {
    margin-top: 0.75rem;
}
.server-guide-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem;
    line-height: 1.5;
}
.server-guide-content code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.85em;
    color: var(--accent-bright);
}
.server-guide-cmds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.server-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}
.server-guide-table th,
.server-guide-table td {
    text-align: left;
    padding: 0.3rem 0.6rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.server-guide-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Steam Connect Overlay ─────────────────────────── */

.steam-connect-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.steam-connect-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.steam-connect-modal {
    text-align: center;
    padding: 2.5rem 3rem;
}
.steam-connect-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: steam-spin 0.8s linear infinite;
}
@keyframes steam-spin {
    to { transform: rotate(360deg); }
}
.steam-connect-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.steam-connect-countdown {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.server-card-compact {
    padding: 0.75rem;
}
.server-card-compact .server-name {
    font-size: 0.85rem;
}

/* ── Server Player Names ─────────────────────────── */
.server-player-names {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* ---- Attendees Search ---- */
.attendees-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    transition: border-color var(--transition);
}

.attendees-search:focus-within {
    border-color: var(--accent);
}

.attendees-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.attendees-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

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

/* ---- Attendees Grid ---- */
.attendees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}

.attendee-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    animation: fadeInUp 0.4s ease-out both;
}

.attendee-card:nth-child(n) { animation-delay: calc(var(--i, 0) * 0.03s); }
.attendee-card:nth-child(1) { --i: 0; }
.attendee-card:nth-child(2) { --i: 1; }
.attendee-card:nth-child(3) { --i: 2; }
.attendee-card:nth-child(4) { --i: 3; }
.attendee-card:nth-child(5) { --i: 4; }
.attendee-card:nth-child(6) { --i: 5; }
.attendee-card:nth-child(7) { --i: 6; }
.attendee-card:nth-child(8) { --i: 7; }
.attendee-card:nth-child(9) { --i: 8; }
.attendee-card:nth-child(10) { --i: 9; }

.attendee-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.attendee-card.is-confirmed {
    border-left: 3px solid var(--success);
}

.attendee-card.is-pending {
    border-left: 3px solid var(--text-muted);
    opacity: 0.75;
}

.attendee-card.is-pending:hover {
    opacity: 1;
}

.attendee-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(200, 30, 40, 0.2);
}

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

.attendee-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendee-tag,
.attendee-discord {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.attendee-tag::before { content: '🎮 '; font-size: 0.65rem; }
.attendee-discord::before { content: '💬 '; font-size: 0.65rem; }

.attendee-extra {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.attendee-extra span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

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

.attendee-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* ---- Status Badges ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-badge.confirmed {
    background: rgba(45, 212, 160, 0.12);
    color: var(--success);
    border: 1px solid rgba(45, 212, 160, 0.2);
}

.status-badge.pending {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status-badge.badge-open {
    background: rgba(45, 212, 160, 0.12);
    color: var(--success);
    border: 1px solid rgba(45, 212, 160, 0.2);
}

.status-badge.badge-upcoming {
    background: rgba(245, 166, 35, 0.12);
    color: var(--warning);
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.status-badge.badge-finished {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.seat-badge {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ---- Profile Page ---- */
.back-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transition: color var(--transition);
    text-decoration: none;
}

.back-link-inline:hover { color: var(--text-primary); }

.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.5s ease-out both;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 24px rgba(200, 30, 40, 0.3);
    position: relative;
    overflow: visible;
}

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

.profile-avatar.uploading {
    opacity: 0.5;
}

.avatar-upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
    color: #fff;
    border: 3px solid var(--bg-card);
    z-index: 2;
}

.avatar-upload-overlay:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

/* ---- Avatar Crop Modal ---- */
.crop-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.crop-modal-backdrop.active { opacity: 1; }

.crop-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    max-width: calc(100vw - 24px);
}
.crop-modal-backdrop.active .crop-modal { transform: scale(1); }

.crop-canvas {
    border-radius: var(--radius-sm);
    cursor: grab;
    touch-action: none;
    display: block;
}

.crop-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}
.crop-actions .btn {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.profile-avatar.confirmed::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.profile-headline {
    margin-bottom: 1.5rem;
}

.profile-headline h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-display);
    font-weight: 600;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    width: 55%;
    text-align: right;
    transition: border-color var(--transition), background var(--transition);
}

.detail-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(200, 30, 40, 0.03);
}

.detail-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.profile-edit-form .profile-details {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.profile-edit-form .profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- Profile Sections ---- */
.profile-sections {
    animation: fadeInUp 0.5s ease-out 0.15s both;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.profile-section h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.profile-list-item strong {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.profile-list-item .text-muted {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.profile-list-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mini-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.vote-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vote-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(200, 30, 40, 0.08);
    color: var(--accent-bright);
    border: 1px solid rgba(200, 30, 40, 0.15);
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-headline h1 {
        font-size: 1.4rem;
        word-break: break-word;
    }
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---- Site Footer ---- */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.5rem;
}
.footer-inner a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1rem; }

/* ---- Bookings ---- */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.booking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.booking-item:hover {
    border-color: var(--border-light);
}

.booking-item-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.booking-item-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.booking-item-price {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-bright);
}

.booking-item-stock {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.booking-item-control {
    flex-shrink: 0;
}

/* Booking checkbox */
.booking-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.booking-checkbox input {
    display: none;
}

.booking-checkmark {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.booking-checkbox input:checked + .booking-checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.booking-checkbox input:checked + .booking-checkmark::after {
    content: '';
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translateY(-1px);
}

/* Quantity selector */
.booking-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

.qty-input {
    width: 44px;
    height: 36px;
    text-align: center;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Booking summary */
.booking-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.booking-total {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.booking-total span:last-child {
    color: var(--accent-bright);
    font-size: 1.4rem;
}

/* Booking confirmation & paid */
.booking-confirmation,
.booking-paid-notice {
    text-align: center;
    padding: 2rem;
}

.booking-confirmation svg,
.booking-paid-notice svg {
    margin-bottom: 1rem;
}

.booking-confirmation h2,
.booking-paid-notice h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.booking-confirmation p,
.booking-paid-notice p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.booking-paypal-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(200, 30, 40, 0.06);
    border: 1px solid rgba(200, 30, 40, 0.15);
    border-radius: var(--radius);
}

.booking-paypal-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-bright);
    margin-bottom: 0.75rem;
}

.paypal-address {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem;
}

.paypal-instructions {
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
}

.booking-receipt {
    width: 100%;
    max-width: 360px;
    margin: 1.25rem auto 0;
    text-align: left;
}

.booking-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.93rem;
    color: var(--text-secondary);
}

.booking-receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---- Admin Layout ---- */
.admin-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
}

.admin-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    z-index: -1;
}

.admin-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-header .header-logo {
    font-size: 1rem;
}

.admin-sidebar-header .header-logo img {
    height: 28px;
}

.admin-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.admin-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.admin-nav-link.active {
    color: var(--accent-bright);
    background: rgba(200, 30, 40, 0.08);
    border-right: 3px solid var(--accent);
}

.admin-nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.admin-nav-link.active svg {
    opacity: 1;
}

.admin-sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
}

.admin-content {
    padding: 2rem;
    margin-left: 240px;
}

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

.admin-page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.admin-badge-sm {
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.admin-filter-tab {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.admin-filter-tab:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.admin-filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---- Admin Table ---- */
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table .text-muted {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-table .row-inactive {
    opacity: 0.5;
}

.admin-inline-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-primary);
    outline: none;
    width: 140px;
    transition: border-color var(--transition);
}

.admin-inline-input:focus {
    border-color: var(--accent);
}

/* ---- Admin Mobile Header ---- */
.admin-mobile-header {
    display: none;
}

.admin-sidebar .sidebar-close {
    display: none;
}

.admin-sidebar-backdrop {
    display: none;
}

/* ---- Admin Responsive ---- */
@media (max-width: 768px) {
    .admin-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .admin-mobile-header .header-logo {
        font-size: 0.95rem;
    }

    .admin-mobile-header .header-logo img {
        height: 26px;
    }

    .admin-mobile-header .nav-toggle {
        display: flex;
    }

    .admin-layout::before {
        display: none;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        border-right: 1px solid var(--border);
        border-bottom: none;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1100;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-sidebar .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 0.25rem;
    }

    .admin-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .admin-nav {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        padding: 0.75rem 0;
        gap: 0;
    }

    .admin-nav-link {
        white-space: normal;
        font-size: 0.85rem;
    }

    .admin-nav-link.active {
        border-bottom: none;
    }

    .admin-sidebar-footer {
        display: block;
    }

    .admin-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1099;
    }

    .admin-sidebar-backdrop.visible {
        display: block;
    }

    .admin-content {
        padding: 1.25rem;
        margin-left: 0;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.65rem;
    }
}

/* ============================================
   TOURNAMENT SYSTEM
   ============================================ */

/* ---- Tournament Grid (List Page) ---- */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}

.tournament-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    animation: fadeInUp 0.4s ease-out both;
}

.tournament-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tournament-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.tournament-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tournament-card-game {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.tournament-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tournament-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tournament-meta-item svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.tournament-card-footer {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ---- Tournament Detail Page ---- */
.tournament-detail {
    max-width: 1100px;
}

.tournament-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tournament-detail-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.tournament-detail-game {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.tournament-detail-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.tournament-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tournament-detail-meta .tournament-meta-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---- Status Badges — additional states ---- */
.status-badge.badge-draft {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status-badge.badge-running {
    background: rgba(200, 30, 40, 0.12);
    color: var(--accent-bright);
    border: 1px solid rgba(200, 30, 40, 0.25);
}

/* ---- Team Info Card ---- */
.team-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.team-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.team-info-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.team-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.team-member-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.team-member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---- Invite Card ---- */
.invite-card {
    background: rgba(200, 30, 40, 0.06);
    border: 1px solid rgba(200, 30, 40, 0.15);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

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

/* ---- User Search Results ---- */
.user-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 240px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.search-result-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.search-result-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.search-no-results {
    padding: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---- Tournament Participants List ---- */
.tournament-participants {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tournament-participant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tournament-participant-card:last-child {
    border-bottom: none;
}

.participant-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participant-name strong {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Random Teams — Player Grid */
.random-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}
.random-player-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.random-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.random-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.random-player-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.random-team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}
.random-team-member {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ---- Tournament Rules ---- */
.tournament-rules {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   BRACKET VISUALIZATION
   ============================================ */

.bracket-section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ---- Podium ---- */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.podium-crown {
    margin-bottom: 0.25rem;
    animation: podium-float 2s ease-in-out infinite;
}

@keyframes podium-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-light);
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.podium-avatar-1st {
    width: 56px;
    height: 56px;
    border-color: var(--warning);
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.25);
}

.podium-initial {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.podium-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.podium-block-1st {
    height: 100px;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-bottom: none;
    color: rgba(234, 179, 8, 0.3);
}

.podium-block-2nd {
    height: 70px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.04) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: none;
    color: rgba(148, 163, 184, 0.25);
}

.podium-block-3rd {
    height: 50px;
    background: linear-gradient(180deg, rgba(180, 120, 60, 0.15) 0%, rgba(180, 120, 60, 0.04) 100%);
    border: 1px solid rgba(180, 120, 60, 0.2);
    border-bottom: none;
    color: rgba(180, 120, 60, 0.25);
}

.bracket-container {
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.bracket-rounds {
    display: flex;
    gap: 4.5rem;
    min-width: max-content;
    position: relative;
    padding: 1rem 0;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    justify-content: center;
    flex: 1;
}

.bracket-round .bracket-match {
    margin: 0.5rem 0;
}

.bracket-connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.bracket-connector-svg line {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.5;
}

.bracket-round-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 0.6rem;
    margin-bottom: 0.5rem;
    border-bottom: none;
    position: relative;
}

.bracket-round-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.bracket-match {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    z-index: 1;
}

.bracket-match:hover {
    border-color: var(--border-light);
}

.bracket-match.ready {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(200, 30, 40, 0.15), inset 0 0 0 1px rgba(200, 30, 40, 0.05);
}

.bracket-match.completed {
    opacity: 0.8;
}

.bracket-match.is-bye {
    opacity: 0.35;
}

.bracket-match-team {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: background var(--transition);
    position: relative;
}

.bracket-match-team:first-child {
    border-bottom: 1px solid var(--border);
}

.bracket-match-team.is-winner {
    background: rgba(45, 212, 160, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

.bracket-match-team.is-winner .bracket-team-score {
    color: #2dd4a0;
}

.bracket-team-seed {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 18px;
    text-align: center;
    opacity: 0.7;
}

.bracket-team-name {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bracket-team-score {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    color: var(--text-primary);
}

/* ---- Round Robin Matches ---- */
.rr-round {
    margin-bottom: 1.25rem;
}

.rr-round-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.rr-matches {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rr-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.rr-match.completed {
    opacity: 0.75;
}

.rr-team {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.rr-team:first-child {
    text-align: right;
}

.rr-team:last-child {
    text-align: left;
}

.rr-team.is-winner {
    color: var(--success);
}

.rr-score {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 40px;
    text-align: center;
}

/* ---- Admin Match Rows (bracket admin) ---- */
.admin-match-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

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

.admin-match-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.admin-match-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 0;
}

.admin-match-team span:first-child {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-match-team.is-winner {
    color: var(--success);
}

.admin-match-team.is-winner span:first-child {
    font-weight: 700;
}

.admin-match-score {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.admin-match-vs {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    flex-shrink: 0;
}

.admin-match-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.btn-danger-outline {
    border: 1px solid var(--danger, #dc3545);
    color: var(--danger, #dc3545);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-danger-outline:hover {
    background: var(--danger, #dc3545);
    color: #fff;
}

.admin-result-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* ---- Forfeit & Evidence ---- */
.admin-match-ff-btn {
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: var(--danger, #dc3545);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.admin-match-ff-btn:hover {
    background: var(--danger, #dc3545);
    color: #fff;
}

.forfeit-badge {
    display: inline-block;
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger, #dc3545);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.admin-match-team.is-forfeit-loser {
    opacity: 0.4;
}

.admin-evidence-link {
    font-size: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.admin-evidence-link:hover {
    opacity: 1;
}

.evidence-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.evidence-upload-label:hover {
    border-color: var(--accent);
    color: var(--text-secondary);
}

.evidence-upload-label.has-file {
    border-color: var(--success);
    color: var(--success);
}

/* ---- Match Action Area (Self-Service Results) ---- */
.bracket-match .match-action-area {
    display: none;
}

/* ---- Match Modal ---- */
.match-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.2s ease;
}

.match-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 440px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.match-modal h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.match-modal-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.match-modal-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.match-modal-form .match-score-team {
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.match-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.bracket-match-action-btn {
    display: block;
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--accent-bright);
    background: linear-gradient(180deg, rgba(200, 30, 40, 0.12) 0%, rgba(200, 30, 40, 0.06) 100%);
    border: none;
    border-top: 1px solid var(--accent-dark);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.bracket-match-action-btn:hover {
    background: linear-gradient(180deg, rgba(200, 30, 40, 0.25) 0%, rgba(200, 30, 40, 0.15) 100%);
    color: #fff;
    box-shadow: inset 0 0 12px rgba(200, 30, 40, 0.15);
}

.bracket-match-action-btn.confirm {
    color: var(--warning);
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.15) 0%, rgba(245, 166, 35, 0.06) 100%);
    border-top-color: rgba(245, 166, 35, 0.3);
    animation: matchBtnPulse 2s ease-in-out infinite;
}

.bracket-match-action-btn.confirm:hover {
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.3) 0%, rgba(245, 166, 35, 0.15) 100%);
    color: #fff;
}

@keyframes matchBtnPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: inset 0 0 10px rgba(245, 166, 35, 0.12); }
}

.bracket-match-action-btn.pending {
    color: var(--text-secondary);
    background: transparent;
    border-top-color: var(--border);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.bracket-match-action-btn.dispute {
    color: var(--warning);
    background: rgba(245, 166, 35, 0.06);
    border-top-color: rgba(245, 166, 35, 0.2);
}

.match-action-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem 0.5rem;
    min-height: 0;
}

.match-action-area:empty {
    display: none;
}

.match-result-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.match-pending-info {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.match-confirm-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.match-dispute-notice {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--warning);
    padding: 0.2rem 0;
}

.match-proposed-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-bright);
}

.match-score-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.match-score-team {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

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

.match-winner-line {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
    margin-top: 0.15rem;
}

.match-pending-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.rr-match .match-action-area {
    width: 100%;
    justify-content: center;
    padding: 0.25rem 0 0.35rem;
}

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

    .tournament-detail-header {
        flex-direction: column;
    }

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

    .bracket-rounds {
        gap: 2rem;
    }

    .match-result-form {
        flex-wrap: wrap;
    }
}

/* ============================================
   EXPANDABLE / FULLSCREEN
   ============================================ */

.expandable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.expandable-header .bracket-section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex: 1;
}
.expandable {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.expand-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.expand-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(200, 30, 40, 0.08);
}

.fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    animation: overlayFadeIn 0.25s ease;
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fullscreen-overlay > *:not(.fullscreen-bar) {
    width: 100%;
    max-width: 1100px;
}

.fullscreen-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.fullscreen-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.fullscreen-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.fullscreen-close:hover {
    border-color: var(--accent);
    background: rgba(200, 30, 40, 0.2);
}

/* Projection-mode content on black background */
.fullscreen-overlay,
.fullscreen-overlay * {
    color: #fff;
}
.fullscreen-overlay .admin-table {
    font-size: 1.2rem;
    border-color: rgba(255,255,255,0.1);
}
.fullscreen-overlay .admin-table th {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.1);
    padding: 0.9rem 1.1rem;
}
.fullscreen-overlay .admin-table td {
    border-color: rgba(255,255,255,0.06);
    padding: 0.9rem 1.1rem;
}
.fullscreen-overlay .admin-table tr:hover td {
    background: rgba(255,255,255,0.03);
}
.fullscreen-overlay .rr-standings-table tr[style*="border-left"] {
    border-left-width: 4px !important;
}
.fullscreen-overlay .bracket-container {
    overflow-x: auto;
    padding: 1.5rem 0;
}
.fullscreen-overlay .bracket-rounds {
    gap: 5rem;
}
.fullscreen-overlay .bracket-round {
    min-width: 250px;
}
.fullscreen-overlay .bracket-match {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
.fullscreen-overlay .bracket-match:hover {
    border-color: rgba(255,255,255,0.2);
}
.fullscreen-overlay .bracket-match.ready {
    border-color: rgba(200, 30, 40, 0.5);
    box-shadow: 0 0 16px rgba(200, 30, 40, 0.2);
}
.fullscreen-overlay .bracket-match-team {
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
}
.fullscreen-overlay .bracket-match-team:first-child {
    border-color: rgba(255,255,255,0.06);
}
.fullscreen-overlay .bracket-match-team.is-winner {
    background: rgba(45, 212, 160, 0.1);
}
.fullscreen-overlay .bracket-match-team.is-winner .bracket-team-score {
    color: #2dd4a0;
}
.fullscreen-overlay .bracket-team-score {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.fullscreen-overlay .bracket-round-title {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.fullscreen-overlay .bracket-round-title::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.fullscreen-overlay .bracket-connector-svg line {
    stroke: rgba(255, 255, 255, 0.2);
}
.fullscreen-overlay .rr-match {
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}
.fullscreen-overlay .rr-match.completed {
    border-color: rgba(255,255,255,0.1);
}
.fullscreen-overlay .rr-team.is-winner {
    color: var(--accent);
    font-weight: 700;
}
.fullscreen-overlay .rr-score {
    color: rgba(255,255,255,0.8);
}
.fullscreen-overlay .rr-round-title {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .fullscreen-overlay {
        padding: 1rem;
    }
    .fullscreen-title {
        font-size: 1.1rem;
    }
}

/* ---- Selection ---- */
::selection {
    background: rgba(200, 30, 40, 0.3);
    color: #fff;
}

/* ---- Page Loading Bar ---- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    z-index: 99999;
    transition: none;
    pointer-events: none;
    opacity: 0;
}

.page-loader.loading {
    opacity: 1;
    animation: pageLoad 8s ease-out forwards;
}

.page-loader.done {
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes pageLoad {
    0% { width: 0; }
    20% { width: 35%; }
    50% { width: 60%; }
    80% { width: 80%; }
    100% { width: 92%; }
}

/* ============================================
   NEWS / ANNOUNCEMENTS
   ============================================ */

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color var(--transition), transform var(--transition);
}

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

.news-card.is-pinned {
    border-color: rgba(245, 166, 35, 0.3);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.05);
}

.news-card-banner {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
}

.news-card-banner img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.news-card-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* News Mini-Card (Dashboard) */
.news-card-mini {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color var(--transition), background var(--transition);
    text-decoration: none;
    color: inherit;
}

.news-card-mini:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    color: inherit;
}

.news-card-mini.is-pinned {
    border-color: rgba(245, 166, 35, 0.25);
}

.news-card-mini-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.news-card-mini-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-mini-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- Poll Widget ---- */

.poll-widget {
    border-top: 1px solid var(--border);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.poll-question {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.poll-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.poll-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    overflow: hidden;
    user-select: none;
}

.poll-option:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

.poll-option.selected {
    border-color: var(--accent);
    background: rgba(200, 30, 40, 0.05);
}

.poll-option.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.poll-option-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(200, 30, 40, 0.08);
    border-radius: var(--radius-sm);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.poll-option input[type="checkbox"] {
    position: relative;
    z-index: 1;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.poll-option-text {
    position: relative;
    z-index: 1;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.poll-option-count {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    min-width: 1.5rem;
    text-align: right;
}

.poll-option-pct {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    min-width: 2.5rem;
    text-align: right;
}

.poll-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.poll-voters {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .news-card-body {
        padding: 1rem;
    }
    .news-card-title {
        font-size: 1.2rem;
    }
    .news-card-banner {
        max-height: 200px;
    }
    .news-card-banner img {
        max-height: 200px;
    }
}

/* ============================================
   GROUP ORDERS
   ============================================ */

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.order-card.is-active {
    border-color: rgba(45, 212, 160, 0.3);
    box-shadow: 0 0 20px rgba(45, 212, 160, 0.05);
}

.order-card-body {
    padding: 1.5rem;
}

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.order-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.order-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.order-menu-links {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.order-form {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-items {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.order-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

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

.order-item.is-mine {
    border-color: rgba(200, 30, 40, 0.15);
    background: rgba(200, 30, 40, 0.03);
}

.order-item-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 100px;
    flex-shrink: 0;
}

.order-item-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.order-item-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.order-my-items {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.order-my-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.25rem;
    background: rgba(0, 207, 253, 0.04);
    border: 1px solid rgba(0, 207, 253, 0.12);
    border-radius: var(--radius-sm);
}

.order-my-item-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.order-my-item-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 55px;
    text-align: right;
    flex-shrink: 0;
}

.order-my-item-delete {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.25rem;
    opacity: 0.6;
    transition: opacity var(--transition);
    flex-shrink: 0;
}

.order-my-item-delete:hover {
    opacity: 1;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-bright);
}

.order-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(45, 212, 160, 0.25);
    border-left: 3px solid var(--success);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
}

.order-banner:hover {
    border-color: rgba(45, 212, 160, 0.4);
    background: var(--bg-card-hover);
    color: inherit;
}

.order-banner-icon {
    color: var(--success);
    flex-shrink: 0;
}

.order-banner strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.order-banner .text-muted {
    font-size: 0.8rem;
}

details.order-archive-round > summary::-webkit-details-marker { display: none; }
details.order-archive-round > summary::marker { display: none; content: ''; }

details.order-archive-round[open] > summary .order-archive-chevron,
details.order-archive-round[open] > summary svg:first-child {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .order-card-body {
        padding: 1rem;
    }
    .order-card-title {
        font-size: 1.2rem;
    }
    .order-item {
        flex-wrap: wrap;
    }
    .order-item-name {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================
   DASHBOARD: READY MATCHES
   ============================================ */

.dash-pending-results {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(245, 166, 35, 0.06);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: var(--radius);
    border-left: 4px solid var(--warning);
}

.dash-pending-results h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.dash-ready-matches {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(200, 30, 40, 0.06);
    border: 1px solid rgba(200, 30, 40, 0.25);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.dash-ready-matches h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.dash-match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.dash-match-card:last-child {
    margin-bottom: 0;
}

.dash-match-info {
    flex: 1;
    min-width: 0;
}

.dash-match-opponent {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.dash-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.dash-match-dispute {
    font-size: 0.78rem;
    color: var(--warning);
    margin-top: 0.25rem;
}

.dash-match-actions {
    flex-shrink: 0;
}

.dash-evidence-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.4rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-bright);
    border: 1px solid var(--accent);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dash-evidence-link:hover {
    background: var(--accent);
    color: #fff;
}

.dash-submit-form {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .dash-ready-matches {
        padding: 0.75rem;
    }
    .dash-match-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .dash-match-actions {
        width: 100%;
    }
    .dash-match-actions .btn {
        width: 100%;
    }
}

.dash-attention-pulse {
    animation: dashPulse 0.6s ease-in-out 2;
}
@keyframes dashPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 12px rgba(200, 30, 40, 0.4); }
}

/* ---- Confirm Modal ---- */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.2s ease;
}

.confirm-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.confirm-modal-message {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ---- Evidence Lightbox ---- */
.evidence-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.2s ease;
    cursor: pointer;
}

.evidence-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.evidence-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.evidence-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.evidence-lightbox-close:hover {
    background: var(--accent);
}

/* ---- Seatmap ---- */
.seatmap-grid-wrap {
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.seatmap-grid {
    display: grid;
    grid-template-columns: repeat(var(--seatmap-cols), minmax(48px, 72px));
    gap: 4px;
    padding: 0.5rem 0;
    user-select: none;
}

.seatmap-cell {
    width: 100%;
    aspect-ratio: 1;
    min-width: 48px;
    min-height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.seatmap-cell.is-empty {
    background: transparent;
    pointer-events: none;
}

/* Feste Markierung (Tür) – über mehrere Reihen, nicht anklickbar */
.seatmap-cell.is-marker {
    aspect-ratio: auto;
    height: auto;
    align-self: stretch;
    gap: 0.25rem;
    pointer-events: none;
    color: var(--success);
    background: rgba(45, 212, 160, 0.08);
    border: 1px dashed rgba(45, 212, 160, 0.6);
}
.seatmap-cell.is-marker .seatmap-cell-label { color: var(--success); font-size: 0.7rem; writing-mode: vertical-rl; transform: rotate(180deg); }

/* Admin: make empty cells clickable */
.admin-seatmap .seatmap-cell.is-empty,
body:has(.seatmap-toolbar) .seatmap-cell.is-empty {
    pointer-events: auto;
    cursor: pointer;
    border: 1px dashed var(--border);
    opacity: 0.4;
}

body:has(.seatmap-toolbar) .seatmap-cell.is-empty:hover {
    opacity: 0.7;
    border-color: var(--text-muted);
}

.seatmap-cell.is-seat {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.seatmap-cell.is-seat:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    transform: scale(1.05);
    z-index: 2;
}

.seatmap-cell.is-seat.is-available {
    border-color: var(--success);
    border-width: 2px;
}

.seatmap-cell.is-seat.is-available:hover {
    background: rgba(45, 212, 160, 0.1);
    box-shadow: 0 0 8px rgba(45, 212, 160, 0.2);
}

.seatmap-cell.is-seat.is-occupied {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    cursor: pointer;
}

.seatmap-cell.is-seat.is-occupied:hover {
    transform: scale(1.05);
}

/* Gamertag tooltip on occupied seats */
.seatmap-cell.is-seat.is-occupied[data-gamertag]:hover::after {
    content: attr(data-gamertag);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.seatmap-cell.is-seat.is-mine {
    background: var(--accent-dark);
    border-color: var(--accent);
    border-width: 2px;
    color: #fff;
}

.seatmap-cell.is-seat.is-mine:hover {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.seatmap-cell.is-seat.is-blocked {
    background: repeating-linear-gradient(
        -45deg,
        var(--bg-card),
        var(--bg-card) 3px,
        var(--bg-secondary) 3px,
        var(--bg-secondary) 6px
    );
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

.seatmap-cell-label {
    font-size: 0.7rem;
    line-height: 1;
    color: var(--text-secondary);
}

.seatmap-cell.is-mine .seatmap-cell-label {
    color: rgba(255, 255, 255, 0.9);
}

.seatmap-cell-user {
    font-size: 0.65rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Seatmap Toolbar (Admin) ---- */
.seatmap-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.seatmap-tools {
    display: flex;
    gap: 4px;
}

.seatmap-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.seatmap-tool:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.seatmap-tool.active {
    color: var(--accent-bright);
    border-color: var(--accent);
    background: rgba(200, 30, 40, 0.1);
}

.seatmap-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* ---- Seatmap Legend ---- */
.seatmap-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.seatmap-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.seatmap-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.seatmap-legend-color.is-available {
    border: 2px solid var(--success);
    background: rgba(45, 212, 160, 0.1);
}

.seatmap-legend-color.is-occupied {
    background: var(--text-secondary);
    border-color: var(--text-muted);
}

.seatmap-legend-color.is-mine {
    background: var(--accent-dark);
    border: 2px solid var(--accent);
}

.seatmap-legend-color.is-blocked {
    background: repeating-linear-gradient(-45deg, var(--bg-card), var(--bg-card) 3px, var(--bg-secondary) 3px, var(--bg-secondary) 6px);
    border-color: var(--text-muted);
}

.seatmap-legend-color.is-empty {
    background: transparent;
    border: 1px dashed var(--border);
}

/* ---- Seatmap Popover (Admin) ---- */
.seatmap-popover {
    position: fixed;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    width: 260px;
    max-width: calc(100vw - 16px);
}

/* Suchfeld im Sitzplan-Fenster (die Klasse form-control gibt es sonst nicht) */
.seatmap-popover input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.65rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.seatmap-popover input[type="text"]:focus { outline: none; border-color: var(--accent); }

.seatmap-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.seatmap-popover-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.seatmap-popover-close:hover {
    color: var(--text-primary);
}

.seatmap-popover-body {
    padding: 0.75rem 1rem;
}

/* ---- Seatmap Search Results ---- */
.seatmap-search-results {
    position: static;
    margin-top: 0.35rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.seatmap-search-results:empty {
    display: none;
}

.seatmap-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background var(--transition);
}

.seatmap-search-item:hover {
    background: var(--bg-card-hover);
}

.seatmap-search-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.seatmap-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seatmap-search-empty {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Seatmap Responsive ---- */
@media (max-width: 768px) {
    .seatmap-grid {
        gap: 2px;
        grid-template-columns: repeat(var(--seatmap-cols), 40px);
    }

    .seatmap-cell {
        min-width: 40px;
        min-height: 40px;
    }

    .seatmap-cell-label {
        font-size: 0.6rem;
    }

    .seatmap-cell-user {
        font-size: 0.55rem;
    }

    .seatmap-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .seatmap-tools {
        flex-wrap: wrap;
    }

    .seatmap-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }
}

/* ── Push Notification Settings ──────────────────────────────── */

.push-status {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.push-status.push-active {
    color: var(--success, #4caf50);
}
.push-status.push-active::before {
    content: '● ';
}
.push-status.push-inactive {
    color: var(--text-secondary);
}

.push-blocked {
    color: var(--danger);
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(200, 30, 40, 0.1);
    border: 1px solid rgba(200, 30, 40, 0.3);
    border-radius: 8px;
}

.push-pref-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.push-pref-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.push-pref-item:hover {
    border-color: var(--accent);
}
.push-pref-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.push-pref-item span:first-of-type {
    font-weight: 500;
    color: var(--text-primary);
}
.push-pref-item .text-muted {
    font-size: 0.8rem;
    margin-left: auto;
}

/* ── Push Reminder Banner (Dashboard) ────────────────────────── */

.push-reminder-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(200, 30, 40, 0.2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
}
.push-reminder-banner:hover {
    border-color: rgba(200, 30, 40, 0.4);
    background: var(--bg-card-hover);
    color: inherit;
}
.push-reminder-icon {
    color: var(--accent-bright);
    flex-shrink: 0;
}
.push-reminder-banner strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.push-reminder-banner .text-muted {
    font-size: 0.8rem;
}

/* ── Seat Reminder Banner (Dashboard) ────────────────────────── */

.seat-reminder-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(91, 164, 207, 0.2);
    border-left: 3px solid #5ba4cf;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
}
.seat-reminder-banner:hover {
    border-color: rgba(91, 164, 207, 0.4);
    background: var(--bg-card-hover);
    color: inherit;
}
.seat-reminder-icon {
    color: #5ba4cf;
    flex-shrink: 0;
}
.seat-reminder-banner strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.seat-reminder-banner .text-muted {
    font-size: 0.8rem;
}

/* ── Live Matches (Dashboard) ────────────────────────────────── */

.live-matches-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.live-match-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-left: 3px solid var(--success);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
}
.live-match-row:hover {
    border-color: rgba(76, 175, 80, 0.4);
    background: var(--bg-card-hover);
    color: inherit;
}
.live-match-teams {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-shrink: 0;
}
.live-match-team {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.live-match-score {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    min-width: 2.2em;
    text-align: center;
}
.live-match-detail {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 0;
    flex: 1;
}
.live-match-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    padding: 0.2em 0.5em;
    border-radius: 3px;
    flex-shrink: 0;
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Tournament match */
.live-match-row.live-match-tournament {
    border-color: rgba(200, 30, 40, 0.2);
    border-left-color: var(--accent);
}
.live-match-row.live-match-tournament:hover {
    border-color: rgba(200, 30, 40, 0.4);
}
.live-match-row.live-match-tournament .live-match-badge {
    color: var(--accent-bright);
    background: rgba(200, 30, 40, 0.1);
}

/* Playoff (Halbfinale, Viertelfinale) */
.live-match-row.live-match-playoff {
    border-color: rgba(176, 122, 219, 0.2);
    border-left-color: #b07adb;
}
.live-match-row.live-match-playoff:hover {
    border-color: rgba(176, 122, 219, 0.4);
}
.live-match-row.live-match-playoff .live-match-team { color: #c99ef0; }
.live-match-row.live-match-playoff .live-match-badge {
    color: #b07adb;
    background: rgba(176, 122, 219, 0.1);
}

/* Final (Finale, Grand Final, Reset) */
.live-match-row.live-match-final {
    border-color: rgba(245, 166, 35, 0.25);
    border-left-color: #f5a623;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.05) 0%, var(--bg-card) 60%);
}
.live-match-row.live-match-final:hover {
    border-color: rgba(245, 166, 35, 0.5);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, var(--bg-card-hover) 60%);
}
.live-match-row.live-match-final .live-match-team { color: #f5c462; }
.live-match-row.live-match-final .live-match-score { color: #f5a623; }
.live-match-row.live-match-final .live-match-badge {
    color: #f5a623;
    background: rgba(245, 166, 35, 0.12);
}

/* ── Dashboard Countdown ─────────────────────────────────────── */

.dash-countdown {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ── Dashboard Booking Summary ───────────────────────────────── */

.dash-booking-summary {
    display: block;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
}
.dash-booking-summary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: inherit;
}
.dash-booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.dash-booking-header strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}
.dash-booking-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(245, 166, 35, 0.12);
    color: var(--warning);
}
.dash-booking-status.is-paid {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
}
.dash-booking-items {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}
.dash-booking-total {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Beamer View (Projector Fullscreen) ──────────────────────── */

.beamer-body {
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
}

/* Idle screen */
.beamer-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1rem;
}
.beamer-idle-text {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 0 40px rgba(200, 30, 40, 0.4);
}
.beamer-idle-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    animation: beamerPulse 2s ease-in-out infinite;
}
@keyframes beamerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Carousel */
.beamer-carousel {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.beamer-slide {
    position: absolute;
    inset: 0;
    padding: 2.5rem 3rem;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.beamer-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.beamer-slide.fade-out {
    opacity: 0;
}

/* Slide header */
.beamer-slide-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}
.beamer-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    margin: 0;
}
.beamer-meta {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}
.beamer-meta-sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* Sections within a slide */
.beamer-section {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 1.5rem;
}
.beamer-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

/* Beamer bracket overrides (larger for projection) */
.beamer-slide .bracket-rounds {
    gap: 5rem;
}
.beamer-slide .bracket-match-team {
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
}
.beamer-slide .bracket-team-name {
    font-size: 1rem;
}
.beamer-slide .bracket-team-score {
    font-size: 1.1rem;
}
.beamer-slide .bracket-round-title {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}
.beamer-slide .bracket-match {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
.beamer-slide .bracket-match-team:first-child {
    border-color: rgba(255,255,255,0.08);
}
.beamer-slide .bracket-match.ready {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(200, 30, 40, 0.25);
}
.beamer-slide .bracket-match-team.is-winner {
    background: rgba(45, 212, 160, 0.1);
}
.beamer-slide .bracket-match-team.is-winner .bracket-team-score {
    color: #2dd4a0;
}
.beamer-slide .bracket-connector-svg line {
    stroke: rgba(255,255,255,0.25);
}

/* Beamer RR standings overrides */
.beamer-slide .admin-table {
    font-size: 1.1rem;
}
.beamer-slide .admin-table th,
.beamer-slide .admin-table td {
    padding: 0.75rem 1rem;
}
.beamer-slide .admin-table th {
    color: rgba(255,255,255,0.5);
}

/* Beamer RR match overrides */
.beamer-slide .rr-match {
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
.beamer-slide .rr-round-title {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
}
.beamer-slide .rr-score {
    font-size: 1.1rem;
}

/* Slide indicator dots */
.beamer-indicator {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.beamer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s ease;
}
.beamer-dot.active {
    background: rgba(255,255,255,0.8);
}
