
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #080d1c;
            color: #e2e8f0;
            overflow-x: hidden;
        }

        ::-webkit-scrollbar {
            width: 5px;
            height: 5px;
        }

        ::-webkit-scrollbar-track {
            background: #111628;
        }

        ::-webkit-scrollbar-thumb {
            background: #2d3452;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #10b981;
        }

        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .glass {
            background: rgba(17, 22, 40, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(45, 52, 82, 0.5);
        }

        .glass-card {
            background: rgba(22, 27, 46, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(45, 52, 82, 0.4);
        }

        .gradient-border {
            position: relative;
        }

        .gradient-border::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(6, 95, 70, 0.1), rgba(16, 185, 129, 0.3));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .odds-btn {
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .odds-btn:hover {
            background: rgba(16, 185, 129, 0.15) !important;
            border-color: rgba(16, 185, 129, 0.5) !important;
            transform: translateY(-1px);
        }

        .odds-btn.selected {
            background: rgba(16, 185, 129, 0.2) !important;
            border-color: #10b981 !important;
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
        }

        .game-card-wrap {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .game-card-wrap:hover {
            transform: translateY(-8px) scale(1.02);
        }

        .game-card-wrap:hover .game-overlay {
            opacity: 1;
        }

        .game-card-wrap:hover .play-icon {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        .game-overlay {
            transition: opacity 0.3s ease;
        }

        .play-icon {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-item {
            transition: all 0.2s ease;
        }

        .sidebar-item:hover,
        .sidebar-item.active {
            background: rgba(16, 185, 129, 0.08);
            color: #10b981;
        }

        .sidebar-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: #10b981;
            border-radius: 0 4px 4px 0;
        }

        .home-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            color: #94a3b8;
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(45, 52, 82, 0.6);
            transition: all 0.2s ease;
        }
        .home-pill:hover { color: #e2e8f0; border-color: rgba(16, 185, 129, 0.35); }
        .home-pill.on {
            color: #34d399;
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.35);
        }
        .home-promo { backdrop-filter: blur(8px); }
        .home-stat { transition: border-color 0.2s; }
        .home-stat:hover { border-color: rgba(16, 185, 129, 0.25); }

        .betslip-item {
            animation: slideIn 0.3s ease-out;
        }

        .mobile-drawer {
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.betslip-open #mobile-bottom-nav {
            display: none !important;
        }

        .slip-actions {
            position: sticky;
            bottom: 0;
            z-index: 2;
            background: linear-gradient(to top, #0f1528 70%, transparent);
            padding-top: 12px;
            margin-top: 8px;
        }

        .slip-status {
            font-size: 11px;
            text-align: center;
            padding: 8px 10px;
            border-radius: 10px;
            margin-bottom: 8px;
        }
        .slip-status.err { background: rgba(153,27,27,.35); color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }
        .slip-status.ok { background: rgba(4,120,87,.35); color: #6ee7b7; border: 1px solid rgba(16,185,129,.35); }
        .slip-status.info { background: rgba(180,83,9,.25); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }

        .drawer-backdrop {
            transition: opacity 0.3s ease;
        }

        .notification-badge {
            animation: pulse 2s infinite;
        }

        .promo-shine {
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
            background-size: 200% 100%;
            animation: shimmer 3s linear infinite;
        }

        @media (max-width: 1024px) {
            .desktop-sidebar {
                display: none;
            }

            .desktop-betslip {
                display: none;
            }
        }

        .winner-glow {
            box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
        }

        .input-glow:focus {
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
        }

        .btn-glow {
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        }

        .btn-glow:hover {
            box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
        }

        /* Ganadores — modales y utilidades */
        .modal-wrap { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 200; align-items: flex-end; justify-content: center; }
        .modal-wrap.on { display: flex; }
        .modal { background: #111628; border: 1px solid rgba(45,52,82,.5); border-radius: 20px 20px 0 0; padding: 26px 22px 36px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative; }
        @media (min-width: 769px) {
            .modal-wrap { align-items: center; }
            .modal { border-radius: 20px; width: 420px; max-width: 96%; padding: 28px; }
        }
        .modal-ttl { font-family: Poppins, sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
        .modal-sub { font-size: 13px; color: #94a3b8; margin-bottom: 18px; }
        .modal-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #2d3452; background: none; cursor: pointer; color: #94a3b8; }
        .modal-sw { text-align: center; margin-top: 12px; font-size: 13px; color: #94a3b8; }
        .modal-sw a { color: #34d399; cursor: pointer; font-weight: 500; }
        .fg { margin-bottom: 11px; }
        .fl { font-size: 12px; font-weight: 500; color: #94a3b8; margin-bottom: 4px; display: block; }
        .fi { width: 100%; padding: 9px 12px; border: 1px solid #2d3452; border-radius: 8px; font-size: 14px; color: #e2e8f0; background: #161b2e; outline: none; }
        .fi:focus { border-color: #10b981; }
        .err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); border-radius: 8px; padding: 9px 12px; color: #f87171; font-size: 12px; margin-bottom: 9px; display: none; }
        .info { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #34d399; margin-bottom: 11px; }
        .bf { width: 100%; padding: 11px; border-radius: 12px; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; border: none; margin-top: 6px; }
        .bf.dk { background: #e2e8f0; color: #080d1c; }
        .bf.gr { background: #10b981; color: #fff; }
        .wtabs { display: flex; border-bottom: 1px solid #2d3452; margin-bottom: 13px; }
        .wtab { padding: 7px 14px; font-size: 13px; color: #94a3b8; cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
        .wtab.on { color: #34d399; border-bottom-color: #10b981; font-weight: 600; }
        .chain-r { display: flex; gap: 6px; margin-bottom: 12px; }
        .chain-o { padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid #2d3452; background: #161b2e; color: #94a3b8; cursor: pointer; }
        .chain-o.on { background: #10b981; color: #fff; border-color: #10b981; }
        .addr-box { background: #161b2e; border: 1px solid #2d3452; border-radius: 8px; padding: 10px; font-family: monospace; font-size: 11px; color: #94a3b8; word-break: break-all; margin: 6px 0; }
        .cp-btn { font-size: 12px; color: #34d399; cursor: pointer; border: none; background: none; font-weight: 500; }
        .bcard { background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.3); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
        .bcard-ttl { font-weight: 700; color: #fbbf24; margin-bottom: 3px; font-size: 13px; }
        .bcard-d { font-size: 11px; color: #d97706; line-height: 1.5; }
        .bbar { height: 4px; background: rgba(234,179,8,.2); border-radius: 10px; overflow: hidden; margin-top: 6px; }
        .bbar-f { height: 100%; background: linear-gradient(90deg,#f59e0b,#d97706); border-radius: 10px; }
        .ld { display: flex; align-items: center; gap: 8px; padding: 12px; color: #94a3b8; font-size: 13px; }
        .sp { width: 18px; height: 18px; border: 2px solid #2d3452; border-top-color: #10b981; border-radius: 50%; animation: spin .8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .toast-bar { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 210; display: flex; flex-direction: column; gap: 6px; pointer-events: none; width: 90%; max-width: 360px; }
        .toast { background: #0c1122; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.3); text-align: center; border: 1px solid #2d3452; animation: tfade .25s; }
        .toast.ok { background: #047857; border-color: #10b981; }
        .toast.err { background: #991b1b; border-color: #ef4444; }
        @keyframes tfade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
        .empty { text-align: center; padding: 2rem; color: #64748b; font-size: 13px; }
        .sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 9px; }
        .sc { background: rgba(22,27,46,.9); border: 1px solid rgba(45,52,82,.4); border-radius: 16px; padding: 13px; }
        .sl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #64748b; margin-bottom: 4px; }
        .sv { font-family: Poppins, sans-serif; font-size: 22px; font-weight: 800; }
        .ss { font-size: 11px; color: #64748b; margin-top: 2px; }
        .atabs { display: flex; gap: 6px; flex-wrap: wrap; }
        .atab { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid #2d3452; background: #161b2e; color: #94a3b8; cursor: pointer; }
        .atab.on { background: #10b981; color: #fff; border-color: #10b981; }
        .obadge { background: linear-gradient(135deg,#1a2e42,#0D1B2A); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; margin-left: 6px; }
        .ds { background: rgba(22,27,46,.9); border: 1px solid rgba(45,52,82,.4); border-radius: 16px; overflow: hidden; }
        .dsh { padding: 11px 13px; border-bottom: 1px solid #2d3452; background: rgba(27,32,52,.5); }
        .dsht { font-family: Poppins, sans-serif; font-size: 13px; font-weight: 700; }
        .dt { width: 100%; border-collapse: collapse; font-size: 12px; }
        .dt th { text-align: left; padding: 7px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #2d3452; background: rgba(27,32,52,.5); }
        .dt td { padding: 9px 12px; border-bottom: 1px solid rgba(45,52,82,.5); color: #94a3b8; }
        .mono { font-family: monospace; font-size: 11px; }
        .pill { display: inline-block; padding: 2px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; }
        .p-pend { background: rgba(234,179,8,.15); color: #fbbf24; }
        .p-won, .p-conf, .p-proc { background: rgba(16,185,129,.15); color: #34d399; }
        .p-lost, .p-rej { background: rgba(239,68,68,.15); color: #f87171; }
        .p-void { background: rgba(100,116,139,.15); color: #94a3b8; }
        .accord { border: 1px solid rgba(45,52,82,.5); border-radius: 16px; overflow: hidden; margin-bottom: 10px; background: rgba(22,27,46,.9); }
        .accord-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; user-select: none; }
        .accord-hd:hover { background: rgba(27,32,52,.6); }
        .accord-hd.on { background: rgba(16,185,129,.08); border-bottom: 1px solid rgba(45,52,82,.5); }
        .accord-name { font-family: Poppins, sans-serif; font-size: 13px; font-weight: 700; flex: 1; }
        .accord-cnt { font-size: 11px; color: #64748b; }
        .accord-arr { font-size: 11px; color: #64748b; transition: transform .2s; }
        .accord-hd.on .accord-arr { transform: rotate(180deg); }
        .accord-body { display: none; }
        .accord-body.on { display: block; }
        .race-block { border: 1px solid rgba(45,52,82,.5); border-radius: 16px; overflow: hidden; margin-bottom: 10px; background: rgba(22,27,46,.9); }
        .race-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; background: rgba(27,32,52,.5); }
        .race-hd.on { border-bottom: 1px solid rgba(45,52,82,.5); }
        .race-body { display: none; }
        .race-body.on { display: block; }
        .horse-row { display: flex; align-items: center; padding: 10px 16px; gap: 8px; border-bottom: 1px solid rgba(45,52,82,.3); }
        .race-nm { font-family: Poppins, sans-serif; font-size: 13px; font-weight: 700; }

        /* Carreras — layout tipo ticket */
        .horses-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
        @media (min-width: 1024px) { .horses-layout { grid-template-columns: 240px 1fr 260px; } }
        @media (min-width: 1280px) { .horses-layout { grid-template-columns: 280px 1fr 300px; } }
        .horse-panel { background: rgba(22,27,46,.95); border: 1px solid rgba(45,52,82,.5); border-radius: 16px; overflow: hidden; }
        .horse-panel-hd { padding: 12px 16px; border-bottom: 1px solid rgba(45,52,82,.5); font-family: Poppins, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fbbf24; }
        .horse-panel-bd { padding: 14px 16px; }
        .horse-lbl { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-bottom: 5px; }
        .horse-sel, .horse-inp { width: 100%; padding: 9px 11px; border: 1px solid #2d3452; border-radius: 8px; background: #161b2e; color: #e2e8f0; font-size: 13px; margin-bottom: 12px; }
        .horse-sel:focus, .horse-inp:focus { outline: none; border-color: #fbbf24; }
        .horse-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
        .horse-btn { padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid #2d3452; background: #161b2e; color: #94a3b8; }
        .horse-btn.primary { background: linear-gradient(135deg,#fbbf24,#d97706); border-color: #fbbf24; color: #0f172a; }
        .horse-summary { font-size: 11px; color: #64748b; line-height: 1.7; border-top: 1px solid rgba(45,52,82,.5); padding-top: 12px; }
        .horse-summary b { color: #e2e8f0; }
        .horse-race-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px; border-bottom: 1px solid rgba(45,52,82,.5); background: rgba(15,20,35,.6); }
        .horse-race-tab { flex-shrink: 0; padding: 8px 14px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; border: 2px solid #2d3452; background: #161b2e; color: #94a3b8; cursor: pointer; transition: all .15s; }
        .horse-race-tab.on { border-color: #fbbf24; color: #fbbf24; background: rgba(251,191,36,.08); }
        .horse-alert { margin: 12px 14px 0; padding: 10px 14px; border-radius: 8px; background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.25); color: #fda4af; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.4; }
        .horse-race-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(45,52,82,.4); font-size: 13px; font-weight: 600; color: #e2e8f0; }
        .horse-runners { width: 100%; border-collapse: collapse; font-size: 12px; }
        .horse-runners th { text-align: left; padding: 10px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #64748b; background: rgba(27,32,52,.5); border-bottom: 1px solid #2d3452; }
        .horse-runners td { padding: 10px 14px; border-bottom: 1px solid rgba(45,52,82,.35); vertical-align: middle; }
        .horse-runners tr:hover td { background: rgba(27,32,52,.4); }
        .horse-num { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 4px; font-weight: 800; font-size: 12px; border: 1px solid rgba(255,255,255,.15); }
        .horse-name { font-weight: 700; color: #f1f5f9; margin-bottom: 2px; }
        .horse-sub { font-size: 10px; color: #64748b; }
        .horse-odd-btn { padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 12px; border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.1); color: #fbbf24; cursor: pointer; }
        .horse-odd-btn.selected, .horse-odd-btn:hover { background: #fbbf24; color: #0f172a; border-color: #fbbf24; }
        .horse-video { aspect-ratio: 16/10; background: #0a0e1a; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #64748b; border-bottom: 1px solid rgba(45,52,82,.5); position: relative; }
        .horse-video-badge { position: absolute; top: 10px; left: 10px; background: rgba(239,68,68,.9); color: #fff; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 4px; letter-spacing: .05em; z-index: 2; }
        .horse-sidebar-stream { position: relative; border-radius: 12px; overflow: hidden; background: #0a0e1a; border: 1px solid rgba(45,52,82,.5); }
        .horse-sidebar-stream iframe, .horse-sidebar-stream video { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
        .horse-stream-placeholder { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #64748b; padding: 1rem; }
        .horse-stream-label { font-size: 11px; font-weight: 600; color: #94a3b8; padding: 8px 10px; border-top: 1px solid rgba(45,52,82,.5); }
        .horse-lists-panel { max-height: calc(100vh - 8rem); overflow-y: auto; }
        .horse-upcoming { width: 100%; border-collapse: collapse; font-size: 11px; }
        .horse-upcoming th { text-align: left; padding: 8px 12px; font-size: 9px; font-weight: 700; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #2d3452; }
        .horse-upcoming td { padding: 8px 12px; border-bottom: 1px solid rgba(45,52,82,.3); color: #94a3b8; }
        .horse-track-pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.3); color: #fbbf24; font-size: 10px; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .horse-empty-bets { padding: 20px 14px; text-align: center; font-size: 12px; color: #64748b; line-height: 1.5; }
        .horse-st { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
        .horse-st.open { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.35); }
        .horse-st.closed { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
        .horse-st.live { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.35); animation: pulse 1.2s infinite; }
        .horse-st.resulted { background: rgba(99,102,241,.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,.35); }
        .horse-race-tab.closed { opacity: .55; }
        .horse-race-tab.done { opacity: .45; text-decoration: line-through; }
        .horse-row-winner td { background: rgba(251,191,36,.06); }
        .horse-btn.primary:disabled { opacity: .35; cursor: not-allowed; }
