/* ==========================================================================
   TURNAMEN PES / E-FOOTBALL HAB KEMENAG DIY 2026 - CYBER ESPORTS THEME v3
   CLEAN DARK THEME • LAPTOP 100% SCREEN COMPLIANT • NO VISUAL FATIGUE
   ========================================================================== */

:root {
    --bg-dark: #040813;
    --bg-surface: #0a1426;
    --bg-card: #0d1e38;
    --bg-slot-white: #f8fafc;
    --cyan-neon: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.45);
    --green-neon: #00ff88;
    --green-kemenag: #0a4d2e;
    --gold-trophy: #f5c518;
    --gold-glow: rgba(245, 197, 24, 0.5);
    --gold-dark: #b8860b;
    --text-white: #ffffff;
    --text-muted: #8fa5c2;
    --text-dark: #071322;
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Rajdhani', 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.35;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    /* Clean soothing dark gradient - NO blurry stadium image in background! */
    background: radial-gradient(circle at 15% 10%, rgba(0, 229, 255, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 85% 10%, rgba(0, 229, 255, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 50% 90%, rgba(10, 77, 46, 0.25) 0%, transparent 60%),
                linear-gradient(180deg, #030712 0%, #071325 50%, #041410 100%);
    background-attachment: fixed;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background: rgba(6, 13, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 229, 255, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    gap: 12px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--gold-trophy);
    box-shadow: 0 0 8px var(--gold-glow);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #ffffff 40%, var(--cyan-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    font-size: 0.65rem;
    padding: 1px 8px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--green-neon);
    color: var(--green-neon);
    border-radius: 10px;
    font-weight: 700;
}

.nav-tabs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.nav-tab-btn {
    background: rgba(13, 30, 56, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--text-white);
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-tab-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.nav-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(16, 185, 129, 0.25));
    border-color: var(--cyan-neon);
    color: #ffffff;
    box-shadow: 0 0 12px var(--cyan-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Zoom Controls in Navbar */
.zoom-controls-group {
    display: flex;
    align-items: center;
    background: rgba(13, 30, 56, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 6px;
    padding: 2px 4px;
    gap: 3px;
}

.btn-zoom {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 3px 6px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-zoom:hover {
    background: var(--cyan-neon);
    color: #000;
}

.zoom-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--cyan-neon);
    padding: 0 4px;
    font-family: var(--font-heading);
}

.btn-nav-control {
    background: rgba(13, 30, 56, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-nav-control:hover {
    border-color: var(--gold-trophy);
    color: var(--gold-trophy);
}

.btn-nav-control.muted {
    border-color: #ef4444;
    color: #ef4444;
}

/* ==========================================================================
   MAIN CONTAINER & TAB SECTIONS
   ========================================================================== */
.app-main {
    padding: 10px;
    max-width: 1560px;
    margin: 0 auto;
}

.tab-view-section {
    display: none;
}

.tab-view-section.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

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

/* ==========================================================================
   BRACKET BOARD - CRISP, EYE-FRIENDLY, PERFECT FOR 100% LAPTOP SCREEN
   ========================================================================== */
.bracket-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2px 0 6px 0;
}

.bracket-board {
    width: 1040px;
    min-width: 1040px;
    max-width: 1040px;
    background: radial-gradient(ellipse at 50% 25%, #0f2442 0%, #09172c 55%, #040c17 100%);
    border-radius: 12px;
    padding: 8px 12px;
    border: 1.5px solid rgba(0, 229, 255, 0.45);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 229, 255, 0.15);
    position: relative;
    transform-origin: top center;
    transition: transform 0.2s ease;
}

/* Subtle soft corner floodlights */
.bracket-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 120px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(0, 229, 255, 0.08) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(8px);
}

.bracket-board::after {
    content: '';
    position: absolute;
    top: 0;
    right: 15px;
    width: 120px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(0, 229, 255, 0.08) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(8px);
}

/* ==========================================================================
   COMPACT INTEGRATED HEADER BANNER
   ========================================================================== */
.bracket-header-container {
    text-align: center;
    margin-bottom: 6px;
    position: relative;
    z-index: 5;
}

.header-title-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(6, 40, 26, 0.95) 0%, rgba(8, 28, 48, 0.98) 100%);
    border: 1.5px solid var(--cyan-neon);
    border-radius: 8px;
    padding: 4px 22px;
    box-shadow: 0 0 14px var(--cyan-glow), inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.header-emblem-inline {
    height: 34px;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.header-text-block {
    text-align: left;
}

.header-main-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 8px var(--cyan-neon);
    line-height: 1.2;
}

.header-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
}

.header-sub-title {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-trophy);
    letter-spacing: 0.6px;
}

.header-pill {
    background: rgba(10, 77, 46, 0.9);
    border: 1px solid var(--green-neon);
    color: #00ffcc;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 10px;
    border-radius: 10px;
    letter-spacing: 0.4px;
}

/* ==========================================================================
   BRACKET GRID - COMPACT, FITS 100% SCREEN
   ========================================================================== */
.bracket-grid {
    display: grid;
    grid-template-columns: 148px 118px 108px 236px 108px 118px 148px;
    gap: 6px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bracket-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 350px;
    position: relative;
}

/* ==========================================================================
   SLOT CARDS (SLOT 1 - 17) - CRISP WHITE CAPSULES
   ========================================================================== */
.match-pair-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.slot-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    min-height: 22px;
    height: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    border: 1.5px solid transparent;
    overflow: hidden;
}

.slot-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px var(--cyan-glow);
    border-color: var(--cyan-neon);
}

.slot-card.is-empty {
    background: rgba(255, 255, 255, 0.88);
}

.slot-card.is-empty .slot-name {
    color: #718096;
    font-style: italic;
    font-size: 0.68rem;
}

.slot-tag {
    background: #081426;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tag-left {
    clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
    padding-right: 2px;
}

.tag-right {
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0 50%);
    padding-left: 2px;
}

.slot-content {
    flex: 1;
    padding: 0 4px;
    overflow: hidden;
    line-height: 1.1;
}

.slot-name {
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-satker {
    font-size: 0.58rem;
    color: #0d5f3a;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-slot-win {
    background: rgba(0, 229, 255, 0.2);
    border: 1px solid var(--cyan-neon);
    color: #061120;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 0 4px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 3px;
    transition: all 0.15s ease;
}

.btn-slot-win:hover {
    background: var(--cyan-neon);
    color: #000;
}

/* Play-in special styling (Slots 16 & 17) */
.special-playin-group {
    background: rgba(0, 229, 255, 0.05);
    border-radius: 6px;
    padding: 2px;
    border: 1px dashed rgba(0, 229, 255, 0.35);
}

.playin-sub-bracket {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 1px;
    padding-top: 1px;
    border-top: 1px solid rgba(0, 229, 255, 0.25);
}

.playin-label {
    font-size: 0.54rem;
    font-weight: 800;
    color: var(--cyan-neon);
    text-align: center;
    letter-spacing: 0.3px;
}

.slot-playin {
    border: 1.5px solid var(--gold-trophy) !important;
}

.slot-playin .slot-tag {
    background: #1d1704;
    color: var(--gold-trophy);
}

.playin-connector-bar {
    text-align: center;
    margin: 1px 0;
}

.playin-winner-pill {
    display: inline-block;
    background: rgba(7, 26, 44, 0.95);
    border: 1px solid var(--cyan-neon);
    color: #ffffff;
    font-size: 0.64rem;
    padding: 1px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playin-winner-pill:hover,
.playin-winner-pill.has-winner {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(16, 185, 129, 0.35));
    box-shadow: 0 0 6px var(--cyan-glow);
}

.playin-tag {
    color: var(--gold-trophy);
    font-weight: 700;
    margin-right: 2px;
}

.playin-name {
    font-weight: 800;
    color: #ffffff;
}

.playin-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.btn-playin-win-15 {
    background: linear-gradient(135deg, var(--gold-trophy), #ff9800);
    color: #060d19;
    border: none;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 6px var(--gold-glow);
    transition: all 0.15s ease;
}

.btn-playin-win-15:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #ffffff;
}

.btn-playin-cancel {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.6);
    font-size: 0.54rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-playin-cancel:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* ==========================================================================
   STAGE MATCH BOXES (PEREMPAT FINAL & SEMIFINAL)
   ========================================================================== */
.match-box {
    background: linear-gradient(135deg, rgba(10, 25, 48, 0.95), rgba(6, 17, 33, 0.95));
    border: 1.5px solid var(--cyan-neon);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 5px rgba(0, 229, 255, 0.2);
    overflow: hidden;
    transition: all 0.18s ease;
    cursor: pointer;
}

.match-box:hover {
    border-color: #ffffff;
    box-shadow: 0 0 10px var(--cyan-neon);
    transform: translateY(-1px);
}

.match-box.box-filled {
    border-color: var(--cyan-neon);
    background: linear-gradient(135deg, rgba(12, 36, 68, 0.95), rgba(8, 22, 42, 0.95));
}

.match-box-header {
    background: rgba(0, 229, 255, 0.15);
    padding: 1px 3px;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--cyan-neon);
    text-align: center;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.match-box-body {
    padding: 2px 4px;
    line-height: 1.15;
}

.match-box-player-name {
    font-size: 0.70rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-box-player-satker {
    font-size: 0.56rem;
    color: var(--green-neon);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-box-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    padding: 0 3px 2px;
}

.btn-box-win {
    font-size: 0.52rem;
    font-weight: 800;
    color: var(--gold-trophy);
    background: rgba(245, 197, 24, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(245, 197, 24, 0.4);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-box-win:hover {
    background: var(--gold-trophy);
    color: #000;
    box-shadow: 0 0 6px var(--gold-glow);
}

.btn-box-cancel {
    font-size: 0.50rem;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-box-cancel:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.qf-wrapper, .sf-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-sf-left, .col-sf-right {
    gap: 12px;
}

/* ==========================================================================
   CENTER COLUMN (TROPHY, FINAL & JUARA)
   ========================================================================== */
.col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 0 2px;
}

.center-trophy-display {
    position: relative;
    width: 170px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-podium-glow {
    position: absolute;
    bottom: 0;
    width: 120px;
    height: 16px;
    background: radial-gradient(ellipse at 50% 50%, var(--cyan-neon) 0%, rgba(0, 229, 255, 0) 70%);
    filter: blur(6px);
    z-index: 1;
    animation: podiumPulse 2.5s infinite alternate;
}

@keyframes podiumPulse {
    from { opacity: 0.4; transform: scale(0.95); }
    to { opacity: 0.85; transform: scale(1.05); }
}

.trophy-img {
    max-width: 100%;
    max-height: 62px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.5));
    transition: transform 0.2s ease;
}

.trophy-img:hover {
    transform: scale(1.05);
}

/* Final Duel Box */
.final-container {
    width: 100%;
    margin-top: -3px;
}

.final-banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #093721 0%, #0d2847 100%);
    border: 1px solid var(--gold-trophy);
    color: var(--gold-trophy);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 1px 16px;
    border-radius: 3px;
    box-shadow: 0 0 6px var(--gold-glow);
    clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
    margin-bottom: 2px;
}

.final-match-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.finalist-box {
    flex: 1;
    background: linear-gradient(135deg, rgba(8, 26, 48, 0.98), rgba(4, 15, 30, 0.98));
    border: 1.5px solid var(--cyan-neon);
    border-radius: 5px;
    padding: 3px 4px;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.finalist-box:hover {
    border-color: var(--gold-trophy);
    transform: translateY(-1px);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.finalist-box.is-winner {
    background: linear-gradient(135deg, rgba(10, 77, 46, 0.95), rgba(6, 40, 24, 0.95));
    border-color: var(--gold-trophy);
    box-shadow: 0 0 12px var(--gold-glow);
}

.finalist-role {
    font-size: 0.54rem;
    font-weight: 800;
    color: var(--cyan-neon);
    margin-bottom: 1px;
}

.finalist-name {
    font-size: 0.72rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finalist-satker {
    font-size: 0.56rem;
    color: var(--green-neon);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finalist-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.pick-crown-btn {
    font-size: 0.56rem;
    color: var(--gold-trophy);
    background: rgba(245, 197, 24, 0.15);
    border: 1px solid rgba(245, 197, 24, 0.4);
    border-radius: 3px;
    font-weight: 800;
    padding: 1px 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pick-crown-btn:hover {
    background: var(--gold-trophy);
    color: #000;
    box-shadow: 0 0 6px var(--gold-glow);
}

.btn-finalist-cancel {
    font-size: 0.52rem;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 3px;
    padding: 1px 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-finalist-cancel:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.vs-badge {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-trophy));
    color: #060d19;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 5px;
    border-radius: 3px;
    box-shadow: 0 0 6px var(--gold-glow);
}

/* Juara (Champion) Box */
.champion-container {
    width: 100%;
    margin-top: 4px;
}

.juara-banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0a4d2e, #06331e);
    border: 1px solid var(--green-neon);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 1px 18px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    margin-bottom: 2px;
}

.champion-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 4px 8px;
    border: 2px solid var(--gold-trophy);
    box-shadow: 0 0 16px var(--gold-glow), 0 3px 10px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.champion-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 22px var(--gold-trophy);
}

.champion-name {
    font-family: var(--font-heading);
    font-size: 1.0rem;
    font-weight: 900;
    color: #061120;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.champion-satker {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0a6639;
}

.champion-cancel-wrap {
    margin-top: 2px;
}

.btn-champion-cancel {
    font-size: 0.56rem;
    font-weight: 800;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 4px;
    padding: 1px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-champion-cancel:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   FOOTER BANNER
   ========================================================================== */
.bracket-footer-banner {
    text-align: center;
    margin-top: 6px;
    position: relative;
    z-index: 5;
}

.footer-banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(6, 20, 36, 0.95), rgba(7, 34, 48, 0.95), rgba(6, 20, 36, 0.95));
    border: 1px solid var(--cyan-neon);
    padding: 2px 18px;
    border-radius: 14px;
    box-shadow: 0 0 8px var(--cyan-glow);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.banner-text {
    color: #ffffff;
    text-shadow: 0 0 6px var(--cyan-neon);
}

.chevron-left, .chevron-right {
    color: var(--cyan-neon);
    font-weight: 900;
}

/* ==========================================================================
   SPINNER WHEEL TAB VIEW
   ========================================================================== */
.spinner-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 16px;
    margin-top: 6px;
    align-items: start;
}

.spinner-console-panel {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner-wheel-container {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 10px auto;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Spinner Arrow Pointer */
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 28px solid var(--gold-trophy);
    filter: drop-shadow(0 0 8px var(--gold-glow));
    z-index: 10;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -26px;
    left: -7px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
}

.spinner-controls {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Target Slot Card in Spinner */
.target-slot-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 17, 32, 0.95);
    border: 1.5px solid var(--gold-trophy);
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 0 10px var(--gold-glow);
}

.target-slot-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--cyan-neon);
}

.target-slot-badge-highlight {
    background: var(--gold-trophy);
    color: #060d19;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 4px;
}

.btn-spin-glow {
    background: linear-gradient(135deg, #00e5ff 0%, #00ff88 100%);
    color: #040813;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 16px var(--cyan-glow);
    transition: all 0.2s ease;
}

.btn-spin-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 0 24px var(--cyan-neon);
}

.btn-shuffle-instant {
    background: rgba(245, 197, 24, 0.15);
    border: 1.5px solid var(--gold-trophy);
    color: var(--gold-trophy);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-shuffle-instant:hover {
    background: var(--gold-trophy);
    color: #000;
}

/* ==========================================================================
   LIVE SLOTS STATUS PANEL (GRID 1 - 17)
   ========================================================================== */
.live-slots-panel {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding-bottom: 8px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cyan-neon);
    letter-spacing: 0.4px;
}

.status-grid-17 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.slot-status-card {
    background: rgba(13, 30, 56, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.slot-status-card:hover {
    border-color: var(--cyan-neon);
    transform: translateY(-1px);
}

.slot-status-card.filled {
    background: rgba(10, 77, 46, 0.35);
    border-color: var(--green-neon);
}

.slot-status-card.playin-card {
    border-color: var(--gold-trophy);
}

.slot-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.slot-badge {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--cyan-neon);
}

.playin-pill {
    background: var(--gold-trophy);
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 3px;
}

.btn-mini-clear {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
}

.btn-mini-clear:hover {
    background: #ef4444;
    color: #ffffff;
}

.slot-player-title {
    font-weight: 800;
    font-size: 0.78rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-player-satker {
    font-size: 0.65rem;
    color: var(--green-neon);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-footer-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
}

.bracket-quick-bar {
    justify-content: center;
    background: rgba(10, 20, 38, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    margin-top: 6px;
    gap: 8px;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
}

.btn-sm {
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
}

/* ==========================================================================
   PARTICIPANTS MANAGEMENT TABLE
   ========================================================================== */
.participants-section {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.table-modern th {
    background: rgba(0, 229, 255, 0.12);
    color: var(--cyan-neon);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid var(--cyan-neon);
}

.table-modern td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.badge-satker {
    background: rgba(10, 77, 46, 0.5);
    border: 1px solid var(--green-neon);
    color: #00ffcc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-slot-assigned {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--green-neon);
    color: var(--green-neon);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.7rem;
}

.badge-slot-unassigned {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.btn-mini-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: 700;
}

.btn-mini-danger:hover {
    background: #ef4444;
    color: #fff;
}

/* ==========================================================================
   BUTTONS & MODALS
   ========================================================================== */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--cyan-neon), var(--green-neon));
    color: #060d19;
    font-family: var(--font-heading);
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px var(--cyan-glow);
    font-size: 0.8rem;
}

.btn-primary-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--cyan-neon);
}

.btn-secondary-glow {
    background: rgba(13, 30, 56, 0.9);
    border: 1.5px solid var(--cyan-neon);
    color: var(--cyan-neon);
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.btn-secondary-glow:hover {
    background: rgba(0, 229, 255, 0.2);
    color: #ffffff;
}

.btn-danger-outline {
    background: transparent;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-danger-outline:hover {
    background: #ef4444;
    color: #fff;
}

/* Modals */
.hab-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.18s ease;
}

.hab-modal-box {
    background: var(--bg-surface);
    border: 2px solid var(--cyan-neon);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.95), 0 0 20px var(--cyan-glow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--cyan-neon);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.input-group-custom {
    margin-bottom: 10px;
}

.input-group-custom label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.input-group-custom input {
    width: 100%;
    background: rgba(6, 17, 32, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.88rem;
    outline: none;
}

.preset-player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 130px;
    overflow-y: auto;
    margin-top: 6px;
}

.player-chip-btn {
    background: rgba(13, 30, 56, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--text-white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    cursor: pointer;
}

.player-chip-btn:hover {
    background: var(--cyan-neon);
    color: #000;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    padding-top: 10px;
}

/* Spin Result & Champion Celebration Popup */
.spin-result-box {
    text-align: center;
}

.result-slot-badge {
    display: inline-block;
    background: var(--gold-trophy);
    color: #060d19;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    padding: 4px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 0 12px var(--gold-glow);
}

.result-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}

.result-subtitle {
    font-size: 0.95rem;
    color: var(--cyan-neon);
    font-weight: 800;
    margin-bottom: 14px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.champion-popup {
    text-align: center;
    border-color: var(--gold-trophy);
    box-shadow: 0 0 35px var(--gold-glow);
}

.trophy-spin-icon {
    font-size: 3rem;
    margin-bottom: 6px;
    animation: bounce 1.2s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-7px); }
}

.congrats-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--gold-trophy);
    letter-spacing: 2px;
}

.champion-crowned-name {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffffff;
    margin: 8px 0 2px 0;
    text-shadow: 0 0 16px var(--gold-trophy);
}

.champion-crowned-satker {
    font-size: 0.95rem;
    color: var(--green-neon);
    font-weight: 800;
}

.congrats-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Play-in Duel Modal */
.playin-duel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0;
}

.playin-select-card {
    background: rgba(13, 30, 56, 0.9);
    border: 2px solid var(--cyan-neon);
    border-radius: 10px;
    padding: 12px;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
}

.playin-select-card:hover {
    border-color: var(--gold-trophy);
    transform: scale(1.04);
}

.duel-slot {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--gold-trophy);
    font-weight: 800;
}

.duel-name {
    font-size: 0.95rem;
    font-weight: 900;
    margin: 6px 0 2px 0;
}

.duel-satker {
    font-size: 0.72rem;
    color: var(--green-neon);
    margin-bottom: 8px;
}

.btn-pick-win {
    display: inline-block;
    background: rgba(245, 197, 24, 0.2);
    border: 1px solid var(--gold-trophy);
    color: var(--gold-trophy);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.duel-vs {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gold-trophy);
}

/* Input custom in forms */
.input-custom {
    background: rgba(6, 17, 32, 0.95);
    border: 1.5px solid rgba(0, 229, 255, 0.4);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: 6px;
    width: 100%;
    outline: none;
}

.select-custom {
    background: rgba(6, 17, 32, 0.95);
    border: 1.5px solid rgba(0, 229, 255, 0.4);
    color: #ffffff;
    padding: 7px 10px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: 6px;
    outline: none;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .top-navbar, .nav-actions, .panel-footer-actions, .btn-spin-glow, .btn-shuffle-instant {
        display: none !important;
    }
    .bracket-board {
        background: #ffffff !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
        transform: scale(1) !important;
    }
    .slot-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
