:root {
    --primary: #ff5e00;
    /* New Orange Accent */
    --dark: #002b5c;
    /* New Navy Blue Dark */
    --gray: #f5f6f9;
    --white: #ffffff;
    --text-main: #2c3e50;
    --text-light: #95a5a6;
    --success: #2ecc71;
    --gold: #f1c40f;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: #eef1f5;
    /* Fundo Desktop mais escuro pra destacar o app */
    color: var(--text-main);
    width: 100vw;
    overflow-x: hidden;
}

/* --- DESKTOP OPTIMIZATION CONTAINER --- */
.app-container {
    width: 100%;
    max-width: 500px;
    /* Largura Mágica do App */
    margin: 0 auto;
    /* Centraliza no Desktop */
    background-color: #fff;
    /* Fundo do App Branco */
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: hidden;
}

/* HEADER */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    /* Reduced vertical padding */
    background: #002b5c;
    /* Navy Blue Header */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area h1 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    color: #fff;
    /* White Text */
    letter-spacing: -1px;
}

.highlight-text {
    color: var(--primary);
    /* Orange */
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.btn-profile {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* CAROUSEL */
.banners-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.banners-carousel::-webkit-scrollbar {
    display: none;
}

.banner-item {
    min-width: 280px;
    height: 140px;
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.banner-1 {
    background: linear-gradient(135deg, #ff5e00 0%, #ff9100 100%);
    /* Orange Gradient */
}

.banner-2 {
    background: linear-gradient(135deg, #002b5c 0%, #001f3f 100%);
    /* Navy Gradient */
}

.banner-history {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.banner-item h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}

.banner-item p {
    margin: 5px 0 15px 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.btn-banner {
    background: white;
    color: var(--dark);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

/* SPORTS NAV (UPDATED) */
.sports-nav-container {
    padding: 0 20px;
    margin-bottom: 20px;
}

.sports-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.sports-nav::-webkit-scrollbar {
    display: none;
}

.nav-icon-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.nav-icon-item.active {
    opacity: 1;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #f5f6f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.nav-icon-item.active .icon-circle {
    border-color: var(--primary);
    background: #fff0f3;
}

.nav-icon-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

/* CARDS */
.games-feed {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* GROUPED LIST STYLES */
.league-header-group {
    background: #f8f9fa;
    /* Fundo cinza clarinho */
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e1e1;
}

.league-matches-list {
    background: #fff;
    border-radius: 0 0 8px 8px;
    /* Fecha o bloco da liga */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e1e1e1;
    border-top: none;
}

.match-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.row-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: #666;
}

.row-right {
    min-width: 100px;
    /* Espaço para a ODD */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tip-market {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 800;
    text-align: right;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.2;
}

.odd-button {
    background: #f1f3f5;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 10px 18px;
    /* Botão gordinho */
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 90px;
    justify-content: space-between;
}

.odd-button:hover {
    background: #e9ecef;
    border-color: #dbe4ea;
}

.odd-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.odd-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: #e90029;
}

/* CARD DESIGN PRO (SUPERBET STYLE) */
.game-card {
    background: #fff;
    border-radius: 8px;
    /* Bordas levemente arredondadas como no print */
    padding: 15px;
    margin-bottom: 5px;
    /* Espaço menor entre cards */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e6e6e6;
    position: relative;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.card-header-league {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-header-cta {
    color: #e90029;
    /* Vermelho Principal */
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.75rem;
}

.teams-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Times empilhados ou próximos */
    margin-bottom: 15px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.team-name {
    color: var(--dark);
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
}

.prob-bar-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.prob-bar-bg {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    background: var(--success);
    border-radius: 10px;
}

.prob-val {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--success);
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #cc4b00;
    /* Darker Orange Shadow */
}

.btn-action:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #cc4b00;
}

.btn-action.outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
}

.platform-badge-tiny {
    font-size: 0.65rem;
    background: #000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* Highlight Card Style */
.parlay-card {
    margin: 20px;
    margin-top: 0;
}

/* TRUST SCOREBOARD */
.trust-scoreboard {
    display: flex;
    justify-content: center;
    /* Centraliza horizontalmente */
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 25px;
}

.score-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    /* Centraliza texto interno */
    flex: 1;
    /* Distribui tamanho igual */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-card h4 {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.score-card p {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--dark);
    margin: 0;
}

.score-green {
    color: #2ecc71 !important;
}

.score-red {
    color: #e90029 !important;
}

.score-gold {
    color: #f1c40f !important;
}

/* MODAL / ONBOARDING */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Fundo Escuro */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    width: 92%;
    max-width: 360px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modal-entry 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-entry {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#bet-reminder-modal .modal-content {
    border: none;
    padding: 0;
}

.modal-header-alert {
    background: #002b5c;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.modal-header-alert h3 {
    margin: 5px 0 0 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 25px;
}

/* UTILS */
.hidden {
    display: none !important;
}

/* Desktop overrides handled by .app-container max-width */

/* --- COMBO/PARLAY CARD (MÚLTIPLAS POPULARES) --- */
.combo-section {
    background: linear-gradient(135deg, #002b5c 0%, #004085 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 43, 92, 0.25);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho no fundo */
.combo-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.combo-header {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.combo-title h2 {
    font-size: 1.1rem;
    font-weight: 900;
    font-style: italic;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.combo-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 400;
}

.fire-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse-fire 2s infinite;
}

@keyframes pulse-fire {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.combo-white-card {
    background: #fff;
    border-radius: 8px;
    color: #333;
    padding: 12px;
    position: relative;
    z-index: 1;
}

.combo-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.combo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e1e1e1;
}

.combo-item:last-of-type {
    border-bottom: none;
}

.combo-teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.combo-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.combo-odd-box {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff8f9;
    border: 1px solid #ffeef1;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #333;
}

.combo-odd-icon {
    color: #ffd700;
    /* Gold */
    font-size: 0.8rem;
}

.add-more-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border: 1px dashed #e90029;
    color: #e90029;
    font-weight: 700;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.add-more-btn:hover {
    background: #fff5f6;
}

.bonus-bar-section {
    margin-top: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #eee;
}

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

.bonus-badge {
    background: #ffd700;
    color: #000;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}

.bonus-title {
    font-size: 0.75rem;
    font-weight: 800;
    font-style: italic;
    color: #000;
}

.progress-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #f39c12 100%);
    width: 80%;
    /* Simulação */
}

.combo-footer-btn {
    margin-top: 15px;
    background: #da0027;
    /* Vermelho um pouco mais escuro p/ destaque */
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 0 #a8001e;
    /* Efeito 3D botão */
    cursor: pointer;
    transition: transform 0.1s;
    text-transform: uppercase;
}

.combo-footer-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 100%;
    align-items: center;
}

.toast {
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon {
    color: #2ecc71;
    font-size: 1.2rem;
}

/* --- PULSE ANIMATION FOR LIVE/HOT --- */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 0, 41, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(233, 0, 41, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(233, 0, 41, 0);
    }
}

.live-badge {
    animation: pulse-red 2s infinite;
}