
    :root {
        --bg: #05060b;
        --bg-2: #0a0d18;
        --panel: rgba(255, 255, 255, 0.045);
        --panel-strong: rgba(255, 255, 255, 0.08);
        --line: rgba(255, 255, 255, 0.1);
        --ink: #eaf0ff;
        --ink-soft: #8d97b3;
        --cyan: #00e5ff;
        --violet: #7c5cff;
        --magenta: #ff3dae;
        --green: #28f0b0;
        --red: #ff5d7a;
        --font-display: "Orbitron", sans-serif;
        --font-body: "Inter", -apple-system, sans-serif;
        --font-mono: "IBM Plex Mono", monospace;
    }
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    body {
        background: var(--bg);
        color: var(--ink);
        font-family: var(--font-body);
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }
    img,
    svg {
        display: block;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
    button {
        font-family: inherit;
        cursor: pointer;
        background: none;
        border: none;
        color: inherit;
    }
    h1,
    h2,
    h3,
    h4 {
        font-family: var(--font-display);
        font-weight: 600;
        letter-spacing: 0.01em;
        color: var(--ink);
    }
    :focus-visible {
        outline: 2px solid var(--cyan);
        outline-offset: 2px;
    }
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.14);
        border-radius: 8px;
    }
    .tabular {
        font-variant-numeric: tabular-nums;
    }

    .app {
        max-width: 1280px;
        margin: 0 auto;
        display: flex;
        min-height: 100vh;
    }
    .shell {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        display: flex;
        width: 232px;
        flex-shrink: 0;
        background: var(--bg-2);
        border-right: 1px solid var(--line);
        flex-direction: column;
        padding: 22px 16px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 70;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.35);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 65;
    }
    .sidebar-backdrop.open {
        display: block;
    }
    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--panel);
        border: 1px solid var(--line);
        color: var(--ink-soft);
        margin-left: auto;
    }
    .sidebar-close:hover {
        color: var(--ink);
        border-color: rgba(0, 229, 255, 0.3);
    }
    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--font-display);
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0.03em;
        padding: 6px 10px 26px;
    }
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: auto;
    }
    .side-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink-soft);
        transition:
            background 0.15s ease,
            color 0.15s ease;
    }
    .side-item svg {
        flex-shrink: 0;
        opacity: 0.85;
    }
    .side-item:hover {
        background: var(--panel);
        color: var(--ink);
    }
    .side-item.active {
        background: rgba(0, 229, 255, 0.09);
        color: var(--cyan);
        border: 1px solid rgba(0, 229, 255, 0.22);
    }
    .side-item.active svg {
        opacity: 1;
    }
    .side-badge {
        margin-left: auto;
        background: var(--magenta);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 100px;
    }
    .sidebar-foot {
        border-top: 1px solid var(--line);
        padding-top: 16px;
        margin-top: 16px;
    }
    .side-user {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
        border-radius: 10px;
    }
    .side-user:hover {
        background: var(--panel);
    }
    .side-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--cyan), var(--violet));
        flex-shrink: 0;
        position: relative;
    }
    .side-name {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13.5px;
        font-weight: 600;
    }
    .side-sub {
        font-size: 11.5px;
        color: var(--ink-soft);
        font-family: var(--font-mono);
    }

    .verify-badge {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: var(--bg-2);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--bg-2);
    }
    .verify-badge svg {
        width: 100%;
        height: 100%;
    }
    .verify-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 10.5px;
        font-weight: 700;
        color: var(--cyan);
        background: rgba(0, 229, 255, 0.1);
        border: 1px solid rgba(0, 229, 255, 0.25);
        padding: 2px 7px 2px 5px;
        border-radius: 100px;
    }

    @media (min-width: 861px) {
        .sidebar {
            position: sticky;
            transform: none;
            box-shadow: none;
        }
        .sidebar-close {
            display: none;
        }
        .bottom-nav {
            display: none;
        }
        .menu-toggle {
            display: none !important;
        }
        .sidebar-backdrop {
            display: none !important;
        }
        .content {
            padding-bottom: 26px;
        }
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 18px 20px;
        background: rgba(5, 6, 11, 0.85);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
    }
    .menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--panel);
        border: 1px solid var(--line);
        align-items: center;
        justify-content: center;
        color: var(--ink-soft);
        flex-shrink: 0;
    }
    .menu-toggle:hover {
        color: var(--ink);
        border-color: rgba(0, 229, 255, 0.3);
    }
    .greeting {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .greet-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--cyan), var(--violet));
        flex-shrink: 0;
    }
    .greet-hi {
        font-size: 12px;
        color: var(--ink-soft);
    }
    .greet-name {
        font-size: 14.5px;
        font-weight: 700;
    }
    .topbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .network-pill {
        display: flex;
        align-items: center;
        gap: 7px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 100px;
        padding: 7px 13px;
        font-size: 12.5px;
        font-weight: 600;
    }
    .network-pill .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 6px var(--green);
    }
    .live-pill {
        display: flex;
        align-items: center;
        gap: 7px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 100px;
        padding: 7px 13px;
        font-size: 11.5px;
        font-weight: 600;
        color: var(--ink-soft);
        font-family: var(--font-mono);
    }
    .live-pill .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--cyan);
        box-shadow: 0 0 6px var(--cyan);
        animation: pulse 1.6s ease-in-out infinite;
    }
    .live-pill.stale .dot {
        background: #ffd166;
        box-shadow: 0 0 6px #ffd166;
        animation: none;
    }
    @keyframes pulse {
        0%,
        100% {
            opacity: 1;
        }
        50% {
            opacity: 0.35;
        }
    }
    .icon-btn {
        position: relative;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--panel);
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ink-soft);
    }
    .icon-btn:hover {
        color: var(--ink);
        border-color: rgba(0, 229, 255, 0.3);
    }
    .icon-btn .ping {
        position: absolute;
        top: 7px;
        right: 7px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--magenta);
        box-shadow: 0 0 6px var(--magenta);
    }

    .dropdown {
        position: absolute;
        top: 48px;
        right: 0;
        width: 280px;
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.5);
        padding: 8px;
        display: none;
        z-index: 60;
    }
    .dropdown.open {
        display: block;
    }
    .dropdown-head {
        font-size: 12px;
        font-weight: 700;
        color: var(--ink-soft);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 9px 11px 5px;
        font-family: var(--font-mono);
    }
    .notif-item {
        display: flex;
        gap: 10px;
        padding: 9px 11px;
        border-radius: 10px;
    }
    .notif-item:hover {
        background: var(--panel);
    }
    .notif-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        margin-top: 5px;
        flex-shrink: 0;
    }
    .notif-title {
        font-size: 12.5px;
        font-weight: 600;
    }
    .notif-time {
        font-size: 11px;
        color: var(--ink-soft);
        margin-top: 1px;
    }

    .content {
        flex: 1;
        padding: 22px 20px 110px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .grid-2 {
        display: grid;
        grid-template-columns: 1.7fr 1fr;
        gap: 20px;
        align-items: stretch;
    }

    .card {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 22px;
    }
    .card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .card-head h3 {
        font-size: 14.5px;
        font-family: var(--font-body);
        font-weight: 700;
    }
    .card-sub {
        font-size: 12px;
        color: var(--ink-soft);
        margin-top: 2px;
    }
    .see-all {
        font-size: 12.5px;
        color: var(--cyan);
        font-weight: 600;
    }

    .balance-card {
        display: flex;
        flex-direction: column;
    }
    .balance-top {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }
    .balance-label {
        font-size: 12px;
        color: var(--ink-soft);
        margin-bottom: 6px;
    }
    .balance-num {
        font-family: var(--font-display);
        font-size: 32px;
        transition: opacity 0.2s ease;
    }
    .balance-change {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--green);
        background: rgba(40, 240, 176, 0.1);
        border: 1px solid rgba(40, 240, 176, 0.25);
        padding: 4px 10px;
        border-radius: 100px;
        margin-top: 8px;
    }
    .balance-change.down {
        color: var(--red);
        background: rgba(255, 93, 122, 0.1);
        border-color: rgba(255, 93, 122, 0.25);
    }
    .balance-change svg {
        transition: transform 0.15s ease;
    }
    .balance-change.down svg {
        transform: rotate(180deg);
    }
    .stat-mini-row {
        display: flex;
        gap: 18px;
    }
    .stat-mini {
        text-align: right;
    }
    .stat-mini-num {
        font-family: var(--font-display);
        font-size: 18px;
    }
    .stat-mini-label {
        font-size: 10.5px;
        color: var(--ink-soft);
        margin-top: 2px;
    }
    .allocation {
        margin-bottom: 20px;
    }
    .allocation-bar {
        display: flex;
        height: 10px;
        border-radius: 6px;
        overflow: hidden;
        background: var(--bg-2);
        margin-bottom: 14px;
    }
    .allocation-seg {
        height: 100%;
        transition: width 0.3s ease;
    }
    .allocation-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 18px;
    }
    .legend-item {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        color: var(--ink-soft);
    }
    .legend-item .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .legend-item b {
        color: var(--ink);
        font-family: var(--font-mono);
        font-weight: 600;
    }
    .quick-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .qa-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        padding: 12px 6px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: var(--bg-2);
        font-size: 11.5px;
        font-weight: 600;
    }
    .qa-btn:hover {
        border-color: rgba(0, 229, 255, 0.35);
    }
    .qa-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .qa-btn.primary .qa-icon {
        background: linear-gradient(135deg, var(--cyan), var(--violet));
        color: #04060b;
    }
    .qa-btn:not(.primary) .qa-icon {
        background: var(--panel);
        color: var(--ink);
    }

    .signal-card {
        display: flex;
        flex-direction: column;
    }
    .gauge-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2px 0 10px;
    }
    .gauge-value {
        font-family: var(--font-display);
        font-size: 22px;
        color: var(--green);
        margin-top: -46px;
    }
    .gauge-caption {
        font-size: 11.5px;
        color: var(--ink-soft);
        margin-top: 2px;
    }
    .signal-list {
        display: flex;
        flex-direction: column;
        margin-top: 4px;
    }
    .signal-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-top: 1px solid var(--line);
        font-size: 12.5px;
    }
    .signal-row:first-child {
        border-top: none;
    }
    .signal-row .lbl {
        color: var(--ink-soft);
    }
    .signal-row .val {
        font-weight: 600;
        font-family: var(--font-mono);
        font-size: 12px;
    }
    .val.ok {
        color: var(--green);
    }

    .asset-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 0;
        border-top: 1px solid var(--line);
    }
    .asset-row:first-child {
        border-top: none;
    }
    .asset-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-mono);
        font-size: 11px;
        font-weight: 700;
        color: #04060b;
    }
    .asset-main {
        flex: 1;
        min-width: 0;
    }
    .asset-name {
        font-size: 13.5px;
        font-weight: 700;
    }
    .asset-sub {
        font-size: 11.5px;
        color: var(--ink-soft);
        font-family: var(--font-mono);
        margin-top: 1px;
    }
    .asset-figures {
        text-align: right;
        flex-shrink: 0;
    }
    .asset-value {
        font-size: 13.5px;
        font-weight: 700;
        font-family: var(--font-mono);
        transition: opacity 0.2s ease;
    }
    .asset-change {
        font-size: 11.5px;
        font-weight: 600;
        margin-top: 2px;
        transition: color 0.2s ease;
    }
    .chg-up {
        color: var(--green);
    }
    .chg-down {
        color: var(--red);
    }
    .asset-actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }
    .mini-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: var(--bg-2);
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ink-soft);
    }
    .mini-btn:hover {
        color: var(--cyan);
        border-color: rgba(0, 229, 255, 0.35);
    }

    .activity-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        border-top: 1px solid var(--line);
    }
    .activity-row:first-child {
        border-top: none;
    }
    .activity-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .activity-main {
        flex: 1;
        min-width: 0;
    }
    .activity-title {
        font-size: 13px;
        font-weight: 700;
    }
    .activity-sub {
        font-size: 11.5px;
        color: var(--ink-soft);
        font-family: var(--font-mono);
        margin-top: 1px;
    }
    .activity-amt {
        text-align: right;
        flex-shrink: 0;
    }
    .activity-amt .amt {
        font-size: 13px;
        font-weight: 700;
        font-family: var(--font-mono);
    }
    .status-pill {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 100px;
        margin-top: 3px;
    }
    .status-confirmed {
        background: rgba(40, 240, 176, 0.12);
        color: var(--green);
    }
    .status-pending {
        background: rgba(255, 209, 102, 0.14);
        color: #ffd166;
    }

    .watch-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 0;
        border-top: 1px solid var(--line);
    }
    .watch-row:first-child {
        border-top: none;
    }
    .wl-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .wl-name {
        font-size: 13px;
        font-weight: 700;
    }
    .wl-sym {
        font-size: 11px;
        color: var(--ink-soft);
        font-family: var(--font-mono);
    }
    .wl-right {
        text-align: right;
    }
    .wl-price {
        font-family: var(--font-mono);
        font-size: 12.5px;
    }
    .wl-change {
        font-size: 11px;
        font-weight: 600;
        margin-top: 1px;
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        max-width: 1080px;
        margin: 0 auto;
        background: rgba(10, 13, 24, 0.92);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
        display: flex;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    }
    .nav-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 8px 2px;
        border-radius: 12px;
        color: var(--ink-soft);
        font-size: 10.5px;
        font-weight: 600;
        position: relative;
        transition: color 0.15s ease;
    }
    .nav-tab svg {
        transition: transform 0.15s ease;
    }
    .nav-tab.active {
        color: var(--cyan);
    }
    .nav-tab.active::before {
        content: "";
        position: absolute;
        top: -1px;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--cyan);
        box-shadow: 0 0 8px var(--cyan);
    }
    .nav-tab.active svg {
        transform: translateY(-1px);
    }
    .nav-fab {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--cyan), var(--violet));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #04060b;
        margin-top: -22px;
        box-shadow: 0 8px 22px -4px rgba(0, 229, 255, 0.5);
    }

    @media (max-width: 900px) {
        .grid-2 {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 560px) {
        .balance-num {
            font-size: 26px;
        }
        .content {
            padding: 18px 14px 104px;
        }
        .topbar {
            padding: 14px 14px;
        }
        .live-pill span.live-label {
            display: none;
        }
    }

    .reveal {
        opacity: 0;
        transform: translateY(10px);
        transition:
            opacity 0.45s ease,
            transform 0.45s ease;
    }
    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }
    @media (prefers-reduced-motion: reduce) {
        .reveal {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }

    .toast {
        position: fixed;
        bottom: 96px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px 20px;
        font-size: 13px;
        color: var(--ink);
        box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
        pointer-events: none;
    }
    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
