/**
 * Cosmic App Shell — frosted glass UI (同音乐搜索面板动感模糊)
 * 文字用灰蓝中间色：既非纯白也非纯黑，毛玻璃上可读。
 */

:root,
[data-theme="light"],
[data-theme="dark"] {
    color-scheme: dark;

    --cb-bg: #000013;
    --cb-theme: #7cf5ff;
    --cb-theme-2: #ff6b4a;
    /* 可读中间色（忌纯白/纯黑） */
    --cb-fg: #d4deec;
    --cb-heading: #eef3fa;
    --cb-dim: #cdd8e8;
    --cb-muted: #a8b8cc;
    --cb-border: rgba(168, 188, 220, 0.26);
    --cb-card: rgba(160, 190, 230, 0.1);
    --cb-card-strong: rgba(160, 190, 230, 0.14);
    --cb-input: rgba(160, 190, 230, 0.1);
    --cb-radius: 14px;
    --cb-radius-sm: 10px;
    --cb-blur: blur(28px) saturate(1.6);
    --cb-blur-sm: blur(18px) saturate(1.45);

    --font-sans: "JetBrains Mono", "Noto Sans SC", "Noto Sans Mono", ui-monospace, monospace;
    --font-main: var(--font-sans);
    --font-ui: var(--font-sans);
    --font-display: "Outfit", "Noto Sans SC", sans-serif;
    --font-mono: "JetBrains Mono", "Noto Sans Mono", monospace;

    --bg-base: #000013;
    --bg-page: #000013;
    --bg-card: var(--cb-card);
    --bg-glass: rgba(160, 190, 230, 0.1);
    --bg-input: var(--cb-input);
    --bg-card-hover: rgba(160, 190, 230, 0.16);
    --bg-input-focus: rgba(124, 245, 255, 0.12);

    --border-subtle: rgba(168, 188, 220, 0.14);
    --border-default: var(--cb-border);
    --border: var(--cb-border);
    --border-focus: var(--cb-theme);

    --text-primary: var(--cb-heading);
    --text-secondary: var(--cb-dim);
    --text-dim: var(--cb-muted);
    --text: var(--cb-fg);
    --text-muted: var(--cb-dim);

    --accent: #7cf5ff;
    --accent-2: #5ad2ff;
    --accent-3: #ff6b4a;
    --accent-hover: #9ae8f2;
    --accent-glow: rgba(124, 245, 255, 0.28);
    --primary: #7cf5ff;
    --primary-dark: #3ec8d6;
    --primary-glow: var(--accent-glow);
    --primary-bg: rgba(124, 245, 255, 0.1);

    --success: #50dca0;
    --success-bg: rgba(80, 220, 160, 0.12);
    --danger: #ff6b4a;
    --danger-bg: rgba(255, 107, 74, 0.12);
    --warning: #e0b07a;
    --info: #7cf5ff;
    --info-bg: rgba(124, 245, 255, 0.1);
    --info-border: rgba(124, 245, 255, 0.28);

    --shadow-card: 0 10px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(180, 200, 230, 0.08);
    --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.38);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow: var(--shadow-card);
    --shadow-lg: var(--shadow-float);
    --shadow-btn: 0 0 18px rgba(124, 245, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --shadow-btn-hover: 0 0 24px rgba(124, 245, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);

    --radius: var(--cb-radius);
    --radius-sm: var(--cb-radius-sm);
    --radius-lg: 16px;
    --radius-xl: 18px;
}

html {
    background: #000013;
}

body {
    background: #000013 !important;
    color: var(--cb-fg) !important;
    font-family: var(--font-sans) !important;
}

/* ===== Space background (same vibe as gate) ===== */
.fx-bg {
    background: #000013 !important;
}

.fx-space {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(124, 245, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 75%, rgba(255, 107, 74, 0.08), transparent 50%),
        url("../img/cosmic/space-bg.jpg") center / cover no-repeat;
    opacity: 0.55;
    filter: saturate(1.05) brightness(0.75);
}

.fx-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 28% 42%, rgba(124, 245, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 44% 12%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 62% 58%, rgba(243, 243, 243, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 78% 28%, rgba(124, 245, 255, 0.85), transparent),
        radial-gradient(1px 1px at 88% 72%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 8% 78%, rgba(124, 245, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 52% 88%, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0.7;
    animation: stCosmicTwinkle 8s ease-in-out infinite alternate;
}

@keyframes stCosmicTwinkle {
    from { opacity: 0.45; }
    to { opacity: 0.85; }
}

.fx-mesh {
    background-image:
        linear-gradient(rgba(124, 245, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 245, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 56px 56px !important;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 15%, transparent 78%);
    opacity: 0.9;
}

[data-theme="dark"] .fx-bg,
[data-theme="light"] .fx-bg {
    background: #000013 !important;
}

[data-theme="dark"] .fx-mesh,
[data-theme="light"] .fx-mesh {
    background-image:
        linear-gradient(rgba(124, 245, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 245, 255, 0.04) 1px, transparent 1px) !important;
}

/* ===== App shell ===== */
.container.app-shell {
    color: var(--cb-fg);
}

.sidebar {
    background: rgba(12, 20, 38, 0.48) !important;
    border-right: 1px solid var(--cb-border) !important;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: var(--cb-blur) !important;
    -webkit-backdrop-filter: var(--cb-blur) !important;
}

.sidebar-brand {
    border-bottom-color: var(--cb-border) !important;
}

.sidebar-brand-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--cb-theme) !important;
    color: var(--cb-theme) !important;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.92rem !important;
}

.nav-group-label {
    color: var(--cb-theme) !important;
    opacity: 0.75;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.65rem !important;
}

.sidebar-nav .nav-tab,
.app-shell .sidebar .nav-tab {
    color: var(--cb-dim) !important;
    border-radius: var(--cb-radius-sm) !important;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-nav .nav-tab:hover {
    color: var(--cb-theme) !important;
    background: rgba(124, 245, 255, 0.08) !important;
    box-shadow: none !important;
}

.sidebar-nav .nav-tab.active {
    color: #0a1624 !important;
    background: linear-gradient(90deg, rgba(124, 245, 255, 0.92), rgba(90, 210, 255, 0.78)) !important;
    border-color: transparent !important;
    box-shadow: 0 0 18px rgba(124, 245, 255, 0.28) !important;
}

.sidebar-nav .nav-tab.active .icon,
.sidebar-nav .nav-tab.active [data-lucide] {
    color: #0a1624 !important;
    opacity: 1 !important;
}

.sidebar-active-indicator,
.sidebar-hover-indicator {
    background: var(--cb-theme) !important;
    box-shadow: 0 0 12px rgba(124, 245, 255, 0.5);
}

.sidebar-footer {
    border-top: 1px solid var(--cb-border) !important;
}

.sidebar-footer #kaimaInfo {
    background: rgba(16, 26, 46, 0.42) !important;
    border: 1px solid var(--cb-border) !important;
    border-radius: var(--cb-radius-sm);
    color: var(--cb-dim) !important;
    backdrop-filter: var(--cb-blur-sm);
    -webkit-backdrop-filter: var(--cb-blur-sm);
}

.sidebar-footer #kaimaInfo strong {
    color: var(--cb-theme) !important;
}

.sidebar-footer #kaimaInfo #kaimaValue,
.sidebar-footer #kaimaInfo #kaimaExpiry,
.sidebar-footer #clientIpValue,
.client-ip-value {
    color: var(--cb-fg) !important;
}

.topbar {
    background: rgba(12, 20, 38, 0.45) !important;
    border-bottom: 1px solid var(--cb-border) !important;
    backdrop-filter: var(--cb-blur);
    -webkit-backdrop-filter: var(--cb-blur);
    box-shadow: none !important;
}

.topbar-left #loginStatusText,
.topbar-meta,
.topbar-game,
.topbar-sep {
    color: var(--cb-dim) !important;
    border-color: var(--cb-border) !important;
    background-color: transparent;
}

.topbar-sep {
    background: var(--cb-border) !important;
}

.topbar-game {
    border: 1px solid var(--cb-border) !important;
    background: rgba(16, 26, 46, 0.4) !important;
    color: var(--cb-dim) !important;
    border-radius: var(--cb-radius-sm) !important;
    backdrop-filter: var(--cb-blur-sm);
    -webkit-backdrop-filter: var(--cb-blur-sm);
}

.topbar-game span {
    color: var(--cb-theme) !important;
}

.theme-toggle,
.topbar-notice-btn,
.mobile-menu-btn {
    color: var(--cb-theme) !important;
    border-color: var(--cb-border) !important;
    background: rgba(16, 26, 46, 0.4) !important;
    border-radius: var(--cb-radius-sm) !important;
    backdrop-filter: var(--cb-blur-sm);
    -webkit-backdrop-filter: var(--cb-blur-sm);
}

.theme-toggle:hover,
.topbar-notice-btn:hover,
.mobile-menu-btn:hover {
    background: rgba(124, 245, 255, 0.1) !important;
    box-shadow: 0 0 16px rgba(124, 245, 255, 0.15);
}

/* ===== Panels / sections / cards — 音乐搜索同款毛玻璃 + 圆角 ===== */
.section,
.left-panel > .section,
.right-panel > .section,
.info-box,
.card,
.panel,
.account-card,
.login4399-banner,
.modal-overlay .modal,
.modal-content,
.stat-card,
.batch-log,
#batchSaveList,
.preprocess-toggles,
.save-list-container,
.ranking-table-wrap,
.toast-container .toast,
.custom-select-panel,
.ui-select-menu {
    background: var(--cb-card) !important;
    border: 1px solid var(--cb-border) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--cb-fg) !important;
    border-radius: var(--cb-radius) !important;
    backdrop-filter: var(--cb-blur) !important;
    -webkit-backdrop-filter: var(--cb-blur) !important;
}

.section-title,
.panel-title,
.app-shell h2,
.app-shell h3,
.app-shell h4,
.st-app-workspace h2,
.st-app-workspace h3,
.st-app-workspace h4 {
    color: var(--cb-heading) !important;
}

.section-title::before,
.section .section-header {
    color: var(--cb-theme);
}

.app-shell p,
.app-shell label,
.app-shell span,
.app-shell li,
.app-shell td,
.app-shell th,
.st-app-workspace p,
.st-app-workspace label,
.st-app-workspace li,
.st-app-workspace td {
    color: inherit;
}

.st-app-workspace,
.st-app-workspace .content {
    color: var(--cb-fg);
}

.login4399-banner {
    border-color: rgba(224, 176, 122, 0.4) !important;
    color: var(--warning) !important;
}

.login4399-banner__btn {
    border: 1px solid var(--cb-border) !important;
    background: rgba(124, 245, 255, 0.1) !important;
    color: var(--cb-theme) !important;
    border-radius: var(--cb-radius-sm) !important;
}

/* ===== Forms ===== */
.input-group input,
.input-group select,
.input-group textarea,
.app-shell input[type="text"],
.app-shell input[type="password"],
.app-shell input[type="number"],
.app-shell input[type="search"],
.app-shell textarea,
.app-shell select,
.st-select,
.ui-select {
    background: var(--cb-input) !important;
    border: 1px solid var(--cb-border) !important;
    color: var(--cb-heading) !important;
    border-radius: var(--cb-radius-sm) !important;
    backdrop-filter: var(--cb-blur-sm);
    -webkit-backdrop-filter: var(--cb-blur-sm);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.app-shell input:focus,
.app-shell textarea:focus,
.app-shell select:focus {
    border-color: var(--cb-theme) !important;
    box-shadow: 0 0 0 2px rgba(124, 245, 255, 0.18) !important;
    outline: none !important;
}

.input-group label,
label {
    color: var(--cb-dim) !important;
}

::placeholder {
    color: var(--cb-muted) !important;
}

/* ===== Buttons ===== */
.btn-primary,
.app-shell .btn.btn-primary,
button.btn-primary {
    background: linear-gradient(90deg, rgba(124, 245, 255, 0.92), rgba(90, 210, 255, 0.82)) !important;
    border: none !important;
    color: #0a1624 !important; /* 深但不纯黑，压在亮按钮上 */
    font-weight: 600;
    border-radius: var(--cb-radius-sm) !important;
    box-shadow: var(--shadow-btn) !important;
}

.btn-primary:hover,
.app-shell .btn.btn-primary:hover {
    filter: brightness(1.06);
    color: #0a1624 !important;
}

.btn-ghost,
.btn-secondary,
.btn-outline {
    background: rgba(16, 26, 46, 0.35) !important;
    border: 1px solid var(--cb-border) !important;
    color: var(--cb-theme) !important;
    border-radius: var(--cb-radius-sm) !important;
    backdrop-filter: var(--cb-blur-sm);
    -webkit-backdrop-filter: var(--cb-blur-sm);
}

.btn-ghost:hover,
.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(124, 245, 255, 0.1) !important;
}

.btn-danger {
    background: rgba(255, 107, 74, 0.9) !important;
    border: none !important;
    color: #2a0e08 !important;
}

.btn-success {
    background: rgba(80, 220, 160, 0.9) !important;
    border: none !important;
    color: #062218 !important;
}

/* ===== Tables / lists ===== */
.app-shell table,
.app-shell .data-table,
.archive-list,
.account-list {
    color: var(--cb-fg);
}

.app-shell th {
    color: var(--cb-theme) !important;
    border-color: var(--cb-border) !important;
    background: rgba(124, 245, 255, 0.08) !important;
}

.app-shell td {
    border-color: rgba(124, 245, 255, 0.12) !important;
    color: var(--cb-fg) !important;
}

.app-shell tr:hover td {
    background: rgba(124, 245, 255, 0.06) !important;
}

/* ===== Toast / modals (non-gate) ===== */
.toast-container .toast {
    background: var(--cb-card) !important;
    border: 1px solid var(--cb-border) !important;
    color: var(--cb-fg) !important;
    border-radius: var(--cb-radius-sm) !important;
    backdrop-filter: var(--cb-blur) !important;
    -webkit-backdrop-filter: var(--cb-blur) !important;
    box-shadow: var(--shadow-card);
}

.modal-overlay:not(.st-gate) {
    background: rgba(6, 12, 28, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-overlay:not(.st-gate) .modal {
    background: var(--cb-card-strong) !important;
    border: 1px solid var(--cb-border) !important;
    color: var(--cb-fg) !important;
    border-radius: var(--cb-radius) !important;
    backdrop-filter: var(--cb-blur) !important;
    -webkit-backdrop-filter: var(--cb-blur) !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 245, 255, 0.35) !important;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 245, 255, 0.55) !important;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 19, 0.35) !important;
}

.st-cosmic-player__results,
.st-cosmic-player__auth-panel,
.st-cosmic-player__auth-tip,
.st-app-workspace .content,
.modal-overlay:not(.st-gate) .modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 245, 255, 0.4) rgba(8, 14, 28, 0.35);
}

.st-cosmic-player__results::-webkit-scrollbar,
.st-cosmic-player__auth-panel::-webkit-scrollbar,
.st-cosmic-player__auth-tip::-webkit-scrollbar,
.st-app-workspace .content::-webkit-scrollbar,
.modal-overlay:not(.st-gate) .modal-body::-webkit-scrollbar {
    width: 6px;
}

.st-cosmic-player__results::-webkit-scrollbar-thumb,
.st-cosmic-player__auth-panel::-webkit-scrollbar-thumb,
.st-cosmic-player__auth-tip::-webkit-scrollbar-thumb,
.st-app-workspace .content::-webkit-scrollbar-thumb,
.modal-overlay:not(.st-gate) .modal-body::-webkit-scrollbar-thumb {
    background: rgba(124, 245, 255, 0.38);
    border-radius: 999px;
}

.st-cosmic-player__results::-webkit-scrollbar-track,
.st-cosmic-player__auth-panel::-webkit-scrollbar-track,
.st-cosmic-player__auth-tip::-webkit-scrollbar-track,
.st-app-workspace .content::-webkit-scrollbar-track,
.modal-overlay:not(.st-gate) .modal-body::-webkit-scrollbar-track {
    background: rgba(8, 14, 28, 0.25);
}

/* ===== Badge / status ===== */
.badge,
.status-pill,
.chip {
    border: 1px solid var(--cb-border);
}

.status-dot.online {
    background: #50dca0 !important;
    box-shadow: 0 0 8px rgba(80, 220, 160, 0.55);
}

/* Soft overrides for leftover indigo accents in modern skin */
[data-theme="dark"] .sidebar-nav .nav-tab.active,
[data-theme="light"] .sidebar-nav .nav-tab.active {
    color: #0a1624 !important;
    background: linear-gradient(90deg, rgba(124, 245, 255, 0.92), rgba(90, 210, 255, 0.78)) !important;
}

[data-theme="dark"] .sidebar,
[data-theme="light"] .sidebar {
    border-right-color: var(--cb-border) !important;
}

/* Mobile drawer backdrop */
.sidebar-backdrop {
    background: rgba(0, 0, 19, 0.65) !important;
}

/* Select dropdowns / modern UI widgets */
.ui-select-menu,
.custom-select-dropdown {
    background: var(--cb-card-strong) !important;
    border: 1px solid var(--cb-border) !important;
    color: var(--cb-fg) !important;
    border-radius: var(--cb-radius-sm) !important;
    backdrop-filter: var(--cb-blur) !important;
    -webkit-backdrop-filter: var(--cb-blur) !important;
}

/* Progress / bars */
.progress,
.progress-bar-track {
    background: rgba(255, 255, 255, 0.08) !important;
}

.progress-bar,
.progress-bar-fill {
    background: var(--cb-theme) !important;
}

/* =========================================================
   Cosmic hub layout (login后与介绍页同款星空星球)
   ========================================================= */

/* 登录后：禁止页面上下滚动（整屏锁定） */
html.st-session-restored,
html.st-app-cosmic-mode,
html.st-session-restored body,
html.st-app-cosmic-mode body {
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

html.st-session-restored,
html.st-app-cosmic-mode {
    scrollbar-width: none;
}
html.st-session-restored::-webkit-scrollbar,
html.st-app-cosmic-mode::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.container.app-shell.st-app-cosmic {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    max-width: none !important;
    background: #000013 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

/* 登录后工作台也固定在视口内；内容区自行滚动 */
html.st-session-restored .st-app-workspace,
html.st-app-cosmic-mode .st-app-workspace {
    position: absolute !important;
    inset: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
}

.container.app-shell.st-app-cosmic[style*="block"],
html.st-session-restored .container.app-shell.st-app-cosmic,
html.st-app-cosmic-mode .container.app-shell.st-app-cosmic {
    display: block !important;
}

.st-app-hub {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000013;
    color: var(--cb-fg);
    font-family: "JetBrains Mono", "Noto Sans SC", monospace;
}

.st-app-hub .st-cosmic-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .st-app-hub .st-cosmic-view.st-app-hub__view--custom-cursor,
    .st-app-hub .st-cosmic-view.st-app-hub__view--custom-cursor button,
    .st-app-hub .st-cosmic-view.st-app-hub__view--custom-cursor a {
        cursor: none !important;
    }
}

.st-app-hub #stAppMouseTip {
    z-index: 40;
}

.st-app-hub__meta-line {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--cb-dim);
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    max-width: 46vw;
}

.st-app-hub__meta-k {
    color: rgba(124, 245, 255, 0.7);
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.st-app-hub__meta-v {
    color: var(--cb-fg);
    word-break: break-all;
}

.st-app-hub__meta-v.is-pending {
    color: var(--cb-muted);
}

.st-app-hub__clock {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--cb-theme, #7cf5ff);
    opacity: 0.9;
}

.st-app-hub__hud.st-cosmic-hud {
    bottom: 0 !important;
    left: 0;
    right: 0;
    z-index: 12;
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
}

.st-app-hub .st-cosmic-view.is-ready .st-app-hub__hud {
    opacity: 1;
    transform: none;
    pointer-events: none;
}

.st-app-hub__hud .st-cosmic-hud__edge,
.st-app-hub__hud .st-cosmic-hud__link,
.st-app-hub__hud .st-cosmic-help,
.st-app-hub__hud .st-cosmic-hud__music-wrap,
.st-app-hub__hud .st-cosmic-music-dock__btn,
.st-app-hub__hud .st-cosmic-music-dock__toggle,
.st-app-hub__kami-chip,
.st-app-hub__hud .st-app-music-mount {
    pointer-events: auto;
}

.st-app-hub__kami-chip {
    position: relative;
    z-index: 2;
    margin: 0.55rem 0 0;
    padding: 0.35rem 0;
    min-width: 11rem;
    max-width: 16rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--cb-fg);
}

.st-app-hub__kami-chip .st-cosmic-hud__label {
    margin: 0 0 0.35rem;
}

.st-app-hub__hud .st-cosmic-hud__edge--left {
    bottom: 2.85rem !important;
    max-width: min(52vw, 26rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.st-app-hub__hud .st-app-music-mount {
    position: relative;
    width: 100%;
    z-index: 3;
}

.st-app-hub__hud .st-cosmic-hud__edge--right {
    bottom: 2.85rem !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.st-app-hub__hud .st-cosmic-hud__edge--right .st-cosmic-hud__link {
    margin: 0;
}

/* 登录进入星图切换动画 */
@keyframes stHubEnter {
    from {
        opacity: 0;
        transform: scale(1.035) translateY(12px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes stGateExit {
    from {
        opacity: 1;
        transform: scale(1);
        filter: none;
    }
    to {
        opacity: 0;
        transform: scale(0.972) translateY(-8px);
        filter: blur(8px);
    }
}

#kaimaLoginModal.st-gate.st-gate-exit {
    animation: stGateExit 0.42s cubic-bezier(0.2, 0.9, 0.45, 1) forwards;
    pointer-events: none;
}

html.st-hub-enter .st-app-hub {
    opacity: 0;
}

html.st-hub-enter-active .st-app-hub {
    animation: stHubEnter 0.62s cubic-bezier(0.2, 0.9, 0.45, 1) both;
}

.st-app-music-mount {
    position: relative;
    width: 100%;
}

.st-app-player-mount {
    position: absolute;
    inset: 0;
    z-index: 18;
    pointer-events: none;
}

.st-app-player-mount .st-cosmic-player {
    pointer-events: auto;
}

/* 工作台毛玻璃层（透出星图） */
.st-app-workspace,
.st-app-workspace .topbar,
.st-app-workspace .content,
.st-app-workspace .section {
    color: var(--cb-fg);
}

.theme-toggle[hidden] {
    display: none !important;
}

.st-app-hub__session {
    margin: 0;
    font-size: 0.78rem;
    color: var(--cb-dim);
    max-width: 42vw;
}

.st-app-hub__hint {
    position: absolute;
    left: 50%;
    bottom: 7rem;
    transform: translateX(-50%);
    display: flex;
    gap: 1.25rem;
    margin: 0;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: rgba(124, 245, 255, 0.55);
    pointer-events: none;
    z-index: 5;
}

.st-app-hub__hint span {
    opacity: 0.8;
}

/* 侧栏退场：导航改由星图提供 */
.st-app-cosmic > .sidebar,
.st-app-cosmic > .sidebar-backdrop {
    display: none !important;
}

.st-app-workspace {
    position: absolute !important;
    inset: 0 !important;
    z-index: 30;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    /* 父层不 blur：否则子区块 backdrop-filter 透不出星空 */
    background: rgba(4, 10, 24, 0.2) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    transform: translateY(108%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.45, 1), opacity 0.35s ease;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

html.st-app-workspace-open .st-app-workspace {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

html.st-app-workspace-open .st-app-hub {
    pointer-events: none;
    filter: brightness(0.72);
}

.st-app-workspace .topbar {
    flex: 0 0 auto;
    background: rgba(12, 20, 38, 0.45) !important;
    border-bottom: 1px solid var(--cb-border) !important;
    backdrop-filter: var(--cb-blur) !important;
    -webkit-backdrop-filter: var(--cb-blur) !important;
    border-radius: 0;
}

.st-app-workspace .content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem 1.5rem;
}

.st-app-back {
    appearance: none;
    border: 1px solid var(--cb-border);
    background: rgba(16, 26, 46, 0.45);
    color: var(--cb-theme);
    font-family: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.7rem;
    border-radius: var(--cb-radius-sm);
    cursor: pointer;
    margin-right: 0.5rem;
    white-space: nowrap;
    backdrop-filter: var(--cb-blur-sm);
    -webkit-backdrop-filter: var(--cb-blur-sm);
}

.st-app-back:hover {
    background: rgba(124, 245, 255, 0.12);
    box-shadow: 0 0 16px rgba(124, 245, 255, 0.14);
}

/* 音乐面板：与弹窗同款强磨砂 */
.st-cosmic-player__panel,
.st-cosmic-player__search-panel,
.st-cosmic-player__auth-panel,
.st-cosmic-sheet__panel,
.st-cosmic-info__box {
    border-radius: var(--cb-radius) !important;
    background: rgba(160, 190, 230, 0.1) !important;
    border: 1px solid rgba(200, 220, 255, 0.28) !important;
    color: #e2eaf4 !important;
    backdrop-filter: blur(40px) saturate(1.75) !important;
    -webkit-backdrop-filter: blur(40px) saturate(1.75) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* 卡密：无边框无背景，纯文字 */
.st-app-hub__kami-chip,
#stAppKamiChip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.st-cosmic-player__title,
.st-cosmic-sheet__title,
.st-cosmic-player__results strong,
.st-cosmic-info__title p {
    color: #eef3fa !important;
}

.st-cosmic-player__artist,
.st-cosmic-player__status,
.st-cosmic-sheet__body,
.st-cosmic-sheet__body p,
.st-cosmic-sheet__body li,
.st-cosmic-info__body,
.st-cosmic-player__results em,
.st-cosmic-player__auth-tip,
.st-cosmic-player__auth-tip li {
    color: #cdd8e8 !important;
}

.st-cosmic-player__code,
.st-cosmic-sheet__code,
.st-cosmic-panel__code {
    color: var(--cb-theme) !important;
}

.st-cosmic-player__search input,
.st-cosmic-player__auth-panel textarea,
.st-cosmic-player input,
.st-cosmic-player textarea {
    color: #e2eaf4 !important;
    background: rgba(160, 190, 230, 0.12) !important;
    border-radius: var(--cb-radius-sm) !important;
}

.st-gate {
    --cb-popup-bg: rgba(160, 190, 230, 0.1);
    --cb-popup-fg: #e2eaf4;
    --cb-popup-muted: #b8c6d8;
    --cb-popup-border: rgba(200, 220, 255, 0.28);
    --cb-popup-input: rgba(160, 190, 230, 0.12);
}

/* 压住 style-modern / liquid-glass 的纯白字与直角卡片 */
.app-shell .btn-primary,
.st-app-workspace .btn-primary,
button.btn-primary,
.btn.btn-primary {
    color: #0a1624 !important;
    text-shadow: none !important;
}

.app-shell .btn-danger,
.st-app-workspace .btn-danger,
.btn.btn-danger {
    color: #2a0e08 !important;
    text-shadow: none !important;
}

.app-shell .btn-success,
.st-app-workspace .btn-success,
.btn.btn-success {
    color: #062218 !important;
    text-shadow: none !important;
}

.app-shell .modal-header,
.st-app-workspace .modal-header,
.modal-overlay:not(.st-gate) .modal-header {
    background: transparent !important;
    background-image: none !important;
    border-bottom: 1px solid var(--cb-border) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.app-shell .modal-header h3,
.st-app-workspace .modal-header h3,
.modal-overlay:not(.st-gate) .modal-header h3 {
    color: var(--cb-heading) !important;
}

.app-shell .modal-header-icon .icon,
.modal-overlay:not(.st-gate) .modal-header-icon .icon {
    stroke: var(--cb-theme) !important;
}

.app-shell .modal-footer,
.modal-overlay:not(.st-gate) .modal-footer {
    background: transparent !important;
    border-top: 1px solid var(--cb-border) !important;
    color: var(--cb-fg) !important;
}

.app-shell .modal-body,
.app-shell .modal-body p,
.modal-overlay:not(.st-gate) .modal-body,
.modal-overlay:not(.st-gate) .modal-body p {
    color: var(--cb-fg) !important;
}

@media (max-width: 768px) {
    .st-app-hub__hint {
        display: none;
    }
    .st-app-hub__session {
        max-width: 58vw;
        font-size: 0.68rem;
    }
    .st-app-back {
        font-size: 0.65rem;
        padding: 0.4rem 0.55rem;
    }
}

/* =========================================================
   全站磨砂半透明（对齐音乐搜索面板）
   分块 / 弹窗 / 下拉 / 输入 / 按钮 / 卡密登录 —— 全部同款
   ========================================================= */
html,
body,
.st-app-workspace,
.st-app-cosmic,
.st-gate {
    --cb-popup-bg: rgba(160, 190, 230, 0.1);
    --cb-popup-fg: #eef3fa;
    --cb-popup-muted: #cdd8e8;
    --cb-popup-border: rgba(200, 220, 255, 0.28);
    --cb-popup-input: rgba(160, 190, 230, 0.14);
}

.st-app-player-mount .st-cosmic-player {
    bottom: calc(var(--player-scale, 0.92) * 14.5rem) !important;
}

/* 通用毛玻璃表面 */
.section,
.left-panel > .section,
.right-panel > .section,
.info-box,
.card,
.panel,
.account-card,
.login4399-banner,
.stat-card,
.batch-log,
#batchSaveList,
.preprocess-toggles,
.save-list-container,
.ranking-table-wrap,
.account-list,
.archive-list,
.tool-card,
.game-card,
.editor-card,
.status-bar,
.toast-container .toast,
.custom-select-panel,
.custom-select-dropdown,
.ui-select-menu,
.ui-select-trigger,
.custom-select-trigger,
.modal-overlay:not(.st-gate) .modal,
.modal-overlay:not(.st-gate) .modal-content,
.st-cosmic-sheet__panel,
.st-cosmic-info__box,
.st-cosmic-panel,
.st-gate-panel,
.st-cosmic-tips,
.dropdown-menu,
.popover,
.tooltip-panel,
.context-menu,
#accountInfo,
#loginAccountInfo,
#刷取UserInfo,
#刷取Log,
#savedAccountsPanel,
.notice-banner,
.alert,
.alert-box {
    background: rgba(160, 190, 230, 0.1) !important;
    border: 1px solid rgba(200, 220, 255, 0.28) !important;
    border-radius: 14px !important;
    color: #b4c2d6 !important;
    backdrop-filter: blur(28px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* 输入 / 下拉触发器 */
.input-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
.input-group select,
.input-group textarea,
.app-shell input[type="text"],
.app-shell input[type="password"],
.app-shell input[type="number"],
.app-shell input[type="search"],
.app-shell input[type="email"],
.app-shell input[type="url"],
.app-shell textarea,
.app-shell select,
.st-app-workspace input[type="text"],
.st-app-workspace input[type="password"],
.st-app-workspace input[type="number"],
.st-app-workspace input[type="search"],
.st-app-workspace textarea,
.st-app-workspace select,
.st-gate input[type="text"],
.st-gate input[type="password"],
.st-gate textarea,
.st-select,
.ui-select,
.custom-select-trigger,
.ui-select-trigger,
.st-cosmic-panel .input-group input {
    background: rgba(160, 190, 230, 0.1) !important;
    border: 1px solid rgba(200, 220, 255, 0.28) !important;
    border-radius: 10px !important;
    color: #c5d2e4 !important;
    backdrop-filter: blur(20px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.app-shell input:focus,
.app-shell textarea:focus,
.app-shell select:focus,
.st-app-workspace input:focus,
.st-app-workspace textarea:focus,
.st-app-workspace select:focus,
.st-gate input:focus,
.st-gate textarea:focus,
.custom-select.open .custom-select-trigger {
    border-color: #7cf5ff !important;
    background: rgba(124, 245, 255, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(124, 245, 255, 0.18) !important;
    outline: none !important;
}

::placeholder {
    color: #6e8096 !important;
}

/* 次级按钮毛玻璃（主色按钮亦半透明） */
.btn:not(.btn-primary):not(.btn-danger):not(.btn-success),
.btn-ghost,
.btn-secondary,
.btn-outline,
.icon-btn,
.st-cosmic-ghost,
.st-cosmic-access:not(.st-cosmic-access--block),
.login4399-banner__btn,
.st-app-back,
.topbar-notice-btn,
.mobile-menu-btn,
.theme-toggle,
.custom-select-option,
.ui-select-option {
    background: rgba(160, 190, 230, 0.1) !important;
    border: 1px solid rgba(200, 220, 255, 0.28) !important;
    border-radius: 10px !important;
    color: #7cf5ff !important;
    backdrop-filter: blur(18px) saturate(1.45) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.45) !important;
    text-shadow: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.btn:not(.btn-primary):not(.btn-danger):not(.btn-success):hover,
.btn-ghost:hover,
.btn-secondary:hover,
.btn-outline:hover,
.icon-btn:hover {
    background: rgba(124, 245, 255, 0.14) !important;
    color: #9ae8f2 !important;
}

.btn-primary,
.app-shell .btn.btn-primary,
.st-app-workspace .btn-primary,
.st-cosmic-access--block,
button.btn-primary {
    background: linear-gradient(90deg, rgba(124, 245, 255, 0.55), rgba(90, 210, 255, 0.42)) !important;
    border: 1px solid rgba(124, 245, 255, 0.45) !important;
    border-radius: 10px !important;
    color: #0a1624 !important;
    text-shadow: none !important;
    backdrop-filter: blur(14px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
}

/* 总进度外框：去掉盒子，透明 */
.batch-progress,
#刷取-tab .batch-progress,
.st-app-workspace .batch-progress {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
}

.batch-progress-bar {
    background: rgba(160, 190, 230, 0.12) !important;
    border: 1px solid rgba(200, 220, 255, 0.22) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.3) !important;
}

/* LOGOUT：无外框 */
.st-cosmic-hud__link,
#btnAppHubLogout,
.st-app-hub__hud .st-cosmic-hud__link {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: #7cf5ff !important;
}

/* 弹窗遮罩也透出星空 */
.modal-overlay:not(.st-gate) {
    background: rgba(6, 12, 28, 0.45) !important;
    backdrop-filter: blur(10px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.2) !important;
}

.modal-overlay:not(.st-gate) .modal-header {
    background: transparent !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(168, 188, 220, 0.26) !important;
    border-radius: 14px 14px 0 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.st-gate .st-cosmic-panel,
.st-gate .st-gate-panel,
.st-gate .st-cosmic-tips {
    background: rgba(12, 20, 38, 0.48) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(14px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.25) !important;
}

.st-gate .st-cosmic-ghost,
.st-gate .st-cosmic-buy {
    background: rgba(16, 26, 46, 0.42) !important;
    border: 1px solid rgba(168, 188, 220, 0.28) !important;
    border-radius: 10px !important;
    color: #7cf5ff !important;
    backdrop-filter: blur(8px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.2) !important;
}

/* 表格单元格不破玻璃圆角 */
.app-shell table,
.st-app-workspace table {
    border-collapse: separate;
    border-spacing: 0;
}

.app-shell th,
.st-app-workspace th {
    background: rgba(124, 245, 255, 0.08) !important;
    color: #7cf5ff !important;
}

.app-shell td,
.st-app-workspace td {
    color: #b4c2d6 !important;
}

/* =========================================================
   全站弹窗：公告同款磨砂玻璃（压过 style-modern / liquid-glass 实色）
   ========================================================= */
.modal-overlay:not(.st-gate),
#noticeModal.modal-overlay,
#customConfirmModal.modal-overlay,
#exportModal.modal-overlay,
#rankingDetailModal.modal-overlay,
#workshopUploadModal.modal-overlay,
#workshopDetailModal.modal-overlay,
#workshopEditModal.modal-overlay,
#ckLoginModal.modal-overlay,
#saveEditorModal,
#multiFileModal {
    background: rgba(6, 12, 28, 0.38) !important;
    backdrop-filter: blur(14px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
}

.modal-overlay:not(.st-gate) .modal-content,
#noticeModal .modal-content,
#customConfirmModal .modal-content,
#exportModal .modal-content,
#rankingDetailModal .modal-content,
#workshopUploadModal .modal-content,
#workshopDetailModal .modal-content,
#workshopEditModal .modal-content,
#ckLoginModal .modal-content,
.ck-login-modal .modal-content,
.workshop-upload-modal,
.workshop-detail-modal,
.ranking-detail-modal,
#saveEditorModal > div,
#multiFileModal > div {
    background: rgba(160, 190, 230, 0.1) !important;
    border: 1px solid rgba(200, 220, 255, 0.28) !important;
    border-radius: 16px !important;
    color: #b4c2d6 !important;
    backdrop-filter: blur(40px) saturate(1.75) !important;
    -webkit-backdrop-filter: blur(40px) saturate(1.75) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 24px 64px rgba(0, 0, 0, 0.45) !important;
}

.modal-overlay:not(.st-gate) .modal-header,
#noticeModal .modal-header,
#customConfirmModal .modal-header,
#exportModal .modal-header,
#rankingDetailModal .modal-header,
#workshopUploadModal .modal-header,
#workshopDetailModal .modal-header,
#workshopEditModal .modal-header,
#ckLoginModal .modal-header,
#multiFileModal > div > div:first-child {
    background: transparent !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(200, 220, 255, 0.2) !important;
    border-radius: 16px 16px 0 0 !important;
    color: #c5d2e4 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.modal-overlay:not(.st-gate) .modal-header h3,
#noticeModal .modal-header h3,
#customConfirmModal .modal-header h3,
#exportModal .modal-header h3,
#rankingDetailModal .modal-header h3,
#workshopUploadModal .modal-header h3,
#workshopDetailModal .modal-header h3,
#workshopEditModal .modal-header h3,
#ckLoginModal .modal-header h3,
#multiFileModal > div > div:first-child span {
    color: #c5d2e4 !important;
}

.modal-overlay:not(.st-gate) .modal-header-icon,
#noticeModal .modal-header-icon,
#customConfirmModal .modal-header-icon,
#exportModal .modal-header-icon,
#rankingDetailModal .modal-header-icon,
#workshopUploadModal .modal-header-icon,
#workshopDetailModal .modal-header-icon,
#workshopEditModal .modal-header-icon,
#ckLoginModal .modal-header-icon {
    background: rgba(124, 245, 255, 0.12) !important;
}

.modal-overlay:not(.st-gate) .modal-header-icon .icon,
#noticeModal .modal-header-icon .icon,
#customConfirmModal .modal-header-icon .icon,
#exportModal .modal-header-icon .icon,
#rankingDetailModal .modal-header-icon .icon,
#workshopUploadModal .modal-header-icon .icon,
#workshopDetailModal .modal-header-icon .icon,
#workshopEditModal .modal-header-icon .icon,
#ckLoginModal .modal-header-icon .icon {
    stroke: #7cf5ff !important;
    color: #7cf5ff !important;
}

.modal-overlay:not(.st-gate) .modal-footer,
#noticeModal .modal-footer,
#customConfirmModal .modal-footer,
#exportModal .modal-footer,
#rankingDetailModal .modal-footer,
#workshopUploadModal .modal-footer,
#workshopDetailModal .modal-footer,
#workshopEditModal .modal-footer,
#ckLoginModal .modal-footer,
#multiFileModal > div > div:last-child {
    background: transparent !important;
    border-top: 1px solid rgba(168, 188, 220, 0.2) !important;
    border-radius: 0 0 16px 16px !important;
    color: #b4c2d6 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.modal-overlay:not(.st-gate) .modal-body,
.modal-overlay:not(.st-gate) .modal-body p,
#noticeModal .modal-body,
#noticeModal #noticeContent,
#confirmMessage,
#noticeContent {
    color: #b4c2d6 !important;
    text-shadow: none !important;
}

.modal-overlay:not(.st-gate) .modal-close,
#workshopUploadModal .modal-close,
#workshopDetailModal .modal-close,
#ckLoginModal .ck-login-modal__close {
    background: rgba(16, 26, 46, 0.45) !important;
    color: #8a9bb0 !important;
    border: 1px solid rgba(168, 188, 220, 0.22) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.ck-login-modal__guide,
.ck-login-modal__code-preview {
    background: rgba(10, 18, 34, 0.45) !important;
    border: 1px solid rgba(168, 188, 220, 0.26) !important;
    border-radius: 12px !important;
    color: #8a9bb0 !important;
    backdrop-filter: blur(8px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.2) !important;
}

.ck-login-modal__guide-title,
.ck-login-modal__code-preview code {
    color: #c5d2e4 !important;
}

/* 行内弹窗壳层统一磨砂 */
#saveEditorModal,
#multiFileModal {
    display: none;
    align-items: center;
    justify-content: center;
}

#saveEditorModal[style*="flex"],
#multiFileModal[style*="flex"] {
    background: rgba(6, 12, 28, 0.38) !important;
}

.st-cosmic-sheet {
    background: rgba(6, 12, 28, 0.4) !important;
    backdrop-filter: blur(12px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.25) !important;
}

.st-cosmic-sheet__panel,
.st-gate.is-kami-popup .st-cosmic-panel,
.st-gate.is-kami-popup .st-gate-panel {
    background: rgba(12, 20, 38, 0.48) !important;
    border: 1px solid rgba(168, 188, 220, 0.28) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(18px) saturate(1.35) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
    box-shadow:
        0 1px 0 rgba(180, 200, 230, 0.1) inset,
        0 18px 50px rgba(0, 0, 0, 0.32) !important;
}

.toast-container .toast {
    background: rgba(12, 20, 38, 0.55) !important;
    border: 1px solid rgba(168, 188, 220, 0.28) !important;
    border-radius: 12px !important;
    color: #b4c2d6 !important;
    backdrop-filter: blur(16px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
}

