﻿/* =========================================================
   app.css — FusionWatch Premium Glass Theme
   ========================================================= */

html,
body {
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    height: 100%;
    padding-bottom: 40px; /* avoid mobile keyboard overlap */
}

:root {
    --bg0: #070B14;
    --bg1: #0B1224;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.10);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.12);
    --border-soft: rgba(255, 255, 255, 0.08);
    --text: rgba(245, 247, 255, 0.92);
    --muted: rgba(245, 247, 255, 0.60);
    --accent: #7c3aed; /* violet */
    --accent2: #22d3ee; /* cyan */
    --accent3: #60a5fa; /* blue */

    --success: #22c55e;
    --danger: #ef4444;
    /* Premium additions */
    --glass-weak: rgba(255, 255, 255, 0.035);
    --glass-mid: rgba(255, 255, 255, 0.055);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-edge-soft: rgba(255, 255, 255, 0.09);
    --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.30);
    --shadow-2: 0 22px 70px rgba(0, 0, 0, 0.40);
    --sheen-cyan: rgba(34, 211, 238, 0.14);
    --sheen-violet: rgba(124, 58, 237, 0.14);
    --sheen-blue: rgba(96, 165, 250, 0.10);
    --focus: rgba(34, 211, 238, 0.38);
}

h1:focus {
    outline: none;
}

h3 {
    color: var(--accent3) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 2rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(96, 165, 250, 0.18), 0 1px 0 rgba(0,0,0,0.12);
    padding-bottom: 0.25em;
    margin-bottom: 20px;
}

    h3::after {
        content: "";
        display: block;
        width: 48px;
        height: 4px;
        border-radius: 2px;
        margin-top: 0.35em;
        background: linear-gradient(90deg, var(--accent2) 0%, var(--accent3) 100%);
        opacity: 0.85;
        box-shadow: 0 2px 12px var(--accent3), 0 1px 0 rgba(0,0,0,0.10);
    }

/* ────────────────────────────────────────────────
   1. Standardized properties — Firefox + future-proof Chrome/Edge/Safari
   ──────────────────────────────────────────────── */
html,
body,
* {
    scrollbar-width: thin; /* no !important needed in most cases */
    scrollbar-color: rgba(245, 247, 255, 0.28) transparent;
}

/* Optional: force thin scrollbar even more aggressively on root */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 247, 255, 0.28) transparent;
}

/* ────────────────────────────────────────────────
   2. WebKit/Blink detailed styling (Chrome, Edge, Safari)
   Only apply when we want the fancy gradient look.
   Important: do NOT set scrollbar-width or scrollbar-color
   on the same elements if you want -webkit- rules to win.
   ──────────────────────────────────────────────── */

/* Reset any potential standard properties conflict on WebKit browsers only */
@supports selector(::-webkit-scrollbar) {
    html,
    body,
    * {
        scrollbar-width: auto; /* or just remove the property completely */
        scrollbar-color: initial; /* prevents standard props from overriding */
    }
}

::-webkit-scrollbar {
    width: 5px; /* slightly wider than 4px → better hit area & looks less broken */
    height: 5px;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:vertical:increment,
::-webkit-scrollbar-button:vertical:decrement,
::-webkit-scrollbar-button:horizontal:increment,
::-webkit-scrollbar-button:horizontal:decrement {
    display: none;
    height: 0;
    width: 0;
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-track-piece:start,
::-webkit-scrollbar-track-piece:end {
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.10));
    border-radius: 9999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 8px 22px rgba(0, 0, 0, 0.38);
    min-height: 28px; /* improved touch target */
    transition: all 0.18s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.14));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.46);
    }

    ::-webkit-scrollbar-thumb:active {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
    }

/* =========================================================
   1) THEME TOKENS
   ========================================================= */

/* Tiny noise layer to avoid “flat blur” look */
:root {
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* =========================================================
   2) BACKGROUND (DeFi glass + subtle particles)
   ========================================================= */

body {
    color: var(--text) !important;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
    background-attachment: fixed;
}

    /* Nebula drift */
    body::before {
        content: "";
        position: fixed;
        inset: -20%;
        z-index: -3;
        pointer-events: none;
        background: radial-gradient(1000px 700px at 15% 0%, rgba(34, 211, 238, 0.16), transparent 60%), radial-gradient(900px 600px at 85% 10%, rgba(124, 58, 237, 0.16), transparent 60%), radial-gradient(700px 500px at 50% 100%, rgba(96, 165, 250, 0.10), transparent 60%);
        animation: nebulaDrift 26s ease-in-out infinite alternate;
        transform: translateZ(0);
    }

    /* Random-ish particle field using 2 SVG dot maps + slow float */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        pointer-events: none;
        opacity: 0.9;
        /* Two different "random" dot distributions (SVG) layered */
        background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='900'%20height='900'%20viewBox='0%200%20900%20900'%3E%3Crect%20width='900'%20height='900'%20fill='none'/%3E%3Cg%20fill='%23ffffff'%3E%3Ccircle%20cx='41'%20cy='78'%20r='1'%20opacity='.22'/%3E%3Ccircle%20cx='118'%20cy='214'%20r='1'%20opacity='.16'/%3E%3Ccircle%20cx='173'%20cy='39'%20r='1.2'%20opacity='.20'/%3E%3Ccircle%20cx='265'%20cy='182'%20r='1'%20opacity='.14'/%3E%3Ccircle%20cx='344'%20cy='91'%20r='1'%20opacity='.18'/%3E%3Ccircle%20cx='402'%20cy='248'%20r='1.2'%20opacity='.16'/%3E%3Ccircle%20cx='489'%20cy='64'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='532'%20cy='203'%20r='1'%20opacity='.20'/%3E%3Ccircle%20cx='611'%20cy='118'%20r='1.3'%20opacity='.18'/%3E%3Ccircle%20cx='688'%20cy='236'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='812'%20cy='72'%20r='1'%20opacity='.16'/%3E%3Ccircle%20cx='864'%20cy='257'%20r='1.2'%20opacity='.14'/%3E%3Ccircle%20cx='79'%20cy='341'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='147'%20cy='478'%20r='1.2'%20opacity='.18'/%3E%3Ccircle%20cx='229'%20cy='386'%20r='1'%20opacity='.14'/%3E%3Ccircle%20cx='318'%20cy='521'%20r='1.3'%20opacity='.16'/%3E%3Ccircle%20cx='401'%20cy='412'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='456'%20cy='543'%20r='1'%20opacity='.20'/%3E%3Ccircle%20cx='552'%20cy='392'%20r='1.2'%20opacity='.16'/%3E%3Ccircle%20cx='620'%20cy='565'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='707'%20cy='414'%20r='1'%20opacity='.18'/%3E%3Ccircle%20cx='793'%20cy='536'%20r='1.3'%20opacity='.14'/%3E%3Ccircle%20cx='871'%20cy='402'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='52'%20cy='642'%20r='1.2'%20opacity='.14'/%3E%3Ccircle%20cx='125'%20cy='713'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='203'%20cy='658'%20r='1'%20opacity='.18'/%3E%3Ccircle%20cx='274'%20cy='790'%20r='1.4'%20opacity='.16'/%3E%3Ccircle%20cx='366'%20cy='684'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='433'%20cy='812'%20r='1'%20opacity='.20'/%3E%3Ccircle%20cx='520'%20cy='706'%20r='1.2'%20opacity='.14'/%3E%3Ccircle%20cx='589'%20cy='845'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='676'%20cy='742'%20r='1'%20opacity='.18'/%3E%3Ccircle%20cx='744'%20cy='872'%20r='1.4'%20opacity='.16'/%3E%3Ccircle%20cx='832'%20cy='701'%20r='1'%20opacity='.12'/%3E%3Ccircle%20cx='892'%20cy='844'%20r='1.2'%20opacity='.14'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1200'%20height='1200'%20viewBox='0%200%201200%201200'%3E%3Crect%20width='1200'%20height='1200'%20fill='none'/%3E%3Cg%20fill='%23ffffff'%3E%3Ccircle%20cx='73'%20cy='116'%20r='1.4'%20opacity='.12'/%3E%3Ccircle%20cx='214'%20cy='55'%20r='1'%20opacity='.10'/%3E%3Ccircle%20cx='361'%20cy='174'%20r='1.6'%20opacity='.12'/%3E%3Ccircle%20cx='498'%20cy='92'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='642'%20cy='231'%20r='1.7'%20opacity='.11'/%3E%3Ccircle%20cx='781'%20cy='63'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='934'%20cy='186'%20r='1.5'%20opacity='.11'/%3E%3Ccircle%20cx='1087'%20cy='99'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='128'%20cy='318'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='297'%20cy='417'%20r='1.6'%20opacity='.12'/%3E%3Ccircle%20cx='462'%20cy='301'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='618'%20cy='466'%20r='1.7'%20opacity='.11'/%3E%3Ccircle%20cx='783'%20cy='339'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='941'%20cy='487'%20r='1.6'%20opacity='.12'/%3E%3Ccircle%20cx='1096'%20cy='356'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='91'%20cy='612'%20r='1.7'%20opacity='.11'/%3E%3Ccircle%20cx='256'%20cy='731'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='423'%20cy='645'%20r='1.6'%20opacity='.12'/%3E%3Ccircle%20cx='604'%20cy='789'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='768'%20cy='659'%20r='1.7'%20opacity='.11'/%3E%3Ccircle%20cx='923'%20cy='812'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='1074'%20cy='677'%20r='1.6'%20opacity='.12'/%3E%3Ccircle%20cx='156'%20cy='1017'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='312'%20cy='905'%20r='1.7'%20opacity='.11'/%3E%3Ccircle%20cx='492'%20cy='1038'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='653'%20cy='927'%20r='1.6'%20opacity='.12'/%3E%3Ccircle%20cx='834'%20cy='1056'%20r='1'%20opacity='.09'/%3E%3Ccircle%20cx='998'%20cy='948'%20r='1.7'%20opacity='.11'/%3E%3C/g%3E%3C/svg%3E");
        background-repeat: repeat, repeat;
        background-size: 900px 900px, 1200px 1200px;
        background-position: 0 0, 220px 140px;
        /* "Floating" drift + gentle twinkle */
        animation: particleFloat1 70s linear infinite, particleTwinkle 8s ease-in-out infinite;
        transform: translateZ(0);
    }

/* =========================================================
   3) LINKS + TYPO
   ========================================================= */

a,
.btn-link {
    color: rgba(34, 211, 238, 0.95);
    text-decoration: none;
}

    a:hover,
    .btn-link:hover {
        color: rgba(96, 165, 250, 0.95);
    }

/* =========================================================
   4) ACCESSIBILITY (premium focus handling)
   - Removes ugly outlines on mouse
   - Keeps focus-visible ring for keyboard users
   ========================================================= */

:where(a, button, input, textarea, select, .btn, .nav-link, .form-control):focus {
    outline: none !important;
    box-shadow: none !important;
}

:where(a, button, input, textarea, select, .btn, .nav-link, .form-control):focus-visible {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 0 3px var(--focus) !important;
    border-color: rgba(34, 211, 238, 0.24) !important;
}

/* =========================================================
   5) BUTTONS
   ========================================================= */

.btn {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.9), rgba(124, 58, 237, 0.85));
    border-color: rgba(255, 255, 255, 0.12);
}

    .btn-primary:hover {
        background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(139, 92, 246, 0.92));
    }

.btn-outline-light {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

    .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.08);
    }

/* =========================================================
   6) INPUTS (glass)
   ========================================================= */

.form-control {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    color: var(--text) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

    .form-control::placeholder {
        color: rgba(245, 247, 255, 0.45);
    }

    .form-control:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.040));
    }

    .form-control:focus {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.040));
    }

    .form-control:focus,
    .form-control:focus-visible {
        outline: none !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.040)) !important;
        border-color: rgba(34, 211, 238, 0.24) !important;
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.24), 0 18px 55px rgba(0, 0, 0, 0.36) !important;
    }

/* =========================================================
   7) ERROR UI
   ========================================================= */

#blazor-error-ui {
    background: rgba(245, 158, 11, 0.18);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.25);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: rgba(245, 247, 255, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* =========================================================
   8) APP SHELL (navbar + cards)
   ========================================================= */

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(10, 16, 33, 0.55);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

    .app-navbar .navbar-toggler-icon {
        filter: invert(1);
    }

.navbar-brand {
    color: var(--text) !important;
    letter-spacing: -0.02em;
}

.nav-link {
    color: rgba(245, 247, 255, 0.80) !important;
    border-radius: 12px;
    transition: background 140ms ease, color 140ms ease;
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: var(--text) !important;
    }

.app-card {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color: var(--text);
}

.protocol-header .h4 {
    letter-spacing: -0.02em;
}

.protocol-subnav .nav-link {
    border-radius: 999px;
    border: 1px solid transparent;
}

    .protocol-subnav .nav-link.active {
        background: linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(124, 58, 237, 0.18));
        border-color: rgba(255, 255, 255, 0.10);
        color: var(--text) !important;
    }

.app-search {
    width: 220px;
}

/* =========================================================
   9) MEGA MENU (working + clickable)
   ========================================================= */

.app-mega {
    position: static;
}

.app-mega-wrap {
    position: static;
}

.app-mega-trigger {
    position: relative;
    cursor: default;
    display: inline-flex;
    align-items: center;
}

    /* Hover bridge under "Protocols" so it doesn't collapse while moving down */
    .app-mega-trigger::after {
        content: "";
        position: absolute;
        left: -14px;
        right: -14px;
        top: 100%;
        height: 18px;
    }

.app-mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1050;
    display: none;
    padding: 14px 0 18px;
    background: rgba(10, 16, 33, 0.9);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.app-mega-wrap:hover .app-mega-menu,
.app-mega-wrap:focus-within .app-mega-menu {
    display: block;
}

.app-mega-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px;
}

.app-protocol-card {
    flex: 0 0 auto;
    width: 190px;
    text-decoration: none;
    color: var(--text);
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

    .app-protocol-card:hover {
        transform: translateY(-2px);
        cursor: pointer;
        /*background: var(--glass-strong);*/
        border-color: rgba(34, 211, 238, 0.22);
        background: radial-gradient(980px 420px at 18% 0%, rgba(34, 211, 238, 0.15), transparent 62%), radial-gradient(980px 420px at 82% 10%, rgba(124, 58, 237, 0.15), transparent 62%), radial-gradient(820px 420px at 50% 115%, rgba(96, 165, 250, 0.11), transparent 62%);
    }

.app-protocol-name {
    font-weight: 650;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.app-protocol-metrics {
    display: flex;
    gap: 14px;
}

.app-metric-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.app-metric-value {
    font-weight: 650;
}

/* =========================================================
   10) MOBILE PROTOCOL LIST
   ========================================================= */

.app-mobile-protocols {
    display: none;
}

.app-mobile-protocols-toggle {
    display: none;
}

@media (max-width: 992px) {
    .app-search {
        width: 160px;
    }

    .app-mega-menu {
        display: none !important; /* disable mega on mobile */
    }

    .app-mobile-protocols-toggle {
        display: inline-flex;
    }

    .app-mobile-protocols {
        display: block;
        margin-top: 10px;
    }
}

/* =========================================================
   11) PREMIUM GLASS UTILITIES
   ========================================================= */

.glass-divider {
    height: 1px;
    background: linear-gradient( 90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0) );
    opacity: 0.9;
}

.glass-surface {
    position: relative;
    border: 1px solid var(--glass-edge-soft);
    background: linear-gradient(180deg, var(--glass-mid), var(--glass-weak));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

    .glass-surface::before {
        content: "";
        position: absolute;
        inset: -2px;
        pointer-events: none;
        background: radial-gradient(900px 420px at 18% 0%, var(--sheen-cyan), transparent 60%), radial-gradient(900px 420px at 82% 12%, var(--sheen-violet), transparent 60%), radial-gradient(800px 420px at 50% 110%, var(--sheen-blue), transparent 60%);
        opacity: 0.95;
    }

    .glass-surface::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)), var(--noise);
        opacity: 0.30;
        mix-blend-mode: overlay;
    }

    .glass-surface > * {
        position: relative;
    }

.glass-hover {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .glass-hover:hover {
        transform: translateY(-2px);
        border-color: var(--glass-edge);
        box-shadow: var(--shadow-2);
    }

/* =========================================================
   12) DeFi Loading Screen (Blazor default loader)
   ========================================================= */

.loading-progress {
    position: absolute;
    inset: 22vh 0 auto 0;
    margin: 0 auto;
    width: 10rem;
    height: 10rem;
}

    .loading-progress::before,
    .loading-progress::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .loading-progress::before {
        background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.12), transparent 60%), radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.12), transparent 60%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
        animation: defiPulse 2.2s ease-in-out infinite;
    }

    .loading-progress::after {
        inset: 10px;
        border-color: rgba(255, 255, 255, 0.10);
        background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.0), rgba(34, 211, 238, 0.55), rgba(124, 58, 237, 0.0), rgba(124, 58, 237, 0.55), rgba(34, 211, 238, 0.0) );
        opacity: 0.55;
        animation: defiSpin 2.6s linear infinite;
    }

.loading-progress-text {
    position: absolute;
    inset: calc(22vh + 9.5rem) 0 auto 0;
    text-align: center;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: rgba(245, 247, 255, 0.82);
    user-select: none;
}

    /* Replace default text */
    .loading-progress-text:after {
        content: "Syncing liquidity…";
    }

    .loading-progress-text span {
        display: block;
        margin-top: 0.35rem;
        font-size: 0.85rem;
        color: rgba(245, 247, 255, 0.55);
    }

@keyframes defiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.95;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes defiSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes nebulaDrift {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1.02);
    }

    100% {
        transform: translate3d( 1.5%, 1%, 0) scale(1.05);
    }
}

/* Two-axis drift = feels more "floating" than a straight line */
@keyframes particleFloat1 {
    0% {
        background-position: 0 0, 220px 140px;
    }

    100% {
        background-position: -420px 260px, 480px -320px;
    }
}

@keyframes particleTwinkle {
    0%, 100% {
        opacity: 0.78;
    }

    50% {
        opacity: 0.95;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-progress::before,
    .loading-progress::after {
        animation: none !important;
    }
}

