/* Option 1: Minimalist Modern - COMPLETE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e27;
    color: #e8eaf6;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 20px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

.site-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 20px rgba(103, 126, 234, 0.3));
}

.tagline {
    font-size: 0.9rem;
    color: #b0b8d4;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.form-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #b0b8d4;
    letter-spacing: 0.3px;
}

select, input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

select:focus, input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@keyframes matchday-warn-pulse {
    0%   { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
    30%  { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.3); }
    70%  { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.3); }
    100% { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
}

select.matchday-warn {
    animation: matchday-warn-pulse 0.8s ease forwards;
}

select.select-no-matchday {
    opacity: 0.5;
    cursor: not-allowed;
}

select option {
    background: #1a1f3a;
    color: #ffffff;
}

.helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #8892b0;
}

/* Result type toggle pills */
.checkbox-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #b0b8d4;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

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

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8eaf6;
}

.checkbox-label:has(input:checked) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

/* Don't Care pill - slightly distinct when inactive */
.checkbox-label-dontcare {
    border-color: rgba(102, 126, 234, 0.25);
    color: #8b9dea;
}

.checkbox-label-dontcare:hover {
    border-color: rgba(102, 126, 234, 0.5);
    color: #a0aef4;
}

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-generate:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.results-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-align: center;
}

.acca-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.acca-meta-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.acca-meta-date::after {
    content: '·';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.25);
}

.acca-meta-count {
    font-size: 0.8rem;
    color: #b0b8d4;
}

/* Fixtures Grid */
.fixtures-grid {
    display: grid;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.fixture-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    position: relative;
}

.early-kickoff-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 8px;
    pointer-events: none;
}

.fixture-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.league-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.15);
    color: #8b9dea;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.match-info {
    display: grid;
    gap: 5px;
}

.match-time {
    font-size: 0.8125rem;
    color: #8892b0;
    font-weight: 500;
}

.teams {
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

.prediction {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(102, 234, 169, 0.1);
    color: #66eaa9;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Warnings - ENHANCED RED */
.early-kickoff-warning {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #fca5a5;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(239, 68, 68, 0.6);
    }
}

.warning-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.warning-content strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 2px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.warning-content p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.8125rem;
    font-weight: 500;
}

.mug-warning {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-style: italic;
}

.mug-warning.few-games {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.mug-warning.many-games {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.mug-warning.max-games {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    font-weight: 500;
}

.mug-warning.with-image {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-image-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.fixture-card.early-kickoff {
    border: 2px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.fixture-card.no-odds {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.no-odds-notice {
    font-size: 0.75rem;
    color: #f59e0b;
    margin-top: 6px;
}

.no-odds-btn {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.no-odds-btn:hover:not(:disabled) {
    background: #f59e0b !important;
    color: #0a0a0a !important;
}

.fixture-card.early-kickoff .league-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.spinner-mug {
    width: 72px;
    height: 72px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.125rem;
    color: #b0b8d4;
    font-weight: 500;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b0b8d4;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover:not(.social-link-disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-link-disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #b0b8d4;
    transform: none;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
    font-size: 0.875rem;
    color: #8892b0;
}

footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #8b9dea;
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-gate-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.age-gate-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.age-gate-content h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.age-gate-content p {
    color: #b0b8d4;
    margin-bottom: 12px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.btn-age-confirm, .btn-age-deny {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-age-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-age-deny {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b8d4;
}

.btn-age-deny:hover {
    background: rgba(255, 255, 255, 0.08);
}

.age-gate-footer {
    font-size: 0.75rem;
    color: #8892b0;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
    }

    header {
        margin-bottom: 20px;
    }

    .site-logo {
        max-width: 200px;
        margin-bottom: 8px;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .form-section {
        padding: 20px 16px;
    }

    .form-section h2 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .checkbox-group {
        flex-direction: row;
        gap: 6px;
    }
    
    .fixtures-grid {
        gap: 12px;
    }
    
    .early-kickoff-warning {
        padding: 8px 12px;
        gap: 8px;
    }

    .warning-image {
        width: 34px;
        height: 34px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .pill-date {
        font-size: 0.8125rem;
    }

    .pill-count {
        font-size: 0.625rem;
    }
}

/* Fixture Odds Display */
.fixture-odds {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    background: rgba(102, 234, 169, 0.15);
    color: #66eaa9;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.prediction {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.replace-btn {
    margin-top: 6px;
    padding: 5px 12px;
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.replace-btn:hover:not(:disabled) {
    background: #ff6b6b;
    color: #0a0a0a;
}

.replace-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fixture-card.replacing {
    opacity: 0.6;
}

.fixture-card.card-spinning {
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.15);
}

.card-searching {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    gap: 10px;
}

.card-spinner-mug {
    width: 52px;
    height: 52px;
    animation: spin 0.7s linear infinite;
}

.card-spinner-text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin: 0;
}

.age-gate-logo {
    max-width: 160px;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 20px rgba(103, 126, 234, 0.3));
}

.hagay-gif {
    width: 120px;
    height: auto;
    border-radius: 8px;
    margin-top: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.mug-warning.single-game {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Mug Predictor Box */
.fixture-card .match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mug-predictor {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-block;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #b0b8d4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mug-predictor strong {
    color: #66eaa9;
    font-weight: 700;
}

.predictor-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b9dea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: inline;
}

.predictor-message {
    font-size: 0.8125rem;
    color: #b0b8d4;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    display: inline;
}

.predictor-message strong {
    color: #66eaa9;
    font-weight: 700;
}

.pct-home {
    background: rgba(102, 234, 169, 0.15);
    color: #66eaa9;
}

.pct-draw {
    background: rgba(234, 179, 102, 0.15);
    color: #eab366;
}

.pct-away {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

@media (max-width: 600px) {
    .fixture-card .match-info {
        grid-template-columns: 1fr;
    }
    
    min-width: 175px;
    max-width: 175px;
}

.predictor-message {
    min-height: 20px;
}

.overall-probability-card {
    background: rgba(102, 234, 169, 0.08);
    border: 2px solid rgba(102, 234, 169, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}

.overall-probability-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #66eaa9;
    margin-bottom: 16px;
}

.overall-prob-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #66eaa9;
    margin-bottom: 8px;
}

.overall-prob-text {
    font-size: 0.875rem;
    color: #b0b8d4;
    margin: 0;
}

.prediction {
    display: inline-flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 8px;
    min-width: 200px;
    max-width: 200px;
    text-align: center !important;
}

/* Fix overall probability card sizing */
.overall-probability-card {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure fixture cards are consistent on mobile */
@media (max-width: 768px) {
    .fixture-card {
        padding: 10px 12px;
    }

    .fixture-card .match-info {
        flex-direction: column;
        gap: 5px;
    }
    
    
    .prediction {
        min-width: auto !important;
        max-width: 100% !important;
        justify-content: flex-start;
    }
    
    .overall-probability-card {
        padding: 20px 16px;
    }
    
    .overall-prob-value {
        font-size: 2rem;
    }
}

/* Ensure all cards have consistent width */
.fixtures-grid {
    width: 100%;
}

.fixture-card,
.overall-probability-card,
.early-kickoff-warning {
    width: 100%;
    box-sizing: border-box;
}

/* Force single line for Mug Predictor - override everything */
.mug-predictor * {
    display: inline !important;
    float: none !important;
}

.mug-predictor {
    text-align: center !important;
}

.match-header {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
}

.match-header {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
}

.match-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.early-kickoff .match-time {
    color: #ef4444;
}

.team-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.league-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
    flex-shrink: 0;
}

.team-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.vs-rule {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 1px 0;
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.vs-rule::before,
.vs-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.form-pills {
    display: inline-flex;
    gap: 3px;
    flex-wrap: nowrap;
}

.form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 26px;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.form-win {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-draw {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.form-loss {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.prediction {
    text-align: center !important;
    align-self: center;
}

.prediction * {
    text-align: center !important;
}

.mug-predictor {
    align-self: center;
    white-space: normal !important;
    text-align: center;
}

.no-odds-notice {
    align-self: center;
}

.overall-odds-display {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(102, 234, 169, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.odds-label {
    font-size: 0.875rem;
    color: #b0b8d4;
    font-weight: 500;
}

.odds-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #66eaa9;
}

.odds-format-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 16px 0 24px;
}

.toggle-label {
    font-size: 0.875rem;
    color: #b0b8d4;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(102, 126, 234, 0.3);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #667eea;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(102, 234, 169, 0.3);
    border-color: rgba(102, 234, 169, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #66eaa9;
}

.mug-predictor {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px 12px !important;
}

.predictor-line {
    font-size: 0.875rem;
    color: #b0b8d4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

.predictor-line strong {
    color: #66eaa9;
    font-weight: 700;
}

.predictor-odds {
    font-size: 0.8125rem;
    color: #8b9dea;
    text-align: center;
}

.predictor-odds strong {
    color: #66eaa9;
    font-weight: 700;
    font-size: 0.9375rem;
}

.acca-selections-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(102, 234, 169, 0.2);
    text-align: left;
}

.acca-selection {
    font-size: 0.8rem;
    color: #b0b8d4;
    padding: 5px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.acca-selection:hover {
    background: rgba(255, 255, 255, 0.06);
}

.acca-selection + .acca-selection {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.acca-bet-label {
    color: #66eaa9;
    font-weight: 600;
    white-space: nowrap;
}

.acca-selection-early .acca-match-name {
    color: #fca5a5;
}

.acca-selection-early .acca-bet-label {
    color: #fca5a5;
}

.acca-selection-no-odds .acca-match-name {
    color: #fbbf24;
}

.acca-selection-no-odds .acca-bet-label {
    color: #fbbf24;
}

@keyframes cardHighlight {
    0%   { box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.9); }
    100% { box-shadow: none; }
}

.fixture-card-highlight {
    animation: cardHighlight 1.5s ease-out forwards;
}

.mug-message {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #ffc107;
    font-size: 0.9375rem;
    font-weight: 500;
    font-style: italic;
    text-align: center;
}

.saved-bet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.saved-bet-share {
    display: flex;
    align-items: center;
    gap: 6px;
}

.saved-bet-share-label {
    font-size: 0.72rem;
    color: #4a5378;
}

.saved-bet-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    opacity: 0.7;
}

.saved-bet-share-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.saved-bet-share-btn--whatsapp {
    background: #25D366;
    color: white;
    display: none;
}

@media (max-width: 768px) {
    .saved-bet-share-btn--whatsapp {
        display: flex;
    }
}

.saved-bet-share-btn--twitter {
    background: #000;
    color: white;
}

/* Regenerate Button */
.regenerate-container {
    margin-top: 16px;
}

.btn-regenerate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-regenerate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* League Filter Dropdown */
.league-filter-dropdown {
    position: relative;
}

.league-filter-button {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.league-filter-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.league-filter-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.league-filter-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.league-filter-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: rgba(10, 14, 39, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    z-index: 1000;
    max-height: 420px;
    flex-direction: column;
    display: none;
}

.league-filter-dropdown.open .league-filter-options {
    display: flex;
}

.league-options-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}

/* Country group header */
.league-group-header {
    display: flex;
    align-items: center;
    padding: 8px 6px 5px;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 6px;
}

.league-group-header:first-child {
    margin-top: 0;
}

.country-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    margin: -8px -4px -8px -8px;
    color: #8892b0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.country-collapse-btn:hover {
    color: #b0b8d4;
}

.collapse-chevron {
    display: inline-block;
    font-size: 0.625rem;
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
    line-height: 1;
}

.collapse-chevron.expanded {
    transform: rotate(0deg);
}

.country-name-area {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
    padding: 0;
    text-align: left;
    font-family: inherit;
    user-select: none;
}

.country-name-area:hover .country-name {
    color: #e0e4f8;
}

.country-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.country-flag {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    flex-shrink: 0;
}

.country-flag-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    vertical-align: middle;
    flex-shrink: 0;
    font-size: 14px;
}

.country-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.country-game-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-left: 4px;
}

/* Individual league row */
.league-group-leagues {
    display: block;
    width: 100%;
    padding-left: 22px;
    box-sizing: border-box;
}

.league-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 50px 6px 28px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
    gap: 8px;
}

.league-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.league-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.league-option .league-name {
    font-size: 0.875rem;
    color: #b0b8d4;
}

.league-option .only-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

.no-games-text {
    font-size: 0.75rem;
    color: #8b9dea;
    flex-shrink: 0;
    white-space: nowrap;
}

.no-games-text.no-games {
    color: #ff6b6b;
    font-style: italic;
}

.only-btn {
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 4px;
    color: #8b9dea;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
    font-family: inherit;
}

.only-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    color: #ffffff;
}

.only-btn:active {
    transform: scale(0.95);
}

.league-done-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    border: none;
    border-radius: 0 0 8px 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    font-family: inherit;
}

.league-done-btn:hover {
    background: #5568d3;
}

.league-done-btn:active {
    transform: translateY(1px);
}

/* Form Loading Spinner */
.form-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
    text-align: center;
}

.form-loading .spinner-mug {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

.form-loading .loading-text {
    font-size: 1.1rem;
    color: #8b9dea;
    font-weight: 500;
}

.form-section h2 {
    text-align: center;
}

/* Matchday Pill Strip */
.matchday-pills-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.pills-arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    color: #8b9dea;
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-family: inherit;
    flex-shrink: 0;
}

.pills-arrow.visible {
    display: flex;
}

.pills-arrow:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    color: #667eea;
}

.pills-arrow:active {
    transform: scale(0.9);
}

.matchday-pills-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    border-radius: 10px;
    transition: outline 0.1s, box-shadow 0.1s;
    flex: 1 1 0;
    min-width: 0;
}

.matchday-pills-strip::-webkit-scrollbar {
    display: none;
}

.matchday-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 11px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 2px;
    user-select: none;
    font-family: inherit;
}

.matchday-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.matchday-pill.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: #667eea;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.pill-day {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.pill-count {
    font-size: 0.6875rem;
    color: #66eaa9;
    font-weight: 500;
}

.matchday-pill.selected .pill-day {
    color: #8b9dea;
}

.matchday-pills-loading {
    color: #8892b0;
    font-size: 0.875rem;
    font-style: italic;
    padding: 10px 0;
}

@keyframes matchday-pills-warn-pulse {
    0%   { outline: 2px solid transparent; box-shadow: none; }
    30%  { outline: 2px solid #e53e3e; box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.3); }
    70%  { outline: 2px solid #e53e3e; box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.3); }
    100% { outline: 2px solid transparent; box-shadow: none; }
}

.matchday-pills-strip.matchday-warn {
    animation: matchday-pills-warn-pulse 0.8s ease forwards;
}

/* Bet Type Pill Strip */
.bettype-pills-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0;
}

.bettype-pill {
    flex: 0 0 auto;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #b0b8d4;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-family: inherit;
    white-space: nowrap;
}

.bettype-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8eaf6;
}

.bettype-pill.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.bettype-pills-disabled .bettype-pill {
    opacity: 0.4;
    cursor: not-allowed;
}

.bettype-pills-disabled .bettype-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #b0b8d4;
    transform: none;
}

/* ============================================================
   Toast Notification
   ============================================================ */

#toast-notification {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#toast-notification.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#toast-notification.toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* ============================================================
   Quick Select Pills
   ============================================================ */

.quick-select-group {
    margin-bottom: 4px;
}

.quick-select-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0;
}

.quick-select-pill {
    flex: 0 0 auto;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #b0b8d4;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-select-pill:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: #e8eaf6;
}

.quick-select-pill.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35) 0%, rgba(118, 75, 162, 0.35) 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

/* ============================================================
   Auth & My Bets — Firebase Google Sign-In
   ============================================================ */

/* Header row with user icon */
.header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon-btn {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #b0b8d4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #e8eaf6;
}

.user-icon-btn--signed-in {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    color: #667eea;
}

.user-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 16px;
    z-index: 501;
    background: #1e2340;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 140px;
    overflow: hidden;
}

.user-menu.open {
    display: block;
}

.user-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #c8d0e8;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.user-menu-item--danger {
    color: #f28b82;
}

.user-menu-item--danger:hover {
    background: rgba(242, 139, 130, 0.1);
    color: #f28b82;
}

/* --- Shared modal styles --- */

.auth-modal-backdrop,
.username-modal-backdrop,
.my-bets-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.auth-modal-backdrop.active,
.username-modal-backdrop.active,
.my-bets-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Auth Modal --- */

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    z-index: 1010;
    width: min(420px, calc(100vw - 32px));
    background: #151929;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 32px 28px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #6b7aaa;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

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

.auth-modal-logo {
    margin-bottom: 16px;
}

.auth-modal-logo img {
    border-radius: 12px;
}

.auth-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8eaf6;
    margin-bottom: 8px;
}

.auth-modal-desc {
    font-size: 0.875rem;
    color: #8891b4;
    margin-bottom: 24px;
    line-height: 1.5;
}

.sign-in-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
}

.sign-in-btn-google:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.sign-in-btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
}

.sign-in-btn-microsoft:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.disclaimer-text {
    font-size: 0.875rem;
    color: #b0b8d4;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 12px;
}

.disclaimer-btn-cancel {
    background: none;
    border: none;
    color: #5a6483;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    padding: 6px;
    width: 100%;
    text-align: center;
    transition: color 0.2s ease;
}

.disclaimer-btn-cancel:hover {
    color: #8891b4;
}

.auth-modal-terms {
    font-size: 0.75rem;
    color: #5a6483;
    margin-top: 12px;
}

.auth-modal-terms a {
    color: #667eea;
    text-decoration: none;
}

/* --- Username Modal --- */

.username-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    z-index: 1010;
    width: min(380px, calc(100vw - 32px));
    background: #151929;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.username-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.username-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e8eaf6;
    font-size: 1rem;
    font-family: inherit;
    margin: 16px 0 4px;
    transition: border-color 0.2s;
    text-align: center;
}

.username-input:focus {
    outline: none;
    border-color: #667eea;
}

.username-error {
    font-size: 0.8125rem;
    color: #ff6b6b;
    min-height: 1.2em;
    margin-bottom: 12px;
}

.btn-username-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-username-submit:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-username-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- My Bets Drawer --- */

.my-bets-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    background: #151929;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.my-bets-drawer.active {
    transform: translateY(0);
}

.my-bets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.my-bets-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #e8eaf6;
}

.my-bets-close-btn {
    background: none;
    border: none;
    color: #6b7aaa;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.my-bets-close-btn:hover {
    color: #e8eaf6;
}

.my-bets-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 24px;
}

.my-bets-signed-out {
    text-align: center;
    padding: 32px 0;
    color: #8891b4;
    font-size: 0.9375rem;
}

.my-bets-signed-out .sign-in-btn-google {
    margin-top: 20px;
}

.my-bets-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* --- My Bets Tabs --- */

.my-bets-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.my-bets-tab {
    flex: 1;
    padding: 8px 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #8892b0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.my-bets-tab.active {
    background: rgba(100, 120, 220, 0.25);
    border-color: rgba(100, 120, 220, 0.6);
    color: #fff;
}

.my-bets-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ccd6f6;
}

.my-bets-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.my-bets-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.my-bets-stat--positive {
    border-color: rgba(52, 168, 83, 0.3);
    background: rgba(52, 168, 83, 0.07);
}

.my-bets-stat--negative {
    border-color: rgba(234, 67, 53, 0.25);
    background: rgba(234, 67, 53, 0.06);
}

.my-bets-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8eaf6;
}

.my-bets-stat--positive .my-bets-stat-value { color: #34a853; }
.my-bets-stat--negative .my-bets-stat-value { color: #ea4335; }

.my-bets-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.3);
}

.my-bets-greeting {
    font-size: 0.9375rem;
    color: #b0b8d4;
}

.btn-sign-out {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #6b7aaa;
    font-size: 0.8125rem;
    font-family: inherit;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sign-out:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #e8eaf6;
}

.my-bets-loading,
.my-bets-empty {
    text-align: center;
    color: #6b7aaa;
    font-size: 0.9rem;
    padding: 32px 0;
}

.my-bets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Saved Bet Card --- */

.saved-bet-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
}

.saved-bet-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.saved-bet-date {
    font-size: 0.8125rem;
    color: #b0b8d4;
    font-weight: 500;
}

.saved-bet-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 2px 8px;
}

.saved-bet-badge--won {
    background: rgba(52, 168, 83, 0.15);
    color: #34a853;
    border-color: rgba(52, 168, 83, 0.35);
}

.saved-bet-badge--lost {
    background: rgba(234, 67, 53, 0.15);
    color: #ea4335;
    border-color: rgba(234, 67, 53, 0.35);
}

.saved-bet-badge--live {
    background: rgba(52, 168, 83, 0.12);
    color: #34a853;
    border-color: rgba(52, 168, 83, 0.35);
    animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.saved-bet-live-score {
    font-size: 0.75rem;
    font-weight: 600;
    color: #34a853;
    background: rgba(52, 168, 83, 0.12);
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
}

.saved-bet-live-score--ft {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.saved-bet-live-score--pst {
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 400;
    font-style: italic;
}

.saved-bet-result {
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.saved-bet-result--won {
    color: #34a853;
}

.saved-bet-result--lost {
    color: #ea4335;
}

.saved-bet-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.saved-bet-type {
    font-size: 0.8125rem;
    color: #8891b4;
}

.saved-bet-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    color: #8891b4;
}

.saved-bet-odds strong {
    color: #e8eaf6;
}

.saved-bet-selections {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saved-bet-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #b0b8d4;
}

.saved-bet-pred-result {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.saved-bet-pred {
    font-weight: 600;
    color: #e8eaf6;
    white-space: nowrap;
}

.saved-bet-kickoff {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 5px;
}

.saved-bet-saved-date {
    font-size: 0.75rem;
    color: #4a5378;
    margin: 0;
}

/* --- Save Bet button --- */

.btn-save-bet {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 11px 16px;
    background: none;
    border: 1px solid rgba(52, 168, 83, 0.35);
    border-radius: 10px;
    color: #4caf71;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-save-bet:hover:not(:disabled) {
    background: rgba(52, 168, 83, 0.08);
    border-color: rgba(52, 168, 83, 0.6);
}

.btn-save-bet:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-save-bet--saved {
    border-color: rgba(52, 168, 83, 0.5);
    color: #34a853;
}

/* --- Leaderboard Tabs --- */

.leaderboard-tabs {
    display: flex;
    gap: 6px;
    padding: 0 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.leaderboard-tab {
    flex: 1;
    padding: 7px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #b0b8d4;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.leaderboard-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e8eaf6;
}

.leaderboard-tab.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    color: #667eea;
    font-weight: 600;
}

/* --- Leaderboard --- */

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.leaderboard-th {
    text-align: left;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7aaa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-th--rank,
.leaderboard-td--rank {
    width: 40px;
}

.leaderboard-th--score,
.leaderboard-td--score {
    text-align: right;
    width: 64px;
}

.leaderboard-th--num,
.leaderboard-td--num {
    text-align: right;
    width: 52px;
}

.leaderboard-th--legwin,
.leaderboard-td--legwin {
    text-align: right;
    width: 68px;
}

.leaderboard-td {
    padding: 11px 12px;
    color: #b0b8d4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-row {
    border-left: 3px solid transparent;
}

.leaderboard-row--gold {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}

.leaderboard-row--silver {
    border-left: 3px solid #9ca3af;
    background: rgba(156, 163, 175, 0.04);
}

.leaderboard-row--bronze {
    border-left: 3px solid #cd7c2f;
    background: rgba(205, 124, 47, 0.04);
}

.leaderboard-td--rank {
    font-size: 1.1rem;
    padding-left: 10px;
}

.leaderboard-td--name {
    color: #e8eaf6;
    font-weight: 500;
}

.leaderboard-td--score {
    font-weight: 700;
    font-size: 1rem;
    color: #66eaa9;
    font-variant-numeric: tabular-nums;
}

.leaderboard-td--num {
    font-variant-numeric: tabular-nums;
}

.leaderboard-row--gold .leaderboard-td--name,
.leaderboard-row--silver .leaderboard-td--name,
.leaderboard-row--bronze .leaderboard-td--name {
    color: #ffffff;
    font-weight: 600;
}

.leaderboard-row--gold .leaderboard-td--score {
    color: #fbbf24;
}

.leaderboard-row--silver .leaderboard-td--score {
    color: #d1d5db;
}

.leaderboard-row--bronze .leaderboard-td--score {
    color: #d97706;
}

.leaderboard-row--you {
    border-left: 3px solid #6478dc;
    background: rgba(100, 120, 220, 0.1);
}

.leaderboard-row--you .leaderboard-td--name {
    color: #ffffff;
    font-weight: 600;
}

.leaderboard-you-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(100, 120, 220, 0.35);
    color: #a5b4fc;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 5px;
    vertical-align: middle;
}

.leaderboard-you-banner {
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: #8892b0;
    padding: 10px 16px;
    border: 1px solid rgba(100, 120, 220, 0.3);
    border-radius: 8px;
    background: rgba(100, 120, 220, 0.06);
}

.leaderboard-you-banner strong {
    color: #ccd6f6;
}

/* --- Leaderboard teaser --- */

.leaderboard-teaser {
    margin: 0 auto 24px;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
}

.leaderboard-teaser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.leaderboard-teaser-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
}

.leaderboard-teaser-link {
    background: none;
    border: none;
    color: #a78bfa;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.leaderboard-teaser-link:hover {
    color: #c4b5fd;
}

.leaderboard-teaser-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.leaderboard-teaser-row + .leaderboard-teaser-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-teaser-medal {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.leaderboard-teaser-name {
    flex: 1;
    font-size: 0.88rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-teaser-score {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.leaderboard-teaser-loading {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin: 0;
    padding: 4px 0;
}

/* --- Leaderboard clickable name --- */

.leaderboard-name-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 2px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.leaderboard-name-link:hover {
    color: #a78bfa;
    text-decoration-color: #a78bfa;
}

.leaderboard-signin-hint {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 12px;
}

/* --- User profile panel --- */

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.user-profile-back {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a78bfa;
    border-radius: 6px;
    padding: 5px 11px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.15s;
    flex-shrink: 0;
}

.user-profile-back:hover {
    background: rgba(167, 139, 250, 0.12);
}

.user-profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0f0;
}

@media (max-width: 480px) {
    .my-bets-body {
        padding: 12px 12px 20px;
    }

    .leaderboard-table {
        font-size: 0.775rem;
    }

    .leaderboard-th {
        padding: 6px 8px;
        font-size: 0.65rem;
    }

    .leaderboard-td {
        padding: 9px 8px;
    }

    .leaderboard-td--rank {
        font-size: 0.95rem;
        padding-left: 6px;
        width: 32px;
    }

    .leaderboard-td--score {
        font-size: 0.875rem;
        width: 50px;
    }

    .leaderboard-th--num,
    .leaderboard-td--num {
        width: 40px;
    }

    .leaderboard-col--secondary {
        display: none;
    }

    .leaderboard-th--legwin,
    .leaderboard-td--legwin {
        width: 60px;
    }
}
