/* WYSA World Cup Pools 2026
   Build: WYSA_POOLS_V12_POLISH
   Task 12: Polish, Mobile Responsiveness & Final CSS.
   Responsive down to 375px. Dark glassmorphism theme. */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f0f23;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: #4fc3f7; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== GLOBAL FOCUS & ACCESSIBILITY (Task 12) ===== */
:focus-visible {
    outline: 2px solid #4fc3f7;
    outline-offset: 2px;
}
button, a, input, select, textarea {
    min-height: 44px; /* iOS touch target minimum */
}
button { cursor: pointer; }

/* ===== NAVIGATION ===== */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 15, 35, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.nav-logo { font-size: 1.4rem; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-link-accent { color: #4ecca3 !important; font-weight: 600; }
.nav-welcome {
    color: #4ecca3;
    font-size: 0.85rem;
    font-weight: 500;
}
.nav-logout-form { display: inline; margin: 0; padding: 0; }
.nav-link-logout {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.nav-link-logout:hover { color: #e94560; }
.nav-cta-sm {
    display: inline-block;
    padding: 8px 20px;
    background: #e94560;
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}
.nav-cta-sm:hover { background: #d63852; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #16213e 100%);
    overflow: hidden;
    padding: 80px 24px 60px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(78, 204, 163, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 720px;
}
.hero-tag {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: #4ecca3;
    margin-bottom: 16px;
    font-weight: 600;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}
.hero-year {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.hero-fine {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e94560, #d63852);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(233, 69, 96, 0.4);
}
.btn-primary.btn-lg {
    padding: 18px 48px;
    font-size: 1.15rem;
}
.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: #e94560 !important;
    border: 2px solid rgba(233, 69, 96, 0.5);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
    border-color: #e94560;
    color: #fff !important;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 24px;
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-dark { background: #0f0f23; }
.section-darker { background: #0c0c1d; }
.section-accent {
    background: linear-gradient(135deg, #1a1a3e 0%, #16213e 100%);
}
.section-cta {
    background: linear-gradient(135deg, #1a1a3e 0%, #0f0f23 100%);
    padding: 100px 24px;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}
.section-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ===== MISSION STATS ===== */
.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4ecca3;
    margin-bottom: 8px;
}
.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* ===== HOW IT WORKS STEPS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step-card {
    padding: 32px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.2s;
}
.step-card:hover { border-color: rgba(233, 69, 96, 0.3); }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #d63852);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.step-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ===== BENEFITS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.benefit-item {
    padding: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: border-color 0.2s;
}
.benefit-item:hover { border-color: rgba(78, 204, 163, 0.3); }
.benefit-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.benefit-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ===== PRIZES ===== */
.prize-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.prize-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}
.prize-gold { border-color: rgba(255, 215, 0, 0.4); }
.prize-silver { border-color: rgba(192, 192, 192, 0.4); }
.prize-bronze { border-color: rgba(205, 127, 50, 0.4); }
.prize-place {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    font-weight: 600;
}
.prize-gold .prize-place { color: #ffd700; }
.prize-silver .prize-place { color: #c0c0c0; }
.prize-bronze .prize-place { color: #cd7f32; }
.prize-amount {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.prize-note {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ===== FOOTER ===== */
.landing-footer {
    background: #080816;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 24px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.footer-logo { font-size: 1.4rem; }
.footer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.footer-info {
    margin-bottom: 20px;
}
.footer-info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}
.footer-legal p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}
.footer-fine {
    font-style: italic;
    margin-top: 4px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.6rem; }
}
@media (max-width: 600px) {
    .nav-links { gap: 12px; }
    .nav-link { display: none; }
    .nav-cta-sm,
    .nav-link-accent,
    .nav-logout-form,
    .nav-welcome { display: inline-flex; }

    .hero { min-height: auto; padding: 100px 20px 60px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    .section { padding: 60px 20px; }
    .section-title { font-size: 1.6rem; }
    .section-lead { font-size: 1rem; }

    .mission-stats { grid-template-columns: 1fr; gap: 16px; }
    .stat-card { padding: 20px; }
    .stat-number { font-size: 2rem; }

    .steps-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .prize-cards { grid-template-columns: 1fr; }

    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .btn-primary.btn-lg { padding: 16px 24px; }
}
@media (max-width: 375px) {
    .hero-title { font-size: 1.75rem; }
    .nav-inner { padding: 0 8px; }
    .nav-title { font-size: 0.9rem; }
}

/* ===== BRACKET WIZARD ===== */
/* Task 5: Step navigation shell. Dark glassmorphism theme. */

.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    min-height: 100vh;
}
.wizard-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 16px;
}
.wizard-back-home {
    display: inline-block;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.wizard-back-home:hover { color: #4ecca3; text-decoration: none; }
.wizard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.wizard-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
}

/* Step indicator bar */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}
.step-indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 64px;
}
.step-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.step-dot:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.step-dot.active {
    border-color: #e94560;
    background: linear-gradient(135deg, #e94560, #d63852);
    color: #fff;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}
.step-dot.completed {
    border-color: #4ecca3;
    background: rgba(78, 204, 163, 0.15);
    color: #4ecca3;
}
.step-check { font-size: 1.1rem; }
.step-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}
.step-label-active { color: #e94560; font-weight: 600; }
.step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 8px;
    margin-bottom: 28px; /* align with dot center, not label */
    min-width: 24px;
}
.step-connector-done {
    background: rgba(78, 204, 163, 0.4);
}

/* Wizard panel */
.wizard-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 40px 36px;
    min-height: 300px;
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
}
.panel-content { }
.panel-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.panel-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    line-height: 1.6;
}
.panel-info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(78, 204, 163, 0.08);
    border: 1px solid rgba(78, 204, 163, 0.2);
    border-radius: 10px;
}
.panel-info-icon {
    font-size: 1.6rem;
    color: #4ecca3;
    flex-shrink: 0;
    margin-top: 2px;
}
.panel-info-text {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}
.panel-info-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
.panel-actions-center {
    text-align: center;
    margin-top: 32px;
}
.panel-alt-link {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}
.panel-alt-link a { color: #4fc3f7; }
.panel-placeholder {
    text-align: center;
    padding: 48px 24px;
    color: rgba(255,255,255,0.3);
}
.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}
.panel-placeholder p {
    font-size: 0.95rem;
    font-style: italic;
}

/* Wizard navigation buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-wizard-back {
    padding: 12px 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-wizard-back:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.btn-wizard-next {
    padding: 12px 28px;
    background: linear-gradient(135deg, #e94560, #d63852);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.25);
    font-family: inherit;
}
.btn-wizard-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
}
.btn-wizard-next:disabled,
.btn-wizard-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-wizard-submit {
    padding: 12px 28px;
    background: linear-gradient(135deg, #4ecca3, #38b28a);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* Wizard mobile */
@media (max-width: 600px) {
    .wizard-container { padding: 20px 16px 48px; }
    .wizard-title { font-size: 1.5rem; }
    .wizard-panel { padding: 28px 20px; }
    .step-indicator { gap: 0; }
    .step-indicator-item { min-width: 48px; }
    .step-dot { width: 36px; height: 36px; font-size: 0.85rem; }
    .step-label { font-size: 0.65rem; }
    .step-connector { min-width: 12px; }
    .panel-title { font-size: 1.2rem; }
    .wizard-nav { gap: 12px; }
    .btn-wizard-back, .btn-wizard-next, .btn-wizard-submit {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ===== GROUP STAGE PICKS (Task 7) ===== */

.group-progress-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}
.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #4ecca3);
    border-radius: 3px;
    transition: width 0.3s;
}

/* Group card */
.group-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.group-card.group-complete { border-color: rgba(78, 204, 163, 0.3); }
.group-card-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    transition: background 0.2s;
    user-select: none;
}
.group-card-header:hover { background: rgba(255,255,255,0.06); }
.group-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}
.group-card-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    margin-right: 12px;
}
.badge-done {
    background: rgba(78, 204, 163, 0.15);
    color: #4ecca3;
}
.group-card-arrow {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
}
.group-card-body {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Match row */
.match-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.match-row:last-of-type { border-bottom: none; }
.match-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.match-home { justify-content: flex-end; }
.match-away { justify-content: flex-start; }
.team-picked { color: #fff; font-weight: 600; }
.team-flag { font-size: 1.1rem; }
.team-name-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }

/* W/D/W buttons */
.match-buttons {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.pick-btn {
    width: 36px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.pick-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.pick-active-home {
    background: rgba(233, 69, 96, 0.2) !important;
    border-color: #e94560 !important;
    color: #e94560 !important;
}
.pick-active-draw {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}
.pick-active-away {
    background: rgba(78, 204, 163, 0.2) !important;
    border-color: #4ecca3 !important;
    color: #4ecca3 !important;
}

/* Standings table */
.standings-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.standings-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.standings-table th {
    text-align: left;
    padding: 6px 8px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.standings-table td {
    padding: 8px;
    color: rgba(255,255,255,0.7);
}
.st-pos { width: 30px; text-align: center; }
.st-team { }
.st-stat { width: 32px; text-align: center; }
.st-pts { font-weight: 700; color: #fff !important; }
.st-action { width: 56px; text-align: center; }
.st-qualifies td { color: #fff; }
.st-qualifies td:first-child { color: #4ecca3; font-weight: 700; }
.st-overridden { background: rgba(255, 193, 7, 0.06); }
.team-flag-sm { font-size: 0.9rem; margin-right: 4px; }
.override-badge {
    font-size: 0.7rem;
    color: #ffc107;
    margin-left: 4px;
    vertical-align: super;
}
.override-note {
    font-size: 0.75rem;
    color: rgba(255, 193, 7, 0.6);
    margin-top: 8px;
    font-style: italic;
}
.qualifiers-note {
    font-size: 0.85rem;
    color: #4ecca3;
    margin-top: 10px;
}
.move-btn {
    width: 24px;
    height: 22px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.4);
    border-radius: 4px;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}
.move-btn:hover {
    border-color: #ffc107;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

/* Group picks mobile */
@media (max-width: 600px) {
    .match-team { min-width: 80px; }
    .team-name-short { max-width: 65px; font-size: 0.75rem; }
    .pick-btn { width: 30px; height: 28px; font-size: 0.7rem; }
    .group-card-body { padding: 12px; }
    .standings-table { font-size: 0.75rem; }
}

/* ===== WIZARD REGISTRATION FORM (Task 6) ===== */
.wizard-reg-form {
    max-width: 560px;
    margin: 0 auto;
}
.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.reg-field {
    margin-bottom: 16px;
}
.reg-field label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
    font-weight: 500;
}
.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="password"],
.reg-field input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.reg-field input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.15);
}
.reg-field input::placeholder {
    color: rgba(255,255,255,0.25);
}
.reg-checkbox {
    margin-top: 8px;
}
.reg-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.reg-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4ecca3;
}
.reg-actions {
    text-align: center;
    margin-top: 24px;
}
@media (max-width: 600px) {
    .reg-row { grid-template-columns: 1fr; }
}

/* ===== KNOCKOUT BRACKET ===== */
/* Task 8: Round-by-round bracket with click-to-advance */

.ko-champion-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.1));
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.ko-champion-trophy { font-size: 2.5rem; }
.ko-champion-label { color: rgba(255,255,255,0.6); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.ko-champion-team { color: #ffd700; font-size: 1.3rem; font-weight: 700; }

.ko-round-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.ko-tab {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    padding: 10px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ko-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ko-tab-active { background: rgba(78,204,163,0.15); border-color: #4ecca3; color: #4ecca3; font-weight: 600; }
.ko-tab-done { border-color: rgba(78,204,163,0.5); }
.ko-tab-badge {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
}
.ko-tab-active .ko-tab-badge { background: rgba(78,204,163,0.2); }
.ko-tab-done .ko-tab-badge { background: rgba(78,204,163,0.3); color: #4ecca3; }

.ko-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.ko-match {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s;
}
.ko-match-picked { border-color: rgba(78,204,163,0.4); }

.ko-match-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ko-match-teams {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ko-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.ko-team:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.ko-team-picked {
    background: rgba(78,204,163,0.15);
    border-color: #4ecca3;
    color: #4ecca3;
    font-weight: 600;
}
.ko-team-tbd {
    flex: 1;
    text-align: center;
    padding: 12px;
    color: rgba(255,255,255,0.25);
    font-style: italic;
    cursor: default;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
}
.ko-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ko-vs {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ko-match-winner {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #4ecca3;
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 600px) {
    .ko-round-tabs { flex-wrap: nowrap; }
    .ko-tab { padding: 8px 12px; font-size: 0.8rem; }
    .ko-matches { grid-template-columns: 1fr; }
    .ko-match-teams { flex-direction: column; gap: 8px; }
    .ko-team { justify-content: center; }
    .ko-vs { display: none; }
    .ko-champion-banner { flex-direction: column; text-align: center; }
}

/* ===== STEP 4: TIEBREAKER ===== */
.tb-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 32px;
    max-width: 560px;
    margin: 24px auto 0;
}
.tb-question {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.tb-icon { font-size: 2rem; }
.tb-label { font-size: 1.05rem; color: #e8e8e8; margin-bottom: 8px; }
.tb-hint { font-size: 0.85rem; color: #888; }
.tb-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.tb-input-label { font-size: 0.95rem; color: #ccc; white-space: nowrap; }
.tb-input {
    width: 120px;
    padding: 12px 16px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(78,205,196,0.4);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.tb-input:focus { border-color: #4ecdc4; }
.tb-message { font-size: 0.9rem; margin-bottom: 16px; }

/* ===== STEP 5: REVIEW SUMMARY ===== */
.review-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.review-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 16px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.review-group-card {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 12px;
}
.review-group-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4ecdc4;
    margin-bottom: 6px;
}
.review-group-top2 {
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    gap: 4px;
    margin-bottom: 2px;
}
.review-rank { color: #888; font-weight: 600; min-width: 18px; }
.review-stat { font-size: 0.85rem; color: #888; margin-top: 8px; }
.review-ko-path { margin-bottom: 12px; }
.review-ko-round {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.review-ko-round-label {
    font-size: 0.85rem;
    color: #888;
    min-width: 90px;
}
.review-ko-team {
    background: rgba(78,205,196,0.15);
    border: 1px solid rgba(78,205,196,0.3);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: #e8e8e8;
}
.review-champion {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.review-champion-label { font-size: 0.9rem; color: #ffd700; font-weight: 600; }
.review-champion-team { font-size: 1.1rem; font-weight: 700; color: #fff; }
.review-tb-value { font-size: 1rem; color: #ccc; }
.review-complete-banner, .review-incomplete-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
}
.review-complete-banner {
    background: rgba(78,205,196,0.08);
    border: 1px solid rgba(78,205,196,0.3);
    border-radius: 12px;
}
.review-complete-icon {
    font-size: 1.8rem;
    color: #4ecdc4;
    flex-shrink: 0;
}
.review-complete-title { font-size: 1.1rem; font-weight: 700; color: #4ecdc4; margin-bottom: 4px; }
.review-complete-sub { font-size: 0.9rem; color: #aaa; }
.review-incomplete-banner {
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.3);
    border-radius: 12px;
}
.review-incomplete-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    background: rgba(255,107,107,0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-incomplete-title { font-size: 1.1rem; font-weight: 700; color: #ff6b6b; margin-bottom: 4px; }
.review-incomplete-sub { font-size: 0.9rem; color: #aaa; }

@media (max-width: 600px) {
    .tb-card { padding: 20px; }
    .tb-question { flex-direction: column; gap: 8px; }
    .tb-input-row { flex-direction: column; align-items: flex-start; }
    .review-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .review-ko-round { flex-direction: column; gap: 6px; }
    .review-champion { flex-direction: column; text-align: center; }
}

/* ===== ADMIN PANEL ===== */
.admin-container { max-width: 960px; margin: 0 auto; padding: 32px 24px; }
.admin-denied {
    text-align: center;
    padding: 80px 24px;
    color: #ff6b6b;
}
.admin-denied h2 { font-size: 1.6rem; margin-bottom: 8px; }
.admin-denied p { color: #aaa; margin-bottom: 24px; }
.admin-back-link { color: #4ecdc4; text-decoration: none; }
.admin-header { margin-bottom: 32px; }
.admin-title { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.admin-subtitle { color: #888; font-size: 0.95rem; }
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
}
.admin-tab {
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.admin-tab:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.admin-tab-active { background: rgba(78,205,196,0.15); color: #4ecdc4; border-color: rgba(78,205,196,0.4); }
.admin-panel-content {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 28px;
}
.admin-section-title { font-size: 1.2rem; color: #4ecdc4; font-weight: 700; margin-bottom: 8px; }
.admin-desc { color: #888; font-size: 0.9rem; margin-bottom: 20px; }
.admin-group-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.admin-group-btn {
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    font-size: 0.85rem;
}
.admin-group-btn:hover { border-color: #4ecdc4; color: #4ecdc4; }
.admin-group-btn-active { background: rgba(78,205,196,0.15); border-color: #4ecdc4; color: #4ecdc4; }
.admin-matches { margin-top: 16px; }
.admin-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 8px;
}
.admin-match-label { font-size: 0.9rem; color: #e8e8e8; min-width: 140px; }
.admin-match-label:last-child { text-align: right; }
.admin-result-btns { display: flex; gap: 8px; }
.admin-result-btn {
    width: 40px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.admin-result-btn:hover { border-color: #4ecdc4; color: #4ecdc4; }
.admin-result-selected { background: rgba(78,205,196,0.3); border-color: #4ecdc4; color: #fff; }
.admin-stat { font-size: 0.85rem; color: #888; margin: 12px 0; }
.admin-message { font-size: 0.9rem; margin-top: 12px; }
.admin-entrants-table-wrap { overflow-x: auto; }
.admin-entrants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.admin-entrants-table th {
    text-align: left;
    padding: 10px 12px;
    color: #4ecdc4;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-weight: 600;
    white-space: nowrap;
}
.admin-entrants-table td {
    padding: 10px 12px;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-paid { color: #4ecdc4; font-weight: 600; }
.admin-unpaid { color: #ff6b6b; }
.admin-empty { color: #888; font-style: italic; }
.admin-scoring-card {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.admin-scoring-label { font-size: 1rem; color: #e8e8e8; margin-bottom: 12px; }
.admin-scoring-rules {
    list-style: none;
    padding: 0;
}
.admin-scoring-rules li {
    font-size: 0.9rem;
    color: #aaa;
    padding: 4px 0;
}

@media (max-width: 600px) {
    .admin-match-row { flex-direction: column; gap: 8px; text-align: center; }
    .admin-match-label { min-width: auto; text-align: center !important; }
    .admin-entrants-table { font-size: 0.75rem; }
    .admin-tabs { flex-wrap: wrap; }
}

/* ===== LEADERBOARD ===== */
.lb-container { max-width: 800px; margin: 0 auto; padding: 32px 24px; }
.lb-header { margin-bottom: 28px; }
.lb-back { color: #4ecdc4; text-decoration: none; font-size: 0.9rem; }
.lb-title { font-size: 2rem; font-weight: 800; color: #fff; margin: 8px 0 4px; }
.lb-subtitle { color: #888; font-size: 0.95rem; }
.lb-loading { color: #888; }
.lb-empty {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
}
.lb-empty-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.lb-empty-title { font-size: 1.4rem; color: #e8e8e8; margin-bottom: 8px; }
.lb-empty-desc { color: #888; font-size: 0.95rem; max-width: 400px; margin: 0 auto; }
.lb-scoring-info { margin-bottom: 20px; }
.lb-scoring-toggle {
    color: #4ecdc4;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}
.lb-scoring-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #888;
}
.lb-table-wrap { overflow-x: auto; }
.lb-table {
    width: 100%;
    border-collapse: collapse;
}
.lb-table thead tr {
    border-bottom: 2px solid rgba(78,205,196,0.3);
}
.lb-table th {
    padding: 12px;
    text-align: left;
    color: #4ecdc4;
    font-size: 0.85rem;
    font-weight: 600;
}
.lb-th-rank { width: 50px; }
.lb-th-name { }
.lb-th-pts { width: 80px; text-align: center; }
.lb-table th.lb-th-pts { text-align: center; }
.lb-row { border-bottom: 1px solid rgba(255,255,255,0.06); }
.lb-row:hover { background: rgba(255,255,255,0.03); }
.lb-row-me { background: rgba(78,205,196,0.08); }
.lb-rank { padding: 12px; font-weight: 700; color: #888; }
.lb-rank-gold { color: #ffd700; }
.lb-rank-silver { color: #c0c0c0; }
.lb-rank-bronze { color: #cd7f32; }
.lb-medal { font-size: 1.2rem; }
.lb-name { padding: 12px; color: #e8e8e8; font-weight: 500; }
.lb-pts { padding: 12px; text-align: center; color: #aaa; }
.lb-total { font-weight: 700; color: #fff; font-size: 1.05rem; }
.lb-delta { color: #888; font-size: 0.85rem; }
.lb-updated { font-size: 0.8rem; color: #666; margin-top: 16px; }

@media (max-width: 600px) {
    .lb-table { font-size: 0.8rem; }
    .lb-table th, .lb-table td { padding: 8px 6px; }
}

/* ===== IDENTITY PAGE OVERRIDES ===== */
/* These styles apply to the Razor Pages (Register/Login) which render
   outside of the landing page layout. Keep them consistent. */

/* ============================================================
   V14 — Free-to-Play + Optional Donation pivot (2026-05-16)
   Adds: tertiary button, stacked CTA layout, DRAFT banner
   ============================================================ */

/* DRAFT banner — site-wide, sticky top, high-contrast warning colour. */
.draft-banner {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: repeating-linear-gradient(45deg, #5c3a00, #5c3a00 12px, #4a2f00 12px, #4a2f00 24px);
    color: #ffe082;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    border-bottom: 2px solid #ffb300;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.2px;
}
.draft-banner strong {
    color: #fff3c0;
    font-weight: 800;
    letter-spacing: 0.5px;
}
@media (max-width: 600px) {
    .draft-banner { font-size: 0.75rem; padding: 8px 10px; }
}

/* Tertiary button — text-style, even quieter than secondary.
   Used for the third CTA in the 3-button stack ("Sign In"). */
.btn-tertiary {
    display: inline-block;
    padding: 12px 36px;
    background: transparent;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-tertiary:hover {
    color: #fff !important;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
}

/* Stacked CTA layout — vertical stack on desktop and mobile.
   Each button in the stack takes a reasonable max width so they line up. */
.hero-actions-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions-stack .btn-stack {
    width: 100%;
    text-align: center;
}
.hero-actions-final {
    margin-top: 24px;
}

/* Small fine-print under a section. */
.section-fine {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.5rem;
}

/* Mobile tweaks for the new layout. */
@media (max-width: 600px) {
    .btn-tertiary { width: 100%; text-align: center; }
    .hero-actions-stack { max-width: 100%; gap: 10px; }
}

/* Donate placeholder page — "coming soon" status card */
.donate-status-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,179,0,0.4);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px auto;
    max-width: 560px;
    text-align: left;
}
.donate-status-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffb300;
    margin: 0 0 12px 0;
}
.donate-status-body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    margin: 0 0 10px 0;
}
.donate-status-body:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .donate-status-card { padding: 18px 18px; }
    .donate-status-heading { font-size: 1rem; }
    .donate-status-body { font-size: 0.9rem; }
}

/* Donate helps section — prose body (replaces 3-card layout per V14 copy revision). */
.donate-helps-body {
    max-width: 760px;
    margin: 1.5rem auto 0 auto;
    text-align: left;
}
.donate-helps-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    margin: 0 0 1.5rem 0;
    padding: 18px 22px;
    background: rgba(255,255,255,0.04);
    border-left: 4px solid #e94560;
    border-radius: 6px;
}
.donate-helps-lead strong {
    color: #fff;
}
.donate-helps-body-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    margin: 0 0 1.25rem 0;
}
.donate-helps-body-text:last-child {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .donate-helps-lead { font-size: 1rem; padding: 14px 16px; }
    .donate-helps-body-text { font-size: 0.95rem; }
}

/* ============================================================
   V14G — WYSA logo, wizard user line, Save & Logout, incomplete groups
   ============================================================ */

/* Logo in landing/donate nav (replaces the ⚽ emoji) */
.nav-logo-img {
    height: 38px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

/* Logo in footer */
.footer-logo-img {
    height: 44px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* Logo in bracket wizard header */
.wizard-brand {
    display: flex;
    justify-content: center;
    margin: 8px auto 12px auto;
}
.wizard-logo-img {
    height: 64px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* User's bracket-name line under "Your Bracket" */
.wizard-user-line {
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 4px 0 4px 0;
}
.wizard-user-line strong {
    color: #4fc3f7;
    font-weight: 600;
}

/* Save & Logout button in wizard header */
.wizard-save-logout-form {
    text-align: center;
    margin-top: 14px;
}
.btn-save-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.06);
    color: #ffe082 !important;
    border: 1px solid rgba(255,179,0,0.45);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.btn-save-logout:hover {
    background: rgba(255,179,0,0.12);
    border-color: rgba(255,179,0,0.8);
    color: #fff3c0 !important;
}
.btn-save-logout:focus-visible {
    outline: 2px solid #ffb300;
    outline-offset: 2px;
}

/* Logo in admin header */
.admin-logo-img {
    height: 56px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    display: block;
    margin: 0 0 12px 0;
}

/* Incomplete-groups banner under the disabled Confirm All Groups button */
.incomplete-groups-banner {
    max-width: 560px;
    margin: 18px auto 0 auto;
    padding: 14px 18px;
    background: rgba(255,179,0,0.06);
    border: 1px solid rgba(255,179,0,0.32);
    border-radius: 8px;
    text-align: left;
}
.incomplete-groups-heading {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffe082;
}
.incomplete-groups-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.incomplete-groups-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}
.incomplete-groups-list li:not(:last-child) {
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.incomplete-groups-list strong {
    color: #fff;
    min-width: 78px;
}
.incomplete-groups-count {
    color: rgba(255,255,255,0.6);
    flex: 1;
}
.incomplete-groups-jump {
    background: transparent;
    color: #4fc3f7;
    border: 1px solid rgba(79,195,247,0.4);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.incomplete-groups-jump:hover {
    background: rgba(79,195,247,0.1);
    border-color: rgba(79,195,247,0.8);
}

@media (max-width: 600px) {
    .nav-logo-img { height: 30px; }
    .footer-logo-img { height: 36px; }
    .wizard-logo-img { height: 52px; }
    .admin-logo-img { height: 44px; }
    .incomplete-groups-list li { flex-wrap: wrap; }
    .incomplete-groups-jump { margin-left: auto; }
}

/* ============================================================
   V14H — Admin tabs: Donors, Leaderboard (with print-to-PDF), Logout
   ============================================================ */

/* Admin header row: logo on left, logout on right */
.admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.admin-header-row .admin-logo-img {
    margin: 0;
}

/* Logout button in admin header */
.admin-logout-form {
    margin: 0;
}
.btn-admin-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: rgba(233, 69, 96, 0.08);
    color: #ff8fa3 !important;
    border: 1px solid rgba(233, 69, 96, 0.4);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-admin-logout:hover {
    background: rgba(233, 69, 96, 0.18);
    border-color: rgba(233, 69, 96, 0.8);
    color: #fff !important;
}

/* Donor table extras */
.admin-stripe-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* Actions row at top of a tab (e.g. Print/PDF + status) */
.admin-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 16px;
}

/* Leaderboard table (admin tab, also used in print) */
.admin-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.admin-leaderboard-table th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    color: #4fc3f7;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.admin-leaderboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
}
.admin-leaderboard-table .lb-total-cell {
    font-weight: 700;
    color: #fff;
}
.admin-leaderboard-table .lb-rank-cell {
    font-weight: 600;
}

/* Print area header (only visible when printing — hidden on screen) */
.admin-print-area {
    /* On screen: shown inside the leaderboard tab content area */
    margin-top: 0;
}
.admin-print-header {
    display: none; /* hidden on screen; only shown when printing */
}
.admin-print-logo {
    height: 60px;
    width: auto;
}
.admin-print-title {
    margin: 8px 0 4px 0;
    color: #000;
    font-size: 1.4rem;
}
.admin-print-subtitle {
    margin: 0 0 16px 0;
    color: #555;
    font-size: 0.95rem;
}
.admin-print-footer {
    display: none; /* hidden on screen; only shown when printing */
}

/* Print stylesheet — used when window.print() fires.
   Hides everything except the leaderboard print area, so the user
   can save a clean PDF of just the leaderboard with header + footer. */
@media print {
    /* Hide DRAFT banner, nav, tabs, other tabs' content, action buttons */
    .draft-banner,
    .landing-nav,
    .admin-header,
    .admin-tabs,
    .admin-no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    /* Show the print header and footer */
    .admin-print-header {
        display: block !important;
        text-align: center;
        color: black !important;
    }
    .admin-print-footer {
        display: block !important;
        text-align: center;
        color: #555 !important;
        margin-top: 24px;
        font-size: 0.85rem;
        border-top: 1px solid #ccc;
        padding-top: 12px;
    }

    /* Print-friendly leaderboard table */
    .admin-leaderboard-table {
        color: black !important;
    }
    .admin-leaderboard-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
        border-bottom: 2px solid #444 !important;
    }
    .admin-leaderboard-table td {
        color: #000 !important;
        border-bottom: 1px solid #ccc !important;
    }
    .admin-leaderboard-table .lb-total-cell {
        color: #000 !important;
    }

    /* Force the print area to be visible/styled for paper */
    .admin-print-area {
        padding: 24px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 600px) {
    .admin-header-row { flex-wrap: wrap; gap: 10px; }
    .btn-admin-logout { width: 100%; justify-content: center; }
    .admin-actions-row { flex-direction: column; align-items: stretch; }
    .admin-actions-row > * { width: 100%; }
}
