:root {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

html,
body {
    min-height: 100%;
    font-family: "Roboto", sans-serif;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    letter-spacing: normal !important;
}

body.bg-app {
    background:
        radial-gradient(circle at top, rgba(7, 183, 147, 0.22), transparent 28%),
        linear-gradient(180deg, #0f2245 0%, #101f3c 48%, #091326 100%);
}

.theme-logo {
    display: block;
}

.theme-logo-light {
    display: none;
}

html[data-theme="light"] .theme-logo-dark {
    display: none;
}

html[data-theme="light"] .theme-logo-light {
    display: block;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.theme-switch-track {
    position: relative;
    display: inline-flex;
    width: 3.8rem;
    height: 2.1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    padding: 0.22rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-switch-thumb {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #07b793 0%, #34d2b0 100%);
    box-shadow: 0 10px 18px rgba(7, 183, 147, 0.28);
    transition: transform 0.2s ease;
}

[data-theme-toggle-control]:checked + .theme-switch-track {
    border-color: rgba(7, 183, 147, 0.35);
    background: rgba(7, 183, 147, 0.18);
}

[data-theme-toggle-control]:checked + .theme-switch-track .theme-switch-thumb {
    transform: translateX(1.65rem);
}

[data-theme-toggle-control]:focus-visible + .theme-switch-track {
    outline: 2px solid rgba(7, 183, 147, 0.45);
    outline-offset: 3px;
}

.theme-option {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.theme-choice-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.theme-choice-copy {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.75);
}

.theme-option.is-active {
    border-color: rgba(7, 183, 147, 0.45);
    background: rgba(7, 183, 147, 0.12);
    box-shadow: inset 0 0 0 1px rgba(7, 183, 147, 0.2);
}

.theme-option:focus-visible {
    outline: 2px solid rgba(7, 183, 147, 0.45);
    outline-offset: 3px;
}

.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.glass-table thead th {
    padding: 0 0.9rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.62);
}

.glass-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
}

.glass-table tbody td {
    padding: 1rem 0.9rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.glass-table tbody tr td:first-child {
    border-radius: 1rem 0 0 1rem;
}

.glass-table tbody tr td:last-child {
    border-radius: 0 1rem 1rem 0;
}

.field-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #dbeafe;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.78);
    padding: 0.95rem 1rem;
    color: white;
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sr-only-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    border-color: rgba(7, 183, 147, 0.9);
    transform: translateY(-1px);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
    border-radius: 1rem;
    background: linear-gradient(135deg, #07b793 0%, #0f2245 100%);
    padding: 0.95rem 1.1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 24px 40px rgba(7, 183, 147, 0.24);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.95rem 1.1rem;
    font-weight: 700;
    color: white;
}

.in-app-ad-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(3, 12, 28, 0.18);
    backdrop-filter: blur(14px);
}

.ad-filter-tab {
    flex: 1;
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    color: rgba(203, 213, 225, 0.75);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ad-filter-tab.is-active {
    background: #07b793;
    color: #fff;
    box-shadow: 0 12px 28px rgba(7, 183, 147, 0.2);
}

.reward-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.reward-demo-modal.is-open {
    display: flex;
}

.reward-demo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 24, 0.78);
    backdrop-filter: blur(10px);
}

.reward-demo-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 31rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    background: linear-gradient(160deg, #13294f 0%, #08172f 100%);
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

body.reward-demo-is-open {
    overflow: hidden;
}

@media (min-width: 640px) {
    .reward-demo-modal {
        align-items: center;
    }

    .reward-demo-panel {
        padding: 2.5rem;
    }
}

html[data-theme="light"] .in-app-ad-card,
html[data-theme="light"] .reward-demo-panel {
    border-color: rgba(15, 34, 69, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(15, 34, 69, 0.12);
}

html[data-theme="light"] .reward-demo-backdrop {
    background: rgba(15, 34, 69, 0.48);
}

.flash-popup {
    position: fixed;
    top: 1rem;
    left: 50%;
    z-index: 10000;
    display: flex;
    width: min(calc(100% - 2rem), 28rem);
    align-items: center;
    gap: 0.75rem;
    border-width: 1px;
    border-radius: 1.25rem;
    background: rgba(7, 183, 147, 0.16);
    padding: 0.9rem 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.flash-popup-icon {
    display: inline-flex;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #07b793;
    color: white;
    font-size: 0.85rem;
    font-weight: 900;
}

.app-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(6, 18, 40, 0.72);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(18px);
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.app-loader-card {
    display: grid;
    min-width: min(18rem, 100%);
    place-items: center;
    gap: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    background: rgba(15, 34, 69, 0.88);
    padding: 1.4rem;
    color: white;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.app-loader-spinner {
    width: 2.6rem;
    height: 2.6rem;
    border: 0.24rem solid rgba(255, 255, 255, 0.18);
    border-top-color: #07b793;
    border-radius: 999px;
    animation: app-loader-spin 0.75s linear infinite;
}

.app-loader-title {
    font-size: 0.95rem;
    font-weight: 800;
}

.app-loader-copy {
    margin-top: -0.45rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.72);
}

.app-network-status {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 9998;
    display: flex;
    width: min(calc(100% - 2rem), 28rem);
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: rgba(15, 34, 69, 0.94);
    padding: 0.9rem 1rem;
    color: white;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 1rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-network-status.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.app-network-dot {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #07b793;
    box-shadow: 0 0 0 0 rgba(7, 183, 147, 0.4);
    animation: app-network-pulse 1.4s ease-out infinite;
}

.app-network-status.is-offline .app-network-dot {
    background: #f43f5e;
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.42);
    animation-name: app-network-pulse-danger;
}

.app-network-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
}

.app-network-copy {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.72);
}

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(6, 18, 40, 0.76);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(18px);
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.confirm-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.confirm-modal-card {
    width: min(100%, 28rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    background: rgba(15, 34, 69, 0.96);
    padding: 1.25rem;
    color: white;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    transform: translateY(0.4rem) scale(0.98);
    transition: transform 0.18s ease;
}

.confirm-modal-overlay.is-visible .confirm-modal-card {
    transform: translateY(0) scale(1);
}

.confirm-modal-icon {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.16);
    color: #fecdd3;
    font-size: 1.25rem;
    font-weight: 900;
}

.confirm-modal-title {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 900;
}

.confirm-modal-message {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.78);
}

.confirm-modal-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .confirm-modal-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.confirm-modal-cancel,
.confirm-modal-confirm {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.confirm-modal-cancel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.confirm-modal-confirm {
    background: #e11d48;
    color: white;
}

.app-is-loading {
    cursor: progress;
}

.app-is-loading .app-loader-overlay {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.app-is-loading .primary-btn,
.app-is-loading .secondary-btn,
.app-is-loading button[type="submit"] {
    transform: translateY(-1px);
}

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

@keyframes app-network-pulse {
    70% {
        box-shadow: 0 0 0 0.55rem rgba(7, 183, 147, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(7, 183, 147, 0);
    }
}

@keyframes app-network-pulse-danger {
    70% {
        box-shadow: 0 0 0 0.55rem rgba(244, 63, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}

.stat-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    padding: 1rem;
}

.public-header {
    box-shadow: 0 10px 40px rgba(15, 34, 69, 0.18);
}

.public-panel {
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: 0 24px 60px rgba(15, 34, 69, 0.16);
}

.public-panel-soft {
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.public-section-anchor {
    scroll-margin-top: 6.75rem;
}

.public-faq-item summary::-webkit-details-marker {
    display: none;
}

.public-faq-item[open] {
    border-color: rgba(7, 183, 147, 0.28);
    background: rgba(7, 183, 147, 0.08);
}

.public-faq-item summary {
    position: relative;
}

.public-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.15rem;
    line-height: 1;
}

.public-faq-item[open] summary::after {
    content: "−";
}

.public-visual-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}

.public-mobile-menu-open {
    overflow: hidden;
}

html[data-theme="light"] body.bg-app {
    background:
        radial-gradient(circle at top, rgba(7, 183, 147, 0.14), transparent 28%),
        linear-gradient(180deg, #f3f8fb 0%, #edf5f3 50%, #e7eef5 100%);
}

html[data-theme="light"] .field-label {
    color: #1f3668;
}

html[data-theme="light"] .field-input,
html[data-theme="light"] .field-select,
html[data-theme="light"] .field-textarea {
    border-color: rgba(15, 34, 69, 0.12);
    background: rgba(255, 255, 255, 0.95);
    color: #0f2245;
}

html[data-theme="light"] .secondary-btn {
    border-color: rgba(15, 34, 69, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #0f2245;
}

html[data-theme="light"] .stat-card,
html[data-theme="light"] .public-panel,
html[data-theme="light"] .public-panel-soft,
html[data-theme="light"] .public-faq-item,
html[data-theme="light"] .public-header,
html[data-theme="light"] footer,
html[data-theme="light"] .glass-table tbody tr {
    border-color: rgba(15, 34, 69, 0.09);
    background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .glass-table thead th,
html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-white\/45,
html[data-theme="light"] .text-white\/50,
html[data-theme="light"] .text-white\/65 {
    color: rgba(15, 34, 69, 0.65) !important;
}

html[data-theme="light"] .glass-table tbody td,
html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-white,
html[data-theme="light"] .text-slate-200 {
    color: #0f2245 !important;
}

html[data-theme="light"] .bg-slate-950\/45,
html[data-theme="light"] .bg-slate-950\/55,
html[data-theme="light"] .bg-slate-950\/80,
html[data-theme="light"] .bg-slate-950\/96,
html[data-theme="light"] .bg-white\/8,
html[data-theme="light"] .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .border-white\/10 {
    border-color: rgba(15, 34, 69, 0.12) !important;
}

html[data-theme="light"] .hover\:bg-white\/5:hover,
html[data-theme="light"] .hover\:bg-white\/10:hover {
    background-color: rgba(15, 34, 69, 0.06) !important;
}

.admin-layout,
.admin-sidebar,
.advertiser-sidebar,
.admin-sidebar-link,
.advertiser-sidebar-link,
[data-admin-sidebar-copy],
[data-admin-sidebar-theme] {
    transition: all 0.25s ease;
}

.portal-mobile-bar {
    position: sticky;
    top: 0.75rem;
    z-index: 35;
}

.portal-mobile-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: rgba(15, 34, 69, 0.92);
    padding: 0.65rem 0.75rem;
    color: #fff;
    box-shadow: 0 18px 42px rgba(3, 12, 28, 0.24);
    backdrop-filter: blur(18px);
}

.portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(88vw, 22rem);
    max-height: 100dvh;
    overflow-y: auto;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
}

.portal-sidebar.is-mobile-open {
    transform: translateX(0);
    visibility: visible;
}

.portal-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    border: 0;
    background: rgba(3, 10, 24, 0.68);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(5px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

body.portal-sidebar-open {
    overflow: hidden;
}

html[data-theme="light"] .portal-mobile-trigger {
    border-color: rgba(15, 34, 69, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: #0f2245;
}

@media (min-width: 1024px) {
    .portal-sidebar {
        position: sticky;
        inset: auto;
        z-index: auto;
        width: auto;
        max-height: calc(100vh - 3rem);
        transform: none;
        visibility: visible;
    }

    .portal-sidebar-backdrop {
        display: none;
    }

    .admin-layout.is-collapsed {
        grid-template-columns: 92px minmax(0, 1fr) !important;
    }

    .admin-sidebar.is-collapsed [data-admin-sidebar-copy],
    .admin-sidebar.is-collapsed [data-admin-sidebar-theme] {
        display: none;
    }

    .admin-sidebar.is-collapsed [data-admin-sidebar-header] {
        display: none;
    }

    .admin-sidebar.is-collapsed .admin-sidebar-link {
        justify-content: center;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .admin-sidebar.is-collapsed > a:last-child {
        justify-content: center;
    }
}

.file-note {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.75);
}

.multi-select {
    position: relative;
}

.multi-select-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.78);
    padding: 0.95rem 1rem;
    color: #ffffff;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.multi-select-trigger [data-multi-select-label] {
    flex: 1;
    min-width: 0;
    white-space: normal;
    line-height: 1.5;
}

.multi-select-trigger [data-multi-select-label].is-placeholder {
    color: rgba(226, 232, 240, 0.72);
}

.multi-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.multi-select-chip {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: rgba(7, 183, 147, 0.16);
    border: 1px solid rgba(7, 183, 147, 0.22);
    padding: 0.35rem 0.45rem 0.35rem 0.75rem;
    color: #ecfcf7;
}

.multi-select-chip-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-select-chip-remove {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.multi-select-chip-remove:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.multi-select-trigger:focus-visible,
.multi-select.is-open .multi-select-trigger {
    border-color: rgba(7, 183, 147, 0.9);
    transform: translateY(-1px);
    outline: none;
}

.multi-select-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.multi-select-caret {
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.multi-select.is-open .multi-select-caret {
    transform: rotate(-135deg);
}

.multi-select-panel {
    position: absolute;
    z-index: 40;
    width: 100%;
    margin-top: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
    overflow: hidden;
}

.multi-select-options {
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.4rem;
}

.multi-select-group {
    padding: 0.4rem 0.25rem 0.1rem;
}

.multi-select-group-label {
    margin: 0 0 0.35rem;
    padding: 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.9);
    text-transform: uppercase;
}

.multi-select-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.9rem;
    padding: 0.75rem 0.8rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.multi-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.multi-select-option input {
    margin-top: 0.1rem;
    accent-color: #07b793;
}

.multi-select-option-text {
    font-size: 0.9rem;
    line-height: 1.45;
}

html[data-theme="light"] body.bg-app {
    background:
        radial-gradient(circle at top, rgba(7, 183, 147, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #eef4fb 42%, #edf3f9 100%);
}

html[data-theme="light"] body,
html[data-theme="light"] .text-white {
    color: #0f172a !important;
}

html[data-theme="light"] .primary-btn,
html[data-theme="light"] [class*="bg-brand-500"],
html[data-theme="light"] [class*="bg-emerald-500"],
html[data-theme="light"] [class*="bg-rose-500"],
html[data-theme="light"] [class*="bg-amber-500"],
html[data-theme="light"] [class*="bg-sky-500"] {
    color: #ffffff !important;
}

html[data-theme="light"] .theme-switch-track {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(226, 232, 240, 0.9);
}

html[data-theme="light"] .theme-option {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .theme-choice-title {
    color: #0f172a;
}

html[data-theme="light"] .theme-choice-copy {
    color: #64748b;
}

html[data-theme="light"] .theme-option.is-active {
    border-color: rgba(7, 183, 147, 0.24);
    background: rgba(219, 248, 242, 0.92);
    box-shadow: inset 0 0 0 1px rgba(7, 183, 147, 0.12);
}

html[data-theme="light"] [class*="bg-white/8"],
html[data-theme="light"] [class*="bg-white/5"],
html[data-theme="light"] [class*="bg-slate-950/35"],
html[data-theme="light"] [class*="bg-slate-950/45"],
html[data-theme="light"] [class*="bg-slate-950/60"],
html[data-theme="light"] [class*="bg-slate-950/80"],
html[data-theme="light"] [class*="bg-slate-950/90"] {
    background: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="light"] [class*="border-white/10"],
html[data-theme="light"] [class*="border-white/12"],
html[data-theme="light"] [class*="border-white/20"] {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] [class*="text-slate-100"],
html[data-theme="light"] [class*="text-slate-200"],
html[data-theme="light"] [class*="text-slate-300"] {
    color: #475569 !important;
}

html[data-theme="light"] [class*="text-slate-400"],
html[data-theme="light"] [class*="text-slate-500"] {
    color: #64748b !important;
}

html[data-theme="light"] [class*="text-white/45"],
html[data-theme="light"] [class*="text-white/50"],
html[data-theme="light"] [class*="text-white/40"] {
    color: #64748b !important;
}

html[data-theme="light"] [class*="text-brand-50"],
html[data-theme="light"] [class*="text-brand-100"],
html[data-theme="light"] [class*="text-brand-200"],
html[data-theme="light"] [class*="text-brand-300"] {
    color: #0f2245 !important;
}

html[data-theme="light"] [class*="text-emerald-"],
html[data-theme="light"] [class*="text-amber-"],
html[data-theme="light"] [class*="text-sky-"],
html[data-theme="light"] [class*="text-rose-"] {
    color: #0f172a !important;
}

html[data-theme="light"] [class*="border-brand-300"],
html[data-theme="light"] [class*="border-brand-400"] {
    border-color: rgba(7, 183, 147, 0.18) !important;
}

html[data-theme="light"] [class*="ring-emerald-"],
html[data-theme="light"] [class*="ring-amber-"],
html[data-theme="light"] [class*="ring-sky-"],
html[data-theme="light"] [class*="ring-rose-"] {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] [class*="bg-emerald-500/15"] {
    background: rgba(16, 185, 129, 0.14) !important;
}

html[data-theme="light"] [class*="bg-amber-500/15"] {
    background: rgba(245, 158, 11, 0.16) !important;
}

html[data-theme="light"] [class*="bg-sky-500/15"] {
    background: rgba(14, 165, 233, 0.14) !important;
}

html[data-theme="light"] [class*="bg-rose-500/15"] {
    background: rgba(244, 63, 94, 0.14) !important;
}

html[data-theme="light"] [class*="bg-brand-500/10"],
html[data-theme="light"] [class*="bg-brand-400/10"] {
    background: rgba(7, 183, 147, 0.08) !important;
}

html[data-theme="light"] [class*="bg-gradient-to-br"],
html[data-theme="light"] [class*="bg-gradient-to-b"],
html[data-theme="light"] [class*="bg-gradient-to-r"] {
    background-image: none !important;
}

html[data-theme="light"] .glass-table thead th {
    color: rgba(71, 85, 105, 0.9);
}

html[data-theme="light"] .glass-table tbody tr {
    background: rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] .glass-table tbody td {
    color: #334155;
}

html[data-theme="light"] .field-label {
    color: #0f172a;
}

html[data-theme="light"] .field-input,
html[data-theme="light"] .field-select,
html[data-theme="light"] .field-textarea {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}

html[data-theme="light"] .multi-select-trigger {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}

html[data-theme="light"] .multi-select-trigger [data-multi-select-label].is-placeholder {
    color: #64748b;
}

html[data-theme="light"] .multi-select-panel {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .multi-select-group-label {
    color: #64748b;
}

html[data-theme="light"] .multi-select-option {
    color: #334155;
}

html[data-theme="light"] .multi-select-option:hover {
    background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .multi-select-chip {
    background: rgba(7, 183, 147, 0.12);
    border-color: rgba(7, 183, 147, 0.18);
    color: #0f2245;
}

html[data-theme="light"] .multi-select-chip-remove {
    background: rgba(15, 34, 69, 0.08);
    color: #0f2245;
}

html[data-theme="light"] .secondary-btn {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

html[data-theme="light"] .flash-popup {
    border-color: rgba(7, 183, 147, 0.2);
    background: rgba(255, 255, 255, 0.96);
    color: #0f2245;
}

html[data-theme="light"] .app-loader-overlay {
    background: rgba(248, 250, 252, 0.72);
}

html[data-theme="light"] .app-loader-card {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: #0f2245;
}

html[data-theme="light"] .app-loader-copy {
    color: #64748b;
}

html[data-theme="light"] .app-network-status {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.96);
    color: #0f2245;
}

html[data-theme="light"] .app-network-copy {
    color: #64748b;
}

html[data-theme="light"] .confirm-modal-overlay {
    background: rgba(248, 250, 252, 0.74);
}

html[data-theme="light"] .confirm-modal-card {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.96);
    color: #0f2245;
}

html[data-theme="light"] .confirm-modal-message {
    color: #475569;
}

html[data-theme="light"] .confirm-modal-cancel {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.92);
    color: #0f172a;
}

html[data-theme="light"] a[class*="bg-white"],
html[data-theme="light"] button[class*="bg-white"] {
    color: #0f172a !important;
}

html[data-theme="light"] [class*="hover:text-white"]:hover {
    color: #0f172a !important;
}

html[data-theme="light"] [class*="bg-white/5"],
html[data-theme="light"] [class*="bg-white/10"] {
    color: #334155;
}

html[data-theme="light"] .stat-card {
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
}

html[data-theme="light"] .file-note {
    color: #64748b;
}

html[data-theme="light"] nav[class*="bg-slate-950/80"] {
    background: rgba(255, 255, 255, 0.94) !important;
}
