
        :root {
            --bg-color: #0f1114;
            --bg-secondary: #1a1d21;
            --card-bg: #1e2227;
            --card-hover: #262a30;
            --primary: #00ff88;
            --primary-dark: #00cc6a;
            --secondary: #7000ff;
            --accent: #ffd700;
            --text-main: #ffffff;
            --text-secondary: #b8bcc2;
            --text-dim: #6c7177;
            --border: #2d3238;
            --border-light: #3d4248;
            --success: #00ff88;
            --danger: #ff4757;
            --warning: #ffa502;
            --live-red: #e63946;

            /* ===== PREMIUM POLISH (fifateste) ===== */
            /* Largura máxima do "shell" central (navbar + sidebar + conteúdo).
               Tudo se alinha a estas bordas, estilo bet365. */
            --shell-max: 1500px;
            --radius-md: 12px;
            --surface-grad: linear-gradient(160deg, #23282e 0%, #191d22 100%);
            --surface-grad-hover: linear-gradient(160deg, #2a3038 0%, #20252b 100%);
            --header-grad: linear-gradient(180deg, rgba(26, 29, 33, 0.82) 0%, rgba(21, 23, 26, 0.82) 100%);
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
            --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
            --glow-primary: 0 0 0 1px rgba(0, 255, 136, 0.4), 0 8px 22px rgba(0, 255, 136, 0.18);
            --hairline: rgba(255, 255, 255, 0.07);
            --ease: cubic-bezier(0.22, 1, 0.36, 1);

            /* ===== MARCA LUSA.BET ===== */
            --brand-green: #16804a;
            --brand-red: #e63946;
        }

        html {
            font-size: 14px;
            scrollbar-color: rgba(255, 255, 255, 0.18) var(--bg-secondary);
            scrollbar-width: thin;
        }

        /* Scrollbar (WebKit) */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

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

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.14);
            border: 2px solid var(--bg-secondary);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.22);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--bg-color);
            background-image:
                radial-gradient(1100px 600px at 82% -12%, rgba(0, 255, 136, 0.06), transparent 60%),
                radial-gradient(900px 520px at -10% -5%, rgba(112, 0, 255, 0.05), transparent 55%);
            background-attachment: fixed;
            color: var(--text-main);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ===== TOP NAVBAR ===== */
        .top-navbar {
            background: #004937;
            border-bottom: 1px solid rgba(0, 0, 0, 0.25);
            box-shadow: var(--shadow-sm);
            height: 48px;
            display: flex;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        /* Conteúdo da navbar centralizado no mesmo "shell" do conteúdo da página */
        .nav-inner {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: var(--shell-max);
            width: 100%;
            margin: 0 auto;
            padding: 0 16px;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        /* Hamburger (mobile only) */
        .nav-hamburger {
            display: none;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 8px;
            background: transparent;
            border: none;
            color: var(--text-main);
            cursor: pointer;
            flex-shrink: 0;
            transition: background 0.18s var(--ease);
        }

        .nav-hamburger:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-hamburger svg {
            width: 24px;
            height: 24px;
        }

        /* Drawer backdrop (mobile only) */
        .sidebar-backdrop {
            display: none;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 2px;
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-main);
            transition: opacity 0.18s var(--ease);
        }

        .logo:hover {
            opacity: 0.85;
        }

        .logo-img {
            width: 30px;
            height: 30px;
            object-fit: contain;
            display: block;
        }

        .logo-wordmark {
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .logo-wordmark .lb-lusa {
            color: var(--brand-red);
        }

        .logo-wordmark .lb-dot {
            color: #FFD60A;
        }

        .logo-wordmark .lb-bet {
            color: #FFD60A;
        }

        .nav-links {
            display: flex;
            gap: 8px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.8rem;
            font-weight: 500;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .nav-link:hover {
            background: var(--card-bg);
            color: var(--text-main);
        }

        .nav-link.active {
            background: rgba(0, 255, 136, 0.1);
            color: var(--primary);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        /* Live Badge */
        .live-indicator {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(230, 57, 70, 0.15);
            border: 1px solid rgba(230, 57, 70, 0.3);
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--live-red);
        }

        .live-dot {
            width: 8px;
            height: 8px;
            background: var(--live-red);
            border-radius: 50%;
            animation: livePulse 1.5s ease-in-out infinite;
        }

        @keyframes livePulse {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.5;
                transform: scale(1.2);
            }
        }

        /* User Section */
        .user-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .balance-display {
            background: var(--surface-grad);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            padding: 6px 12px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .balance-value {
            font-variant-numeric: tabular-nums;
        }

        .balance-refresh-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            padding: 0;
            border-radius: var(--radius-md);
            border: 1px solid var(--hairline);
            background: var(--surface-grad);
            box-shadow: var(--shadow-sm);
            color: var(--text-dim);
            cursor: pointer;
            transition: color 0.15s ease, border-color 0.15s ease;
        }

        .balance-refresh-btn:hover {
            color: var(--primary);
            border-color: var(--primary);
        }

        .balance-refresh-btn:disabled {
            cursor: default;
            opacity: 0.7;
        }

        .balance-refresh-btn svg {
            width: 16px;
            height: 16px;
        }

        .balance-refresh-btn.is-refreshing svg {
            animation: balance-refresh-spin 0.7s linear infinite;
        }

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

        .balance-label {
            font-size: 0.65rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .balance-value {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px 14px;
            font-size: 0.82rem;
            font-weight: 600;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #000;
            box-shadow: 0 2px 10px rgba(0, 255, 136, 0.22);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(0, 255, 136, 0.42);
        }

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

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

        .btn-secondary:hover {
            background: var(--card-hover);
            border-color: var(--border-light);
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-secondary);
            padding: 8px 12px;
        }

        .btn-ghost:hover {
            background: var(--card-bg);
            color: var(--text-main);
        }

        /* My Bets Button */
        .my-bets-btn {
            position: relative;
        }

        .pending-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            background: var(--brand-red);
            color: #fff;
            font-size: 0.65rem;
            font-weight: 800;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            box-shadow: 0 0 0 2px var(--bg-color);
        }

        /* Ações de autenticação (estado deslogado) */
        .auth-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Botão Sair (logado) */
        .btn-logout {
            background: transparent;
            border: 1px solid var(--hairline);
            color: var(--text-secondary);
        }

        .btn-logout:hover {
            border-color: rgba(230, 57, 70, 0.5);
            color: var(--brand-red);
            background: rgba(230, 57, 70, 0.08);
        }

        /* ===== "AO VIVO" NAV BUTTON (bet365-style) ===== */
        .nav-live-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 14px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.2px;
            white-space: nowrap;
            transition: all 0.18s var(--ease);
        }

        .nav-live-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .nav-live-btn.active {
            background: rgba(230, 57, 70, 0.18);
            border-color: rgba(230, 57, 70, 0.45);
            color: #fff;
        }

        .nav-live-dot {
            width: 8px;
            height: 8px;
            background: var(--live-red);
            border-radius: 50%;
            animation: livePulse 1.5s ease-in-out infinite;
            flex-shrink: 0;
        }

        /* ===== PROFILE AVATAR + DROPDOWN ===== */
        .profile-menu {
            position: relative;
        }

        .profile-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--surface-grad);
            border: 1px solid var(--hairline);
            color: var(--text-main);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: all 0.18s var(--ease);
        }

        .profile-avatar:hover,
        .profile-menu.open .profile-avatar {
            border-color: var(--primary);
            box-shadow: var(--glow-primary);
        }

        .profile-avatar svg {
            width: 22px;
            height: 22px;
        }

        .profile-avatar .pending-badge {
            top: -3px;
            right: -3px;
            box-shadow: 0 0 0 2px #004937;
        }

        .profile-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            min-width: 234px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
            z-index: 1100;
        }

        .profile-menu.open .profile-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .profile-dropdown-header {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding: 10px 12px;
            margin-bottom: 6px;
            border-radius: 8px;
            background: var(--bg-secondary);
        }

        .profile-dropdown-label {
            font-size: 0.62rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-dim);
        }

        .profile-dropdown-balance {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--primary);
            font-variant-numeric: tabular-nums;
        }

        .profile-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 11px 12px;
            background: transparent;
            border: none;
            border-radius: 8px;
            color: var(--text-secondary);
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 500;
            text-align: left;
            text-decoration: none;
            cursor: pointer;
            position: relative;
            transition: all 0.15s;
        }

        .profile-dropdown-item:hover {
            background: var(--card-hover);
            color: var(--text-main);
        }

        .profile-dropdown-item svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: var(--text-dim);
            transition: color 0.15s;
        }

        .profile-dropdown-item:hover svg {
            color: var(--primary);
        }

        .profile-dropdown-item.danger:hover {
            color: var(--brand-red);
            background: rgba(230, 57, 70, 0.08);
        }

        .profile-dropdown-item.danger:hover svg {
            color: var(--brand-red);
        }

        .profile-dropdown-divider {
            height: 1px;
            background: var(--border);
            margin: 6px 4px;
        }

        /* ===== MAIN LAYOUT ===== */
        .main-container {
            display: flex;
            gap: 18px;
            max-width: var(--shell-max);
            width: 100%;
            margin: 0 auto;
            padding: 0 16px;
            min-height: calc(100vh - 48px);
        }

        /* ===== SIDEBAR ===== */
        .sidebar {
            width: 240px;
            flex-shrink: 0;
            background: var(--bg-secondary);
            border-right: 1px solid var(--border);
            padding: 16px 0;
            overflow-y: auto;
            position: sticky;
            top: 48px;
            height: calc(100vh - 48px);
        }

        .sidebar-section {
            margin-bottom: 24px;
        }

        .sidebar-title {
            padding: 0 16px;
            margin-bottom: 8px;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 14px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.15s;
            cursor: pointer;
            border-left: 3px solid transparent;
        }

        .sidebar-item:hover {
            background: var(--card-bg);
            color: var(--text-main);
        }

        .sidebar-item.active {
            background: rgba(0, 255, 136, 0.08);
            color: var(--primary);
            border-left-color: var(--primary);
        }

        .sidebar-item.preview:not(.active) {
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-main);
            border-left-color: rgba(255, 255, 255, 0.08);
        }

        .sidebar-item-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-dim);
        }

        .sidebar-item-count {
            margin-left: auto;
            background: var(--card-bg);
            color: var(--text-dim);
            font-size: 0.7rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
        }

        .sidebar-item.active .sidebar-item-count {
            background: rgba(0, 255, 136, 0.15);
            color: var(--primary);
        }

        .sidebar-item-action {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-secondary);
            font-size: 0.7rem;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s;
        }

        .sidebar-item-action:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
            color: var(--text-main);
        }

        .sidebar-item.active .sidebar-item-action {
            background: rgba(0, 255, 136, 0.12);
            border-color: rgba(0, 255, 136, 0.25);
            color: var(--primary);
        }

        /* Compact match list inside sidebar (active league) */
        .sidebar-matches {
            padding: 6px 10px 12px 34px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        .sidebar-match {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 10px 10px;
            border-radius: 8px;
            cursor: pointer;
            user-select: none;
            transition: background 0.15s, border-color 0.15s;
            border: 1px solid transparent;
        }

        .sidebar-match:hover {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .sidebar-match-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .sidebar-match-time {
            font-size: 0.68rem;
            font-weight: 700;
            color: var(--text-dim);
            font-variant-numeric: tabular-nums;
        }

        .sidebar-match-market {
            font-size: 0.68rem;
            font-weight: 800;
            color: var(--text-secondary);
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 3px 8px;
            border-radius: 999px;
            letter-spacing: 0.4px;
            max-width: 65%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-match-lines {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        .sidebar-match-line {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .sidebar-match-team {
            font-size: 0.78rem;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.15;
            min-width: 0;
        }

        .sidebar-match-score {
            font-size: 0.82rem;
            font-weight: 800;
            color: var(--text-main);
            font-variant-numeric: tabular-nums;
            flex: none;
            min-width: 14px;
            text-align: right;
        }

        .sidebar-match-odds {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 6px;
        }

        .sidebar-odd {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 32px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.06);
            line-height: 1.05;
            font-variant-numeric: tabular-nums;
        }

        .sidebar-odd-label {
            font-size: 0.62rem;
            color: var(--text-dim);
            font-weight: 700;
        }

        .sidebar-odd-value {
            font-size: 0.8rem;
            font-weight: 900;
            color: var(--primary);
        }

        .sidebar-odd.locked {
            opacity: 0.55;
        }

        .sidebar-match-markets {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .sidebar-match-markets-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: 0.65rem;
            color: var(--text-dim);
            font-weight: 700;
            cursor: pointer;
            user-select: none;
        }

        .sidebar-match-markets-label:hover {
            color: var(--text-secondary);
        }

        .sidebar-markets-chevron {
            width: 14px;
            height: 14px;
            transition: transform 0.15s ease;
            opacity: 0.75;
        }

        .sidebar-match-markets.expanded .sidebar-markets-chevron {
            transform: rotate(180deg);
        }

        .sidebar-match-markets-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .sidebar-chip {
            max-width: 100%;
            font-size: 0.68rem;
            color: var(--text-secondary);
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            padding: 4px 8px;
            border-radius: 999px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-markets-panel {
            display: none;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            gap: 8px;
            flex-direction: column;
            max-height: 360px;
            overflow-y: auto;
        }

        .sidebar-match-markets.expanded .sidebar-markets-panel {
            display: flex;
        }

        .sidebar-market {
            background: rgba(0, 0, 0, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 10px;
            overflow: hidden;
        }

        .sidebar-market-name {
            padding: 8px 10px;
            font-size: 0.72rem;
            font-weight: 800;
            color: var(--text-secondary);
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .sidebar-market-odds {
            display: grid;
            grid-template-columns: 1fr;
            gap: 6px;
            padding: 8px 10px 10px;
        }

        .sidebar-market-odd {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 7px 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .sidebar-market-odd-name {
            font-size: 0.68rem;
            color: var(--text-secondary);
            white-space: normal;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            min-width: 0;
            line-height: 1.15;
        }

        .sidebar-market-odd-price {
            font-size: 0.78rem;
            font-weight: 900;
            color: var(--primary);
            font-variant-numeric: tabular-nums;
            flex: none;
        }

        .sidebar-market-more {
            grid-column: 1 / -1;
            font-size: 0.68rem;
            color: var(--text-dim);
            padding: 2px 2px 0;
        }

        /* ===== CONTENT AREA ===== */
        .content-area {
            flex: 1;
            min-width: 0;
            padding: 16px 0;
            overflow-y: auto;
        }

        @yield('layout-styles')

        /* ===== MODALS ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 32px;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: modalSlideIn 0.25s ease-out;
            position: relative;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }

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

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-dim);
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: rgba(255, 71, 87, 0.15);
            border-color: rgba(255, 71, 87, 0.3);
            color: var(--danger);
        }

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

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 6px;
        }

        .modal-subtitle {
            font-size: 0.875rem;
            color: var(--text-dim);
        }

        /* Logo dentro dos modais (login/cadastro) */
        .modal-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
            margin-bottom: 18px;
        }

        .modal-logo .logo-img {
            width: 42px;
            height: 42px;
        }

        .modal-logo .logo-wordmark {
            font-size: 1.55rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .modal-logo .lb-lusa {
            color: var(--brand-red);
        }

        .modal-logo .lb-dot,
        .modal-logo .lb-bet {
            color: #FFD60A;
        }

        /* Aceite dos termos no cadastro */
        .register-terms {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            margin: 4px 0 18px;
            font-size: 0.8125rem;
            line-height: 1.45;
            color: var(--text-dim);
        }

        .register-terms input[type="checkbox"] {
            width: 17px;
            height: 17px;
            margin-top: 1px;
            flex-shrink: 0;
            accent-color: var(--secondary, var(--brand-green));
            cursor: pointer;
        }

        .register-terms .terms-link {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
        }

        .register-terms .terms-link:hover {
            text-decoration: underline;
        }

        /* Modal de Termos e Condições */
        .terms-modal-content {
            max-width: 560px;
            max-height: 86vh;
            display: flex;
            flex-direction: column;
            padding: 28px 28px 24px;
        }

        .terms-body {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding-right: 10px;
            margin-top: 4px;
            -webkit-overflow-scrolling: touch;
        }

        .terms-body::-webkit-scrollbar {
            width: 7px;
        }

        .terms-body::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
        }

        .terms-body h3 {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-main);
            margin: 18px 0 6px;
        }

        .terms-body h3:first-child {
            margin-top: 0;
        }

        .terms-body p {
            font-size: 0.85rem;
            line-height: 1.6;
            color: var(--text-dim);
            margin: 0 0 4px;
        }

        .terms-modal-footer {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            flex-shrink: 0;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .form-input {
            width: 100%;
            padding: 12px 14px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-main);
            font-size: 0.95rem;
            font-family: inherit;
            transition: all 0.2s;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
        }

        .form-input::placeholder {
            color: var(--text-dim);
        }

        .error-message {
            background: rgba(255, 71, 87, 0.1);
            border: 1px solid rgba(255, 71, 87, 0.2);
            color: var(--danger);
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 16px;
            font-size: 0.875rem;
            display: none;
        }

        .error-message.active {
            display: block;
        }

        /* ===== DEPOSIT MODAL ===== */
        .deposit-amount-wrap {
            display: flex;
            align-items: center;
            background: var(--bg-color);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0 14px;
            transition: border-color 0.18s var(--ease);
        }

        .deposit-amount-wrap:focus-within {
            border-color: var(--primary);
        }

        .deposit-currency {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-dim);
            margin-right: 6px;
        }

        .deposit-amount-input {
            border: none !important;
            background: transparent !important;
            padding: 14px 0 !important;
            font-size: 1.4rem;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
        }

        .deposit-amount-input:focus {
            box-shadow: none !important;
        }

        .deposit-chips {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .deposit-chip {
            flex: 1;
            padding: 8px 0;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-secondary);
            font-family: inherit;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s var(--ease);
        }

        .deposit-chip:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .deposit-hint {
            display: block;
            margin-top: 6px;
            font-size: 0.75rem;
            color: var(--text-dim);
        }

        .deposit-status {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            margin-bottom: 16px;
            border-radius: 8px;
            background: rgba(255, 165, 2, 0.1);
            color: var(--warning);
            font-size: 0.85rem;
            font-weight: 600;
        }

        .deposit-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--warning);
            animation: livePulse 1.5s ease-in-out infinite;
        }

        .deposit-status.paid {
            background: rgba(0, 255, 136, 0.12);
            color: var(--primary);
        }

        .deposit-status.paid .deposit-status-dot {
            background: var(--primary);
            animation: none;
        }

        .deposit-qr-box {
            display: none;
            justify-content: center;
            margin: 4px 0 16px;
        }

        .deposit-qr-box.show {
            display: flex;
        }

        .deposit-qr-box .deposit-qr-inner {
            background: #fff;
            padding: 12px;
            border-radius: 12px;
            line-height: 0;
        }

        .deposit-qr-box img {
            display: block;
            width: 200px;
            height: 200px;
            image-rendering: pixelated;
        }

        .deposit-pix-box {
            margin: 8px 0 12px;
        }

        .deposit-pix-code {
            width: 100%;
            resize: none;
            background: var(--bg-color);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px;
            color: var(--text-secondary);
            font-family: monospace;
            font-size: 0.78rem;
            word-break: break-all;
        }

        /* ===== BET SLIP MODAL ===== */
        .bet-slip-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(2px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }

        .bet-slip-modal.active {
            display: flex;
        }

        .bet-slip-content {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            width: 90%;
            max-width: 380px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            animation: modalSlideIn 0.2s ease-out;
            display: flex;
            flex-direction: column;
            max-height: 85vh;
            overflow: hidden;
        }

        .bet-slip-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-secondary);
        }

        .bet-slip-title {
            font-size: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bet-slip-body {
            padding: 20px;
            overflow-y: auto;
        }

        .bet-slip-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border);
            background: var(--bg-secondary);
        }

        /* Bet Selection Styles */
        .bet-selection {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
        }

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

        .bet-selection-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-main);
        }

        .bet-selection-odd {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary);
            background: rgba(0, 255, 136, 0.1);
            padding: 4px 12px;
            border-radius: 6px;
        }

        .bet-match-info {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .bet-market-info {
            font-size: 0.75rem;
            color: var(--text-dim);
        }

        .bet-balance-info {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px 16px;
            margin-bottom: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .bet-stake-input {
            width: 100%;
            background: var(--bg-color);
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 14px 16px;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
            font-family: inherit;
            transition: all 0.2s;
        }

        .bet-stake-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .bet-stake-input::-webkit-outer-spin-button,
        .bet-stake-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .bet-potential-win {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }

        .bet-potential-label {
            font-size: 0.85rem;
            color: var(--text-dim);
        }

        .bet-potential-value {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary);
        }

        .bet-place-button {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #000;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
            font-family: inherit;
        }

        .bet-place-button:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0, 255, 136, 0.4);
        }

        .bet-place-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .bet-processing {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: inherit;
            border-radius: 8px;
            align-items: center;
            justify-content: center;
        }

        .bet-processing.active {
            display: flex !important;
        }

        .bet-spinner {
            width: 20px;
            height: 20px;
            border: 3px solid rgba(0, 0, 0, 0.2);
            border-top-color: #000;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        /* Locked Odds */
        .odd-box.locked,
        .odd-item.locked {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .sidebar {
                width: 210px;
            }
        }

        @media (max-width: 768px) {
            /* Sidebar turns into a slide-in drawer */
            .sidebar {
                display: block;
                position: fixed;
                top: 48px;
                left: 0;
                height: calc(100vh - 48px);
                width: 280px;
                max-width: 82vw;
                transform: translateX(-100%);
                transition: transform 0.28s var(--ease);
                z-index: 1500;
                box-shadow: 6px 0 32px rgba(0, 0, 0, 0.5);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .sidebar-backdrop {
                display: block;
                position: fixed;
                top: 48px;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.55);
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.28s var(--ease), visibility 0.28s;
                z-index: 1400;
            }

            .sidebar-backdrop.open {
                opacity: 1;
                visibility: visible;
            }

            .nav-hamburger {
                display: flex;
            }

            .nav-links {
                display: none;
            }

            .main-container {
                padding: 0;
                gap: 0;
            }

            .content-area {
                padding: 12px;
            }

            .top-navbar {
                padding: 0 10px;
                gap: 8px;
            }

            .nav-left {
                gap: 10px;
                min-width: 0;
            }

            .logo {
                font-size: 1rem;
            }

            .logo-img {
                width: 26px;
                height: 26px;
            }

            .nav-live-btn {
                padding: 6px 11px;
                font-size: 0.8rem;
            }

            .nav-right {
                gap: 10px;
            }

            .user-section {
                gap: 10px;
            }

            .balance-display {
                padding: 4px 8px;
            }

            .balance-label {
                font-size: 0.58rem;
            }

            .balance-value {
                font-size: 0.82rem;
            }

            .profile-avatar {
                width: 36px;
                height: 36px;
            }

            .profile-avatar svg {
                width: 20px;
                height: 20px;
            }

            /* Login/register buttons stay compact */
            .auth-actions .btn {
                padding: 8px 12px;
            }
        }

        @media (max-width: 380px) {
            .logo-wordmark {
                display: none;
            }

            .balance-label {
                display: none;
            }
        }
    