/* Professional light theme. Dark remains the default and is unchanged. */
body.premium-theme.light-theme {
    --premium-bg: #f7f6fb;
    --premium-panel: #ffffff;
    --premium-panel-hover: #f4f0fb;
    --premium-sidebar: #ffffff;
    --premium-border: #e5dff0;
    --premium-border-focus: rgba(109, 60, 231, .35);
    --premium-accent: #6d3ce7;
    --premium-accent-hover: #5628c7;
    --premium-accent-rgb: 109, 60, 231;
    --premium-success: #07964f;
    --premium-danger: #d83d5c;
    --premium-text-primary: #151936;
    --premium-text-secondary: #555d78;
    --premium-text-muted: #747b91;
    --premium-glass-bg: rgba(255, 255, 255, .92);
    --premium-input-bg: #ffffff;
    color: #151936;
    background:
        radial-gradient(circle at 92% 4%, rgba(109, 60, 231, .07), transparent 25%),
        linear-gradient(145deg, #fcfbff, #f5f3fa 58%, #faf9fd);
}

body.light-theme .premium-content { color: #151936; }
body.light-theme .premium-topbar {
    color-scheme: light;
    border-color: #e6e0f0;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 20px rgba(31, 24, 65, .06);
}
body.light-theme .premium-page-title { color: #151936; }
body.light-theme .premium-header-quick,
body.light-theme .premium-hdr-stat {
    border-color: #e4ddf1;
    color: #493289;
    background: #faf8ff;
    box-shadow: 0 4px 12px rgba(54, 38, 95, .05);
}
body.light-theme .premium-hdr-label { color: #68708a; }
body.light-theme .premium-topbar-avatar {
    color: #fff;
    background: linear-gradient(135deg, #6d3ce7, #a34de0 62%, #f17f51);
}

/* Sidebar uses the same light design on desktop and mobile. */
body.light-theme .premium-sidebar {
    color-scheme: light;
    border-color: #e5dff0;
    background:
        radial-gradient(circle at 8% 2%, rgba(109, 60, 231, .075), transparent 24%),
        linear-gradient(180deg, #ffffff, #faf8ff 72%, #f6f3fb);
    box-shadow: 8px 0 28px rgba(42, 31, 78, .1);
}
body.light-theme .premium-sidebar .premium-brand { border-color: #e8e2f1; }
body.light-theme .premium-sidebar .premium-brand-logo {
    color: #fff;
    background: linear-gradient(135deg, #6d3ce7, #9a40db 62%, #ff9e32);
    box-shadow: 0 7px 18px rgba(109, 60, 231, .22);
}
body.light-theme .premium-sidebar .premium-brand-name {
    color: #151936;
    -webkit-text-fill-color: #151936;
}
body.light-theme .premium-sidebar .premium-nav-section-title { color: #7c8194; }
body.light-theme .premium-sidebar .premium-nav-link { color: #4d5570; }
body.light-theme .premium-sidebar .premium-nav-link:hover {
    color: #4c27af;
    border-color: #e1d6f5;
    background: #f4effc;
}
body.light-theme .premium-sidebar .premium-nav-item.active .premium-nav-link {
    color: #5426bd;
    border-color: #e3d8f6;
    border-left-color: #ffbd24;
    background: linear-gradient(90deg, #eee8fb, #f8f5fd);
    box-shadow: 0 5px 14px rgba(83, 48, 155, .08);
}
body.light-theme .premium-sidebar .premium-sidebar-footer {
    border-color: #e5dff0;
    background: rgba(249, 247, 253, .96);
}
body.light-theme .premium-sidebar .premium-sidebar-footer .form-select {
    border-color: #ddd5eb;
    color: #202641;
    background-color: #fff;
}
body.light-theme .premium-sidebar .premium-theme-toggle-btn {
    min-height: 32px;
    border: 1px solid #d9ceed;
    color: #562ab8;
    background: #f1ebfb;
}
body.light-theme .premium-sidebar .premium-theme-toggle-btn:hover { border-color: #7d52d7; background: #e9e0f8; }
body.light-theme .premium-sidebar .premium-user-name { color: #151936; }
body.light-theme .premium-sidebar .premium-user-role,
body.light-theme .premium-sidebar .premium-sidebar-footer .text-muted { color: #747b91 !important; }
body.light-theme .premium-sidebar .premium-user-avatar {
    color: #5d30c7;
    border-color: #d9cfec;
    background: #eee8fa;
}
body.light-theme .premium-sidebar-logout-btn { border-color: rgba(216, 61, 92, .2); color: #c83251; background: #fff2f5; }
body.light-theme .premium-bottombar {
    color-scheme: light;
    border-color: #e1dbea;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -5px 22px rgba(44, 32, 81, .1);
}
body.light-theme .premium-bottom-item { color: #6b7188; }
body.light-theme .premium-bottom-item.active { color: #6330cd; }

/* Shared Bootstrap surfaces and typography. */
body.light-theme h1, body.light-theme h2, body.light-theme h3,
body.light-theme h4, body.light-theme h5, body.light-theme h6 { color: #151936; }
body.light-theme .text-muted { color: #70788f !important; }
body.light-theme .card,
body.light-theme .modal-content,
body.light-theme .dropdown-menu,
body.light-theme .list-group-item {
    color: #252b49;
    border-color: #e3ddec;
    background: #fff;
    box-shadow: 0 8px 24px rgba(43, 32, 79, .07);
}
body.light-theme .card-header, body.light-theme .modal-header, body.light-theme .modal-footer { border-color: #e5dfed; }
body.light-theme .form-label, body.light-theme .form-check-label { color: #353c5a; font-size: .82rem; }
body.light-theme .form-control, body.light-theme .form-select {
    color: #1b213d;
    border-color: #d9d2e5;
    background-color: #fff;
}
body.light-theme .form-control::placeholder { color: #969caf; }
body.light-theme .form-control:focus, body.light-theme .form-select:focus {
    border-color: #7a50d2;
    box-shadow: 0 0 0 .2rem rgba(109, 60, 231, .12);
}
body.light-theme .table {
    color: #222944;
    --bs-table-color: #222944;
    --bs-table-striped-color: #222944;
    --bs-table-hover-color: #222944;
    --bs-table-bg: #fff;
    --bs-table-striped-bg: #faf8fd;
    --bs-table-hover-bg: #f4effb;
    --bs-table-border-color: #e5dfed;
}
body.light-theme .table th { color: #30205f; background: #eee8f9; }
body.light-theme .btn-outline-secondary { color: #555d78; border-color: #cfc7dc; }
body.light-theme .alert-secondary { color: #4d5570; border-color: #ddd5e9; background: #f5f2fa; }

/* Dashboard. */
body.light-theme .dashboard2-page { color: #151936; }
body.light-theme .dashboard2-heading h2, body.light-theme .dashboard2-rate { color: #151936; }
body.light-theme .dashboard2-table-wrap { border-color: #e1dbea; background: #fff; box-shadow: 0 7px 20px rgba(42, 30, 76, .06); }
body.light-theme .dashboard2-table th { color: #fff; background: linear-gradient(115deg, #34236c, #6d3ce7); }
body.light-theme .dashboard2-table td { color: #29304c; background: #fff; }
body.light-theme .dashboard2-formula-row td { color: #636b83; background: #f8f5fc; }

/* My Accounts and Create User. */
body.light-theme .accounts-shell,
body.light-theme .user-create-shell,
body.light-theme .load-panel-shell,
body.light-theme .report-shell,
body.light-theme .admin-page-shell {
    color: #202642;
    color-scheme: light;
    border-color: #ded6eb;
    background:
        radial-gradient(circle at 92% 4%, rgba(109, 60, 231, .055), transparent 24%),
        linear-gradient(150deg, #ffffff, #faf8fd 62%, #f7f4fb);
    box-shadow: 0 12px 34px rgba(45, 32, 82, .08);
}
body.light-theme .accounts-heading h2,
body.light-theme .user-create-title h2,
body.light-theme .load-panel-heading h2,
body.light-theme .report-heading h2,
body.light-theme .admin-page-heading h2 { color: #151936; }
body.light-theme .accounts-heading p, body.light-theme .admin-page-intro { color: #687087; }
body.light-theme .accounts-tool-btn { color: #5c438e; border-color: #d9ceed; background: #f4effb; }
body.light-theme .accounts-table-card, body.light-theme .admin-table-card { border-color: #e0d9ea; background: #fff; }
body.light-theme .accounts-table, body.light-theme .admin-table { color: #252b48; }
body.light-theme .accounts-table thead, body.light-theme .admin-table thead { background: linear-gradient(110deg, #eee7fa, #f7f4fc); }
body.light-theme .accounts-table thead th, body.light-theme .admin-table thead th { color: #4a287e; }
body.light-theme .accounts-table tbody tr, body.light-theme .admin-table tbody tr { color: #252b48; background: #fff; }
body.light-theme .accounts-table tbody tr:nth-child(even), body.light-theme .admin-table tbody tr:nth-child(even) { background: #faf8fd; }
body.light-theme .accounts-table tbody tr:hover, body.light-theme .admin-table tbody tr:hover { background: #f2ecfa; }
body.light-theme .accounts-login, body.light-theme .admin-markets-table td:first-child,
body.light-theme .results-table .result-market { color: #151936; }
body.light-theme .accounts-action, body.light-theme .admin-action-btn { background: #fff; }
body.light-theme .accounts-empty, body.light-theme .admin-empty { color: #71788d; border-color: #cfc3e2; background: #faf8fd; }
body.light-theme .user-create-field label { color: #333a58; }
body.light-theme .user-create-control { border-color: #d8d0e5; background: #fff; }
body.light-theme .user-create-control > span { color: #6936d5; border-color: #e2daed; background: #f4effb; }
body.light-theme .user-create-control input, body.light-theme .user-create-control select { color: #202642; background: #fff; }
body.light-theme .user-create-field small { color: #737a90; }

/* Load panel. */
body.light-theme .load-panel-filters, body.light-theme .load-panel-shell .lp-grid,
body.light-theme .load-panel-empty { border-color: #ded6ea !important; background: #faf8fd !important; }
body.light-theme .load-panel-filters label { color: #616980 !important; }
body.light-theme .load-panel-filters .form-control, body.light-theme .load-panel-filters .form-select { color: #202642; border-color: #d8d0e5; background: #fff; }
body.light-theme .load-panel-filters .form-select option,
body.light-theme .load-panel-filters .form-select optgroup { color: #07384c; background-color: #fff; }
body.light-theme .load-panel-shell .lp-tab { color: #202642 !important; border-color: #ddd4eb !important; background: linear-gradient(145deg, #fff, #f7f3fc) !important; box-shadow: 0 5px 14px rgba(48, 34, 84, .06) !important; }
body.light-theme .load-panel-shell .lp-tab .cut-stat { color: #6e758b; }
body.light-theme .load-panel-shell .lp-tab .cut-stat strong { color: #202642; }
body.light-theme .load-panel-shell .lp-cell { color: #202642 !important; border-color: #ddd5e9 !important; background: #fff !important; box-shadow: none; }
body.light-theme .load-panel-shell .lp-cell .num { color: #6c7388 !important; }
body.light-theme .load-panel-shell .lp-cell .amt { color: #202642 !important; }
body.light-theme .load-panel-shell .lp-sort-control label { color: #616980; }
body.light-theme .load-panel-shell .lp-sort-control .form-select {
    color: #202642 !important;
    color-scheme: light;
    border-color: #b9deea !important;
    background-color: #fff !important;
}
body.light-theme .load-panel-shell .lp-sort-control .form-select option {
    color: #202642;
    background-color: #fff;
}
body.light-theme .load-panel-shell .lp-sort-select-wrap::after {
    border-color: #087da8;
}
body.light-theme .load-panel-shell .modal-content { color: #202642; border-color: #dcd3e8; background: #fff; }
body.light-theme .load-panel-shell .modal-title { color: #151936; }
body.light-theme .load-panel-shell .btn-close { filter: none; }
body.light-theme .load-panel-shell .modal-content .table { --bs-table-color: #202642; --bs-table-bg: #fff; --bs-table-striped-bg: #faf8fd; }
body.light-theme .load-panel-shell .modal-content .table-light { --bs-table-color: #3a2569; --bs-table-bg: #eee8f8; }

/* Report. */
body.light-theme .report-builder, body.light-theme .report-results { border-color: #ddd5e9; background: #fff; }
body.light-theme .report-builder .rp-chip { color: #5a4288; border-color: #d5c9e9; background: #f5f0fb; }
body.light-theme .report-builder #rpReset { color: #555d78; border-color: #d3cadd; background: #fff; }
body.light-theme .report-results .table { --bs-table-color: #222944; --bs-table-striped-color: #222944; --bs-table-hover-color: #222944; --bs-table-bg: #fff; --bs-table-striped-bg: #faf8fd; }
body.light-theme .report-results .table thead { background: #eee7f9; }
body.light-theme .report-results .table thead th { color: #5a2aae !important; }
body.light-theme .report-results .table tbody td,
body.light-theme .report-results .table tbody td * { color: #222944 !important; }
body.light-theme .report-results .table tbody td .text-success { color: #078c4b !important; }
body.light-theme .report-results .table tbody td .text-danger { color: #d43859 !important; }
body.light-theme .report-results .table tfoot { background: #eee8f9; }
body.light-theme .report-results .table tfoot td,
body.light-theme .report-results .table tfoot td * { color: #5b2bb2 !important; }
body.light-theme .report-shell #arCrumbs { color: #333a58; }

/* Admin settings, results and account details. */
body.light-theme .admin-form-panel, body.light-theme .admin-session-panel,
body.light-theme .result-preview, body.light-theme .result-preview > div { border-color: #ddd5e9; background: #fff; }
body.light-theme .admin-form-panel h5, body.light-theme .admin-session-panel legend { color: #5425b5; }
body.light-theme .admin-page-shell .form-label, body.light-theme .admin-day-check .form-check-label,
body.light-theme .admin-market-form .form-check-label { color: #333a58 !important; }
body.light-theme .admin-page-shell .form-control, body.light-theme .admin-page-shell .form-select,
body.light-theme .admin-table .form-control { color: #202642; border-color: #d7cfE4; background-color: #fff; }
body.light-theme .admin-page-shell .form-select option,
body.light-theme .admin-page-shell .form-select optgroup { color: #07384c; background-color: #fff; }
body.light-theme .admin-day-check { color: #333a58; border-color: #ddd5e9; background: #f8f5fc; }
body.light-theme .admin-market-item { color: #202642; border-color: #ddd5e9; background: #fff; }
body.light-theme .result-number, body.light-theme .result-display { background: #faf8fd; }
body.light-theme .result-display { color: #322059; }
body.light-theme .result-preview span { color: #70778d; }
body.light-theme .user-role-badge { color: #fff; background: linear-gradient(145deg, #6d3ce7, #8f47ce); }
body.light-theme .user-details-summary { border-color: #ded6e9; background: #fff; }
body.light-theme .user-details-summary dt { color: #5e657b; border-color: #e5dfed; background: #f1ecf8; }
body.light-theme .user-details-summary dd { color: #202642; border-color: #e5dfed; background: #fff; }
body.light-theme .user-details-card { color: #303650; border-color: #ddd5e9; background: #fff; }
body.light-theme .user-details-card .card-header { color: #3d216f; border-color: #e1d9eb; background: #eee8f8; }
body.light-theme .user-details-card .card-body { color: #303650; }
body.light-theme .user-details-card .form-label, body.light-theme .user-details-card .form-check-label { color: #333a58; }
body.light-theme .user-details-card .form-control { color: #202642; border-color: #d8d0e5; background: #fff; }

/* Home and Play pages. */
body.premium-theme.light-theme .home-luxe-shell,
body.premium-theme.light-theme .play-single-shell,
body.premium-theme.light-theme .play-hub-shell,
body.premium-theme.light-theme .history-shell {
    color: #202642 !important;
    color-scheme: light !important;
    border-color: #ddd3e9 !important;
    background: linear-gradient(150deg, #fff, #faf8fd 65%, #f5f1fa) !important;
    box-shadow: 0 12px 32px rgba(45, 32, 82, .09) !important;
}
body.light-theme .home-section-heading h2, body.light-theme .home-market-name,
body.light-theme .play-game-title, body.light-theme .play-hub-title-line h1,
body.light-theme .history-hero h1 { color: #151936 !important; text-shadow: none !important; }
body.light-theme .home-section-subtitle, body.light-theme .home-rate-base,
body.light-theme .play-coming-panel p, body.light-theme .history-hero p { color: #6d748a !important; }
body.light-theme .home-rate-row, body.light-theme .home-market-card,
body.light-theme .play-type-card, body.light-theme .history-table-card { border-color: #ddd4e8 !important; background: #fff !important; box-shadow: 0 6px 18px rgba(42, 30, 76, .06) !important; }
body.light-theme .home-rate-name, body.light-theme .home-session-time,
body.light-theme .play-type-name { color: #202642 !important; }
body.light-theme .home-market-result { background: #f6f1fb; }
body.light-theme .home-market-body, body.light-theme .home-chart-btn { border-color: #e0d8eb; color: #4f5872; background: #faf8fd; }
body.light-theme .home-running-badge {
    color: #087a35;
    border-color: #78d89b;
    background: #e7f8ed;
}
body.light-theme .home-running-badge::after { background: #0c9a43; box-shadow: 0 0 6px rgba(12, 154, 67, .45); }
body.light-theme .home-running-badge.closed { color: #62697b; border-color: #cdd1db; background: #f0f1f4; }
body.light-theme .home-countdown { color: #087a35; text-shadow: none; }
body.light-theme .home-countdown.ended { color: #c4253e; }
body.light-theme .play-game-header, body.light-theme .play-hub-hero {
    border-color: #d9ceed;
    background: linear-gradient(125deg, #eee8fb, #faf8fd 58%, #f2e8f8);
}
body.light-theme .play-close-time, body.light-theme .play-balance-label,
body.light-theme .play-hub-copy p { color: #5f667d; }
body.light-theme .play-session-badge, body.light-theme .play-info-note,
body.light-theme .play-bet-panel { color: #303650; border-color: #ddd3e8; background: #fff; }
body.light-theme .play-entry-input, body.light-theme .play-matrix-input,
body.light-theme .play-amount { color: #202642; border-color: #d8cfe6; background: #fff; }
body.light-theme .play-entry-input::placeholder, body.light-theme .play-matrix-input::placeholder,
body.light-theme .play-amount::placeholder { color: #969caf; }
body.light-theme .play-matrix-wrap { border-color: #dcd2e8; background: #fff; }
body.light-theme .play-matrix thead th { color: #5d2dc2; background: #eee8f8; }
body.light-theme .play-matrix th, body.light-theme .play-matrix td { border-color: #e3ddec; }
body.light-theme .play-digit { color: #3c245f; background: #f5f0fb; }
body.light-theme .play-back-btn, body.light-theme .play-add-row { color: #6330c8; border-color: #d2c3e8; background: #f4effb; }
body.light-theme .play-total { color: #202642; }
body.light-theme .history-tabs, body.light-theme .history-filters { border-color: #ddd4e8; background: #fff; }
body.light-theme .history-tab { color: #666d83; }
body.light-theme .history-tab:hover, body.light-theme .history-tab.active { color: #5d2bc0; background: #eee8f9; }
body.light-theme .history-filters label span { color: #626a80; }
body.light-theme .history-filters input, body.light-theme .history-filters select { color: #202642; color-scheme: light; border-color: #d9d1e5; background: #fff; }
body.light-theme .history-table { color: #252b48; }
body.light-theme .history-table thead, body.light-theme .history-table tfoot { background: #eee8f8; }
body.light-theme .history-table thead th { color: #4b287f; }
body.light-theme .history-id, body.light-theme .history-result { color: #4f5770; }

/* Maintain comfortable text size across narrow screens. */
@media (max-width: 680px) {
    body.light-theme { font-size: 14px; }
    body.light-theme .premium-nav-link { font-size: .9rem; }
    body.light-theme .table th, body.light-theme .table td { font-size: .78rem; }
    body.light-theme .admin-page-intro, body.light-theme .accounts-heading p { font-size: .8rem; }
}

/* EchoSphere-inspired light palette: cyan, ocean blue, deep teal, and white. */
body.premium-theme.light-theme {
    --light-cyan: #25aadd;
    --light-blue: #118ab8;
    --light-teal: #07516d;
    --light-ink: #07384c;
    --light-pale: #eefaff;
    --premium-bg: #f2fbfe;
    --premium-panel-hover: #e9f8fd;
    --premium-border: #cfe8f1;
    --premium-border-focus: rgba(37, 170, 221, .38);
    --premium-accent: #159dce;
    --premium-accent-hover: #087ca7;
    --premium-accent-rgb: 37, 170, 221;
    --premium-text-primary: #07384c;
    --premium-text: #07384c;
    --premium-text-secondary: #416574;
    --premium-text-muted: #718a95;
    color: var(--light-ink);
    background:
        radial-gradient(circle at 92% 2%, rgba(37, 170, 221, .1), transparent 25%),
        linear-gradient(145deg, #ffffff, #f2fbfe 58%, #eaf7fb);
}
body.light-theme .premium-content { color: var(--light-ink); }
body.light-theme .premium-topbar {
    border-color: #cfe7f0;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 5px 20px rgba(7, 81, 109, .09);
}
body.light-theme .premium-page-title,
body.light-theme h1, body.light-theme h2, body.light-theme h3,
body.light-theme h4, body.light-theme h5, body.light-theme h6 { color: var(--light-ink); }
body.light-theme .premium-header-quick,
body.light-theme .premium-hdr-stat { color: var(--light-teal); border-color: #c9e7f1; background: #f3fbfe; }
body.light-theme .premium-topbar-avatar,
body.light-theme .premium-sidebar .premium-brand-logo {
    background: linear-gradient(145deg, var(--light-cyan), var(--light-blue) 58%, var(--light-teal));
    box-shadow: 0 7px 18px rgba(17, 138, 184, .3);
}

body.light-theme .premium-sidebar {
    border-color: rgba(255, 255, 255, .22);
    background:
        radial-gradient(circle at 15% 3%, rgba(255, 255, 255, .12), transparent 25%),
        linear-gradient(180deg, #25aadd, #148fbd 45%, #07516d 100%);
    box-shadow: 8px 0 28px rgba(5, 69, 93, .2);
}
body.light-theme .premium-sidebar .premium-brand { border-color: rgba(255, 255, 255, .2); }
body.light-theme .premium-sidebar .premium-brand-logo { border: 1px solid rgba(255, 255, 255, .5); }
body.light-theme .premium-sidebar .premium-brand-name,
body.light-theme .premium-sidebar .premium-user-name { color: #fff; -webkit-text-fill-color: #fff; }
body.light-theme .premium-sidebar .premium-nav-section-title,
body.light-theme .premium-sidebar .premium-user-role,
body.light-theme .premium-sidebar .premium-sidebar-footer .text-muted { color: rgba(255, 255, 255, .72) !important; }
body.light-theme .premium-sidebar .premium-nav-link { color: rgba(255, 255, 255, .88); }
body.light-theme .premium-sidebar .premium-nav-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
}
body.light-theme .premium-sidebar .premium-nav-item.active .premium-nav-link {
    color: #07516d;
    border-color: rgba(255, 255, 255, .72);
    border-left-color: #fff;
    background: #fff;
    box-shadow: 0 7px 18px rgba(4, 65, 88, .18);
}
body.light-theme .premium-sidebar .premium-sidebar-footer {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(3, 62, 84, .28);
}
body.light-theme .premium-sidebar .premium-sidebar-footer .form-select {
    color: #174759;
    border-color: rgba(255, 255, 255, .58);
    background-color: #fff;
}
body.light-theme .premium-sidebar .premium-theme-toggle-btn {
    color: #07516d;
    border-color: rgba(255, 255, 255, .72);
    background: #fff;
}
body.light-theme .premium-sidebar .premium-theme-toggle-btn:hover { color: #033f57; border-color: #fff; background: #eafaff; }
body.light-theme .premium-sidebar .premium-user-avatar { color: #fff; border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .14); }
body.light-theme .premium-sidebar-logout-btn { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(4, 57, 78, .28); }
body.light-theme .premium-bottombar { border-color: #c9e5ee; box-shadow: 0 -5px 22px rgba(7, 81, 109, .12); }
body.light-theme .premium-bottom-item.active { color: #0786b5; }

body.light-theme .form-control:focus, body.light-theme .form-select:focus {
    border-color: var(--light-cyan);
    box-shadow: 0 0 0 .2rem rgba(37, 170, 221, .14);
}
body.light-theme .btn-primary,
body.light-theme .admin-primary-btn,
body.light-theme .accounts-create-btn,
body.light-theme .user-create-submit,
body.light-theme .load-panel-cutting-btn,
body.light-theme .report-builder #rpGenerate,
body.light-theme .user-details-card .btn-primary,
body.light-theme .user-details-card .btn-success {
    border-color: #32b6e2;
    color: #fff;
    background: linear-gradient(135deg, #25aadd, #118ab8 58%, #07516d);
    box-shadow: 0 7px 17px rgba(17, 138, 184, .22);
}
body.light-theme .admin-outline-btn,
body.light-theme .accounts-tool-btn,
body.light-theme .user-create-cancel { color: #087da8; border-color: #b9dfec; background: #eefaff; }

body.light-theme .accounts-shell,
body.light-theme .user-create-shell,
body.light-theme .load-panel-shell,
body.light-theme .report-shell,
body.light-theme .admin-page-shell,
body.premium-theme.light-theme .home-luxe-shell,
body.premium-theme.light-theme .play-single-shell,
body.premium-theme.light-theme .play-hub-shell,
body.premium-theme.light-theme .history-shell {
    border-color: #c9e5ef !important;
    background:
        radial-gradient(circle at 92% 4%, rgba(37, 170, 221, .08), transparent 24%),
        linear-gradient(150deg, #fff, #f5fcfe 64%, #edf9fc) !important;
    box-shadow: 0 12px 34px rgba(7, 81, 109, .1) !important;
}
body.light-theme .accounts-kicker, body.light-theme .load-panel-kicker,
body.light-theme .report-kicker, body.light-theme .admin-page-kicker { color: #0c93c2; }
body.light-theme .accounts-table-card, body.light-theme .admin-table-card,
body.light-theme .report-builder, body.light-theme .report-results,
body.light-theme .load-panel-filters, body.light-theme .admin-form-panel,
body.light-theme .admin-session-panel, body.light-theme .user-details-card,
body.light-theme .user-details-summary { border-color: #cfe7f0; }
body.light-theme .accounts-table thead, body.light-theme .admin-table thead,
body.light-theme .report-results .table thead,
body.light-theme .history-table thead, body.light-theme .history-table tfoot,
body.light-theme .dashboard2-table th,
body.light-theme .user-details-card .card-header {
    background: linear-gradient(110deg, #07516d, #118ab8 60%, #25aadd);
}
body.light-theme .accounts-table thead th, body.light-theme .admin-table thead th,
body.light-theme .report-results .table thead th,
body.light-theme .history-table thead th,
body.light-theme .dashboard2-table th,
body.light-theme .user-details-card .card-header { color: #fff !important; }
body.light-theme .report-results .table tfoot { background: #dff4fa; }
body.light-theme .report-results .table tfoot td,
body.light-theme .report-results .table tfoot td * { color: #07516d !important; }
body.light-theme .dashboard2-table-wrap { border-color: #cde6ef; box-shadow: 0 7px 20px rgba(7, 81, 109, .08); }
body.light-theme .result-number.open, body.light-theme .result-number.jodi,
body.light-theme .result-number.close, body.light-theme .result-display { color: #087da8; border-color: #b9deea; }
body.light-theme .play-game-header, body.light-theme .play-hub-hero {
    border-color: #bfe1ec;
    background: linear-gradient(125deg, #dff5fb, #f8fdff 58%, #d9f1f8);
}
body.light-theme .play-matrix thead th, body.light-theme .history-tab:hover,
body.light-theme .history-tab.active { color: #087fa9; background: #ddf3f9; }
body.light-theme .play-entry-input:focus, body.light-theme .play-matrix-input:focus,
body.light-theme .play-amount:focus { border-color: #25aadd; box-shadow: 0 0 0 3px rgba(37, 170, 221, .14); }

/* Light-theme header and footer use the reference ocean gradient. */
body.light-theme .premium-topbar {
    color-scheme: dark;
    border-color: rgba(255, 255, 255, .2);
    background: #25aadd !important;
    box-shadow: 0 7px 22px rgba(5, 72, 98, .22);
}
body.light-theme .premium-topbar .premium-page-title,
body.light-theme .premium-topbar .premium-hdr-label { color: #fff; }
body.light-theme .premium-topbar .premium-header-quick,
body.light-theme .premium-topbar .premium-hdr-stat {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
    background: rgba(4, 72, 98, .22);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, .05);
}
body.light-theme .premium-topbar .premium-header-value.balance-value { color: #b8ffd2; text-shadow: none; }
body.light-theme .premium-topbar .premium-header-value.exposure-value { color: #fff0a8; text-shadow: none; }
body.light-theme .premium-topbar .premium-mobile-toggle,
body.light-theme .premium-topbar .premium-header-back { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); }
body.light-theme .premium-topbar-avatar { border: 2px solid rgba(255, 255, 255, .76); color: #07516d; background: #fff; }
body.light-theme .premium-topbar::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), #fff, rgba(255,255,255,.38), transparent);
}

body.light-theme .premium-bottombar {
    color-scheme: dark;
    border-color: rgba(255, 255, 255, .22);
    background: linear-gradient(110deg, #07516d, #118ab8 58%, #25aadd);
    box-shadow: 0 -7px 22px rgba(5, 72, 98, .22);
}
body.light-theme .premium-bottombar .premium-bottom-item { color: rgba(255, 255, 255, .78); }
body.light-theme .premium-bottombar .premium-bottom-item:hover,
body.light-theme .premium-bottombar .premium-bottom-item.active { color: #fff; }
body.light-theme .premium-bottombar .premium-bottom-item.active::after { background: #fff; box-shadow: 0 0 9px rgba(255, 255, 255, .65); }
body.light-theme .premium-bottombar .premium-bottom-logout { color: #ffe2e7; }
