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

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent-1: #e94560;
    --accent-2: #0f3460;
    --accent-3: #00b4d8;
    --accent-4: #f77f00;
    --accent-5: #06d6a0;
    --accent-6: #9b5de5;
    --gold: #ffd700;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --text: #1a1a2e;
    --text-light: #6c757d;

    --mx-green: #006847;
    --ca-red: #ff0000;
    --us-blue: #3c3b6e;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.25s ease;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--gray-100);
    display: flex;
    flex-direction: column;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    flex-shrink: 0;
    z-index: 100;
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--gold), var(--accent-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: none;
}

@media (min-width: 768px) {
    .logo-sub { display: inline; }
}

/* Countdown inline — centered in top bar */
.countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.cd-item {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.cd-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold);
    min-width: 28px;
    text-align: center;
}

.cd-lbl {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-weight: 700;
}

.cd-sep {
    color: rgba(255,255,255,0.2);
    font-weight: 900;
    font-size: 1.1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Main Nav */
.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 10px;
    display: flex;
    gap: 6px;
}

.nav-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-link.active {
    color: var(--primary);
    background: var(--gold);
}

/* ===== NAV DIVIDER ===== */
.nav-divider {
    height: 10px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3), var(--accent-5), var(--accent-4));
    flex-shrink: 0;
}

.nav-divider-white {
    height: 5px;
    background: var(--primary);
    flex-shrink: 0;
}

/* ===== HERO (HOME TAB) ===== */
.hero {
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #1a1a2e 100%);
    position: relative;
    overflow-y: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 70%, rgba(6, 214, 160, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(247, 127, 0, 0.1) 0%, transparent 40%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 40px 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--accent-4) 50%, var(--accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 28px;
    letter-spacing: 3px;
}

/* Hero Countdown (big version) */
.hero-countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 12px 18px;
    min-width: 72px;
}

.hero-cd-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.hero-cd-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-top: 4px;
}

/* Hero Section Cards */
.hero-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.hero-card {
    background: linear-gradient(160deg, rgba(22, 33, 62, 0.9) 0%, rgba(15, 52, 96, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-card:hover {
    background: linear-gradient(160deg, rgba(22, 33, 62, 1) 0%, rgba(15, 52, 96, 0.9) 100%);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.hero-card:hover::before {
    opacity: 1;
}

.hero-card-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero-card p {
    font-size: 0.82rem;
    line-height: 1.6;
    opacity: 0.75;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.hero-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.hero-stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.4;
    margin-top: 4px;
}

/* Hero Trivia — below stats, fixed height so nothing shifts */
.hero-trivia {
    max-width: 600px;
    margin: 28px auto 0;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    height: 42px;
    line-height: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 24px 16px 30px;
    }

    .hero-countdown {
        gap: 8px;
    }

    .hero-cd-item {
        padding: 10px 12px;
        min-width: 60px;
    }

    .hero-cd-num {
        font-size: 1.6rem;
    }

    .hero-sections {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-sections {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTENT AREA ===== */
.content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.tab-panel.active {
    display: flex;
}

.panel-header {
    padding: 20px 20px 12px;
    text-align: center;
    flex-shrink: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.panel-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.panel-header p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ===== GROUPS GRID ===== */
.groups-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.group-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.group-card-header {
    padding: 10px 16px;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.group-card-body {
    padding: 8px 16px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.team-flag {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.team-code {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.team-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-badge.host {
    background: rgba(255, 215, 0, 0.15);
    color: #b8860b;
}

.team-badge.debut {
    background: rgba(6, 214, 160, 0.15);
    color: #059669;
}

/* ===== CALENDAR ===== */
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.calendar-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 0;
    background: var(--primary);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.view-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    transition: var(--transition);
    line-height: 1;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.view-btn:hover {
    color: rgba(255,255,255,0.8);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: var(--white);
    box-shadow: 0 2px 10px rgba(233,69,96,0.35);
}

/* Download calendar button */
.download-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--accent-2);
    background: transparent;
    color: var(--accent-2);
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.download-cal-btn:hover {
    background: var(--accent-2);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(15,52,96,0.35);
    transform: translateY(-1px);
}

.download-cal-btn svg {
    flex-shrink: 0;
}

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

.filter-group label {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 6px 12px;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-3);
}

/* Calendar promo banner */
.cal-promo {
    max-width: 850px;
    margin: 16px auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
    border-radius: var(--radius);
    color: var(--white);
    animation: promoSlide 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(15,52,96,0.3);
    border-left: 4px solid var(--accent-3);
}

@keyframes promoSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.cal-promo-left {
    flex: 1;
}

.cal-promo-badge {
    display: inline-block;
    background: var(--accent-1);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 6px;
}

.cal-promo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cal-promo-sub {
    font-size: 0.78rem;
    opacity: 0.75;
    line-height: 1.4;
}

.cal-promo-demo {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 0 5px;
    border-radius: 4px;
    font-size: 0.72rem;
}

.cal-promo-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--accent-3);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.cal-promo-action:hover {
    background: var(--accent-5);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0,180,216,0.4);
}

.cal-promo-action svg {
    flex-shrink: 0;
}

.matches-list {
    max-width: 850px;
    margin: 0 auto;
}

/* ===== FIFA GRID VIEW ===== */
.matches-grid {
    overflow-x: auto;
    padding: 10px;
}

.fifa-grid {
    display: grid;
    gap: 0;
    border-radius: var(--radius-sm);
    min-width: 1200px;
    font-size: 0.65rem;
    border-collapse: collapse;
}

.fifa-grid .fg-corner,
.fifa-grid .fg-date,
.fifa-grid .fg-venue,
.fifa-grid .fg-cell {
    border: 1px solid var(--gray-300);
}

.fifa-grid .fg-corner {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    left: 0;
    z-index: 2;
    border-color: rgba(255,255,255,0.15);
}

.fifa-grid .fg-date {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 6px 3px;
    text-align: center;
    writing-mode: horizontal-tb;
    line-height: 1.2;
    border-color: rgba(255,255,255,0.15);
}

.fifa-grid .fg-venue {
    background: var(--primary-light);
    color: var(--white);
    font-weight: 700;
    padding: 6px 8px;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 1;
    font-size: 0.7rem;
    border-color: rgba(255,255,255,0.15);
}

.fifa-grid .fg-cell {
    background: var(--white);
    padding: 3px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 3px 4px;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: default;
    transition: transform 0.15s ease;
}

.fg-match:hover {
    transform: scale(1.05);
    z-index: 1;
}

.fg-match .fg-teams {
    font-weight: 700;
    font-size: 0.62rem;
}

.fg-match .fg-time {
    font-size: 0.55rem;
    opacity: 0.8;
}

.fg-match.fg-group { background: rgba(0,180,216,0.15); color: var(--accent-2); }
.fg-match.fg-r32   { background: rgba(233,69,96,0.15); color: var(--accent-1); }
.fg-match.fg-r16   { background: rgba(247,127,0,0.15); color: var(--accent-4); }
.fg-match.fg-qf    { background: rgba(155,93,229,0.15); color: var(--accent-6); }
.fg-match.fg-sf    { background: rgba(6,214,160,0.15); color: #047857; }
.fg-match.fg-final { background: rgba(255,215,0,0.25); color: #92400e; font-weight: 900; }

.match-date-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    padding: 8px 16px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    margin: 16px 0 8px;
    text-transform: capitalize;
}

.match-date-header:first-child {
    margin-top: 0;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.match-card:hover {
    box-shadow: var(--shadow);
}

.match-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-2);
    min-width: 48px;
    text-align: center;
}

.match-group-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    color: var(--white);
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 0;
}

.match-team.home {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: flex-start;
    flex: 1;
}

.match-team.away {
    justify-content: flex-start;
    flex: 1;
}

.match-vs {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 800;
    flex-shrink: 0;
}

.match-team .team-flag {
    width: 24px;
    height: 16px;
    flex-shrink: 0;
}

.match-venue {
    font-size: 0.75rem;
    color: var(--text-light);
    min-width: 100px;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Add to calendar button — inline on each match */
.add-cal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-light);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.add-cal-btn:hover {
    background: var(--accent-3);
    color: var(--white);
    border-color: var(--accent-3);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,180,216,0.3);
}

.add-cal-btn svg {
    display: block;
}

.match-card.knockout {
    border-left: 3px solid var(--accent-6);
}

.match-phase-label {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    background: var(--accent-6);
    color: var(--white);
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* ===== BRACKET ===== */
.bracket-container {
    max-width: 100%;
    margin: 0 auto;
}

.bk-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 16px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.72rem;
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.bk-legend b {
    color: var(--accent-2);
}

/* Main bracket grid: 9 columns */
.bk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.8fr 1fr 0.8fr 1fr 1fr 1fr;
    gap: 6px;
    align-items: center;
    min-width: 900px;
    overflow-x: auto;
}

/* Column labels */
.bk-col-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.8fr 1fr 0.8fr 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
    min-width: 900px;
}

.bk-col-labels span {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-6);
}

/* Bracket columns */
.bk-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: space-around;
}

.bk-col.bk-r32 { min-height: 500px; }
.bk-col.bk-r16 { min-height: 500px; }
.bk-col.bk-qf  { min-height: 500px; }
.bk-col.bk-sf   { min-height: 500px; }

/* Final column centered */
.bk-col.bk-final {
    min-height: 500px;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bk-trophy {
    line-height: 1;
    display: flex;
    justify-content: center;
}

.bk-trophy-img {
    width: 56px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    filter: drop-shadow(0 4px 12px rgba(218, 183, 62, 0.6));
}

.bk-final-info {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
}

.bk-third-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 8px;
}

.bk-col.bk-final .bk-m:first-of-type {
    border-color: var(--gold);
    box-shadow: 0 3px 12px rgba(255,215,0,0.2);
}

/* Match cards — compact */
.bk-m {
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
}

.bk-m:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent-3);
    transform: scale(1.02);
}

.bk-hdr {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.6rem;
    color: var(--text-light);
}

.bk-id {
    font-weight: 700;
    color: var(--accent-6);
}

.bk-dt { font-weight: 600; }

.bk-vn {
    margin-left: auto;
    font-style: italic;
}

.bk-s {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-bottom: 1px solid var(--gray-100);
}

.bk-s:last-child { border-bottom: none; }

.bk-s-clickable {
    cursor: pointer;
    transition: background 0.2s ease;
}

.bk-s-clickable:hover {
    background: rgba(233, 69, 96, 0.08);
}

.bk-s-winner {
    background: rgba(6, 214, 160, 0.12) !important;
    border-left: 3px solid #06d6a0;
}

.bk-s-winner span {
    color: #06856a !important;
    font-weight: 700 !important;
}

.bk-s-loser {
    opacity: 0.4;
}

.bk-check {
    color: #06d6a0;
    font-weight: 700;
    font-size: 0.7rem;
    margin-left: auto;
}

/* 3rd place picker */
.bk-s-3rd-pick {
    background: rgba(255, 215, 0, 0.08);
    border: 1px dashed rgba(255, 215, 0, 0.4);
    border-radius: 4px;
    justify-content: space-between;
}

.bk-3rd-label {
    font-size: 0.6rem;
    color: var(--gray-400);
    white-space: nowrap;
}

.bk-3rd-btn {
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: var(--primary);
    border: none;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.bk-3rd-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.bk-3rd-picker {
    position: fixed;
    z-index: 1000;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bk-3rd-picker-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.bk-3rd-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.bk-3rd-option:hover:not([disabled]) {
    background: rgba(233, 69, 96, 0.06);
    border-color: var(--accent-1);
}

.bk-3rd-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.bk-3rd-option small {
    color: var(--gray-400);
    font-size: 0.6rem;
    margin-left: auto;
}

.bk-3rd-used {
    opacity: 0.4;
    cursor: not-allowed;
}

.bk-3rd-close {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 6px;
    font-size: 0.7rem;
    color: var(--gray-400);
    cursor: pointer;
    margin-top: 4px;
}

.bk-3rd-close:hover {
    background: var(--gray-100);
}

.bk-s span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.bk-flag-placeholder {
    display: inline-block;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    flex-shrink: 0;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .bk-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }

    .bk-col {
        min-height: auto !important;
    }

    .bk-col::before {
        content: attr(data-label);
        font-family: 'Outfit', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--accent-6);
        margin-bottom: 4px;
    }

    .bk-col-labels { display: none; }
}

/* ===== VENUES GRID ===== */
.venues-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.venue-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-3);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.venue-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.venue-card[data-country="Mexico"] { border-left-color: var(--mx-green); }
.venue-card[data-country="Canada"] { border-left-color: var(--ca-red); }
.venue-card[data-country="USA"]    { border-left-color: var(--us-blue); }

.venue-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.venue-fifa-name {
    font-size: 0.75rem;
    color: var(--accent-3);
    font-weight: 600;
}

.venue-city {
    font-size: 0.85rem;
    color: var(--text-light);
}

.venue-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.venue-capacity {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-2);
}

.venue-country-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

/* ===== VENUE DETAIL VIEW ===== */

/* ============================
   VENUE DETAIL — Editorial Style
   ============================ */
.venue-detail {
    padding: 0;
    animation: vdFadeIn 0.4s ease;
    background: #eef1f5;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

@keyframes vdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.venue-detail-header {
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(238, 241, 245, 0.92);
    backdrop-filter: blur(16px);
}

.venue-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: rgba(26, 26, 46, 0.08);
    color: rgba(26, 26, 46, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.venue-back-btn:hover { background: rgba(26, 26, 46, 0.14); color: #1a1a2e; }
.venue-back-btn svg { flex-shrink: 0; stroke: currentColor; }

.venue-detail-content { padding: 20px 24px 32px; }

/* --- HERO IMAGE --- */
/* ===== VENUE DETAIL — CARD LAYOUT ===== */
.vd-card {
    max-width: 900px;
    margin: 0 auto 24px;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 52, 96, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- HEADER: info left + photo right --- */
.vd-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
}

.vd-header-info {
    padding: 32px 28px 24px;
    display: flex;
    flex-direction: column;
}

.vd-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.vd-header-badge img {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.vd-header-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.vd-header-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.vd-header-fifa {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0 0 20px 0;
}

/* Spec table inside header */
.vd-spec-table {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vd-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.vd-spec-k {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.8px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 16px;
    padding-top: 1px;
}

.vd-spec-v {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    text-align: right;
    line-height: 1.35;
}

/* Photo right side */
.vd-header-photo {
    position: relative;
    overflow: hidden;
}

.vd-header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.vd-header-photo:hover img {
    transform: scale(1.03);
}

/* --- STATS BAR --- */
.vd-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 20, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vd-stat {
    flex: 1;
    text-align: center;
    padding: 18px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.vd-stat:last-child { border-right: none; }

.vd-stat strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.vd-stat span {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* --- BOTTOM: legacy, description, facts --- */
.vd-bottom {
    padding: 24px 28px 28px;
    background: rgba(10, 12, 20, 0.3);
}

.vd-legacy {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(196, 30, 58, 0.07);
    border-left: 3px solid rgba(196, 30, 58, 0.5);
    border-radius: 0 8px 8px 0;
}

.vd-legacy-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(196, 30, 58, 0.85);
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.vd-legacy-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}

.vd-description {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin: 0 0 20px 0;
}

.vd-facts-list {
    margin-top: 8px;
}

.vd-fact-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.vd-fact-idx {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(196, 30, 58, 0.6);
    flex-shrink: 0;
    width: 22px;
}

.vd-fact-item p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin: 0;
}

/* --- MATCHES SECTION --- */
.vd-matches-section {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 0;
}

.vd-matches-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.vd-matches-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.vd-match-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.vd-match-row:hover {
    background: #f8f9fc;
    border-color: rgba(15, 52, 96, 0.15);
    box-shadow: 0 2px 8px rgba(15, 52, 96, 0.08);
}

.vd-match-phase {
    font-size: 0.62rem;
    color: #c41e3a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.vd-match-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #1a1a2e;
    font-weight: 600;
    min-width: 0;
    flex-wrap: wrap;
}

.vd-match-teams img {
    width: 18px;
    height: auto;
    border-radius: 2px;
    flex-shrink: 0;
}

.vd-match-teams span {
    white-space: nowrap;
}

.vd-match-teams em {
    color: rgba(26, 26, 46, 0.3);
    font-size: 0.65rem;
    font-style: normal;
    margin: 0 2px;
}

.vd-match-date {
    font-size: 0.7rem;
    color: rgba(26, 26, 46, 0.45);
    white-space: nowrap;
    text-align: right;
}

/* Venue cards clickable */
.venue-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(196, 30, 58, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .vd-header {
        grid-template-columns: 1fr;
    }
    .vd-header-photo {
        height: 220px;
        order: -1;
    }
    .vd-header-info {
        padding: 20px 20px 18px;
    }
    .vd-header-name {
        font-size: 1.7rem;
    }
    .vd-stats-bar {
        flex-wrap: wrap;
    }
    .vd-stat {
        padding: 14px 10px;
    }
    .vd-stat strong {
        font-size: 1.2rem;
    }
    .vd-bottom {
        padding: 20px 20px 24px;
    }
    .vd-matches-section {
        padding: 0 8px;
    }
    .vd-matches-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vd-header-name {
        font-size: 1.4rem;
    }
    .vd-header-photo {
        height: 180px;
    }
    .vd-stat strong {
        font-size: 1rem;
    }
    .vd-stat {
        padding: 12px 8px;
    }
    .vd-bottom {
        padding: 16px 14px 20px;
    }
    .vd-match-row {
        padding: 8px 10px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.footer a {
    color: var(--gold);
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        padding: 0 20px 12px;
        gap: 4px;
    }

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

    .hamburger {
        display: flex;
    }

    .countdown {
        gap: 2px;
    }

    .cd-num {
        font-size: 1rem;
        min-width: 22px;
    }

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

    .match-card {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }

    .match-venue {
        width: 100%;
        text-align: left;
        padding-top: 4px;
        border-top: 1px solid var(--gray-200);
        min-width: 0;
    }

    .calendar-toolbar {
        flex-direction: column;
        gap: 8px;
    }

    .calendar-filters {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .filter-group select {
        flex: 1;
    }

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

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

/* ===== HERO NEWS SECTION ===== */
.hero-news-section {
    margin: 32px auto 0;
    width: 100%;
    max-width: 1000px;
}

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

.hero-news-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
}

.hero-news-lang-toggle {
    display: flex;
    gap: 6px;
}

.news-lang-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.news-lang-btn.active {
    background: linear-gradient(135deg, #8b1538, #c41e3a);
    color: #fff;
    border-color: #c41e3a;
}

.hero-news-carousel {
    position: relative;
}

/* === NEWS CARDS === */
.hero-news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    min-height: 200px;
    padding: 0 10px;
}

.hero-news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 0;
    position: relative;
    overflow: hidden;
}

.hero-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hero-news-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.hero-news-card:hover::before {
    opacity: 1;
}

/* Source name */
.hero-news-card-source {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2px;
}

/* Divider between source and title — full width bleed */
.hero-news-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px -14px;
}

.hero-news-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: auto;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-news-card-date {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

/* Navigation — minimal */
.hero-news-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.hero-news-arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.hero-news-arrow:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.hero-news-indicator {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    min-width: 36px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-news-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ===== SCROLLBAR ===== */
.panel-body::-webkit-scrollbar {
    width: 6px;
}

.panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ===== PREDICTIONS BANNER ===== */
.predictions-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(102, 51, 153, 0.08));
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin: 0 24px;
    animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% { border-color: rgba(233, 69, 96, 0.2); }
    50% { border-color: rgba(233, 69, 96, 0.45); }
}

.pred-banner-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.pred-banner-text {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.pred-banner-text strong {
    color: var(--accent-1);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.pred-banner-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.pred-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 69, 96, 0.3);
}

.pred-link-btn {
    background: none;
    border: none;
    color: var(--accent-1);
    font-weight: 700;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.pred-link-btn:hover {
    color: var(--accent-4);
}

.predictions-banner-bracket {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(102, 51, 153, 0.08));
    border-color: rgba(0, 180, 216, 0.2);
}

.predictions-banner-bracket .pred-banner-text strong {
    color: var(--accent-2);
}

@keyframes bannerPulse {
    0%, 100% { border-color: rgba(233, 69, 96, 0.2); }
    50% { border-color: rgba(233, 69, 96, 0.45); }
}

@media (max-width: 768px) {
    .predictions-banner {
        flex-direction: column;
        text-align: center;
        margin: 0 12px;
        padding: 12px 16px;
    }
}

/* ===== PREDICTIONS SYSTEM ===== */

/* Team row draggable styling */
.team-row {
    cursor: grab;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    user-select: none;
}

.team-row:hover {
    background: rgba(0, 0, 0, 0.03);
}

.team-row:active {
    cursor: grabbing;
}

.team-row.dragging {
    opacity: 0.5;
    background: rgba(232, 69, 96, 0.08);
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(232, 69, 96, 0.2);
}

.team-row.drag-over {
    background: rgba(232, 69, 96, 0.12);
    border-top: 3px solid var(--accent-1);
    border-bottom: 3px solid var(--accent-1);
}

/* Team position badge */
.team-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Group card flash animation */
.group-card.flash {
    animation: groupFlash 0.6s ease;
}

@keyframes groupFlash {
    0% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 0 0 20px rgba(232, 69, 96, 0.4);
    }
    100% {
        box-shadow: var(--shadow);
    }
}

.group-card.drop-zone-active {
    background: rgba(232, 69, 96, 0.04);
    border: 2px dashed var(--accent-1);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1000;
    transition: bottom 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    bottom: 30px;
}

/* Bracket share button */
.bk-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    gap: 12px;
}

.bk-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(232, 69, 96, 0.25);
}

.bk-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 69, 96, 0.35);
}

.bk-share-btn:active {
    transform: translateY(0);
}

.bk-share-btn.copied {
    background: linear-gradient(135deg, #06d6a0, #2a9d8f);
}

.bk-share-btn svg {
    width: 16px;
    height: 16px;
}

/* Language Toggle Button */
.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 12px;
    white-space: nowrap;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ===== PRINT ===== */
@media print {
    .top-bar, .footer, .calendar-filters {
        display: none;
    }

    html, body {
        height: auto;
        overflow: visible;
    }

    .content, .tab-panel, .panel-body {
        overflow: visible;
        height: auto;
    }

    .tab-panel { display: flex !important; }

    .group-card, .match-card, .venue-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ===== TEAMS SECTION ===== */
.teams-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.team-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.team-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-card-flag {
    width: 56px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.team-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-card-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.team-card-nickname {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-style: italic;
}

.team-card-conf {
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
    margin-top: 2px;
}

.team-card-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.team-card-group {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.team-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.team-badge-host {
    background: rgba(46,204,113,0.2);
    color: #2ecc71;
}

.team-badge-debut {
    background: rgba(241,196,15,0.2);
    color: #f1c40f;
}

.team-card-titles {
    font-size: 0.75rem;
    margin-left: auto;
}

/* Team Detail */
.team-detail {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

.td-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px;
    overflow: hidden;
}

.td-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
}

.td-flag {
    width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.td-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-name {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
}

.td-nickname {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    font-style: italic;
}

.td-badges {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.td-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.td-stat-val {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.td-stat-lbl {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.td-body {
    padding: 24px 30px 30px;
}

.td-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.td-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.td-info-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.td-info-value {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}

.td-section {
    margin-top: 24px;
}

.td-section-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.td-players {
    display: grid;
    gap: 8px;
}

.team-player {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}

.team-player-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-player-pos {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}

.team-player-club {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    font-style: italic;
}

.td-matches {
    display: grid;
    gap: 6px;
}

.team-match-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.team-match-date {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 600;
}

.team-match-teams {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-match-flag {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.team-match-vs {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    margin: 0 2px;
}

.team-match-venue {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}

/* ===== AI PREDICTIONS ===== */
.predictions-consensus {
    margin-bottom: 30px;
}

.consensus-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.consensus-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.consensus-summary {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.consensus-ranking {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.consensus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.consensus-rank {
    color: rgba(255,255,255,0.3);
    font-size: 1.6rem;
    font-weight: 900;
}

.consensus-flag {
    width: 56px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.consensus-name {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.consensus-wins {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* Predictions table */
.pred-section-title {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px 0;
}

.pred-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pred-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 12px;
    overflow: hidden;
    min-width: 600px;
}

.pred-table th, .pred-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pred-table th {
    background: rgba(0,0,0,0.15);
}

.pred-table-ai-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.pred-table-ai-model {
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
}

.pred-table-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pred-table td {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.pred-table td img {
    vertical-align: middle;
    margin-right: 6px;
}

.pred-table-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

/* Prediction cards */
.predictions-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pred-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 14px;
    overflow: hidden;
}

.pred-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(0,0,0,0.12);
}

.pred-card-ai {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pred-card-ai-name {
    font-weight: 800;
    font-size: 1.2rem;
}

.pred-card-ai-model {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
}

.pred-card-pct {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    opacity: 0.3;
}

.pred-card-body {
    padding: 20px;
}

.pred-card-picks {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.pred-card-pick {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pred-card-pick-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pred-card-pick-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pred-card-flag {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pred-card-flag-sm {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.pred-card-team-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.pred-card-pick-team span {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.pred-card-final {
    background: rgba(0,0,0,0.15);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pred-card-final-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pred-card-final-score {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.pred-card-analysis {
    color: rgba(255,255,255,0.6);
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.pred-card-method {
    background: rgba(255,255,255,0.04);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pred-card-method-label {
    color: rgba(255,255,255,0.35);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pred-card-method-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Vote badge in pred-card header */
.pred-card-vote-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid rgba(212,175,55,0.4);
    background: rgba(212,175,55,0.1);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4af37;
    white-space: nowrap;
}
.pred-card-vote-badge:hover {
    border-color: #d4af37;
    background: rgba(212,175,55,0.2);
    transform: scale(1.05);
}
.pred-card-vote-icon { font-size: 1rem; }
.pred-card-vote-count { font-weight: 700; }
.pred-card-vote-pct { font-size: 0.75rem; opacity: 0.7; }

/* Voted card highlight */
.pred-card-voted {
    border: 1px solid rgba(212,175,55,0.4);
    box-shadow: 0 0 20px rgba(212,175,55,0.15);
}

/* Vote CTA at bottom of card */
.pred-card-vote-cta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.pred-card-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    border-radius: 20px;
    border: 2px solid rgba(212,175,55,0.4);
    background: transparent;
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pred-card-vote-btn:hover {
    background: rgba(212,175,55,0.15);
    border-color: #d4af37;
}
.pred-card-vote-active {
    color: #fff;
    border-color: transparent;
}

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

    .td-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .td-info-grid {
        grid-template-columns: 1fr;
    }

    .team-player {
        grid-template-columns: 1fr;
        gap: 2px;
    }

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

    .consensus-ranking {
        gap: 10px;
    }

    .consensus-item {
        min-width: 60px;
    }

    .consensus-flag {
        width: 40px;
    }

    .pred-table {
        min-width: 500px;
    }

    .pred-card-picks {
        flex-direction: column;
    }
}

/* ===== SUPABASE AUTH & SHARED UI ===== */
.wc-auth-area {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 12px;
}

/* Magic link auth form */
.wc-auth-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wc-auth-input {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: #fff;
    width: 170px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wc-auth-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212,175,55,0.25);
}

.wc-auth-input::placeholder {
    color: rgba(255,255,255,0.45);
}

.wc-auth-highlight {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.4), 0 0 20px rgba(212,175,55,0.2) !important;
    animation: authPulse 1s ease-in-out 2;
}

@keyframes authPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(212,175,55,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(212,175,55,0.2), 0 0 30px rgba(212,175,55,0.15); }
}

.wc-btn-magic {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212,175,55,0.35);
    letter-spacing: 0.3px;
}

.wc-btn-magic:hover {
    background: linear-gradient(135deg, #e5c348, #f7dc6f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.5);
}

.wc-btn-magic:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wc-btn-magic svg {
    stroke: #1a1a2e;
}

.wc-auth-sent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #fff;
}

/* OTP Code auth flow */
.wc-auth-otp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wc-auth-otp-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #fff;
}
.wc-auth-otp-form {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wc-auth-otp-input {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(212,175,55,0.5);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    color: #fff;
    width: 130px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wc-auth-otp-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.3);
}
.wc-auth-otp-input::placeholder {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    letter-spacing: normal;
}
.wc-auth-otp-footer {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
}
.wc-auth-otp-hint {
    font-size: 0.72rem;
    color: #e94560;
    margin-top: 2px;
}

/* Login Modal (popup for save predictions) */
.wc-login-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.wc-login-modal-content {
    position: relative;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
.wc-login-modal-content h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 8px 0;
}
.wc-login-modal-content p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}
.wc-login-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 4px;
}
.wc-login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.wc-login-modal-email {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #fff;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}
.wc-login-modal-email:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212,175,55,0.25);
}
.wc-login-modal-email::placeholder {
    color: rgba(255,255,255,0.35);
}
.wc-login-modal-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.95rem;
}

.wc-auth-sent-icon {
    font-size: 1.1rem;
}

.wc-auth-sent-text {
    color: rgba(255,255,255,0.85);
}

.wc-auth-sent-text b {
    color: #fff;
}

.wc-user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary, #d4af37);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.wc-user-avatar-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212,175,55,0.4);
    flex-shrink: 0;
}
.wc-user-avatar-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive auth */
@media (max-width: 600px) {
    .wc-auth-input { width: 120px; font-size: 0.72rem; padding: 5px 8px; }
    .wc-btn-magic { padding: 5px 10px; font-size: 0.72rem; }
    .wc-auth-sent { font-size: 0.7rem; }
}

.wc-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.wc-user-name {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-btn-sm {
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.wc-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.15);
}

.wc-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.wc-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    border: none;
    transition: all 0.2s;
}

.wc-btn-primary {
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.wc-btn-primary:hover {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== COMMENTS ===== */
.wc-comments-section {
    max-width: 700px;
    margin: 30px auto 0;
}

.wc-comments-title {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

.wc-comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wc-comment-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
}

.wc-comment-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.wc-comment-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.25);
}

.wc-comment-submit {
    align-self: flex-end;
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.wc-comment-submit:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.wc-comment-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wc-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-comment {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 14px;
}

.wc-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wc-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.wc-comment-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 700;
}

.wc-comment-author {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.wc-comment-flag {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

.wc-comment-time {
    color: rgba(255,255,255,0.3);
    font-size: 0.72rem;
    margin-left: auto;
}

.wc-comment-body {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.wc-comment-actions {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.wc-comment-action {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.wc-comment-action:hover {
    color: rgba(255,255,255,0.6);
}

.wc-comment-action.liked {
    color: #e74c3c;
}

.wc-reply-btn {
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.72rem !important;
}
.wc-reply-btn:hover {
    color: var(--gold, #d4af37) !important;
}

.wc-reply-form {
    display: none;
    gap: 8px;
    margin-top: 8px;
    padding-left: 36px;
}
.wc-reply-input {
    flex: 1;
    min-height: 36px;
    font-size: 0.8rem;
    padding: 8px 10px;
}
.wc-reply-submit {
    font-size: 0.76rem;
    padding: 6px 14px;
    align-self: flex-end;
}

.wc-replies {
    padding-left: 28px;
    margin-top: 4px;
}
.wc-comment.wc-reply {
    border-left: 2px solid rgba(212,175,55,0.15);
    margin-left: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
}
.wc-comment.wc-reply .wc-comment-avatar,
.wc-comment.wc-reply .wc-comment-avatar-placeholder {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
}

.wc-show-replies {
    background: none;
    border: none;
    color: var(--gold, #d4af37);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 4px 0 4px 36px;
    opacity: 0.7;
}
.wc-show-replies:hover {
    opacity: 1;
}

.wc-login-prompt {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 16px;
}

.wc-login-prompt button {
    margin-left: 8px;
}

/* ===== QUINIELA RÁPIDA ===== */
.wc-quiniela {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px;
    padding: 28px;
}

.wc-quiniela-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.wc-quiniela-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0 0 24px 0;
}

.wc-quiniela-field {
    margin-bottom: 16px;
}

.wc-quiniela-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.wc-quiniela-select {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

.wc-quiniela-select option {
    background: #1a1a2e;
    color: #fff;
}

.wc-quiniela-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.wc-quiniela-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.wc-quiniela-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wc-share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.wc-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wc-share-btn:hover {
    opacity: 0.85;
}

.wc-share-whatsapp {
    background: #25d366;
    color: #fff;
}

.wc-share-twitter {
    background: #1da1f2;
    color: #fff;
}

.wc-share-copy {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ===== LEADERBOARD ===== */
.wc-leaderboard {
    max-width: 600px;
    margin: 30px auto 0;
}

.wc-leaderboard-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px;
    overflow: hidden;
}

.wc-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.12);
}

.wc-leaderboard-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-leaderboard-code {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.wc-leaderboard-rows {
    padding: 8px 0;
}

.wc-lb-row {
    display: grid;
    grid-template-columns: 36px 36px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.wc-lb-rank {
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

.wc-lb-rank.top-1 { color: #f1c40f; }
.wc-lb-rank.top-2 { color: #bdc3c7; }
.wc-lb-rank.top-3 { color: #e67e22; }

.wc-lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.wc-lb-name {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.wc-lb-points {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.wc-lb-points span {
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    font-weight: 400;
}

/* Group join/create */
.wc-group-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wc-group-input {
    flex: 1;
    min-width: 140px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
}

.wc-group-input::placeholder {
    color: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .wc-auth-area {
        display: none;
    }

    .wc-comment-form {
        flex-direction: column;
    }

    .wc-quiniela {
        padding: 20px;
    }

    .wc-lb-row {
        grid-template-columns: 28px 28px 1fr auto auto;
        padding: 8px 12px;
        gap: 6px;
    }
}

/* ===== COMMUNITY SECTION DARK THEME ===== */
#panel-community .panel-body {
    background: linear-gradient(160deg, #0d0d1a 0%, #141428 50%, #0f1f3a 100%);
}

/* ===== COMMUNITY TABS ===== */
.community-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 5px;
    overflow-x: auto;
    justify-content: center;
}

.community-tab {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.2s;
    white-space: nowrap;
}

.community-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}

.community-tab.active {
    background: var(--accent-2);
    color: var(--gold);
    border-color: rgba(255,215,0,0.3);
    box-shadow: 0 2px 8px rgba(15,52,96,0.5);
}

.community-panel {
    display: none;
}

.community-panel.active {
    display: block;
}

/* Stats panel inherits dark bg from panel-body */
#cpanel-stats {
    padding: 20px 0 0;
}

/* ===== ODDS ===== */
.odds-section {
    max-width: 700px;
    margin: 0 auto;
}

.odds-section-title {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
}

.odds-disclaimer {
    color: rgba(255,255,255,0.3);
    font-size: 0.72rem;
    font-style: italic;
    margin: 0 0 16px 0;
}

.odds-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odds-row {
    display: grid;
    grid-template-columns: 30px 30px 1fr 70px 50px 30px;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    transition: background 0.15s;
}

.odds-row:hover {
    background: rgba(255,255,255,0.06);
}

.odds-row.odds-top {
    background: rgba(255,255,255,0.06);
}

.odds-rank {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.odds-flag {
    width: 26px;
    height: auto;
    border-radius: 2px;
}

.odds-team {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.odds-value {
    color: #2ecc71;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.odds-pct {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    text-align: right;
}

.odds-trend {
    font-size: 0.7rem;
    text-align: center;
}

.odds-trend-up {
    color: #2ecc71;
}

.odds-trend-down {
    color: #e74c3c;
}

.odds-updated {
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
    margin-top: 12px;
    text-align: right;
}

@media (max-width: 600px) {
    .community-tabs {
        gap: 2px;
    }

    .community-tab {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .odds-row {
        grid-template-columns: 24px 24px 1fr 56px 40px 24px;
        padding: 8px 10px;
        gap: 6px;
    }

    .odds-team {
        font-size: 0.8rem;
    }
}

/* ===== FLAG PICKER MODAL ===== */
.wc-flag-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wc-flag-modal-content {
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212,175,55,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}

.wc-flag-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.wc-flag-close:hover {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
    border-color: rgba(239,68,68,0.3);
}

.wc-flag-modal-content h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin: 0 0 4px;
    text-align: center;
}

.wc-flag-modal-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin: 0 0 18px;
    text-align: center;
}

.wc-flag-search-wrap {
    margin-bottom: 16px;
}

.wc-flag-search {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

.wc-flag-search:focus {
    border-color: #d4af37;
}

.wc-flag-search::placeholder {
    color: rgba(255,255,255,0.35);
}

.wc-flag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 4px;
}

.wc-flag-grid::-webkit-scrollbar {
    width: 4px;
}

.wc-flag-grid::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.3);
    border-radius: 2px;
}

.wc-flag-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s;
    color: #fff;
    font-size: 0.78rem;
}

.wc-flag-btn:hover {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.3);
    transform: scale(1.03);
}

.wc-flag-emoji {
    font-size: 1.3rem;
    line-height: 1;
}

.wc-flag-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-header-flag {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .wc-flag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wc-flag-modal-content {
        padding: 24px 20px;
    }
}

/* ===== ADMIN DASHBOARD (Zest-style) ===== */
#admin-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.admin-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
}

.admin-select option {
    background: #16213e;
    color: #fff;
}

/* Sections */
.admin-section {
    margin-bottom: 32px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

.admin-section-green {
    border-left: 3px solid #22c55e;
}

.admin-section-red {
    border-left: 3px solid #ef4444;
}

.admin-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.admin-dot.green { background: #22c55e; }
.admin-dot.red { background: #ef4444; }

/* KPIs */
.admin-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-kpi {
    background: linear-gradient(135deg, #0f3460, #16213e);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.admin-kpi.green {
    border: 1px solid rgba(34,197,94,0.25);
}

.admin-kpi.green .admin-kpi-value {
    color: #22c55e;
}

.admin-kpi.red {
    border: 1px solid rgba(239,68,68,0.25);
}

.admin-kpi.red .admin-kpi-value {
    color: #ef4444;
}

.admin-kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 5px;
}

.admin-kpi-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Cards */
.admin-card {
    background: linear-gradient(135deg, #0f3460, #16213e);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.admin-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* Bar list rows */
.admin-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.admin-bar-label {
    width: 85px;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.8);
    text-transform: capitalize;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bar-track {
    flex: 1;
    height: 7px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.admin-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.admin-section-red .admin-bar-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.admin-bar-value {
    width: 34px;
    text-align: right;
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

/* Filter bar */
.admin-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-filter {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.admin-filter:hover {
    background: rgba(255,255,255,0.1);
}

.admin-filter.active {
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
    border-color: rgba(212,175,55,0.3);
}

/* Badges */
.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-badge.green {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.admin-badge.red {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.admin-badge.blue {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

/* Table rows */
.admin-table {
    overflow-x: auto;
}

.admin-tr {
    display: grid;
    grid-template-columns: 100px 1fr 70px 65px 65px 75px;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.76rem;
    color: rgba(255,255,255,0.75);
    align-items: center;
}

.admin-th {
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-tr-users {
    grid-template-columns: 1fr 100px 120px;
}

.admin-th-users {
    grid-template-columns: 1fr 100px 120px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.admin-loading {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    padding: 40px 0;
}

.admin-empty {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    padding: 20px 0;
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-grid { grid-template-columns: 1fr; }
    .admin-kpis { grid-template-columns: repeat(2, 1fr); }
    .admin-section { padding: 14px; }
    .admin-tr { grid-template-columns: 70px 1fr 55px 60px; font-size: 0.7rem; }
    .admin-tr span:nth-child(5),
    .admin-tr span:nth-child(6) { display: none; }
    .admin-toolbar { flex-wrap: wrap; }
}

/* ===== SAVE PREDICTIONS BUTTON ===== */
.bk-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #06d6a0, #2a9d8f);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.25);
}
.bk-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 214, 160, 0.35);
}
.bk-save-btn:active { transform: translateY(0); }
.bk-save-btn.bk-save-success {
    background: linear-gradient(135deg, #ffd166, #e8a520);
    box-shadow: 0 4px 12px rgba(255, 209, 102, 0.25);
}
.bk-save-btn svg { width: 16px; height: 16px; }
.bk-save-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CTA BANNER (bracket - light background) ===== */
.bk-cta-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e8f5e9, #e0f2f1);
    border: 1px solid #a5d6a7;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.bk-cta-icon { font-size: 1.5rem; }
.bk-cta-text { color: var(--text); font-size: 0.9rem; flex: 1; min-width: 200px; }

/* ===== COMMUNITY STATS — 3-column layout ===== */
/* Legacy wrapper — no longer used with 3-col layout but kept for safety */
.stats-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px;
    padding: 28px;
}

.stats-3col {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.stats-col { display: flex; flex-direction: column; gap: 16px; }

.stats-card {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.06);
}
.stats-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}
.stats-card-sub {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-top: -6px;
    margin-bottom: 12px;
}
.stats-card-link {
    display: block;
    text-align: center;
    color: #d4af37;
    font-size: 0.82rem;
    margin-top: 12px;
    text-decoration: none;
}
.stats-card-link:hover { text-decoration: underline; }

/* Comments preview in stats */
.stats-comments-preview { display: flex; flex-direction: column; gap: 10px; }
.stats-comment-item {
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-left: 3px solid rgba(212,175,55,0.3);
}
.stats-comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.stats-comment-flag { width: 16px; border-radius: 2px; }
.stats-comment-name { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.stats-comment-time { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-left: auto; }
.stats-comment-text {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive: tablet stacks to 2 cols, mobile to 1 */
@media (max-width: 1024px) {
    .stats-3col {
        grid-template-columns: 1fr 1fr;
    }
    .stats-col-left { order: 2; }
    .stats-col-center { order: 1; grid-column: 1 / -1; }
    .stats-col-right { order: 3; }
}
@media (max-width: 768px) {
    .stats-3col {
        grid-template-columns: 1fr;
    }
    .stats-col-center { order: 1; }
    .stats-col-left { order: 2; }
    .stats-col-right { order: 3; }
}
.stats-hero {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(232, 69, 96, 0.1), rgba(255, 209, 102, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.15);
}
.stats-hero-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stats-hero-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stats-hero-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    border-radius: 25px;
    border: 2px solid #d4af37;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    color: #d4af37;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.stats-hero-cta:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(212,175,55,0.15));
    transform: scale(1.03);
}

/* AI Ranking in Stats */
.stats-ai-ranking {
    background: linear-gradient(135deg, rgba(100,100,255,0.06), rgba(212,175,55,0.06));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.stats-ai-podium { display: flex; flex-direction: column; gap: 8px; }
.stats-ai-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
}
.stats-ai-row:hover { background: rgba(255,255,255,0.05); }
.stats-ai-top { font-weight: 600; }
.stats-ai-medal { font-size: 1.1rem; min-width: 28px; text-align: center; }
.stats-ai-name { min-width: 80px; font-weight: 700; font-size: 0.82rem; }
.stats-ai-flag { width: 18px; border-radius: 2px; }
.stats-ai-pick { color: rgba(255,255,255,0.7); min-width: 70px; font-size: 0.8rem; }
.stats-ai-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.stats-ai-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.stats-ai-votes {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    min-width: 60px;
    text-align: right;
}
.stats-ai-total {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-top: 12px;
}

/* Empty state CTA */
.stats-empty-section { text-align: center; }
.stats-empty-cta {
    text-align: center;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.1);
}
.stats-empty-cta p { color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.stats-cta-btn {
    padding: 10px 28px;
    border-radius: 25px;
    border: 2px solid #d4af37;
    background: transparent;
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.stats-cta-btn:hover {
    background: rgba(212,175,55,0.15);
}

@media (max-width: 768px) {
    .stats-ai-name { min-width: 60px; font-size: 0.75rem; }
    .stats-ai-pick { min-width: 50px; font-size: 0.72rem; }
    .stats-ai-votes { min-width: 40px; font-size: 0.72rem; }
    .stats-ai-row { gap: 5px; padding: 5px 6px; }
}

/* Quick team vote grid */
.stats-quick-vote {
    background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(232,69,96,0.04));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(212,175,55,0.15);
}
.stats-team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.stats-team-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.stats-team-chip:hover {
    border-color: #d4af37;
    background: rgba(212,175,55,0.1);
    transform: scale(1.05);
}
.stats-team-voted {
    border-color: #d4af37;
    background: rgba(212,175,55,0.2);
    box-shadow: 0 0 10px rgba(212,175,55,0.2);
}
.stats-team-chip-flag { width: 22px; border-radius: 2px; }
.stats-team-chip-name { font-weight: 600; }
.stats-team-chip-count {
    background: rgba(255,255,255,0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}
.stats-team-chip-check {
    color: #d4af37;
    font-weight: 700;
    font-size: 0.9rem;
}
.stats-team-more { text-align: center; margin-top: 10px; }

/* Odds summary in stats */
.stats-odds-summary {
    background: linear-gradient(135deg, rgba(46,139,87,0.08), rgba(212,175,55,0.06));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.stats-odds-top5 { display: flex; flex-direction: column; gap: 6px; }
.stats-odds-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.2s;
}
.stats-odds-featured { font-weight: 600; }
.stats-odds-row:hover { background: rgba(255,255,255,0.04); }
.stats-odds-medal { font-size: 1.1rem; min-width: 28px; text-align: center; }
.stats-odds-flag { width: 28px; border-radius: 3px; }
.stats-odds-name { flex: 1; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.stats-odds-value {
    font-family: 'Courier New', monospace;
    color: #d4af37;
    font-weight: 700;
    font-size: 0.88rem;
}
.stats-odds-pct { color: rgba(255,255,255,0.5); font-size: 0.8rem; min-width: 38px; text-align: right; }
.stats-odds-trend { font-size: 0.75rem; min-width: 16px; }
.stats-odds-up { color: #4caf50; }
.stats-odds-down { color: #e84545; }
.stats-odds-link { text-align: center; margin-top: 12px; }

@media (max-width: 768px) {
    .stats-team-chip { padding: 5px 8px; font-size: 0.72rem; }
    .stats-team-chip-flag { width: 18px; }
    .stats-odds-name { font-size: 0.82rem; }
    .stats-odds-flag { width: 22px; }
}

.stats-section {
    margin-bottom: 32px;
}
.stats-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.stats-section-sub {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    margin-top: -8px;
    margin-bottom: 16px;
}

/* Stats bars */
.stats-bars { display: flex; flex-direction: column; gap: 10px; }
.stats-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stats-bar-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
}
.stats-bar-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
}
.stats-bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    overflow: hidden;
}
.stats-bar-fill {
    height: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    max-width: 100%;
    min-width: 0;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
}
.stats-bar-gold { background: linear-gradient(135deg, #ffd166, #e8a520); }
.stats-bar-silver { background: linear-gradient(135deg, #c0c0c0, #8a8a8a); }
.stats-bar-bronze { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.stats-bar-secondary { background: linear-gradient(135deg, rgba(6, 214, 160, 0.6), rgba(42, 157, 143, 0.6)); }
.stats-bar-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.stats-bar-count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    min-width: 24px;
    text-align: right;
}

/* Predictions feed / voting */
.stats-predictions-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stats-pred-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    transition: var(--transition);
}
.stats-pred-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.stats-pred-featured {
    border-color: rgba(255, 209, 102, 0.2);
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.04), transparent);
}
.stats-pred-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.stats-pred-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stats-pred-user-flag {
    width: 18px; height: 12px;
    object-fit: cover;
    border-radius: 2px;
}
.stats-pred-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.stats-pred-you {
    font-size: 0.75rem;
    color: var(--accent-4);
    font-weight: 400;
}
.stats-pred-vote-area { display: flex; align-items: center; }
.stats-vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 6px 14px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.stats-vote-btn:hover {
    background: rgba(255, 209, 102, 0.1);
    border-color: rgba(255, 209, 102, 0.3);
    color: #ffd166;
}
.stats-vote-btn.stats-voted {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(232, 165, 32, 0.15));
    border-color: rgba(255, 209, 102, 0.3);
    color: #ffd166;
}
.stats-vote-icon { font-size: 1rem; }
.stats-vote-count { font-weight: 700; }

/* Prediction picks display */
.stats-pred-picks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.stats-pred-pick {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stats-pred-pick-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.35);
}
.stats-pred-pick-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
}
.stats-pred-pick-flag {
    width: 22px; height: 15px;
    object-fit: cover;
    border-radius: 3px;
}

/* View bracket button */
.stats-pred-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.stats-pred-share-btn {
    background: none;
    border: none;
    color: var(--accent-4);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: var(--transition);
}
.stats-pred-share-btn:hover { opacity: 1; }

/* Empty state */
.stats-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.35);
}
.stats-empty p { margin-bottom: 16px; }

/* Mobile responsive for stats */
@media (max-width: 768px) {
    .stats-hero-number { font-size: 2.5rem; }
    .stats-bar-team { min-width: 100px; font-size: 0.8rem; }
    .stats-bar-flag { width: 20px; height: 14px; }
    .stats-pred-picks { gap: 10px; }
    .bk-cta-banner { flex-direction: column; text-align: center; }
    .bk-controls { flex-wrap: wrap; }
}

/* ===== BRACKET FLOW GUIDE ===== */
.bk-flow-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f0f4ff, #e8f5e9);
    border: 1px solid #c8e6c9;
    border-radius: 14px;
}
.bk-flow-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}
.bk-flow-step.bk-flow-active {
    color: var(--accent-2);
    font-weight: 700;
}
.bk-flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--text-light);
}
.bk-flow-num.bk-flow-done {
    background: var(--accent-5);
    color: white;
}
.bk-flow-step.bk-flow-active .bk-flow-num {
    background: var(--accent-2);
    color: white;
}
.bk-flow-arrow {
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 700;
}
.bk-flow-link {
    background: none;
    border: none;
    color: var(--accent-5);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}
.bk-flow-link:hover {
    background: rgba(6, 214, 160, 0.1);
}
.bk-flow-label { max-width: 120px; line-height: 1.2; }

@media (max-width: 768px) {
    .bk-flow-guide { flex-wrap: wrap; gap: 6px; padding: 10px; }
    .bk-flow-label { font-size: 0.7rem; max-width: 80px; }
    .bk-flow-arrow { font-size: 0.7rem; }
}

/* ===== AI VOTING SECTION ===== */
.ai-vote-section {
    max-width: 700px;
    margin: 30px auto 0;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 16px;
    padding: 28px;
}
.ai-vote-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}
.ai-vote-subtitle {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    margin: 0 0 12px 0;
}
.ai-vote-total {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    text-align: right;
    margin-bottom: 12px;
}
.ai-vote-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-vote-row {
    display: grid;
    grid-template-columns: 28px 130px 1fr 36px 90px;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition);
}
.ai-vote-row:hover {
    background: rgba(255,255,255,0.06);
}
.ai-vote-row.ai-vote-mine {
    border-color: rgba(255, 209, 102, 0.3);
    background: rgba(255, 209, 102, 0.06);
}
.ai-vote-rank {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}
.ai-vote-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ai-vote-name {
    font-size: 0.88rem;
    font-weight: 700;
}
.ai-vote-pick {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}
.ai-vote-flag {
    width: 16px; height: 11px;
    object-fit: cover;
    border-radius: 2px;
}
.ai-vote-bar-track {
    height: 24px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
}
.ai-vote-bar-fill {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    transition: width 0.6s ease;
    min-width: 4px;
}
.ai-vote-bar-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.ai-vote-count {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
}
.ai-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.ai-vote-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.ai-vote-btn.ai-vote-active {
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .ai-vote-row {
        grid-template-columns: 24px 1fr 50px;
        gap: 8px;
    }
    .ai-vote-bar-track { display: none; }
    .ai-vote-count { display: none; }
    .ai-vote-btn { font-size: 0.72rem; padding: 5px 10px; }
    .ai-vote-section { padding: 18px; }
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERHAUL
   ========================================================================== */

/* --- TOP BAR: clean single row on mobile, hide countdown --- */
@media (max-width: 600px) {
    .top-bar-inner {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        gap: 8px;
    }

    .top-left {
        gap: 6px;
    }

    /* Hide countdown on mobile — it's already in the Home hero */
    .countdown {
        display: none;
    }

    .logo {
        font-size: 1.3rem;
    }

    .lang-toggle-btn {
        font-size: 0.68rem;
        padding: 3px 7px;
    }

    .hamburger {
        margin-left: auto;
    }

    /* --- PANELS: make everything scrollable on mobile --- */
    .tab-panel,
    .tab-panel.active {
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .panel-header {
        flex-shrink: unset;
        background: var(--white);
        border-bottom: none;
    }

    .panel-body {
        overflow-y: visible !important;
        flex: unset;
        background: #edf0f3;
    }

    /* Community keeps its dark bg */
    #panel-community .panel-body {
        background: linear-gradient(160deg, #0d0d1a 0%, #141428 50%, #0f1f3a 100%) !important;
    }
}

/* --- NAV LINKS: better tap targets on mobile --- */
@media (max-width: 768px) {
    .nav-link {
        padding: 10px 14px;
        font-size: 0.82rem;
        text-align: center;
    }
}

/* --- HERO: tighter on small phones --- */
@media (max-width: 480px) {
    .hero-content {
        padding: 16px 12px 20px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 14px;
        letter-spacing: 2px;
    }

    .hero-countdown {
        gap: 6px;
    }

    .hero-cd-item {
        padding: 8px 10px;
        min-width: 52px;
    }

    .hero-cd-num {
        font-size: 1.3rem;
    }

    .hero-stats {
        gap: 14px;
    }

    .hero-stat-num {
        font-size: 1.3rem;
    }

    .hero-trivia {
        font-size: 0.72rem;
        padding: 8px 16px;
        height: 36px;
        line-height: 20px;
        border-radius: 30px;
    }
}

/* --- GROUP CARDS (Fase de Grupos tab): force single column earlier --- */
@media (max-width: 600px) {
    .groups-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .group-card-header {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .group-card-body {
        padding: 6px 10px;
    }

    .team-row-name {
        font-size: 0.8rem;
    }
}

/* --- ALL PANELS: reduce fixed header on mobile to maximize scroll area --- */
@media (max-width: 600px) {
    .panel-header {
        padding: 8px 12px 6px;
    }

    .panel-header h2 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .panel-header p {
        font-size: 0.72rem;
    }

    .panel-body {
        padding: 10px;
    }

    /* Predictions banners: more compact */
    .predictions-banner {
        margin: 0 8px 4px;
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .pred-banner-icon {
        font-size: 1.1rem;
    }

    .pred-banner-text span {
        display: none; /* Hide description, keep title on mobile */
    }

    .pred-banner-btn {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    /* Calendar toolbar: compact */
    .calendar-toolbar {
        padding: 6px 10px;
        gap: 6px;
    }

    .filter-group label {
        font-size: 0.72rem;
    }

    .filter-group select {
        font-size: 0.78rem;
        padding: 4px 6px;
    }

    .view-toggle {
        gap: 4px;
    }

    .view-btn {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    .download-cal-btn {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    /* Cal promo: compact */
    .cal-promo {
        padding: 10px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }

    .cal-promo-title {
        font-size: 0.8rem;
    }

    .cal-promo-sub {
        font-size: 0.72rem;
    }

    /* Match cards: compact */
    .match-card {
        padding: 8px 10px;
        gap: 4px;
        font-size: 0.82rem;
    }

    .match-team {
        font-size: 0.78rem;
    }

    .match-time {
        font-size: 0.72rem;
    }

    .match-date-separator {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}

/* --- BRACKET: better mobile experience --- */
@media (max-width: 768px) {
    .bk-wrapper {
        position: relative;
    }

    /* Visual hint that bracket scrolls horizontally */
    .bk-wrapper::after {
        content: '← → desliza';
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: var(--text-light);
        padding: 6px 0 0;
        opacity: 0.5;
    }

    .bk-slot {
        padding: 4px 6px;
        font-size: 0.72rem;
    }

    .bk-team-name {
        font-size: 0.7rem;
    }

    .bk-flag {
        width: 14px;
        height: 10px;
    }
}

/* --- COMMUNITY SECTION: full mobile overhaul --- */
@media (max-width: 600px) {
    /* Ensure dark background applies */
    #panel-community .panel-body {
        background: linear-gradient(160deg, #0d0d1a 0%, #141428 50%, #0f1f3a 100%) !important;
        padding: 8px;
    }

    /* Tabs: horizontal scroll, no wrapping, all visible */
    .community-tabs {
        justify-content: flex-start;
        padding: 3px;
        border-radius: 8px;
        margin-bottom: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .community-tabs::-webkit-scrollbar {
        display: none;
    }

    .community-tab {
        padding: 8px 10px;
        font-size: 0.7rem;
        border-radius: 6px;
        flex: 0 0 auto;
        min-width: 0;
        white-space: nowrap;
    }

    /* Quiniela: less padding */
    .wc-quiniela {
        padding: 16px;
        border-radius: 12px;
    }

    .wc-quiniela-title {
        font-size: 1rem;
    }

    .wc-quiniela-subtitle {
        font-size: 0.78rem;
        margin-bottom: 16px;
    }

    .wc-quiniela-select {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .wc-quiniela-actions {
        flex-direction: column;
    }

    /* Leaderboard / Groups: compact */
    .wc-leaderboard {
        margin-top: 16px;
    }

    .wc-leaderboard-header {
        padding: 14px 12px;
    }

    .wc-leaderboard-title {
        font-size: 0.88rem;
    }

    .wc-lb-row {
        grid-template-columns: 24px 24px 1fr auto auto;
        gap: 4px;
        padding: 8px 10px;
    }

    .wc-lb-rank {
        font-size: 0.9rem;
    }

    .wc-lb-avatar {
        width: 26px;
        height: 26px;
    }

    .wc-lb-name {
        font-size: 0.78rem;
    }

    .wc-lb-points {
        font-size: 0.85rem;
    }

    /* Comments */
    .wc-comment-form {
        gap: 8px;
    }

    .wc-comment-form textarea {
        font-size: 0.82rem;
    }

    .wc-comment-card {
        padding: 10px;
    }

    /* Odds compact */
    .odds-row {
        grid-template-columns: 20px 20px 1fr 48px 36px 20px;
        padding: 6px 8px;
        gap: 4px;
    }

    .odds-team {
        font-size: 0.72rem;
    }

    .odds-value {
        font-size: 0.75rem;
    }

    .odds-pct {
        font-size: 0.68rem;
    }

    .odds-flag {
        width: 20px;
    }

    .odds-rank {
        font-size: 0.75rem;
    }
}

/* --- STATS 3-COL: ensure single column on phones --- */
@media (max-width: 600px) {
    .stats-3col {
        grid-template-columns: 1fr !important;
    }

    .stats-bar-row {
        padding: 6px 8px;
    }

    .stats-pred-card {
        padding: 12px;
    }

    .stats-pred-picks {
        flex-direction: column;
        gap: 6px;
    }
}

/* --- NEWS GRID: single column on small phones --- */
@media (max-width: 480px) {
    .hero-news-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .hero-news-card-title {
        font-size: 0.82rem;
    }
}

/* --- VENUES: already 1 col at 768, reduce padding --- */
@media (max-width: 480px) {
    .vd-header-name {
        font-size: 1.1rem;
    }

    .vd-header {
        gap: 10px;
    }
}

/* --- INLINE STYLE OVERRIDES for JS-generated content --- */
/* Scoring grid in Groups: force single column on small screens */
@media (max-width: 480px) {
    .wc-leaderboard div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Group create/join inputs: stack vertically */
    .wc-leaderboard div[style*="display:flex"][style*="justify-content:center"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .wc-leaderboard div[style*="display:flex"][style*="justify-content:center"] input {
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* --- PREDICTIONS BANNER: smaller on phones --- */
@media (max-width: 480px) {
    .predictions-banner {
        margin: 0 8px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .pred-banner-icon {
        font-size: 1.2rem;
    }

    .pred-banner-text {
        font-size: 0.78rem;
    }
}

/* --- FIFA DATE GRID: better scroll on mobile --- */
@media (max-width: 600px) {
    .fifa-grid {
        font-size: 0.72rem;
    }
}

/* --- TEAMS GRID: single column on mobile --- */
@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- ADMIN PANEL: compact --- */
@media (max-width: 480px) {
    .admin-kpis {
        grid-template-columns: 1fr !important;
    }
}

/* --- GENERAL: prevent horizontal overflow --- */
html, body {
    overflow-x: hidden;
}

.panel-body,
.hero,
.content {
    max-width: 100vw;
}

/* Fix any element that could cause horizontal scroll */
@media (max-width: 768px) {
    .panel-body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure bracket scroll stays contained */
    .bk-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- AUTH: mobile login via hamburger menu or compact button --- */
@media (max-width: 600px) {
    /* Show a compact login button instead of hiding auth entirely */
    .wc-auth-area {
        display: flex !important;
    }

    .wc-auth-area .wc-auth-input {
        width: 100px;
        font-size: 0.7rem;
        padding: 4px 6px;
    }

    .wc-auth-area .wc-btn-magic {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* If user is logged in, show just avatar + name compact */
    .wc-user-info {
        gap: 4px;
    }

    .wc-user-info .wc-user-name {
        font-size: 0.72rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wc-user-avatar-flag {
        width: 24px;
        height: 24px;
    }

    .wc-user-avatar-placeholder {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

/* --- TOUCH IMPROVEMENTS --- */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .community-tab {
        min-height: 40px;
    }

    .wc-btn,
    .wc-btn-primary,
    .wc-btn-magic {
        min-height: 40px;
    }

    .hero-card {
        padding: 18px;
    }

    /* Remove hover effects that don't work on touch */
    .hero-card:hover {
        transform: none;
        box-shadow: none;
    }

    .group-card:hover {
        transform: none;
    }
}

/* ===== SHARE MODAL ===== */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.share-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.share-modal {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-overlay.active .share-modal {
    transform: translateY(0);
}

.share-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.share-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.share-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.share-modal-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 8px 0 0;
}

.share-modal-flag {
    width: 60px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-modal-champ {
    color: var(--gold, #d4af37);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 4px 0 0;
}

.share-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-modal-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.share-modal-btn:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.1);
}

.share-modal-btn:active {
    transform: translateX(2px);
}

.share-modal-wa {
    border-color: rgba(37, 211, 102, 0.3);
}
.share-modal-wa:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.5);
}

.share-modal-tw {
    border-color: rgba(255, 255, 255, 0.15);
}
.share-modal-tw:hover {
    background: rgba(255, 255, 255, 0.08);
}

.share-modal-tg {
    border-color: rgba(0, 136, 204, 0.3);
}
.share-modal-tg:hover {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.5);
}

.share-modal-fb {
    border-color: rgba(24, 119, 242, 0.3);
}
.share-modal-fb:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.5);
}

.share-modal-copy {
    border-color: rgba(212, 175, 55, 0.3);
}
.share-modal-copy:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.share-modal-card {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
}
.share-modal-card:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: rgba(212, 175, 55, 0.6);
}

.share-modal-btn svg {
    flex-shrink: 0;
}

.share-modal-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    margin-top: 16px;
    margin-bottom: 0;
}

.share-copied {
    background: rgba(6, 214, 160, 0.15) !important;
    border-color: rgba(6, 214, 160, 0.4) !important;
    color: #06d6a0 !important;
}

.share-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: share-spin 0.6s linear infinite;
}

@keyframes share-spin {
    to { transform: rotate(360deg); }
}

/* ===== SHARED BRACKET CTA ===== */
.shared-bracket-cta {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 95%;
    max-width: 700px;
}

.shared-bracket-cta.visible {
    bottom: 20px;
}

.cta-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid var(--gold, #d4af37);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
}

.cta-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
    min-width: 0;
}

.cta-text strong {
    color: #fff;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cta-text span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--gold, #d4af37), #f0c040);
    color: #1a1a2e;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.cta-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.cta-close:hover {
    color: #fff;
}

/* ===== ENHANCED SHARE BUTTONS (unified across touchpoints) ===== */
.share-btn-unified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold, #d4af37);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.share-btn-unified:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.share-btn-unified:active {
    transform: translateY(0);
}

.share-btn-unified svg {
    width: 18px;
    height: 18px;
}

.share-btn-primary {
    background: linear-gradient(135deg, var(--gold, #d4af37), #f0c040);
    color: #1a1a2e;
    border-color: transparent;
}

.share-btn-primary:hover {
    background: linear-gradient(135deg, #f0c040, var(--gold, #d4af37));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* Calendar share button */
.cal-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

@media (max-width: 600px) {
    .shared-bracket-cta {
        width: 98%;
    }

    .cta-content {
        flex-wrap: wrap;
        padding: 14px;
        gap: 10px;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .cta-emoji {
        display: none;
    }

    .share-modal {
        padding: 24px;
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
    }

    .share-modal-btn {
        padding: 12px 16px;
    }
}
