/* TOGEL BETTING VIEW STYLES */
.togel-betting-container {
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: var(--dark-bg);
}

.tb-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tb-header-tab {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    background: #1a1a2e;
    color: #fff;
    border: 1px solid transparent;
}

.tb-header-tab.active {
    background: #1a1a2e;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.tb-schedule-bar {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #335078;
    border-radius: 6px;
    background: linear-gradient(90deg, #102340, #0b182d);
    color: #fff;
    cursor: pointer;
    text-align: left;
}
.tb-schedule-bar:hover { border-color: var(--gold); }
.tb-schedule-title {
    color: var(--gold);
    font-weight: 800;
    white-space: nowrap;
}
.tb-schedule-detail {
    overflow: hidden;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tb-schedule-arrow { color: #94a3b8; font-size: 0.72rem; }
.tb-schedule-status-open { color: #34d399; }
.tb-schedule-status-closed { color: #f87171; }

.tb-market-official-banner {
    width: min(100%, 800px);
    aspect-ratio: 800 / 152;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #335078;
    border-radius: 7px;
    background: #0a192f;
}
.tb-market-official-banner[hidden] { display: none !important; }
.tb-market-official-banner a,
.tb-market-official-banner img {
    display: block;
    width: 100%;
    height: 100%;
}
.tb-market-official-banner img { object-fit: cover; }

.togel-schedule-modal-panel { max-width: 680px; }
.togel-schedule-modal-body { max-height: 72vh; overflow-y: auto; }
.togel-schedule-note {
    margin-bottom: 10px;
    padding: 9px 10px;
    border: 1px solid #334b70;
    border-radius: 6px;
    background: #0a192f;
    color: #cbd5e1;
    font-size: 0.78rem;
}
.togel-schedule-list { display: grid; gap: 8px; }
.togel-schedule-card {
    display: grid;
    grid-template-columns: minmax(120px, 1.25fr) minmax(160px, 1.75fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #2b4365;
    border-radius: 7px;
    background: #0d1d35;
}
.togel-schedule-market { color: #fff; font-size: 0.86rem; font-weight: 800; }
.togel-schedule-hours { margin-top: 3px; color: #aebdd1; font-size: 0.74rem; }
.togel-schedule-days { color: #d5dfed; font-size: 0.76rem; line-height: 1.35; }
.togel-schedule-badge {
    min-width: 68px;
    padding: 5px 7px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 900;
}
.togel-schedule-badge.open { background: rgba(16, 185, 129, .14); color: #34d399; border: 1px solid #158a68; }
.togel-schedule-badge.closed { background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid #a93c4a; }
.togel-schedule-loading { padding: 22px; color: #94a3b8; text-align: center; }

.tb-header-search {
    margin-left: auto;
    background: #0f0f1a;
    border-radius: 20px;
    padding: 5px 15px;
    flex: 1;
    max-width: 200px;
}

.tb-search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

.tb-markets-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}

.tb-markets-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.tb-market {
    background: #2a2a40;
    color: #a0a0b0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tb-market.active {
    background: transparent;
    border: 1px solid #ffcc00;
    color: #ffcc00;
}

.tb-market.active i {
    color: #ffcc00;
}

.tb-filters {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 8px;
}

.tb-bet-mode-tabs {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #334b70;
    border-radius: 7px;
    background: #0c1930;
}
.tb-bet-mode-tab {
    flex: 1;
    min-height: 38px;
    padding: 8px 9px;
    border: 0;
    border-right: 1px solid #334b70;
    background: #12223d;
    color: #aab9cf;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
.tb-prize-mode-tab[hidden],
#pi-prize123-section[hidden] {
    display: none !important;
}
.tb-bet-mode-tab:last-child { border-right: 0; }
.tb-bet-mode-tab:hover { background: #1b3154; color: #fff; }
.tb-bet-mode-tab.active[data-mode="discount"] { background: #f2b500; color: #10213b; }
.tb-bet-mode-tab.active[data-mode="full"] { background: #1976b9; color: #fff; }
.tb-bet-mode-tab.active[data-mode="bb"] { background: #057e78; color: #fff; }
.tb-bet-mode-tab.active[data-mode^="prize"] { background: #6d3eb3; color: #fff; }
.tb-bet-mode-tabs.has-prize-modes { overflow-x: auto; scrollbar-width: thin; }
.tb-prize-info-btn {
    flex: 1;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #dca900;
    border-radius: 5px;
    background: #10203b;
    color: #ffcc00;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.tb-prize-info-btn:hover { background: #1b3154; }

.tb-select {
    padding: 8px 12px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    border: none;
    font-weight: 600;
    outline: none;
}

.tb-select-primary {
    background: #ffcc00; /* yellow-ish discount */
    flex: 1;
}

.tb-info-banner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 8px;
    overflow: hidden;
    border: 1px solid #31496d;
    border-radius: 5px;
    background: #0a172d;
}

.tb-info-item {
    min-width: 0;
    padding: 7px 6px;
    background: #10203b;
    color: #dfe8f8;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tb-info-market { color: #ffc400; letter-spacing: .02em; }
.tb-info-period { color: #ffc400; }
.tb-info-type { color: #ffc400; }

.tb-game-types {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    padding: 0;
    border: 0;
}

.tb-game-type-select {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 30px 7px 10px;
    border: 1px solid #dca900;
    border-radius: 5px;
    background: #10203b;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}
.tb-game-type-select:focus { box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.22); }

.tb-type-tab {
    padding: 10px 15px;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.tb-type-tab.active {
    color: #fff;
    background: #2a2a40;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.tb-grid-container {
    background: #0a192f;
    border: 1px solid #233554;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}

.tb-grid-header {
    display: grid;
    grid-template-columns: 25px 80px 1fr 25px;
    background: #0a192f;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #233554;
}

.tb-grid-header-row2 {
    display: grid;
    grid-template-columns: 25px 80px 1fr 25px;
    background: #0a192f;
    border-bottom: 1px solid #233554;
}

.tb-cell {
    padding: 6px 1px;
    width: 100%;
    height: 100%;
    display: grid;
    align-items: center;
}
.tb-cell > * {
    width: 100%;
    display: block;
    box-sizing: border-box;
}
.tb-grid-header > .tb-cell,
.tb-grid-header-row2 > .tb-cell {
    padding: 6px 1px;
}
.tb-col-bet-multi {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 74px;
    box-sizing: border-box;
}
.tb-col-bet-title {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-clear-table-btn {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    z-index: 10;
    width: auto !important;
    white-space: nowrap !important;
    padding: 3px 7px;
    border: 1px solid #ef4444;
    border-radius: 4px;
    background: #991b1b;
    color: #fde047;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.15s ease;
}

.tb-clear-table-btn:hover,
.tb-clear-table-btn:focus-visible {
    background: #dc2626;
    color: #fef08a;
    outline: none;
    transform: translateY(-50%) scale(1.04);
}

.tb-autobet-input {
    background: #fff;
    color: #0f172a;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 6px 0;
    font-weight: bold;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
}
.tb-autobet-input:focus {
    outline: 2px solid #ffcc00;
}
.tb-autobet-input::placeholder {
    color: #888;
}

.tb-quick-number-input {
    height: 30px;
    background: #fff;
    color: #0f172a;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 0 3px;
}

.tb-quick-number-input:focus {
    outline: 2px solid #ffcc00;
}

.tb-quick-number-input::placeholder {
    color: #888;
    font-weight: 600;
}

.tb-quick-number-check {
    width: 16px !important;
    height: 16px;
    justify-self: center;
    align-self: center;
    accent-color: #ffcc00;
    cursor: pointer;
}

.tb-row {
    display: grid;
    grid-template-columns: 25px 80px 1fr 25px;
    background: #112240;
    border-bottom: 1px solid #233554;
}
.tb-row-bets, .tb-autobet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 2px;
    width: 100%;
    padding: 0 2px;
}

.tb-row-id {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    align-self: center;
}
.tb-bb-check {
    align-self: center;
}

.tb-number-inputs {
    width: 100%;
    padding: 0 2px;
}

.tb-num-box {
    width: 100%;
    display: block;
    box-sizing: border-box;
    height: 38px;
    background: #fff;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0;
}

.tb-num-box:focus {
    outline: 2px solid #ffcc00;
}

.tb-bet-input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    height: 38px;
    background: #fff;
    border: none;
    border-radius: 4px;
    padding: 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
    text-align: center;
}

.tb-bet-input:disabled {
    background: #233554;
    color: #8892b0;
    cursor: not-allowed;
    opacity: 1;
}

.tb-bet-input::placeholder {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
}

.tb-text-val {
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
}

.tb-btn-add-row {
    width: 100%;
    background: #2a2a40;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
}

.tb-btn-add-row:hover {
    background: #363652;
}

.tb-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tb-total-text {
    background: #11111a;
    padding: 12px;
    border-radius: 6px;
    text-align: right;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.tb-btn-confirm {
    background: #ffcc00; /* Purple */
    color: #0a192f;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.tb-btn-confirm:hover {
    background: #e6b800;
}

/* History Tabs */
.history-tab-btn {
    flex: 1;
    background: #112240;
    color: #8892b0;
    border: 1px solid #233554;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-tab-btn.active {
    background: #0a192f;
    color: #ffcc00;
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.btn-detail-invoice {
    display: inline-block;
    background: #233554;
    color: #ffcc00;
    border: 1px solid #ffcc00;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-detail-invoice:hover {
    background: #ffcc00;
    color: #0a192f;
}


/* Pagination History */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 20px;
}
.page-btn {
    background: #112240;
    color: #fff;
    border: 1px solid #233554;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}
.page-btn:hover:not(:disabled) {
    background: #233554;
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}
.page-btn.active {
    background: #ffcc00;
    color: #0a192f;
    border-color: #ffcc00;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}
.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tb-market-5d .tb-row-bets,
.tb-market-5d .tb-autobet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tb-5d-only[hidden] {
    display: none !important;
}
.pagination-info {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 90px;
    text-align: center;
}

.togel-history-pagination {
    justify-content: flex-end;
    gap: 0;
    margin-top: 0;
    padding: 12px 16px;
    background: #0a192f;
    border-top: 1px solid #233554;
}

.togel-history-pagination .page-btn,
.togel-history-pagination .pagination-ellipsis {
    width: 34px;
    min-width: 34px;
    height: 32px;
    padding: 0;
    border-radius: 0;
    margin-left: -1px;
    font-size: 0.82rem;
}

.togel-history-pagination .page-btn:first-child {
    margin-left: 0;
    border-radius: 5px 0 0 5px;
}

.togel-history-pagination .page-btn:last-child {
    border-radius: 0 5px 5px 0;
}

.togel-history-pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #112240;
    border: 1px solid #233554;
}

@media (max-width: 480px) {
    .pagination-container {
        gap: 6px;
    }
    .pagination-container .page-btn {
        padding: 7px 10px;
        font-size: 0.82rem;
    }
    .pagination-info {
        min-width: 72px;
        font-size: 0.8rem;
    }
    .togel-history-pagination {
        justify-content: center;
        gap: 0;
        padding: 10px 6px;
    }
    .togel-history-pagination .page-btn,
    .togel-history-pagination .pagination-ellipsis {
        width: 29px;
        min-width: 29px;
        height: 28px;
        padding: 0;
        font-size: 0.74rem;
    }
}

/* History Tab Box */
.history-tab-content {
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding-top: 10px;
    background: #0a192f;
    margin-top: 10px;
    overflow: hidden;
}
.history-tab-content .sim-table-responsive {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .togel-betting-container {
        padding: 15px 8px;
        border-radius: 8px;
    }
    .tb-grid-header, .tb-grid-header-row2 {
        font-size: 0.75rem;
    }
    .tb-filters { gap: 6px; margin-bottom: 6px; }
    .tb-bet-mode-tab { min-height: 35px; padding: 7px 6px; font-size: 0.72rem; }
    .tb-prize-info-btn { min-height: 35px; padding: 7px 9px; font-size: 0.76rem; }
    .tb-info-banner { margin-bottom: 6px; }
    .tb-info-item { padding: 6px 3px; font-size: 0.75rem; }
    .tb-game-type-select { font-size: 0.8rem; }
    .tb-schedule-bar {
        grid-template-columns: 1fr auto;
        gap: 5px;
        padding: 6px 8px;
    }
    .tb-schedule-title { display: none; }
    .tb-schedule-detail { font-size: 0.66rem; }
    .togel-schedule-card {
        grid-template-columns: 1fr auto;
        gap: 6px 8px;
    }
    .togel-schedule-days { grid-column: 1 / -1; }
}

/* COLOK BEBAS CUSTOM PANEL */
.cb-container {
    background-color: #0a192f;
    border: 1px solid #233554;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    margin-top: 10px;
    overflow: hidden;
}

.cb-header-top {
    background-color: #0a192f;
    padding: 15px;
}

.cb-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
}

.cb-header-bottom {
    background-color: #10203b;
    border-top: 1px solid #233554;
    border-bottom: 1px solid #233554;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-clear-table-btn {
    padding: 4px 10px;
    border: 1px solid #ef4444;
    border-radius: 4px;
    background: #991b1b;
    color: #fde047;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.15s ease;
}
.cb-clear-table-btn:hover,
.cb-clear-table-btn:focus-visible {
    background: #dc2626;
    color: #fef08a;
    outline: none;
    transform: scale(1.04);
}

.cb-total-bet {
    color: #f87171;
    font-weight: bold;
    font-size: 1.1rem;
}

.cb-grid-header {
    display: grid;
    grid-template-columns: 50px 80px 1fr;
    gap: 10px;
    padding: 10px 15px 5px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 1px solid #233554;
}

.cb-col-id, .cb-col-tebakan {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #233554;
    padding-bottom: 5px;
}

.cb-col-taruhan {
    border-bottom: 2px solid #233554;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-autobet-input, .cb-bet-input {
    border-radius: 4px;
    border: 1px solid #335078;
    background: #ffffff;
    color: #000000;
    padding: 4px 10px;
    font-size: 0.9rem;
    outline: none;
    font-weight: 700;
    box-sizing: border-box;
}
.cb-autobet-input:focus, .cb-bet-input:focus {
    border-color: #dca900;
}

.cb-autobet-input {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.cb-bet-input {
    width: 100%;
}

.cb-row {
    display: grid;
    grid-template-columns: 50px 80px 1fr;
    gap: 10px;
    padding: 8px 15px;
    border-bottom: 1px solid #233554;
    align-items: center;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.cb-row:hover {
    background-color: #12223d; /* Slight highlight on hover */
}

.cb-cell-id {
    text-align: center;
    font-size: 1rem;
}

.cb-cell-tebakan {
    text-align: center;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background-color: #ffcc00; /* Yellow circle */
    color: #10203b; /* Dark blue text */
    border-radius: 50%;
    margin: 0 auto;
    font-weight: 900;
}

.cb-cell-taruhan {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* COLOK BEBAS 2D */
.cb2-container {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #29466f;
    border-radius: 8px;
    background: #0a192f;
    color: #f8fafc;
}

.cb2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #29466f;
    background: linear-gradient(135deg, #0d213d, #10284a);
}

.cb2-title { font-size: 1.15rem; font-weight: 800; }
.cb2-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.cb2-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }

.cb2-rule-note {
    margin: 10px 14px 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 193, 7, .38);
    border-radius: 6px;
    background: rgba(255, 193, 7, .08);
    color: #f7d66d;
    font-size: .75rem;
    line-height: 1.45;
}

.cb2-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 220px);
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 10px 14px;
}

.cb2-clear-btn {
    border: 1px solid #ef4444;
    border-radius: 4px;
    background: #991b1b;
    color: #fde047;
    padding: 6px 10px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.cb2-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.cb2-autobet-input,
.cb2-bet-input,
.cb2-digit-input {
    box-sizing: border-box;
    border: 1px solid #42638f;
    outline: 0;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
}
.cb2-autobet-input,
.cb2-bet-input { width: 100%; border-radius: 5px; padding: 7px 9px; }
.cb2-digit-input {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    font-size: 1rem;
}
.cb2-autobet-input:focus,
.cb2-bet-input:focus,
.cb2-digit-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }

.cb2-grid-header,
.cb2-row {
    display: grid;
    grid-template-columns: 52px 92px 92px minmax(150px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
}
.cb2-grid-header {
    border-block: 1px solid #29466f;
    background: #10203b;
    color: #dce7f7;
    text-align: center;
    font-size: .72rem;
    font-weight: 800;
}
.cb2-row { position: relative; border-bottom: 1px solid #233554; }
.cb2-row:last-child { border-bottom: 0; }
.cb2-row:hover { background: #112540; }
.cb2-cell-id { text-align: center; font-weight: 800; }
.cb2-cell-digit { display: flex; justify-content: center; }
.cb2-cell-bet { display: flex; align-items: center; gap: 6px; }
.cb2-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }
.cb2-row.has-error { background: rgba(220, 38, 38, .1); }
.cb2-row.has-error::after {
    content: attr(data-error);
    position: absolute;
    right: 15px;
    bottom: 1px;
    color: #f87171;
    font-size: .6rem;
}

@media (max-width: 600px) {
    .cb2-header { align-items: flex-start; padding: 12px 10px; }
    .cb2-title { font-size: 1rem; }
    .cb2-subtitle { font-size: .65rem; }
    .cb2-total { font-size: .82rem; }
    .cb2-rule-note { margin: 8px 8px 0; font-size: .66rem; }
    .cb2-toolbar {
        grid-template-columns: auto auto minmax(0, 1fr);
        padding: 8px;
    }
    .cb2-grid-header,
    .cb2-row {
        grid-template-columns: 30px 54px 54px minmax(0, 1fr);
        gap: 5px;
        padding: 8px 7px;
    }
    .cb2-grid-header { font-size: .58rem; }
    .cb2-digit-input { width: 34px; height: 34px; }
    .cb2-bet-input { padding: 7px 6px; }
    .cb2-multiplier { font-size: .62rem; }
}

/* COLOK NAGA */
.cn-container {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #29466f;
    border-radius: 8px;
    background: #0a192f;
    color: #f8fafc;
}

.cn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #29466f;
    background: linear-gradient(135deg, #0d213d, #10284a);
}

.cn-title { font-size: 1.15rem; font-weight: 800; }
.cn-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.cn-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }

.cn-rule-note {
    margin: 10px 14px 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 193, 7, .38);
    border-radius: 6px;
    background: rgba(255, 193, 7, .08);
    color: #f7d66d;
    font-size: .75rem;
    line-height: 1.45;
}

.cn-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 220px);
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 10px 14px;
}

.cn-clear-btn {
    border: 1px solid #ef4444;
    border-radius: 4px;
    background: #991b1b;
    color: #fde047;
    padding: 6px 10px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.cn-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.cn-autobet-input,
.cn-bet-input,
.cn-digit-input {
    box-sizing: border-box;
    border: 1px solid #42638f;
    outline: 0;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
}
.cn-autobet-input,
.cn-bet-input { width: 100%; border-radius: 5px; padding: 7px 9px; }
.cn-digit-input {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    font-size: 1rem;
}
.cn-autobet-input:focus,
.cn-bet-input:focus,
.cn-digit-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }

.cn-grid-header,
.cn-row {
    display: grid;
    grid-template-columns: 48px 76px 76px 76px minmax(150px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
}
.cn-grid-header {
    border-block: 1px solid #29466f;
    background: #10203b;
    color: #dce7f7;
    text-align: center;
    font-size: .68rem;
    font-weight: 800;
}
.cn-row { position: relative; border-bottom: 1px solid #233554; }
.cn-row:last-child { border-bottom: 0; }
.cn-row:hover { background: #112540; }
.cn-cell-id { text-align: center; font-weight: 800; }
.cn-cell-digit { display: flex; justify-content: center; }
.cn-cell-bet { display: flex; align-items: center; gap: 6px; }
.cn-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }
.cn-row.has-error { background: rgba(220, 38, 38, .1); }
.cn-row.has-error::after {
    content: attr(data-error);
    position: absolute;
    right: 15px;
    bottom: 1px;
    color: #f87171;
    font-size: .6rem;
}

@media (max-width: 600px) {
    .cn-header { align-items: flex-start; padding: 12px 10px; }
    .cn-title { font-size: 1rem; }
    .cn-subtitle { font-size: .65rem; }
    .cn-total { font-size: .82rem; }
    .cn-rule-note { margin: 8px 8px 0; font-size: .66rem; }
    .cn-toolbar {
        grid-template-columns: auto auto minmax(0, 1fr);
        padding: 8px;
    }
    .cn-grid-header,
    .cn-row {
        grid-template-columns: 27px 43px 43px 43px minmax(0, 1fr);
        gap: 4px;
        padding: 8px 6px;
    }
    .cn-grid-header { font-size: .52rem; }
    .cn-digit-input { width: 32px; height: 32px; }
    .cn-bet-input { min-width: 0; padding: 7px 5px; }
    .cn-multiplier { font-size: .58rem; }
}

/* COLOK JITU */
.cj-container {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #29466f;
    border-radius: 8px;
    background: #0a192f;
    color: #f8fafc;
}

.cj-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #29466f;
    background: linear-gradient(135deg, #0d213d, #10284a);
}
.cj-title { font-size: 1.15rem; font-weight: 800; }
.cj-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.cj-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }

.cj-rule-note {
    margin: 10px 14px 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 193, 7, .38);
    border-radius: 6px;
    background: rgba(255, 193, 7, .08);
    color: #f7d66d;
    font-size: .75rem;
    line-height: 1.45;
}
.cj-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 220px);
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 10px 14px;
}
.cj-clear-btn {
    border: 1px solid #ef4444;
    border-radius: 4px;
    background: #991b1b;
    color: #fde047;
    padding: 6px 10px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.cj-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.cj-autobet-input,
.cj-bet-input,
.cj-digit-input,
.cj-position-select {
    box-sizing: border-box;
    border: 1px solid #42638f;
    outline: 0;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
}
.cj-autobet-input,
.cj-bet-input { width: 100%; border-radius: 5px; padding: 7px 9px; }
.cj-digit-input {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    font-size: 1rem;
}
.cj-position-select {
    width: 100%;
    min-width: 0;
    border-radius: 6px;
    padding: 7px 6px;
    cursor: pointer;
}
.cj-autobet-input:focus,
.cj-bet-input:focus,
.cj-digit-input:focus,
.cj-position-select:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.cj-grid-header,
.cj-row {
    display: grid;
    grid-template-columns: 48px 84px 120px minmax(150px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
}
.cj-grid-header {
    border-block: 1px solid #29466f;
    background: #10203b;
    color: #dce7f7;
    text-align: center;
    font-size: .7rem;
    font-weight: 800;
}
.cj-row { position: relative; border-bottom: 1px solid #233554; }
.cj-row:last-child { border-bottom: 0; }
.cj-row:hover { background: #112540; }
.cj-cell-id { text-align: center; font-weight: 800; }
.cj-cell-digit { display: flex; justify-content: center; }
.cj-cell-bet { display: flex; align-items: center; gap: 6px; }
.cj-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }
.cj-row.is-incomplete { background: rgba(245, 158, 11, .08); }
.cj-row.is-incomplete::after {
    content: attr(data-error);
    position: absolute;
    right: 15px;
    bottom: 1px;
    color: #fbbf24;
    font-size: .6rem;
}

/* Tengah Tepi — UI-only betting panel */
.tt-container {
    margin-top: 12px;
    overflow: hidden;
    color: #f5f7fb;
    background: #0b1d35;
    border: 1px solid #29466e;
    border-radius: 8px;
}
.tt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0e2441;
    border-bottom: 1px solid #29466e;
}
.tt-title { font-size: 1.15rem; font-weight: 800; }
.tt-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.tt-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.tt-rule-note {
    margin: 10px 12px 0;
    padding: 10px 12px;
    color: #ffd96a;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 6px;
    font-size: .75rem;
    text-align: center;
}
.tt-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #29466e;
}
.tt-clear-btn {
    padding: 7px 12px;
    color: #ffe36a;
    background: #b42323;
    border: 1px solid #e75050;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.tt-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.tt-autobet-input,
.tt-bet-input {
    color: #18243a;
    background: #f7f9fc;
    border: 1px solid #b8c7db;
    outline: 0;
}
.tt-autobet-input,
.tt-bet-input { width: 100%; border-radius: 5px; padding: 7px 9px; }
.tt-autobet-input:focus,
.tt-bet-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.tt-grid-header,
.tt-row {
    display: grid;
    grid-template-columns: minmax(90px, .75fr) minmax(160px, 1.25fr);
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
}
.tt-grid-header {
    color: #e7edf7;
    background: #0a1930;
    border-bottom: 1px solid #29466e;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}
.tt-row { border-bottom: 1px solid #233554; }
.tt-row:last-child { border-bottom: 0; }
.tt-row:hover { background: #112540; }
.tt-cell-id { text-align: center; font-weight: 800; }
.tt-cell-choice { color: #f5f7fb; text-align: center; }
.tt-cell-bet { display: flex; align-items: center; gap: 6px; }
.tt-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }
.tt-kei-note { color: #9fb2cf; font-size: .68rem; }

@media (max-width: 600px) {
    .tt-header { align-items: flex-start; padding: 12px 10px; }
    .tt-title { font-size: 1rem; }
    .tt-subtitle { font-size: .65rem; }
    .tt-total { font-size: .82rem; }
    .tt-rule-note { margin: 8px 8px 0; font-size: .64rem; }
    .tt-toolbar { grid-template-columns: auto auto minmax(0, 1fr); padding: 8px; }
    .tt-grid-header,
    .tt-row {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 5px;
        padding: 7px 8px;
    }
    .tt-grid-header { font-size: .56rem; }
    .tt-cell-choice { font-size: .72rem; }
    .tt-bet-input { min-width: 0; padding: 7px 5px; }
    .tt-multiplier { font-size: .58rem; }
}

@media (max-width: 600px) {
    .cj-header { align-items: flex-start; padding: 12px 10px; }
    .cj-title { font-size: 1rem; }
    .cj-subtitle { font-size: .65rem; }
    .cj-total { font-size: .82rem; }
    .cj-rule-note { margin: 8px 8px 0; font-size: .66rem; }
    .cj-toolbar {
        grid-template-columns: auto auto minmax(0, 1fr);
        padding: 8px;
    }
    .cj-grid-header,
    .cj-row {
        grid-template-columns: 28px 50px 76px minmax(0, 1fr);
        gap: 5px;
        padding: 8px 7px;
    }
    .cj-grid-header { font-size: .55rem; }
    .cj-digit-input { width: 34px; height: 34px; }
    .cj-position-select { padding: 7px 3px; font-size: .7rem; }
    .cj-bet-input { min-width: 0; padding: 7px 5px; }
    .cj-multiplier { font-size: .58rem; }
}

/* Dasar - UI-only betting panel */
.ds-container {
    margin-top: 12px;
    overflow: hidden;
    color: #f5f7fb;
    background: #0b1d35;
    border: 1px solid #29466e;
    border-radius: 8px;
}
.ds-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0e2441;
    border-bottom: 1px solid #29466e;
}
.ds-title { font-size: 1.15rem; font-weight: 800; }
.ds-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.ds-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.ds-rule-note {
    margin: 10px 12px 0;
    padding: 10px 12px;
    color: #ffd96a;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 6px;
    font-size: .75rem;
    line-height: 1.5;
    text-align: center;
}
.ds-kei-note { display: block; margin-top: 4px; color: #9fb2cf; font-size: .68rem; }
.ds-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #29466e;
}
.ds-clear-btn {
    padding: 7px 12px;
    color: #ffe36a;
    background: #b42323;
    border: 1px solid #e75050;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.ds-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.ds-autobet-input,
.ds-bet-input {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 9px;
    color: #18243a;
    background: #f7f9fc;
    border: 1px solid #b8c7db;
    border-radius: 5px;
    outline: 0;
    font-weight: 800;
}
.ds-autobet-input:focus,
.ds-bet-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.ds-grid-header,
.ds-row {
    display: grid;
    grid-template-columns: 42px minmax(88px, .8fr) minmax(70px, .55fr) minmax(160px, 1.25fr);
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}
.ds-grid-header {
    color: #e7edf7;
    background: #0a1930;
    border-bottom: 1px solid #29466e;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}
.ds-row { border-bottom: 1px solid #233554; }
.ds-row:last-child { border-bottom: 0; }
.ds-row:hover { background: #112540; }
.ds-cell-id,
.ds-cell-choice,
.ds-cell-kei { text-align: center; font-weight: 800; }
.ds-cell-kei { color: #ffd34d; font-size: .72rem; }
.ds-cell-bet { display: flex; align-items: center; gap: 6px; }
.ds-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }

@media (max-width: 600px) {
    .ds-header { align-items: flex-start; padding: 12px 10px; }
    .ds-title { font-size: 1rem; }
    .ds-subtitle { font-size: .64rem; }
    .ds-total { font-size: .82rem; }
    .ds-rule-note { margin: 8px 8px 0; padding: 8px; font-size: .62rem; }
    .ds-toolbar { grid-template-columns: auto auto minmax(0, 1fr); padding: 8px; }
    .ds-grid-header,
    .ds-row {
        grid-template-columns: 25px 60px 48px minmax(0, 1fr);
        gap: 4px;
        padding: 7px 6px;
    }
    .ds-grid-header { font-size: .5rem; }
    .ds-cell-id,
    .ds-cell-choice { font-size: .66rem; }
    .ds-cell-kei { font-size: .58rem; }
    .ds-bet-input { min-width: 0; padding: 7px 5px; }
    .ds-multiplier { font-size: .55rem; }
}

/* 50 - 50 - UI-only betting panel */
.ff-container {
    margin-top: 12px;
    overflow: hidden;
    color: #f5f7fb;
    background: #0b1d35;
    border: 1px solid #29466e;
    border-radius: 8px;
}
.ff-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0e2441;
    border-bottom: 1px solid #29466e;
}
.ff-title { font-size: 1.15rem; font-weight: 800; }
.ff-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.ff-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.ff-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #09162a; }
.ff-tab {
    padding: 10px 8px;
    color: #cbd7ea;
    background: #102541;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: .74rem;
    font-weight: 900;
    cursor: pointer;
}
.ff-tab.active {
    color: #071427;
    background: #ffc400;
    border-bottom-color: #fff0a6;
}
.ff-rule-note {
    margin: 10px 12px 0;
    padding: 10px 12px;
    color: #ffd96a;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 6px;
    font-size: .73rem;
    line-height: 1.5;
    text-align: center;
}
.ff-kei-note { display: block; margin-top: 4px; color: #9fb2cf; font-size: .68rem; }
.ff-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #29466e;
}
.ff-clear-btn {
    padding: 7px 12px;
    color: #ffe36a;
    background: #b42323;
    border: 1px solid #e75050;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.ff-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.ff-autobet-input,
.ff-bet-input {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 9px;
    color: #18243a;
    background: #f7f9fc;
    border: 1px solid #b8c7db;
    border-radius: 5px;
    outline: 0;
    font-weight: 800;
}
.ff-autobet-input:focus,
.ff-bet-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.ff-grid-header,
.ff-row {
    display: grid;
    grid-template-columns: minmax(65px, .65fr) minmax(78px, .75fr) minmax(65px, .55fr) minmax(160px, 1.3fr);
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}
.ff-grid-header {
    color: #e7edf7;
    background: #0a1930;
    border-bottom: 1px solid #29466e;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}
.ff-row { border-bottom: 1px solid #233554; }
.ff-row:last-child { border-bottom: 0; }
.ff-row:hover { background: #112540; }
.ff-cell-position,
.ff-cell-choice,
.ff-cell-kei { text-align: center; font-weight: 800; }
.ff-cell-position { color: #f8fafc; }
.ff-cell-kei { color: #ffd34d; font-size: .72rem; }
.ff-cell-bet { display: flex; align-items: center; gap: 6px; }
.ff-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }

@media (max-width: 600px) {
    .ff-header { align-items: flex-start; padding: 12px 10px; }
    .ff-title { font-size: 1rem; }
    .ff-subtitle { font-size: .63rem; }
    .ff-total { font-size: .82rem; }
    .ff-tab { padding: 9px 5px; font-size: .64rem; }
    .ff-rule-note { margin: 8px 8px 0; padding: 8px; font-size: .59rem; }
    .ff-toolbar { grid-template-columns: auto auto minmax(0, 1fr); padding: 8px; }
    .ff-grid-header,
    .ff-row {
        grid-template-columns: 48px 55px 45px minmax(0, 1fr);
        gap: 4px;
        padding: 7px 6px;
    }
    .ff-grid-header { font-size: .48rem; }
    .ff-cell-position,
    .ff-cell-choice { font-size: .6rem; }
    .ff-cell-kei { font-size: .55rem; }
    .ff-bet-input { min-width: 0; padding: 7px 5px; }
    .ff-multiplier { font-size: .52rem; }
}

/* Shio - UI-only betting panel */
.shio-container {
    margin-top: 12px;
    overflow: hidden;
    color: #f5f7fb;
    background: #0b1d35;
    border: 1px solid #29466e;
    border-radius: 8px;
}
.shio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0e2441;
    border-bottom: 1px solid #29466e;
}
.shio-title { font-size: 1.15rem; font-weight: 800; }
.shio-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.shio-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.shio-rule-note {
    margin: 10px 12px 0;
    color: #ffd96a;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 6px;
    font-size: .7rem;
}
.shio-rule-note summary { padding: 9px 11px; font-weight: 800; cursor: pointer; }
.shio-number-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 0 10px 8px;
}
.shio-number-map > div {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 6px;
    padding: 5px 6px;
    color: #dce7f7;
    background: rgba(8, 24, 47, .7);
}
.shio-number-map strong { color: #ffd34d; }
.shio-rule-note p { margin: 0; padding: 0 11px 9px; color: #9fb2cf; text-align: center; }
.shio-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #29466e;
}
.shio-clear-btn {
    padding: 7px 12px;
    color: #ffe36a;
    background: #b42323;
    border: 1px solid #e75050;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.shio-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.shio-autobet-input,
.shio-bet-input {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 9px;
    color: #18243a;
    background: #f7f9fc;
    border: 1px solid #b8c7db;
    border-radius: 5px;
    outline: 0;
    font-weight: 800;
}
.shio-autobet-input:focus,
.shio-bet-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.shio-grid-header,
.shio-row {
    display: grid;
    grid-template-columns: 42px minmax(100px, .8fr) minmax(65px, .5fr) minmax(180px, 1.35fr);
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}
.shio-grid-header {
    color: #e7edf7;
    background: #0a1930;
    border-bottom: 1px solid #29466e;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}
.shio-row { border-bottom: 1px solid #233554; }
.shio-row:last-child { border-bottom: 0; }
.shio-row:hover { background: #112540; }
.shio-cell-id,
.shio-cell-name,
.shio-cell-prize { text-align: center; font-weight: 800; }
.shio-cell-prize { color: #ffd34d; }
.shio-cell-bet { display: flex; align-items: center; gap: 6px; }
.shio-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }

@media (max-width: 600px) {
    .shio-header { align-items: flex-start; padding: 12px 10px; }
    .shio-title { font-size: 1rem; }
    .shio-subtitle { font-size: .63rem; }
    .shio-total { font-size: .82rem; }
    .shio-rule-note { margin: 8px 8px 0; font-size: .58rem; }
    .shio-number-map { grid-template-columns: 1fr; }
    .shio-toolbar { grid-template-columns: auto auto minmax(0, 1fr); padding: 8px; }
    .shio-grid-header,
    .shio-row {
        grid-template-columns: 25px 65px 42px minmax(0, 1fr);
        gap: 4px;
        padding: 7px 6px;
    }
    .shio-grid-header { font-size: .5rem; }
    .shio-cell-id,
    .shio-cell-name { font-size: .65rem; }
    .shio-cell-prize { font-size: .58rem; }
    .shio-bet-input { min-width: 0; padding: 7px 5px; }
    .shio-multiplier { font-size: .52rem; }
}

/* Silang Homo - UI-only betting panel */
.sih-container {
    margin-top: 12px;
    overflow: hidden;
    color: #f5f7fb;
    background: #0b1d35;
    border: 1px solid #29466e;
    border-radius: 8px;
}
.sih-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0e2441;
    border-bottom: 1px solid #29466e;
}
.sih-title { font-size: 1.15rem; font-weight: 800; }
.sih-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.sih-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.sih-rule-note {
    margin: 10px 12px 0;
    padding: 10px 12px;
    color: #ffd96a;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 6px;
    font-size: .72rem;
    line-height: 1.5;
    text-align: center;
}
.sih-rule-note span { display: block; margin-top: 4px; color: #9fb2cf; font-size: .68rem; }
.sih-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}
.sih-clear-btn {
    padding: 7px 12px;
    color: #ffe36a;
    background: #b42323;
    border: 1px solid #e75050;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.sih-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.sih-autobet-input,
.sih-bet-input {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 9px;
    color: #18243a;
    background: #f7f9fc;
    border: 1px solid #b8c7db;
    border-radius: 5px;
    outline: 0;
    font-weight: 800;
}
.sih-autobet-input:focus,
.sih-bet-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.sih-group { border-top: 1px solid #29466e; }
.sih-group-title {
    margin: 0;
    padding: 10px 14px;
    color: #111827;
    background: linear-gradient(90deg, #f59e0b, #ffb300);
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .04em;
}
.sih-grid-header,
.sih-row {
    display: grid;
    grid-template-columns: 42px minmax(100px, .75fr) minmax(60px, .5fr) minmax(180px, 1.35fr);
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}
.sih-grid-header {
    color: #e7edf7;
    background: #0a1930;
    border-bottom: 1px solid #29466e;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}
.sih-row { border-bottom: 1px solid #233554; cursor: pointer; }
.sih-row:last-child { border-bottom: 0; }
.sih-row:hover { background: #112540; }
.sih-cell-id,
.sih-cell-position,
.sih-cell-kei { text-align: center; font-weight: 800; }
.sih-cell-position { color: #f8fafc; }
.sih-cell-kei { color: #ffd34d; }
.sih-cell-bet { display: flex; align-items: center; gap: 6px; }
.sih-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }

@media (max-width: 600px) {
    .sih-header { align-items: flex-start; padding: 12px 10px; }
    .sih-title { font-size: 1rem; }
    .sih-subtitle { font-size: .63rem; }
    .sih-total { font-size: .82rem; }
    .sih-rule-note { margin: 8px 8px 0; padding: 8px; font-size: .59rem; }
    .sih-toolbar { grid-template-columns: auto auto minmax(0, 1fr); padding: 8px; }
    .sih-group-title { padding: 8px 10px; font-size: .75rem; }
    .sih-grid-header,
    .sih-row {
        grid-template-columns: 25px 67px 38px minmax(0, 1fr);
        gap: 4px;
        padding: 7px 6px;
    }
    .sih-grid-header { font-size: .5rem; }
    .sih-cell-id,
    .sih-cell-position { font-size: .62rem; }
    .sih-cell-kei { font-size: .56rem; }
    .sih-bet-input { min-width: 0; padding: 7px 5px; }
    .sih-multiplier { font-size: .52rem; }
}

/* Kembang / Kempis / Kembar - UI-only betting panel */
.kbg-container {
    margin-top: 12px;
    overflow: hidden;
    color: #f5f7fb;
    background: #0b1d35;
    border: 1px solid #29466e;
    border-radius: 8px;
}
.kbg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0e2441;
    border-bottom: 1px solid #29466e;
}
.kbg-title { font-size: 1.15rem; font-weight: 800; }
.kbg-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.kbg-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.kbg-rule-note {
    margin: 10px 12px 0;
    padding: 10px 12px;
    color: #ffd96a;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .45);
    border-radius: 6px;
    font-size: .72rem;
    line-height: 1.5;
    text-align: center;
}
.kbg-rule-note span { display: block; margin-top: 4px; color: #9fb2cf; font-size: .68rem; }
.kbg-toolbar {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}
.kbg-clear-btn {
    padding: 7px 12px;
    color: #ffe36a;
    background: #b42323;
    border: 1px solid #e75050;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}
.kbg-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.kbg-autobet-input,
.kbg-bet-input {
    box-sizing: border-box;
    width: 100%;
    padding: 7px 9px;
    color: #18243a;
    background: #f7f9fc;
    border: 1px solid #b8c7db;
    border-radius: 5px;
    outline: 0;
    font-weight: 800;
}
.kbg-autobet-input:focus,
.kbg-bet-input:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.kbg-group { border-top: 1px solid #29466e; }
.kbg-group-title {
    margin: 0;
    padding: 10px 14px;
    color: #111827;
    background: linear-gradient(90deg, #f59e0b, #ffb300);
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .04em;
}
.kbg-grid-header,
.kbg-row {
    display: grid;
    grid-template-columns: 42px minmax(100px, .75fr) minmax(60px, .5fr) minmax(180px, 1.35fr);
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}
.kbg-grid-header {
    color: #e7edf7;
    background: #0a1930;
    border-bottom: 1px solid #29466e;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}
.kbg-row { border-bottom: 1px solid #233554; cursor: pointer; }
.kbg-row:last-child { border-bottom: 0; }
.kbg-row:hover { background: #112540; }
.kbg-cell-id,
.kbg-cell-position,
.kbg-cell-kei { text-align: center; font-weight: 800; }
.kbg-cell-position { color: #f8fafc; }
.kbg-cell-kei { color: #ffd34d; }
.kbg-cell-bet { display: flex; align-items: center; gap: 6px; }
.kbg-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }

@media (max-width: 600px) {
    .kbg-header { align-items: flex-start; padding: 12px 10px; }
    .kbg-title { font-size: 1rem; }
    .kbg-subtitle { font-size: .63rem; }
    .kbg-total { font-size: .82rem; }
    .kbg-rule-note { margin: 8px 8px 0; padding: 8px; font-size: .59rem; }
    .kbg-toolbar { grid-template-columns: auto auto minmax(0, 1fr); padding: 8px; }
    .kbg-group-title { padding: 8px 10px; font-size: .75rem; }
    .kbg-grid-header,
    .kbg-row {
        grid-template-columns: 25px 67px 38px minmax(0, 1fr);
        gap: 4px;
        padding: 7px 6px;
    }
    .kbg-grid-header { font-size: .5rem; }
    .kbg-cell-id,
    .kbg-cell-position { font-size: .62rem; }
    .kbg-cell-kei { font-size: .56rem; }
    .kbg-bet-input { min-width: 0; padding: 7px 5px; }
    .kbg-multiplier { font-size: .52rem; }
}

/* Kombinasi - UI-only betting panel */
.kmb-container { margin-top: 12px; overflow: hidden; color: #f5f7fb; background: #0b1d35; border: 1px solid #29466e; border-radius: 8px; }
.kmb-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #0e2441; border-bottom: 1px solid #29466e; }
.kmb-title { font-size: 1.15rem; font-weight: 800; }
.kmb-subtitle { margin-top: 3px; color: #9fb2cf; font-size: .75rem; }
.kmb-total { color: #ff6464; font-size: 1rem; font-weight: 900; white-space: nowrap; }
.kmb-rule-note { margin: 10px 12px 0; padding: 10px 12px; color: #ffd96a; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.45); border-radius: 6px; font-size: .72rem; line-height: 1.5; text-align: center; }
.kmb-rule-note span { display: block; margin-top: 4px; color: #9fb2cf; font-size: .68rem; }
.kmb-toolbar { display: grid; grid-template-columns: auto auto minmax(120px,1fr); align-items: center; gap: 8px; padding: 10px 12px; }
.kmb-clear-btn { padding: 7px 12px; color: #ffe36a; background: #b42323; border: 1px solid #e75050; border-radius: 5px; font-size: .72rem; font-weight: 800; cursor: pointer; }
.kmb-auto-label { color: #aebdd3; font-size: .75rem; font-weight: 700; }
.kmb-autobet-input,.kmb-bet-input,.kmb-pick { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px 9px; color: #18243a; background: #f7f9fc; border: 1px solid #b8c7db; border-radius: 5px; outline: 0; font-weight: 800; }
.kmb-autobet-input:focus,.kmb-bet-input:focus,.kmb-pick:focus { border-color: #ffc400; box-shadow: 0 0 0 2px rgba(255,196,0,.16); }
.kmb-grid-header,.kmb-row { display: grid; grid-template-columns: 42px minmax(150px,1fr) minmax(150px,1fr) minmax(150px,.85fr); align-items: center; gap: 8px; padding: 8px 12px; }
.kmb-grid-header { color: #111827; background: linear-gradient(90deg,#f59e0b,#ffb300); font-size: .66rem; font-weight: 900; text-align: center; }
.kmb-row { border-bottom: 1px solid #233554; cursor: pointer; transition: background .15s ease; }
.kmb-row:hover,.kmb-row.is-ready { background: #112540; }
.kmb-row.is-invalid { background: rgba(220,38,38,.12); }
.kmb-row.is-invalid .kmb-pick { border-color: #ef4444; }
.kmb-cell-id { text-align: center; font-weight: 800; }
.kmb-cell-bet { display: flex; align-items: center; gap: 6px; }
.kmb-multiplier { color: #aebdd3; font-size: .75rem; font-weight: 800; }

@media (max-width: 600px) {
    .kmb-header { align-items: flex-start; padding: 12px 10px; }
    .kmb-title { font-size: 1rem; }
    .kmb-subtitle { max-width: 190px; font-size: .63rem; }
    .kmb-total { font-size: .82rem; }
    .kmb-rule-note { margin: 8px 8px 0; padding: 8px; font-size: .59rem; }
    .kmb-toolbar { grid-template-columns: auto auto minmax(0,1fr); padding: 8px; }
    .kmb-grid-header,.kmb-row { grid-template-columns: 23px minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr); gap: 4px; padding: 7px 6px; }
    .kmb-grid-header { font-size: .48rem; }
    .kmb-cell-id { font-size: .62rem; }
    .kmb-pick,.kmb-bet-input { padding: 7px 4px; font-size: .58rem; }
    .kmb-multiplier { font-size: .5rem; }
}

/* Mobile rhythm normalization: keep every top control on the same sizing grid. */
@media (max-width: 768px) {
    #togel-betting-view .togel-betting-container {
        --tb-mobile-control-height: 36px;
        --tb-mobile-stack-gap: 6px;
        gap: var(--tb-mobile-stack-gap);
        padding: 8px 4px;
    }

    #togel-betting-view .tb-header {
        min-height: var(--tb-mobile-control-height);
        gap: var(--tb-mobile-stack-gap);
    }

    #togel-betting-view .tb-header-tab,
    #togel-betting-view .tb-schedule-bar,
    #togel-betting-view .tb-game-type-select,
    #togel-betting-view .tb-prize-info-btn,
    #togel-betting-view .tb-info-item {
        box-sizing: border-box;
        min-height: var(--tb-mobile-control-height);
    }

    #togel-betting-view .tb-header-tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 7px 12px;
    }

    #togel-betting-view .tb-schedule-bar {
        height: var(--tb-mobile-control-height);
        padding-block: 6px;
    }

    #togel-betting-view .tb-filters {
        min-height: var(--tb-mobile-control-height);
        margin: 0;
        gap: var(--tb-mobile-stack-gap);
    }

    #togel-betting-view .tb-game-type-select,
    #togel-betting-view .tb-prize-info-btn {
        height: var(--tb-mobile-control-height);
        padding-block: 6px;
    }

    #togel-betting-view .tb-info-banner {
        min-height: var(--tb-mobile-control-height);
        margin: 0;
    }

    #togel-betting-view .tb-info-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-block: 6px;
    }

    #togel-betting-view .tb-grid-container,
    #togel-betting-view .cb-container,
    #togel-betting-view .cb2-container,
    #togel-betting-view .cn-container,
    #togel-betting-view .cj-container,
    #togel-betting-view .tt-container,
    #togel-betting-view .ds-container,
    #togel-betting-view .ff-container,
    #togel-betting-view .shio-container,
    #togel-betting-view .sih-container,
    #togel-betting-view .kbg-container,
    #togel-betting-view .kmb-container {
        margin-top: 0;
    }
}
