/* Shared light/dark theme. Dark remains the default to preserve the existing UI. */
.topbar-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 34px;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.topbar-theme-toggle:hover,
.topbar-theme-toggle:focus-visible {
    border-color: rgba(255, 205, 90, .78) !important;
    color: #fff7d4 !important;
    transform: translateY(-1px);
}

.topbar-theme-toggle .bi-sun-fill { color: #ffd15c; }
.topbar-theme-toggle .bi-moon-stars-fill { color: #8fc8ff; }

html[data-theme="light"] {
    --bg-main: #eef3f9;
    --bg-elevated: #ffffff;
    --bg-elevated-soft: #f5f8fc;
    --text-main: #05070a;
    --text-muted: #1f2933;
    --border-subtle: #d4deeb;
    --premium-bg: #eef3f9;
    --premium-bg-2: #e7eef7;
    --premium-panel: rgba(255, 255, 255, .98);
    --premium-panel-2: rgba(247, 250, 254, .98);
    --premium-text: #05070a;
    --premium-white: #05070a;
    --premium-muted: #1f2933;
    --premium-line: rgba(29, 78, 151, .22);
    --premium-line-soft: rgba(29, 78, 151, .12);
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 82% 10%, rgba(234, 179, 69, .13), transparent 26%),
        radial-gradient(circle at 9% 0%, rgba(43, 124, 255, .12), transparent 30%),
        linear-gradient(135deg, #f7faff 0%, #edf3fa 52%, #e7eef7 100%) !important;
    color: #05070a !important;
}

html[data-theme="light"] .app-shell,
html[data-theme="light"] .main-content,
html[data-theme="light"] main,
html[data-theme="light"] .page-shell,
html[data-theme="light"] .page-wrapper,
html[data-theme="light"] .content-wrapper,
html[data-theme="light"] .app-content,
html[data-theme="light"] .rent-v1-modern,
html[data-theme="light"] .mail-simv1-page,
html[data-theme="light"] .admin-modern-page {
    background-color: transparent !important;
    color: #172033 !important;
}

html[data-theme="light"] .main-content {
    background:
        radial-gradient(circle at 80% 8%, rgba(211, 155, 52, .08), transparent 28%),
        linear-gradient(180deg, rgba(250, 252, 255, .96), rgba(236, 242, 249, .98)) !important;
}

html[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #ffffff, #f2f6fb) !important;
    border-right-color: #d8e1ec !important;
    box-shadow: 16px 0 42px rgba(45, 65, 95, .10) !important;
}

html[data-theme="light"] .sidebar-title,
html[data-theme="light"] .sidebar-section-title { color: #05070a !important; }
html[data-theme="light"] .sidebar-subtitle { color: #05070a !important; }
html[data-theme="light"] .sidebar .nav-link { color: #05070a !important; }
html[data-theme="light"] .sidebar .nav-link .nav-icon {
    background: #fff7df !important;
    border-color: #ead49d !important;
    color: #9a690f !important;
}
html[data-theme="light"] .sidebar .nav-link.active,
html[data-theme="light"] .sidebar .nav-link:hover {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(90deg, #cbe5ff, #a9d2ff) !important;
    border-color: #4b9be8 !important;
}
html[data-theme="light"] .sidebar-footer {
    background: linear-gradient(180deg, rgba(242,246,251,0), #f2f6fb 34%) !important;
    border-top-color: #d8e1ec !important;
    color: #05070a !important;
}
html[data-theme="light"] .sidebar-footer :is(.btn-primary, .btn-outline-light) {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(180deg, #d8ebff, #b9d9fb) !important;
    border-color: #69a9e6 !important;
    box-shadow: 0 7px 18px rgba(24,91,189,.17) !important;
}
html[data-theme="light"] .sidebar-footer :is(.btn-primary, .btn-outline-light):hover {
    color: #05070a !important;
    background: linear-gradient(180deg, #c7e3ff, #a8d0f6) !important;
    border-color: #438fd5 !important;
}

html[data-theme="light"] .topbar {
    background: rgba(255, 255, 255, .92) !important;
    border-bottom-color: #d8e1ec !important;
    box-shadow: 0 12px 34px rgba(45, 65, 95, .10) !important;
}
html[data-theme="light"] .topbar-title { color: #05070a !important; }
html[data-theme="light"] .topbar-subtitle { color: #05070a !important; }

html[data-theme="light"] .badge-pill-soft,
html[data-theme="light"] .topbar-server-chip,
html[data-theme="light"] .topbar-balance-chip,
html[data-theme="light"] .topbar-theme-toggle {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(180deg, #ffffff, #edf4fa) !important;
    border-color: #b9cbdc !important;
}
html[data-theme="light"] .topbar-server-chip.is-current {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(180deg, #d7ebff, #b7d9fb) !important;
    border-color: #589ad8 !important;
}
html[data-theme="light"] .topbar-balance-chip.is-success {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(180deg, #f2fff8, #e5f7ee) !important;
    border-color: #9fd6be !important;
}
html[data-theme="light"] .topbar-balance-chip .topbar-balance-label { color: inherit !important; }
html[data-theme="light"] .topbar-theme-toggle:hover,
html[data-theme="light"] .topbar-theme-toggle:focus-visible {
    color: #69470a !important;
    border-color: #d4aa55 !important;
}

html[data-theme="light"] :is(.card, .premium-card, .premium-stat, .premium-hero, .premium-module-card, .rent-section-card, .service-panel-card, .rent-admin-stat, .mail-simv1-process-card, .section-card, .sysdash-card) {
    background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(244,248,253,.99)) !important;
    border-color: #cbd7e5 !important;
    color: #05070a !important;
    box-shadow: 0 12px 32px rgba(45,65,95,.09) !important;
}
html[data-theme="light"] :is(.card-header, .rent-section-head, .section-title, .sysdash-card__header) {
    background: linear-gradient(90deg, #edf4fb, #f8fbff) !important;
    border-color: #d2ddea !important;
    color: #05070a !important;
}
html[data-theme="light"] :is(.rent-section-body, .card-body, .section-body, .sysdash-card__body) {
    color: #05070a !important;
}

html[data-theme="light"] :is(.form-control, .custom-select, .input-group-text, textarea, select, input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"])) {
    background-color: #ffffff !important;
    border-color: #bfcddd !important;
    color: #05070a !important;
}
html[data-theme="light"] :is(.form-control, .custom-select, textarea, input)::placeholder { color: #252b33 !important; opacity: .82 !important; }
html[data-theme="light"] :is(.form-control, .custom-select, textarea, select, input):focus {
    border-color: #4b8ce8 !important;
    box-shadow: 0 0 0 .16rem rgba(47,125,232,.14) !important;
}

html[data-theme="light"] :is(.table, table) { color: #05070a !important; }
html[data-theme="light"] :is(.table, table) thead th {
    background-color: #eaf1f8 !important;
    color: #05070a !important;
    border-color: #ccd8e5 !important;
}
html[data-theme="light"] :is(.table, table) tbody td {
    background-color: rgba(255,255,255,.86) !important;
    color: #05070a !important;
    border-color: #d8e1ec !important;
}
html[data-theme="light"] .table-hover tbody tr:hover td { background-color: #edf5ff !important; }

html[data-theme="light"] :is(.modal-content, .dropdown-menu, .service-picker-modal, .service-picker-dialog) {
    background: #f9fbfe !important;
    border-color: #c8d5e3 !important;
    color: #05070a !important;
}
html[data-theme="light"] :is(.modal-header, .modal-footer) { border-color: #d4dfeb !important; }
html[data-theme="light"] :is(.dropdown-item, .page-link) { color: #05070a !important; }
html[data-theme="light"] .dropdown-item:hover { background: #eaf3ff !important; }

html[data-theme="light"] :is(.text-white, .font-weight-bold, strong, h1, h2, h3, h4, h5, h6) {
    color: inherit;
}
html[data-theme="light"] .text-muted { color: #161b22 !important; }
html[data-theme="light"] hr { border-color: #d5dfeb !important; }

/* User pages use view-local dark styles. These higher-specificity rules keep
   the light theme coherent without changing the established dark theme. */
html[data-theme="light"] body:has(.rent-v1-modern) main,
html[data-theme="light"] body:has(.proxy-shell) main,
html[data-theme="light"] body:has(.deposit-shell) main,
html[data-theme="light"] body:has(.api-get-shell) main,
html[data-theme="light"] body:has(.services-modern-shell) main,
html[data-theme="light"] body:has(.stats-modern-shell) main,
html[data-theme="light"] body:has(.ref-modern-shell) main,
html[data-theme="light"] body:has(.account-settings-modern) main,
html[data-theme="light"] body:has(.change-pass-modern) main {
    background:
        radial-gradient(circle at 84% 0%, rgba(46, 127, 232, .09), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%) !important;
    color: #1c2a40 !important;
}

html[data-theme="light"] body .rent-v1-modern {
    --sim-bg: #eef3f9;
    --sim-panel: rgba(255, 255, 255, .98);
    --sim-panel-2: rgba(246, 250, 255, .98);
    --sim-line: rgba(34, 103, 190, .25);
    --sim-soft-line: rgba(34, 103, 190, .13);
    --sim-text: #1b2a42;
    --sim-muted: #60748f;
    color: #1b2a42 !important;
    background: transparent !important;
}

html[data-theme="light"] body .rent-v1-modern :is(.simv1-title-box h1, .simv1-title-box p) {
    color: #1c2a40 !important;
    text-shadow: none !important;
}

html[data-theme="light"] body .rent-v1-modern .simv1-stat-card {
    background: linear-gradient(145deg, #ffffff, #f3f7fc) !important;
    border-color: #c9d7e7 !important;
    box-shadow: 0 10px 25px rgba(45, 65, 95, .09), inset 0 1px 0 #fff !important;
}
html[data-theme="light"] body .rent-v1-modern .simv1-stat-card.stat-online { background: linear-gradient(135deg, #effcf7, #ffffff) !important; border-color: #9edbc4 !important; }
html[data-theme="light"] body .rent-v1-modern .simv1-stat-card.stat-available { background: linear-gradient(135deg, #eef6ff, #ffffff) !important; border-color: #a9c9ef !important; }
html[data-theme="light"] body .rent-v1-modern .simv1-stat-card.stat-waiting { background: linear-gradient(135deg, #f6f1ff, #ffffff) !important; border-color: #cbb9ea !important; }
html[data-theme="light"] body .rent-v1-modern .simv1-stat-card.stat-visible { background: linear-gradient(135deg, #fff8e9, #ffffff) !important; border-color: #e1ca92 !important; }
html[data-theme="light"] body .rent-v1-modern :is(.simv1-stat-label, .simv1-stat-value, .simv1-stat-desc) {
    color: #24344d !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern .simv1-stat-desc { color: #61728a !important; }

/* The illustrated process strip remains a deliberate dark brand banner. */
html[data-theme="light"] body .rent-v1-modern :is(.simv1-process-card, .mail-simv1-process-card) {
    border-color: #2b86d8 !important;
    background-color: #031534 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(38, 83, 132, .18) !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.simv1-process-title, .simv1-step-name, .simv1-step-desc, .mail-simv1-process-title, .mail-simv1-step-name, .mail-simv1-step-desc) {
    color: #ffffff !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.simv1-process-title, .mail-simv1-process-title) { color: #32dfff !important; }

html[data-theme="light"] body .rent-v1-modern :is(.service-panel-card, .premium-module-card, .rent-section-card, .simv1-service-card, .simv1-otp24-card, .simv1-requests-card) {
    background: linear-gradient(145deg, #ffffff, #f5f9fd) !important;
    border-color: #bdd0e3 !important;
    color: #1c2a40 !important;
    box-shadow: 0 10px 27px rgba(45, 65, 95, .08) !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.service-panel-card, .premium-module-card, .rent-section-card) > .card-header,
html[data-theme="light"] body .rent-v1-modern .rent-section-head {
    background: linear-gradient(90deg, #eaf3fc, #f8fbff) !important;
    border-color: #cbd9e7 !important;
    color: #183655 !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.card-body, .rent-section-body) { color: #263750 !important; }
html[data-theme="light"] body .rent-v1-modern :is(.service-panel-header, .rent-section-head, .rent-field-label, .rent-form-label) {
    color: #12649c !important;
    text-shadow: none !important;
}

html[data-theme="light"] body .rent-v1-modern :is(.form-control, select.form-control, .custom-select, .rent-control) {
    background: #ffffff !important;
    border-color: #aebfd3 !important;
    color: #18273d !important;
    box-shadow: inset 0 1px 2px rgba(42, 61, 88, .04) !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.input-group-text, .rent-search-clear-btn) {
    background: #edf3f9 !important;
    border-color: #aebfd3 !important;
    color: #334966 !important;
}
html[data-theme="light"] body .rent-v1-modern .filter-service:not(.active):not(.btn-primary) {
    color: #28425f !important;
    background: linear-gradient(180deg, #ffffff, #edf4fa) !important;
    border-color: #aac2db !important;
    box-shadow: 0 5px 14px rgba(45, 65, 95, .06) !important;
}
html[data-theme="light"] body .rent-v1-modern .filter-service:not(.active):not(.btn-primary):hover {
    color: #145ba1 !important;
    background: #e8f3ff !important;
    border-color: #6ea5db !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.rent-meta-pill, .glass-badge, .rent-otp-count-badge, .countdown) {
    color: #27415f !important;
    background: #edf4fa !important;
    border-color: #b7c9db !important;
}
html[data-theme="light"] body .rent-v1-modern .alert {
    color: #334155 !important;
    background: #fffaf0 !important;
    border-color: #e1c98d !important;
}
html[data-theme="light"] body .rent-v1-modern .table-responsive { background: #ffffff !important; }
html[data-theme="light"] body .rent-v1-modern :is(.premium-data-table, .rent-mail-table) thead th {
    color: #41536b !important;
    background: #e8f0f8 !important;
    border-color: #cad7e4 !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.premium-data-table, .rent-mail-table) tbody td {
    color: #273850 !important;
    background: #ffffff !important;
    border-color: #d9e2ec !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.premium-data-table, .rent-mail-table) tbody tr:hover td { background: #edf6ff !important; }

/* Proxy catalog and purchased-package management. */
html[data-theme="light"] body .proxy-shell { color: #1c2a40 !important; }
html[data-theme="light"] body .proxy-shell :is(.proxy-hero, .proxy-toolbar, .proxy-panel, .proxy-list, .proxy-account-panel, .proxy-picker-panel, .proxy-manage-panel, .proxy-picker-selected, .proxy-picker-buy, .proxy-manage-card) {
    color: #1c2a40 !important;
    background: linear-gradient(145deg, #ffffff, #f4f8fc) !important;
    border-color: #c6d5e4 !important;
    box-shadow: 0 11px 30px rgba(45, 65, 95, .08) !important;
}
html[data-theme="light"] body .proxy-shell :is(.proxy-stat, .proxy-balance-card, .proxy-manage-empty, .proxy-picker-fact, .proxy-empty-note, .proxy-login-note) {
    color: #30435d !important;
    background: #f2f6fb !important;
    border-color: #d1dce8 !important;
}
html[data-theme="light"] body .proxy-shell :is(.proxy-stat small, .proxy-picker-fact small, .proxy-picker-trigger span) { color: #64758c !important; }
html[data-theme="light"] body .proxy-shell :is(.proxy-stat strong, .proxy-balance-card strong, .proxy-picker-fact strong, .proxy-picker-selected-head h5, .proxy-picker-trigger strong) { color: #1d2d45 !important; }
html[data-theme="light"] body .proxy-shell :is(.proxy-picker-trigger, .proxy-group-filter, .proxy-chip) {
    color: #294461 !important;
    background: #edf5fc !important;
    border-color: #aac5df !important;
}
html[data-theme="light"] body .proxy-shell :is(.proxy-picker-trigger:hover, .proxy-group-filter:hover, .proxy-group-filter.is-active) {
    color: #154f87 !important;
    background: #e4f1ff !important;
    border-color: #72a7da !important;
}
html[data-theme="light"] body .proxy-shell :is(#proxyOpenCatalogBtn, #proxySelectedTrigger) {
    color: #15547d !important;
    background: #e8f6fc !important;
    border-color: #63a9c9 !important;
    box-shadow: none !important;
}
html[data-theme="light"] body .proxy-shell :is(#proxyOpenCatalogBtn, #proxySelectedTrigger):hover {
    color: #ffffff !important;
    background: #167fa9 !important;
    border-color: #167fa9 !important;
}
html[data-theme="light"] body .proxy-shell .proxy-picker-login .btn-primary {
    color: #ffffff !important;
    background: #176fbd !important;
    border-color: #176fbd !important;
    box-shadow: 0 7px 18px rgba(23,111,189,.18) !important;
}
html[data-theme="light"] body .proxy-shell .proxy-picker-login .btn-primary:hover {
    background: #115a9a !important;
    border-color: #115a9a !important;
}
html[data-theme="light"] body .proxy-shell .proxy-picker-login .text-white { color: #20344f !important; }
html[data-theme="light"] body .proxy-shell :is(.proxy-picker-panel, .proxy-picker-selected) .text-warning { color: #8a5a07 !important; }

/* Deposit pages. Keep semantic colors while making all reading surfaces light. */
html[data-theme="light"] body .deposit-shell { color: #1c2a40 !important; }
html[data-theme="light"] body .deposit-shell :is(.hero, .card, .stat-panel, .section-card) {
    color: #1c2a40 !important;
    background: linear-gradient(145deg, #ffffff, #f4f8fc) !important;
    border-color: #c6d5e4 !important;
    box-shadow: 0 11px 30px rgba(45, 65, 95, .08) !important;
}
html[data-theme="light"] body .deposit-shell :is(.card-hd, .section-title) {
    color: #233750 !important;
    background: linear-gradient(90deg, #eaf2fa, #f8fbff) !important;
    border-color: #ccd8e5 !important;
}
html[data-theme="light"] body .deposit-shell :is(.muted, .hint, .field label, .summary .label, .row2, .bank-cancel-note, .empty, .money-hint, .stat-panel .label, .invoice-field .caption, .empty-text) { color: #65768d !important; }
html[data-theme="light"] body .deposit-shell :is(.summary, .qr-box, .bank-info, .side-item, .invoice-field, .summary-box) {
    color: #263750 !important;
    background: #f1f6fb !important;
    border-color: #cedae6 !important;
}
html[data-theme="light"] body .deposit-shell :is(.summary .value, .value-inline, .invoice-field .big, .deposit-headline h4) { color: #1d2d45 !important; }
html[data-theme="light"] body .deposit-shell :is(.tab-btn, .quick-btn, .soft-btn, .copy-btn, .back-btn, .quick-amount, .copy-row .form-control) {
    color: #294461 !important;
    background: #edf4fa !important;
    border-color: #b6c8da !important;
}
html[data-theme="light"] body .deposit-shell :is(.money-input input, .crypto-old .money-input input) {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #aebfd3 !important;
}
html[data-theme="light"] body .deposit-shell .history-table td { background: #ffffff !important; border-color: #d8e2ec !important; }
html[data-theme="light"] body .deposit-shell .history-table th { color: #50627a !important; }

/* Services, account, statistics and referral modules. */
html[data-theme="light"] body :is(.services-modern-shell, .stats-modern-shell, .ref-modern-shell, .account-settings-modern, .change-pass-modern) {
    color: #1c2a40 !important;
}
html[data-theme="light"] body :is(.services-modern-shell, .stats-modern-shell, .ref-modern-shell, .account-settings-modern, .change-pass-modern) :is(.card, .premium-module-card, .premium-page-hero, .stats-kpi-card) {
    color: #1c2a40 !important;
    background: linear-gradient(145deg, #ffffff, #f4f8fc) !important;
    border-color: #c6d5e4 !important;
    box-shadow: 0 11px 30px rgba(45, 65, 95, .08) !important;
}
html[data-theme="light"] body .services-modern-shell .services-hero {
    color: #1c2a40 !important;
    background: radial-gradient(circle at 88% 18%, rgba(52,139,221,.12), transparent 30%), linear-gradient(135deg, #ffffff, #eef5fb) !important;
    border-color: #c5d4e3 !important;
    box-shadow: 0 12px 30px rgba(42,63,91,.09) !important;
}
html[data-theme="light"] body .services-modern-shell .services-hero::after { opacity: .14 !important; }
html[data-theme="light"] body .services-modern-shell .services-eyebrow { color: #8a5a07 !important; }
html[data-theme="light"] body .services-modern-shell .services-title { color: #172a44 !important; }
html[data-theme="light"] body .services-modern-shell :is(.services-subtitle, .premium-page-note) { color: #62748b !important; }
html[data-theme="light"] body .services-modern-shell .nav-tabs .nav-link {
    color: #29425f !important;
    background: #edf3f9 !important;
    border-color: #bdccdc !important;
    box-shadow: none !important;
}
html[data-theme="light"] body .services-modern-shell .nav-tabs .nav-link:hover {
    color: #145a9e !important;
    background: #e5f1fc !important;
    border-color: #75a7d5 !important;
}
html[data-theme="light"] body .services-modern-shell .nav-tabs .nav-link.active {
    color: #744d08 !important;
    background: #fff5d9 !important;
    border-color: #d3a94e !important;
    box-shadow: 0 6px 16px rgba(149,104,22,.10) !important;
}
html[data-theme="light"] body .services-modern-shell .service-panel-header {
    color: #263b56 !important;
    background: linear-gradient(90deg, #eaf2fa, #f8fbff) !important;
    border-bottom-color: #ccd8e5 !important;
}
html[data-theme="light"] body .services-modern-shell .service-panel-header :is(span, div) { color: #344c68 !important; }
html[data-theme="light"] body .services-modern-shell .badge-success {
    color: #087347 !important;
    background: #dcf7e9 !important;
    border-color: #86d6b3 !important;
}
html[data-theme="light"] body .services-modern-shell .badge-warning {
    color: #825408 !important;
    background: #fff2cc !important;
    border-color: #e1bd61 !important;
}

/* API documentation: light navigation and panels, dark code blocks for syntax contrast. */
html[data-theme="light"] body .api-get-shell { color: #1c2a40 !important; }
html[data-theme="light"] body .api-get-shell :is(.api-get-card, .api-get-panel, .api-get-group, .api-note-card, .api-example-note) {
    color: #1c2a40 !important;
    background: linear-gradient(145deg, #ffffff, #f3f7fc) !important;
    border-color: #c5d4e3 !important;
    box-shadow: 0 10px 27px rgba(45, 65, 95, .08) !important;
}
html[data-theme="light"] body .api-get-shell :is(.api-get-title, .api-get-card label) { color: #8a5a07 !important; }
html[data-theme="light"] body .api-get-shell :is(.api-get-card strong, .api-get-group-head, .api-get-main strong, .api-detail-name, .api-example-title) { color: #1d2d45 !important; }
html[data-theme="light"] body .api-get-shell :is(.api-get-card small, .api-get-sub, .api-get-main small, .api-detail-desc) { color: #64758c !important; }
html[data-theme="light"] body .api-get-shell :is(.api-get-group-head, .api-get-row, .api-detail-tabs, .api-url-box) {
    color: #263b56 !important;
    background: #f1f6fb !important;
    border-color: #cfdae6 !important;
}
html[data-theme="light"] body .api-get-shell .api-get-row:hover,
html[data-theme="light"] body .api-get-shell .api-get-row.active { background: #e7f2ff !important; border-color: #72a8dd !important; }
html[data-theme="light"] body .api-get-shell :is(.api-get-search input, .api-get-filter) {
    color: #1d2d45 !important;
    background: #ffffff !important;
    border-color: #b8c8da !important;
    color-scheme: light !important;
}
html[data-theme="light"] body .api-get-shell .api-get-filter option { color: #1d2d45 !important; background: #ffffff !important; }
html[data-theme="light"] body .api-get-shell :is(.api-doc-body, .api-code-card, .api-code-pre, #apiDetailQuick.api-doc-body, #apiDetailQuick.api-doc-body pre) {
    background: #06101f !important;
    border-color: #29415f !important;
    color: #e8f3ff !important;
}
html[data-theme="light"] body .api-get-shell :is(.api-doc-body pre, .api-code-pre) { color: #e8f3ff !important; }
html[data-theme="light"] body .api-get-shell .api-url-box code { color: #23415f !important; }

/* User dashboard: keep the illustrated server banner dark, brighten all data panels. */
html[data-theme="light"] body:has(.premium-dashboard) main {
    color: #1c2a40 !important;
    background: radial-gradient(circle at 8% 5%, rgba(55,132,214,.11), transparent 25%), linear-gradient(145deg, #f7f9fc, #edf3f8) !important;
}
html[data-theme="light"] body .premium-dashboard .premium-notice {
    color: #263b56 !important;
    background: linear-gradient(90deg, #fff9e9, #ffffff) !important;
    border-color: #e2bd6a !important;
    box-shadow: 0 8px 24px rgba(87,68,31,.07) !important;
}
html[data-theme="light"] body .premium-dashboard :is(.notice-text, .notice-close) { color: #40516a !important; }
html[data-theme="light"] body .premium-dashboard :is(.premium-card, .premium-stat) {
    color: #1c2a40 !important;
    background: linear-gradient(145deg, #ffffff, #f4f8fc) !important;
    border-color: #c5d4e3 !important;
    box-shadow: 0 12px 31px rgba(42,63,91,.09), inset 0 1px 0 #ffffff !important;
}
html[data-theme="light"] body .premium-dashboard .premium-stat::before {
    background: radial-gradient(circle at 86% 50%, rgba(47,132,255,.09), transparent 22%), linear-gradient(90deg, rgba(255,255,255,.2), transparent 55%) !important;
}
html[data-theme="light"] body .premium-dashboard .premium-stat::after { opacity: .16 !important; }
html[data-theme="light"] body .premium-dashboard .stat-wallet { border-color: #dfbc72 !important; }
html[data-theme="light"] body .premium-dashboard .stat-deposit { border-color: #89b8e8 !important; }
html[data-theme="light"] body .premium-dashboard .stat-orders { border-color: #d8bd86 !important; }
html[data-theme="light"] body .premium-dashboard .stat-fail { border-color: #e9a9b4 !important; }
html[data-theme="light"] body .premium-dashboard .stat-copy span { color: #53657d !important; }
html[data-theme="light"] body .premium-dashboard .stat-copy small { color: #677991 !important; }
html[data-theme="light"] body .premium-dashboard .stat-copy strong { color: #17253a !important; }
html[data-theme="light"] body .premium-dashboard .stat-wallet .stat-copy strong { color: #96640d !important; }
html[data-theme="light"] body .premium-dashboard .stat-deposit .stat-copy strong { color: #176fc2 !important; }
html[data-theme="light"] body .premium-dashboard .stat-fail .stat-copy strong { color: #b12642 !important; }
html[data-theme="light"] body .premium-dashboard .stat-art { background: rgba(255,255,255,.72) !important; }
html[data-theme="light"] body .premium-dashboard .premium-card-header {
    color: #875a0b !important;
    background: #f7faff !important;
    border-bottom-color: #d5e0eb !important;
}
html[data-theme="light"] body .premium-dashboard .premium-card-body { color: #263b56 !important; }
html[data-theme="light"] body .premium-dashboard .premium-action-item {
    color: #20334e !important;
    background: linear-gradient(180deg, #ffffff, #edf4fa) !important;
    border-color: #c5d4e3 !important;
    box-shadow: none !important;
}
html[data-theme="light"] body .premium-dashboard .premium-action-item:hover {
    color: #102947 !important;
    background: #e5f1fd !important;
    border-color: #6fa6dc !important;
    box-shadow: 0 8px 20px rgba(47,108,172,.12) !important;
}
html[data-theme="light"] body .premium-dashboard .premium-recent-item { border-bottom-color: #dce5ee !important; }
html[data-theme="light"] body .premium-dashboard .recent-title { color: #1e3049 !important; }
html[data-theme="light"] body .premium-dashboard .recent-service { color: #667990 !important; }
html[data-theme="light"] body .premium-dashboard .recent-price { color: #96640d !important; }
html[data-theme="light"] body .premium-dashboard .premium-outline-btn {
    color: #7c540d !important;
    background: #fff9ea !important;
    border-color: #d9b35f !important;
}
html[data-theme="light"] body .premium-dashboard .premium-legend > div {
    color: #344a66 !important;
    background: #f2f6fa !important;
    border-color: #d6e0ea !important;
}
html[data-theme="light"] body .premium-dashboard .premium-legend strong { color: #17253a !important; }
html[data-theme="light"] body .premium-dashboard :is(.premium-actions, .premium-recent-list) { scrollbar-color: #91a8bf #edf3f8; }

/* The server artwork remains an intentional high-contrast dark feature panel. */
html[data-theme="light"] body .premium-dashboard .premium-hero.premium-hero-exact,
html[data-theme="light"] body .premium-dashboard .premium-hero.premium-hero-exact :is(h1, .premium-current-host, .server-info strong) { color: #f7fbff !important; }
html[data-theme="light"] body .premium-dashboard .premium-hero.premium-hero-exact p,
html[data-theme="light"] body .premium-dashboard .premium-hero.premium-hero-exact .server-info small { color: #c5d3e6 !important; }

@media (max-width: 1100px) {
    .topbar-theme-toggle [data-theme-label] { display: none; }
    .topbar-theme-toggle { min-width: 34px; padding-left: .58rem !important; padding-right: .58rem !important; }
}

/* High-specificity light-theme layer for view-local rental styles. */
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionCard,
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionSearchCard {
    color: #1b2d45 !important;
    background: linear-gradient(145deg, #f8fbff 0%, #e9f2fa 100%) !important;
    border-color: #75a9d5 !important;
    box-shadow: 0 8px 22px rgba(37, 74, 115, .11) !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm :is(#serviceSelectionBody, .simv1-service-panel-body) {
    color: #1b2d45 !important;
    background: transparent !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm .simv1-service-block-title,
html[data-theme="light"] body .rent-v1-modern #rentForm .simv1-service-block-title > i {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionBody .simv1-brand-chip:not(.active):not(.btn-primary) {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(180deg, #f9fcff, #dcebf7) !important;
    border-color: #78a7cf !important;
    box-shadow: 0 5px 13px rgba(24, 55, 87, .12), inset 0 1px 0 rgba(255,255,255,.78) !important;
    filter: none !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionBody .simv1-brand-chip:not(.active):not(.btn-primary) span {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionBody .simv1-brand-chip:not(.active):not(.btn-primary):hover {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(180deg, #d9eeff, #bbdcf8) !important;
    border-color: #3d91d2 !important;
    box-shadow: 0 7px 16px rgba(18, 91, 145, .16), inset 0 1px 0 rgba(255,255,255,.72) !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionBody .simv1-brand-chip:is(.active, .btn-primary),
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionBody .simv1-brand-chip:is(.active, .btn-primary) span {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm #serviceSelectionBody .simv1-brand-chip:is(.active, .btn-primary) {
    background: linear-gradient(180deg, #a8d7ff, #79baf1) !important;
    border-color: #267fc5 !important;
    box-shadow: 0 7px 17px rgba(16, 91, 192, .20), inset 0 1px 0 rgba(255,255,255,.58) !important;
}
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card {
    opacity: 1 !important;
    filter: none !important;
    background: linear-gradient(145deg, #ffffff, #f2f7fc) !important;
    border-color: #b6cbe0 !important;
    box-shadow: 0 9px 22px rgba(40, 72, 108, .10), inset 0 1px 0 #ffffff !important;
}
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card.stat-online { background: linear-gradient(135deg, #e9fbf4, #ffffff) !important; border-color: #75c9a9 !important; }
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card.stat-available { background: linear-gradient(135deg, #e8f3ff, #ffffff) !important; border-color: #82b5e8 !important; }
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card.stat-waiting { background: linear-gradient(135deg, #f2eaff, #ffffff) !important; border-color: #b69cdd !important; }
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card.stat-visible { background: linear-gradient(135deg, #fff4d9, #ffffff) !important; border-color: #d6b96d !important; }
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card .simv1-stat-label {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card .simv1-stat-value {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card .simv1-stat-desc {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    opacity: 1 !important;
}
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card::before,
html[data-theme="light"] body .rent-v1-modern .simv1-stats-grid .simv1-stat-card::after {
    opacity: .16 !important;
}
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard, .simv1-requests-card, .simv1-otp24-card) :is(.simv1-otp24-panel, .simv1-requests-shell) {
    color: #1b2d45 !important;
    background: linear-gradient(180deg, #f8fbff, #edf5fb) !important;
    border-color: #6f9fc7 !important;
    box-shadow: 0 8px 22px rgba(39, 73, 111, .09) !important;
}
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(.simv1-otp24-head, .simv1-requests-header) {
    color: #05070a !important;
    background: linear-gradient(90deg, #d8eafa, #c4def3) !important;
    border: 1px solid #78a4c8 !important;
    border-radius: 9px !important;
    padding: 9px 12px !important;
    margin-bottom: 9px !important;
}
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(.simv1-otp24-title, .simv1-requests-title) {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(.simv1-otp24-table, .simv1-requests-table) thead th {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #d6e6f3 !important;
    border-color: #adc3d7 !important;
    opacity: 1 !important;
}
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(.simv1-otp24-table, .simv1-requests-table) tbody td {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #f9fcff !important;
    border-color: #cbd9e6 !important;
    opacity: 1 !important;
}
html[data-theme="light"] body .rent-v1-modern #requestsCard .simv1-requests-table tbody tr:nth-child(even) td { background: #eaf3fa !important; }
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(.simv1-otp24-table, .simv1-requests-table) tbody tr:hover td {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #e7f3ff !important;
}
html[data-theme="light"] body .rent-v1-modern #requestsCard :is(.simv1-requests-service, .simv1-requests-phone, .simv1-requests-otptext, .simv1-requests-time),
html[data-theme="light"] body .rent-v1-modern #serviceCountries24hCard :is(.simv1-otp24-country-name, .simv1-otp24-service, .simv1-otp24-price, .simv1-otp24-count, .simv1-otp24-empty) {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(.simv1-otp24-body, .simv1-requests-body, .simv1-otp24-table-wrap, .simv1-requests-table-wrap) { background: transparent !important; }
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(.service-panel-toggle, .simv1-requests-page-form .custom-select) {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #edf4fa !important;
    border-color: #9fb9d1 !important;
}
html[data-theme="light"] body .rent-v1-modern :is(.badge-success, .rental-status-badge.status-success) { color: #05070a !important; background: #dff7ec !important; border-color: #79cbaa !important; }
html[data-theme="light"] body .rent-v1-modern :is(.badge-warning, .rental-status-badge.status-waiting) { color: #05070a !important; background: #fff1c7 !important; border-color: #d9b552 !important; }
html[data-theme="light"] body .rent-v1-modern :is(.badge-danger, .rental-status-badge.status-danger) { color: #05070a !important; background: #fde5e9 !important; border-color: #dfa0aa !important; }
html[data-theme="light"] body .rent-v1-modern :is(.badge-info, .badge-secondary, .rental-status-badge) { color: #05070a !important; background: #e6f1fa !important; border-color: #97b9d4 !important; }

html[data-theme="light"] body .rent-v1-modern #requestsCard .simv1-requests-otpcount {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #dfeaf4 !important;
    border-color: #9fb8cf !important;
}
html[data-theme="light"] body .rent-v1-modern #requestsCard .simv1-requests-action-btn--otp {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #dff4ff !important;
    border-color: #57acd5 !important;
}
html[data-theme="light"] body .rent-v1-modern #requestsCard .simv1-requests-action-btn--extend {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #fff0bd !important;
    border-color: #d2aa3c !important;
}
html[data-theme="light"] body .rent-v1-modern #requestsCard .simv1-requests-action-btn--cancel {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #fde5e9 !important;
    border-color: #d88b99 !important;
}
html[data-theme="light"] body .rent-v1-modern #requestsCard .simv1-requests-action-btn--cancel-wait,
html[data-theme="light"] body .rent-v1-modern #requestsCard .simv1-requests-action-btn--cancel-wait:disabled {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: #e7edf3 !important;
    border-color: #a8bacb !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* Light rental pages use black text. Dark mode is intentionally untouched. */
html[data-theme="light"] body .rent-v1-modern #rentForm :is(h1, h2, h3, h4, h5, h6, p, span, small, label, strong, b, a, button, option, input, select),
html[data-theme="light"] body .rent-v1-modern :is(#serviceCountries24hCard, #requestsCard) :is(h1, h2, h3, h4, h5, h6, p, span, small, label, strong, b, a, button, option, th, td, select) {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    text-shadow: none !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm :is(input, select)::placeholder {
    color: #252b33 !important;
    -webkit-text-fill-color: #252b33 !important;
    opacity: .82 !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm .rent-submit-btn {
    color: #05070a !important;
    -webkit-text-fill-color: #05070a !important;
    background: linear-gradient(100deg, #95e7ef, #8dc7ff) !important;
    border-color: #2c91bc !important;
    box-shadow: 0 8px 18px rgba(28, 119, 166, .18) !important;
}
html[data-theme="light"] body .rent-v1-modern #rentForm .rent-submit-btn:hover {
    color: #05070a !important;
    background: linear-gradient(100deg, #7fdce6, #78b8f2) !important;
    border-color: #187da8 !important;
}
