/* ═══════════════════════════════════════════════════════════════════════════════
   SOP Cloud — QuickLiquid glass layer
   Real SVG refraction (Chromium) + frost fallback everywhere else.
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    --ql-island-inset: 10px;
    --ql-island-radius: 22px;
    --navbar-height: 68px;
}

/* ── Color behind the glass (refraction needs pixels) ── */
.ql-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ql-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.72;
    mix-blend-mode: screen;
    animation: ql-drift 22s ease-in-out infinite;
    will-change: transform;
}

.ql-orb-a {
    width: 52vw;
    height: 52vw;
    max-width: 720px;
    max-height: 720px;
    left: -12%;
    top: -18%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55) 0%, rgba(10, 116, 218, 0.08) 62%, transparent 75%);
    animation-duration: 26s;
}

.ql-orb-b {
    width: 44vw;
    height: 44vw;
    max-width: 620px;
    max-height: 620px;
    right: -10%;
    top: 8%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.42) 0%, rgba(99, 102, 241, 0.1) 58%, transparent 75%);
    animation-duration: 32s;
    animation-direction: reverse;
}

.ql-orb-c {
    width: 38vw;
    height: 38vw;
    max-width: 520px;
    max-height: 520px;
    left: 28%;
    bottom: -16%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.38) 0%, rgba(14, 165, 233, 0.08) 60%, transparent 75%);
    animation-duration: 28s;
}

.ql-orb-d {
    width: 28vw;
    height: 28vw;
    max-width: 380px;
    max-height: 380px;
    right: 18%;
    bottom: 12%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(244, 114, 182, 0.08) 55%, transparent 75%);
    animation-duration: 20s;
    animation-delay: -6s;
}

@keyframes ql-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    40% { transform: translate3d(4%, 6%, 0) scale(1.08); }
    70% { transform: translate3d(-5%, 3%, 0) scale(0.96); }
}

#space-bg-global,
#space-bg-admin {
    background:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 45% at 90% 10%, rgba(139, 92, 246, 0.16), transparent 50%),
        linear-gradient(135deg, #050a1e 0%, #0a1535 28%, #0d1b40 48%, #0b1830 68%, #060c1f 88%, #030714 100%);
}

/* ── Engine host: let QuickLiquid own the lens ── */
.ql-host {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: auto !important;
    filter: none !important;
}

.ql-host > .ql-content {
    position: relative;
    z-index: 10;
}

.ql-plate {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Floating glass navbar ── */
nav.navbar.navbar-navy.fixed-top {
    top: var(--ql-island-inset);
    left: var(--ql-island-inset);
    right: var(--ql-island-inset);
    width: auto;
    border-radius: var(--ql-island-radius);
    background: transparent !important;
    border: 1px solid rgba(180, 220, 255, 0.14) !important;
    box-shadow:
        0 10px 40px rgba(0, 8, 40, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: visible !important;
}

nav.navbar.navbar-navy.fixed-top.navbar-scrolled {
    background: transparent !important;
    box-shadow:
        0 14px 44px rgba(0, 8, 40, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#mainNavbar > .container {
    position: relative;
    z-index: 2;
}

.ql-navbar-plate {
    border-radius: inherit;
}

.navbar-navy .nav-link {
    border-radius: 999px;
}

.navbar-navy .dropdown-menu {
    background: rgba(8, 16, 42, 0.28) !important;
    backdrop-filter: none !important;
    overflow: hidden;
}

/* ── Footer island ── */
footer.site-footer {
    position: relative;
    margin: 1.25rem var(--ql-island-inset) var(--ql-island-inset);
    border-radius: 24px;
    background: transparent !important;
    border: 1px solid rgba(180, 220, 255, 0.12);
    box-shadow: 0 10px 36px rgba(0, 8, 40, 0.28);
    overflow: hidden;
}

footer.site-footer > .container {
    position: relative;
    z-index: 2;
}

/* ── Cards / sheets ── */
.premium-card,
.glass-card,
.space-card,
.dash-card,
.detail-card,
.legal-content,
.auth-premium-card,
.premium-stat,
.home-feature-item,
.home-step-card,
.about-value-card,
.upload-options-panel,
.upload-files-panel,
.upload-progress-panel,
.upload-disk-compact,
.upload-zone,
.dash-hero,
.dash-stat-card,
.dash-nav-inner,
.dash-mobile-nav-inner,
.dash-transfers-stat,
.admin-card,
.admin-dash-stat,
.admin-header,
.disk-status-widget,
.stat-card,
.profile-hero,
.profile-nav-card,
.download-files-block,
.success-primary-share,
.success-status-pill,
.download-status-pill,
.info-banner,
.premium-error-card,
.ql-card,
.navbar-navy,
.site-footer,
.admin-sidebar {
    position: relative;
    background: rgba(10, 18, 45, 0.22) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(180, 220, 255, 0.14);
    box-shadow:
        0 10px 32px rgba(0, 8, 40, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-card,
.glass-card,
.space-card,
.dash-card,
.detail-card,
.legal-content,
.auth-premium-card,
.admin-card,
.ql-card,
.upload-options-panel,
.upload-progress-panel,
.download-files-block,
.success-primary-share {
    border-radius: 22px;
}

.home-feature-item,
.home-step-card,
.about-value-card,
.premium-stat,
.dash-stat-card,
.admin-dash-stat,
.stat-card,
.dash-transfers-stat {
    padding: 1.1rem 1rem;
    border-radius: 18px;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-feature-item:hover,
.home-step-card:hover,
.about-value-card:hover,
.premium-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 8, 40, 0.32);
}

/* ── Dropzone as refractive slab ── */
.upload-zone {
    border-style: solid;
    border-width: 1px;
    background: rgba(10, 18, 45, 0.18);
    min-height: 300px;
    border-radius: 28px;
}

.upload-zone:hover {
    transform: none;
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow:
        0 18px 50px rgba(10, 116, 218, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.upload-zone.dragover {
    border-color: rgba(56, 189, 248, 0.85);
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.22),
        0 22px 60px rgba(10, 116, 218, 0.3);
}

.upload-options-title {
    color: #fff;
    font-weight: 650;
}

.upload-options-panel {
    padding: 1.15rem 1.15rem 0.85rem;
}

.upload-disk-compact {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
}

/* ── Buttons ── */
.btn-premium,
.btn-dash-primary,
.download-main-btn,
.upload-main-btn {
    position: relative;
    overflow: hidden;
    isolation: auto;
}

.ql-host.btn-premium,
.ql-host.btn-dash-primary,
.ql-host.upload-main-btn,
.ql-host.download-main-btn {
    background: linear-gradient(135deg, rgba(10, 116, 218, 0.62), rgba(77, 163, 255, 0.42)) !important;
}

.ql-host.btn-premium-ghost,
.ql-host.btn-dash-ghost,
.ql-host.auth-google-btn {
    background: rgba(255, 255, 255, 0.05) !important;
}

.scroll-to-top {
    border-radius: 999px;
    background: rgba(10, 18, 45, 0.35);
    border: 1px solid rgba(180, 220, 255, 0.18);
    overflow: hidden;
}

/* ── Auth / legal ── */
.auth-premium-card {
    backdrop-filter: none;
    padding: 1.65rem 1.45rem 1.4rem;
}

.legal-content {
    padding: 1.5rem 1.6rem;
}

/* ── Dashboard / profile / admin ── */
.dash-nav-inner,
.dash-mobile-nav-inner {
    overflow: hidden;
    border-radius: 22px;
}

.dash-hero {
    border-radius: 22px;
    padding: 1.15rem 1.25rem;
}

.admin-sidebar {
    background: transparent !important;
    backdrop-filter: none !important;
    overflow: hidden;
}

.admin-sidebar-header,
.admin-sidebar-menu,
.disk-status-widget {
    position: relative;
    z-index: 2;
}

.ql-admin-plate {
    border-radius: 0;
}

.admin-header {
    border-radius: 18px;
    margin: 0.75rem 0.75rem 0;
    padding: 0.7rem 1rem;
    position: relative;
    overflow: hidden;
}

.admin-header-left,
.admin-header-right {
    position: relative;
    z-index: 2;
}

.profile-hero {
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 1rem;
}

.download-status-pill,
.success-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

.info-banner {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    overflow: hidden;
}

.premium-error-card {
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 420px;
}

/* ── Password gate (legacy card) ── */
.password-gate-wrap {
    max-width: 460px;
    margin: 0 auto;
}

.site-main .card {
    background: rgba(10, 18, 45, 0.22) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(180, 220, 255, 0.14) !important;
    border-radius: 22px !important;
    overflow: hidden;
}
.site-main {
    padding-top: calc(var(--navbar-height) + 0.85rem) !important;
}

/* ── Embed: keep glass, hide chrome plates ── */
body.embed-mode nav.navbar.navbar-navy.fixed-top,
body.embed-mode footer.site-footer,
body.embed-mode .scroll-to-top {
    display: none !important;
}

body.embed-mode .site-main {
    padding-top: 0.75rem !important;
}

/* ── Reduced motion / transparency ── */
@media (prefers-reduced-motion: reduce) {
    .ql-orb { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
    .ql-orb { opacity: 0.25; }
    nav.navbar.navbar-navy.fixed-top,
    footer.site-footer,
    .premium-card,
    .legal-content,
    .auth-premium-card,
    .upload-zone {
        background: rgba(8, 16, 42, 0.92) !important;
    }
}

@media (max-width: 991.98px) {
    :root { --ql-island-inset: 8px; }
    nav.navbar.navbar-navy.fixed-top {
        border-radius: 18px;
    }
    .navbar-navy .navbar-collapse {
        background: rgba(6, 12, 35, 0.35);
        backdrop-filter: none;
    }
}

.upload-zone h3 {
    color: #fff;
    font-weight: 700;
}

.upload-zone .text-muted,
.upload-trust-line {
    color: rgba(210, 226, 245, 0.78) !important;
}

.upload-zone .btn-primary,
#selectFilesBtn {
    background: linear-gradient(135deg, #0a74da, #4da3ff) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(10, 116, 218, 0.42);
}

.upload-icon i {
    color: #7dd3fc;
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
}

.legal-content,
.about-value-card,
.home-feature-item,
.home-step-card {
    color: #d7e6f8;
}

.legal-content h2,
.legal-content h3,
.legal-content h5,
.about-value-card h3,
.home-feature-item h3,
.home-step-card h6 {
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .ql-orb { filter: blur(28px); opacity: 0.55; }
}
