/* ========================================
   CSS Variables
======================================== */
:root {
    --primary: #0f1226;
    --secondary: #151a35;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --accent-dark: #6d28d9;
    --dark: #0a0b1a;
    --card-bg: #1a1d3a;
    --card-hover: #242849;
    --success: #22c55e;
    --success-light: #4ade80;
    --warning: #f59e0b;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --danger: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.06);
}

/* ========================================
   Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* Main Content Area */
#mainContent {
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Header
======================================== */
.app-header {
    background: linear-gradient(180deg, #0f1226 0%, #0a0b1a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--success-light);
    font-size: 16px;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.55));
    transform: rotate(-15deg);
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.theme-toggle {
    position: relative;
    width: 36px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--success) 0%, var(--success-light) 100%);
    border: none;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.balance-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.balance-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.profile-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ========================================
   Bottom Navigation
======================================== */
.bottom-nav {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(180deg, #0d1024 0%, #050614 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 11px;
    min-width: 60px;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.25s ease;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.nav-item:hover {
    color: var(--gold-light);
}

.nav-item.active {
    color: var(--gold-light);
}

.nav-item.active .nav-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #1a1208;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.45);
}

.nav-item.deposit-btn {
    position: relative;
    color: var(--gold-light);
}

.deposit-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fde68a 0%, var(--gold-light) 35%, var(--gold) 70%, #b45309 100%);
    color: #1a1208;
    font-size: 18px;
    font-weight: 800;
    box-shadow:
        0 10px 22px rgba(245, 158, 11, 0.5),
        0 0 0 4px rgba(245, 158, 11, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-item.deposit-btn:hover .deposit-fab {
    transform: translateY(-2px) scale(1.04);
}

/* ========================================
   Welcome Card
======================================== */
.welcome-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.05) 35%, transparent 60%),
        linear-gradient(135deg, #1a1d3a 0%, #151a35 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.welcome-card .greeting {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.welcome-card .user-name {
    color: var(--accent-light);
    font-weight: 700;
    text-transform: lowercase;
}

.welcome-card .balance-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(156, 163, 175, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.invite-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #7c3aed 100%);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.invite-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ========================================
   Game Cards
======================================== */
.games-grid {
    display: flex;
    gap: 8px;
    width: 100%;
}

.games-grid .game-card {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 120px;
}

.games-grid .game-card:hover {
    transform: scale(1.02);
}

.games-grid .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: scale(1.02);
}

.game-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* Aposta Casada Banner */
.game-card img[alt="Aposta Casada"] {
    height: 200px;
    object-fit: cover;
}

/* Casino and Bingo Cards */
.games-grid .game-card img[alt="Cassino"],
.games-grid .game-card img[alt="Bingo"] {
    height: 120px;
    object-fit: cover;
}

/* Sinuca Toggle */
.sinuca-toggle {
    width: 36px;
    height: 18px;
    border-radius: 9px;
    background: transparent;
    padding: 0;
}

.sinuca-toggle-track {
    display: inline-flex;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--border-color);
    position: relative;
    transition: background 0.3s ease;
}

.sinuca-toggle-track.active {
    background: var(--success);
}

.sinuca-toggle-thumb {
    position: absolute;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
}

.sinuca-toggle-thumb.active {
    transform: translateX(18px);
}

header.hidden,
#bottomNav.hidden {
    display: none;
}

/* ========================================
   Section Headers
======================================== */
.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Service Grid
======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-item {
    background: linear-gradient(180deg, #1a1d3a 0%, #161936 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.service-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.service-item .service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-light);
    font-size: 18px;
}

.service-item span.service-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(203, 213, 225, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning);
    color: var(--dark);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ========================================
   Modals
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--secondary);
}

/* ========================================
   Toast Notifications
======================================== */
.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.warning {
    border-color: var(--warning);
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toast.success .toast-icon {
    background: var(--success);
    color: white;
}

.toast.error .toast-icon {
    background: var(--danger);
    color: white;
}

.toast.warning .toast-icon {
    background: var(--warning);
    color: var(--dark);
}

/* ========================================
   Form Elements
======================================== */
.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.input-field::placeholder {
    color: var(--text-secondary);
}

/* ========================================
   Quick Values
======================================== */
.quick-values {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-value {
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-value:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ========================================
   Página Sinuca / Partida
======================================== */
#sinucaPage {
    background: var(--dark);
}

.bg-primary {
    background: var(--primary);
}

.bg-secondary {
    background: var(--secondary);
}

.bg-dark {
    background: var(--dark);
}

.bg-card-bg {
    background: var(--card-bg);
}

.status-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.status-tab.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--text-primary);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.game-match-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(30, 30, 63, 0.95), rgba(15, 15, 26, 0.95));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.game-match-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.betting-option {
    text-align: left;
    border-radius: 18px;
    padding: 18px;
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.25s ease;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.betting-option:hover,
.betting-option.selected {
    border-color: var(--accent);
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

.betting-modal-option {
    width: 100%;
    text-align: left;
    padding: 14px;
    border-radius: 16px;
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.betting-modal-option.selected {
    border-color: var(--warning);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
}

.betting-modal-option:hover {
    border-color: var(--accent);
}

.stats-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--secondary);
    border-radius: 18px;
}

.sinuca-match-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(30, 30, 63, 0.95), rgba(15, 15, 26, 0.95));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    min-height: 400px;
}

.betting-tab {
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.betting-tab:hover {
    background: var(--accent) !important;
    color: white !important;
}

.betting-tab.active {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #60a5fa;
}

/* Match Detail Card - Mobile First */
.match-detail-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 16px;
}

.match-detail-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.match-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.match-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, var(--card-bg) 100%);
    pointer-events: none;
}

.match-detail-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(10, 11, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
}

.match-detail-badge-bottom {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(10, 11, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
}

.match-detail-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.match-detail-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.match-detail-tab {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.match-detail-tab.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.match-detail-players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

/* Novo layout - Jogadores com fotos nas extremidades e contadores */
.match-detail-players-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding: 12px 0;
}

.match-detail-player-left,
.match-detail-player-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.match-detail-player-left {
    flex-direction: row;
}

.match-detail-player-right {
    flex-direction: row-reverse;
}

.match-detail-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.match-detail-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-detail-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.match-detail-player-left .match-detail-player-info {
    align-items: flex-start;
}

.match-detail-player-right .match-detail-player-info {
    align-items: flex-end;
}

.match-detail-score-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.match-detail-score-value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.match-detail-vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.match-detail-vs-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.match-detail-time-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
}

.match-detail-time-badge i {
    font-size: 10px;
}

/* Barra de Odds/Progresso */
.match-detail-odds-bar-container {
    margin: 16px 0;
    padding: 0 4px;
}

.match-detail-odds-bar {
    display: flex;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-detail-odds-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
    position: relative;
}

.match-detail-odds-first {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.match-detail-odds-second {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.match-detail-odds-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.match-detail-odds-percent {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.match-detail-odds-name {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-detail-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.match-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.match-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-detail-player-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.match-detail-odds {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
}

.match-detail-score {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.match-detail-score-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
}

.match-detail-vs {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

.match-detail-bet-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #1a1208;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.match-detail-bet-btn:active {
    transform: scale(0.98);
}

.match-detail-bet-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ========================================
   Animations
======================================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.page-enter {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   Responsive Design
======================================== */
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Utility Classes
======================================== */
.text-accent {
    color: var(--accent-light);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-success {
    background-color: var(--success);
}

.bg-warning {
    background-color: var(--warning);
}

.bg-danger {
    background-color: var(--danger);
}

.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Header Back + Title (páginas internas)
======================================== */
.header-back {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.header-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Matches Page
======================================== */
.matches-page {
    padding: 16px;
}

.matches-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.match-status-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.match-status-pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.match-status-pill.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #1a1208;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
}

.match-status-pill i {
    font-size: 12px;
}

/* Skeletons */
.matches-skeleton {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skeleton-row {
    height: 74px;
    border-radius: 16px;
    background: linear-gradient(
        90deg,
        rgba(30, 33, 58, 0.6) 0%,
        rgba(42, 46, 76, 0.8) 50%,
        rgba(30, 33, 58, 0.6) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.matches-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #6b7a9e;
}

.matches-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.matches-empty p {
    font-size: 14px;
    font-weight: 500;
}

/* Match List Card - Mobile First */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-list-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.match-list-card:active {
    transform: scale(0.98);
    background: var(--card-hover);
}

.match-list-card--bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: rgba(255, 255, 255, 0.10);
}
.match-list-card--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,11,26,0.84) 0%, rgba(10,11,26,0.76) 100%);
    border-radius: 16px;
    z-index: 0;
}
.match-list-card--bg > * {
    position: relative;
    z-index: 1;
}
.match-list-card--bg:active {
    background-color: transparent;
}

.match-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.match-list-sport {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-list-sport-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 12px;
}

.match-list-sport-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-list-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.match-list-status.live {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.match-list-status.finished {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
}

.match-list-status.scheduled {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.match-list-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-list-player {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.match-list-player.winner {
    opacity: 1;
}

.match-list-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.match-list-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2e4c;
    border: 2px solid #2a2e4c;
}

.match-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-winner {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: #1a1208;
    border: 1px solid var(--card-bg);
}

.match-list-player-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.match-list-player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-list-odds {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
}

.match-list-score {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.match-list-score.winner {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.match-list-vs {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    flex-shrink: 0;
    padding: 0 2px;
}

.match-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.match-list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.match-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.match-list-meta i {
    font-size: 10px;
}

.match-list-action {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-list-action.bet-open {
    color: var(--gold);
}

/* ========================================
   Deposit Page
======================================== */
.quick-amount-btn {
    padding: 16px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.quick-amount-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-light);
}

.quick-amount-btn.selected {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #1a1208;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* ========================================
   Games Page
======================================== */
.sport-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sport-filter-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-light);
}

.sport-filter-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.sport-filter-btn i {
    font-size: 14px;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-item-card {
    background: linear-gradient(180deg, #1a1d3a 0%, #15182f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.game-item-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.game-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(21, 24, 47, 0.9) 100%);
    pointer-events: none;
}

.game-item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(10, 11, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.game-item-content {
    padding: 16px;
}

.game-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.game-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-item-matches {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.game-item-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.game-item-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.game-item-status.inactive {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.games-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-game {
    height: 220px;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        rgba(30, 33, 58, 0.6) 0%,
        rgba(42, 46, 76, 0.8) 50%,
        rgba(30, 33, 58, 0.6) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ========================================
   Profile Page
======================================== */
.profile-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 6px;
}

.profile-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.profile-card {
    background: linear-gradient(180deg, #1a1d3a 0%, #15182f 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.profile-avatar-text {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.settings-section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.25s ease;
}

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

.settings-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin: 0 -12px;
    padding: 16px 12px;
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 16px;
    flex-shrink: 0;
}

.settings-item-icon.text-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.settings-item-content {
    flex: 1;
}

.settings-item-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.settings-item-label.text-danger {
    color: var(--danger);
}

.settings-item-value {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-item-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.settings-item-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Wallet Page
======================================== */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.3);
}

.wallet-balance-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.wallet-balance-value {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
}

.wallet-balance-actions {
    display: flex;
    gap: 12px;
}

.wallet-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-action-btn.deposit {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.wallet-action-btn.deposit:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wallet-action-btn.withdraw {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.wallet-action-btn.withdraw:hover {
    background: rgba(0, 0, 0, 0.3);
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    transition: background 0.2s ease;
}

.transaction-item:active {
    background: var(--card-hover);
}

.transaction-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.transaction-item-icon.credit {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.transaction-item-icon.debit {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.transaction-item-content {
    flex: 1;
    min-width: 0;
}

.transaction-item-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-item-date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.transaction-item-amount {
    text-align: right;
    flex-shrink: 0;
}

.transaction-item-amount p:first-child {
    font-size: 14px;
}

.transaction-item-status {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ════════════════════════════════════════════════
   MATCH PAGE — layout unificado (referência)
════════════════════════════════════════════════ */
.match-page { display: flex; flex-direction: column; }
.match-page-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; }

/* ── HERO (novo) ── */
.mh-hero {
    position: relative;
    min-height: 270px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 12px 12px 0;
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
}
.mh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,10,24,0.6) 0%, rgba(8,10,24,0.82) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 14px 18px;
    gap: 10px;
    min-height: 270px;
}

/* topo */
.mh-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.mh-sport-badge {
    background: #f59e0b;
    color: #0f1226;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 13px;
    border-radius: 999px;
    letter-spacing: 0.8px;
}
.mh-status-badge {
    background: rgba(8,10,24,0.7);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    color: #d1d5db;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 60%;
    text-align: right;
}

/* modalidade */
.mh-modality-pill {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 999px;
    text-align: center;
}

/* jogadores */
.mh-players-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
    gap: 8px;
}
.mh-player-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.mh-av {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.35);
    flex-shrink: 0;
}
.mh-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-av--p1 { border-color: rgba(34,197,94,0.55); }
.mh-av--p2 { border-color: rgba(239,68,68,0.55); }
.mh-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9);
    line-height: 1.25;
}

/* score */
.mh-score-col {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.mh-num {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1;
    min-width: 34px;
    text-align: center;
}
.mh-vs-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(249,115,22,0.55);
}

/* título / subtítulo */
.mh-title-pill {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.45);
    padding: 4px 16px;
    border-radius: 999px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ── BARRA DE APOSTAS (nova) ── */
.mh-bets-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 12px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 20px 20px;
}
.mh-bets-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.mh-bets-side--right { flex-direction: row-reverse; }
.mh-bets-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.12);
    background: #1a1d3a;
    flex-shrink: 0;
}
.mh-bets-av img { width: 100%; height: 100%; object-fit: cover; }
.mh-bets-pct {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    min-width: 34px;
}
.mh-bets-side--right .mh-bets-pct { text-align: right; }
.mh-bets-track {
    flex: 1;
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.mh-bets-fill { height: 100%; transition: width 0.5s ease; }
.mh-bets-fill--p1 { background: linear-gradient(90deg, #f59e0b, #f97316); }
.mh-bets-fill--p2 { background: linear-gradient(90deg, #16a34a, #22c55e); }

/* ── BARRA DE ODDS (legado) ── */
.odds-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 12px 16px;
}
.odds-bar-side {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.odds-bar-side--right { flex-direction: row-reverse; }
.odds-bar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}
.odds-bar-pct {
    font-size: 13px;
    font-weight: 700;
    color: #d1d5db;
    min-width: 34px;
    text-align: center;
}
.odds-bar-track {
    flex: 1;
    display: flex;
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}
.odds-bar-seg { height: 100%; transition: width 0.4s ease; }
.odds-bar-seg--p1 { background: linear-gradient(90deg, #f59e0b, #f97316); }
.odds-bar-seg--p2 { background: linear-gradient(90deg, #16a34a, #22c55e); }

/* ── BARRA DE APOSTAS ── */
.bets-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 12px;
    margin: -4px 0 4px;
}
.bets-bar-side {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}
.bets-bar-side--right { justify-content: flex-end; }
.bets-bar-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}
.bets-bar-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 34px;
    text-align: center;
}
.bets-bar-track {
    flex: 1;
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}
.bets-bar-seg { height: 100%; transition: width 0.4s ease; }
.bets-bar-seg--p1 { background: linear-gradient(90deg, #f59e0b, #f97316); }
.bets-bar-seg--p2 { background: linear-gradient(90deg, #16a34a, #22c55e); }

/* ── CARD DE PARTIDA v2 ── */
.match-card-v2 {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.15s;
}
.match-card-v2:active { transform: scale(0.98); }

/* Seção da imagem (topo) */
.mc-image {
    position: relative;
    height: 140px;
    background-color: #1a1d3a;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}
.mc-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,12,30,0.4) 0%, rgba(10,12,30,0.2) 50%, rgba(10,12,30,0.6) 100%);
}
.mc-image-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mc-image-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}
.mc-badge-sport {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15,18,38,0.75);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mc-badge-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15,18,38,0.7);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.mc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(220,38,38,0.85);
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}
.mc-finished-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(50,50,70,0.85);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

/* Seção inferior (escura) */
.mc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mc-modalities {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.mc-modality-pill {
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Jogadores */
.mc-players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mc-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}
.mc-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    background: #1a1d3a;
}
.mc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mc-avatar.winner {
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.35);
}
.mc-player-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}
.mc-odds {
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
}

/* Score */
.mc-score-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.mc-score {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}
.mc-score.winner {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}
.mc-vs {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
}

/* Botão */
.mc-bet-btn {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s;
}
.mc-bet-btn:active { transform: scale(0.97); }
.mc-bet-btn--locked {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    cursor: default;
}

/* ── DETALHES DA PARTIDA ── */
.md-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255,255,255,0.04);
}
.md-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    padding: 14px 16px 12px;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.md-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--card-bg);
    text-align: center;
}
.md-item:last-child { border-radius: 0 0 16px 16px; }
.md-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.md-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}
.md-item-label {
    font-size: 10px;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.md-item-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}
.md-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    margin-top: 2px;
}
.md-status-badge--open   { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.md-status-badge--closed { background: rgba(239,68,68,0.15);   color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* ── BOTÃO APOSTAR ── */
.apostar-btn {
    width: 100%;
    background: #22c55e;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 6px 20px rgba(34,197,94,0.35);
}
.apostar-btn:active  { transform: scale(0.98); }
.apostar-btn:hover   { background: #16a34a; }
.apostar-btn--disabled {
    background: #374151;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}
.apostar-btn--live {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 6px 20px rgba(245,158,11,0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
    50% { box-shadow: 0 6px 30px rgba(245,158,11,0.6); }
}

/* ── MINHAS APOSTAS / STREAM ── */
.match-section-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
}
.match-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.match-section-refresh {
    color: #6b7280;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.match-section-empty {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    padding: 20px 16px;
}

/* ── ITENS DE APOSTA (Minhas Apostas) ── */
.mbi-row {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mbi-row:last-child { border-bottom: none; }
.mbi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mbi-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.mbi-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.mbi-pending   { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.mbi-won       { background: rgba(34,197,94,0.12);   color: #22c55e; border: 1px solid rgba(34,197,94,0.25);  }
.mbi-lost      { background: rgba(239,68,68,0.12);   color: #ef4444; border: 1px solid rgba(239,68,68,0.25);  }
.mbi-cancelled { background: rgba(107,114,128,0.12); color: #9ca3af; border: 1px solid rgba(107,114,128,0.25); }
.mbi-confirmed { background: rgba(34,197,94,0.15);   color: #22c55e; border: 1px solid rgba(34,197,94,0.35);  }
.mbi-partial   { background: rgba(99,102,241,0.15);  color: #818cf8; border: 1px solid rgba(99,102,241,0.35); }
.mbi-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #9ca3af;
}
.mbi-details strong { color: #e5e7eb; }
.mbi-matched   { color: #22c55e; }
.mbi-unmatched { color: #fbbf24; }
.mbi-code {
    font-size: 10px;
    color: #4b5563;
    font-family: monospace;
}

.match-stream-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
}
.match-stream-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* ── PAINEL DE APOSTA (MODAL) ── */
.bp-panel { display: flex; flex-direction: column; gap: 0; }
.bp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 16px;
}
.bp-title { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.bp-close {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none; color: #9ca3af; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.bp-section-label {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.bp-step {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(124,58,237,0.2);
    color: var(--accent-light);
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.bp-competitors { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.bp-competitor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.bp-competitor--active {
    border-color: rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.1);
}
.bp-comp-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.bp-comp-avatar--icon {
    background: rgba(124,58,237,0.2);
    color: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.bp-comp-name { flex: 1; font-size: 14px; font-weight: 600; color: #fff; }
.bp-comp-odds { font-size: 12px; font-weight: 700; color: #f59e0b; }
.bp-radio {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #374151;
    flex-shrink: 0;
    transition: all 0.2s;
}
.bp-radio--active {
    border-color: var(--accent);
    background: radial-gradient(circle, var(--accent) 50%, transparent 55%);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
.bp-amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px 12px;
}
.bp-amount-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 20px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.2s;
}
.bp-amount-btn:hover { background: rgba(255,255,255,0.15); }
.bp-amount-display {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.bp-amount-currency { font-size: 14px; font-weight: 700; color: #9ca3af; }
.bp-amount-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    width: 100px;
    text-align: center;
    outline: none;
}
.bp-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    align-items: center;
}
.bp-quick-label { font-size: 10px; font-weight: 700; color: #6b7280; width: 100%; }
.bp-quick-val {
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bp-quick-val:hover { background: rgba(255,255,255,0.12); color: #fff; }
.bp-quick-clear {
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
}
.bp-potential {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #d1fae5;
    margin-bottom: 14px;
    text-align: center;
}
.bp-potential strong { color: #22c55e; }
.bp-confirm-btn {
    width: 100%;
    background: #22c55e;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    box-shadow: 0 4px 16px rgba(34,197,94,0.3);
    margin-bottom: 12px;
}
.bp-confirm-btn:hover { background: #16a34a; }
.bp-confirm-btn--disabled,
.bp-confirm-btn:disabled {
    background: #374151;
    color: #6b7280;
    box-shadow: none;
    cursor: not-allowed;
}
.bp-balance {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}
.bp-balance strong { color: #d1d5db; }
