    /* ─── RESET & BASE ─────────────────────────────────────── */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    :root {
        --bg: #0a0a0f;
        --bg2: #111118;
        --bg3: #18181f;
        --border: rgba(255, 255, 255, 0.08);
        --text: #e8e8f0;
        --muted: #6b6b80;
        --accent: #3b82f6;
        --accent2: #6366f1;
        --green: #22c55e;
        --red: #ef4444;
        --nav-w: 68px;
        --nav-open: 240px;
        --top-h: 58px;
        --font-head: 'Syne', sans-serif;
        --font-body: 'DM Sans', sans-serif;
        --radius: 10px;
        --trans: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    html,
    body {
        height: 100%;
        background: var(--bg);
        color: var(--text);
        font-family: var(--font-body);
        font-size: 14px;
        overflow-x: hidden;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    button {
        cursor: pointer;
        border: none;
        background: none;
        font-family: inherit;
    }

    ul {
        list-style: none;
    }

    /* ─── SCROLLBAR ────────────────────────────────────────── */
    ::-webkit-scrollbar {
        width: 6px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--bg3);
        border-radius: 3px;
    }

    /* ─── LAYOUT SHELL ─────────────────────────────────────── */
    #shell {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    /* ─── TOP NAV ───────────────────────────────────────────── */
    #topnav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--top-h);
        z-index: 200;
        display: flex;
        align-items: center;
        padding: 0 16px 0 0;
        background: rgba(10, 10, 15, 0.85);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        gap: 12px;
    }

    /* Hamburger — hidden on desktop */
    #hamburger {
        display: none;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        color: var(--text);
        transition: background var(--trans);
        flex-shrink: 0;
        margin-left: 8px;
    }

    #hamburger:hover {
        background: var(--bg3);
    }

    #hamburger svg {
        width: 20px;
        height: 20px;
    }

    /* Logo space in topnav (desktop: hidden — logo lives in sidenav) */
    #topnav-logo {
        display: none;
        align-items: center;
        gap: 10px;
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 18px;
        letter-spacing: -0.5px;
        white-space: nowrap;
        color: var(--text);
    }

    #topnav-logo svg {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    /* Search */
    #search-wrap {
        flex: 1;
        max-width: 560px;
        position: relative;
        margin-left: 4px;
    }

    #search-wrap svg.s-icon {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--muted);
        pointer-events: none;
    }

    #search-wrap input {
        width: 100%;
        height: 40px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text);
        font-family: var(--font-body);
        font-size: 14px;
        padding: 0 40px 0 38px;
        outline: none;
        transition: border-color var(--trans), background var(--trans);
    }

    #search-wrap input::placeholder {
        color: var(--muted);
    }

    #search-wrap input:focus {
        border-color: rgba(99, 102, 241, 0.5);
        background: var(--bg2);
    }

    .kbd-hint {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 5px;
        padding: 1px 6px;
        font-size: 11px;
        color: var(--muted);
        pointer-events: none;
    }

    /* right controls */
    .topnav-right {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        transition: background var(--trans), color var(--trans);
    }

    .icon-btn:hover {
        background: var(--bg3);
        color: var(--text);
    }

    .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    @media (max-width: 460px) {
        .icon-btn {
            display: none;
        }
    }

    #download-btn {
        display: flex;
        align-items: center;
        gap: 7px;
        height: 38px;
        padding: 0 16px;
        background: var(--accent);
        border-radius: var(--radius);
        font-family: var(--font-head);
        font-weight: 600;
        font-size: 13.5px;
        color: #fff;
        white-space: nowrap;
        transition: background var(--trans), transform var(--trans);
    }

    #download-btn:hover {
        background: #2563eb;
        transform: translateY(-1px);
    }

    #download-btn svg {
        width: 15px;
        height: 15px;
    }

    /* ─── BODY ROW ─────────────────────────────────────────── */
    #body-row {
        display: flex;
        flex: 1;
        padding-top: var(--top-h);
        overflow: hidden;
    }

    /* ─── LEFT SIDENAV ──────────────────────────────────────── */
    #sidenav {
        position: fixed;
        top: var(--top-h);
        left: 0;
        bottom: 0;
        width: var(--nav-w);
        background: var(--bg);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        z-index: 150;
        transition: width var(--trans);
    }

    #sidenav:hover {
        width: var(--nav-open);
    }

    /* Logo row inside sidenav */
    #sidenav-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 60px;
        padding: 0 16px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    #sidenav-logo .logo-mark {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
    }

    #sidenav-logo .logo-text {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 17px;
        letter-spacing: -0.4px;
        color: var(--text);
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity var(--trans), transform var(--trans);
    }

    #sidenav:hover .logo-text {
        opacity: 1;
        transform: translateX(0);
    }

    /* nav groups */
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 10px 8px;
        overflow: hidden;
    }

    .nav-list.bottom {
        margin-top: auto;
        border-top: 1px solid var(--border);
        padding-top: 10px;
    }

    .nav-divider {
        height: 1px;
        background: var(--border);
        margin: 6px 8px;
    }

    .nav-item {
        display: flex;
        align-items: center;
        gap: 13px;
        height: 42px;
        padding: 0 11px;
        border-radius: 9px;
        color: var(--muted);
        transition: background var(--trans), color var(--trans);
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        position: relative;
    }

    .nav-item:hover,
    .nav-item.active {
        background: var(--bg3);
        color: var(--text);
    }

    .nav-item.active {
        color: #fff;
    }

    .nav-item svg {
        width: 19px;
        height: 19px;
        flex-shrink: 0;
    }

    .nav-label {
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 500;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity var(--trans), transform var(--trans);
    }

    #sidenav:hover .nav-label {
        opacity: 1;
        transform: translateX(0);
    }

    /* ─── MAIN CONTENT ─────────────────────────────────────── */
    #main {
        margin-left: var(--nav-w);
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        transition: margin-left var(--trans);
    }

    /* ─── FILTER BAR ───────────────────────────────────────── */
    #filter-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(10, 10, 15, 0.9);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 10px 20px;
        display: flex;
        gap: 8px;
        align-items: center;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        display: flex;
        align-items: center;
        gap: 6px;
        height: 34px;
        padding: 0 12px;
        border-radius: 50px;
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--muted);
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        transition: background var(--trans), color var(--trans), border-color var(--trans);
        cursor: pointer;
    }

    .filter-chip:hover {
        background: var(--bg2);
        color: var(--text);
    }

    .filter-chip.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

    .filter-chip svg {
        width: 14px;
        height: 14px;
    }

    .filter-sep {
        width: 1px;
        height: 24px;
        background: var(--border);
        flex-shrink: 0;
    }

    /* chain pill */
    .chain-pill {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--bg3);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: border-color var(--trans);
        overflow: hidden;
    }

    .chain-pill:hover {
        border-color: var(--accent);
    }

    .chain-pill img {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }

    .chain-pill-text {
        font-size: 11px;
        font-weight: 700;
        color: var(--text);
    }

    /* ─── HERO SLIDER ──────────────────────────────────────── */
    #hero-section {
        padding: 20px 20px 0;
        position: relative;
    }

    #hero-slider {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        aspect-ratio: 16/7;
        background: #0d0d14;
        max-height: 420px;
    }

    /* Logo mark as image */
    .logo-mark {
        width: 36px;
        height: 36px;
        object-fit: contain;
        flex-shrink: 0;
        border-radius: 6px;
        background: var(--bg3);
    }

    #topnav-logo .logo-mark {
        font-weight: 700;
        width: 32px;
        height: 32px;
    }

    .slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.6s ease;
        display: flex;
    }

    .slide.active {
        opacity: 1;
    }

    .slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .slide-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 28px 28px 24px;
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.92) 0%,
                rgba(0, 0, 0, 0.75) 30%,
                rgba(0, 0, 0, 0.35) 65%,
                transparent 100%);
        display: flex;
        align-items: flex-end;
        gap: 20px;
    }

    .slide-info {
        flex: 1;
    }

    .slide-title {
        font-family: var(--font-head);
        font-size: clamp(18px, 2.5vw, 26px);
        font-weight: 800;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
    }

    .verified-badge {
        width: 20px;
        height: 20px;
        background: var(--accent);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .verified-badge svg {
        width: 11px;
        height: 11px;
        color: #fff;
    }

    .slide-by {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.65);
    }

    .slide-stats {
        display: flex;
        gap: 24px;
        margin-top: 14px;
    }

    .slide-stat {
        text-align: left;
    }

    .stat-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 3px;
    }

    .stat-val {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 15px;
        color: #fff;
    }

    .slide-thumbs {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .slide-thumb {
        width: 72px;
        height: 72px;
        border-radius: 10px;
        border: 2px solid rgba(255, 255, 255, 0.15);
        overflow: hidden;
        background: var(--bg3);
        cursor: pointer;
    }

    .slide-thumb.active {
        border-color: #fff;
    }

    .thumb-inner {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    /* slider controls */
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(8px);
        transition: background var(--trans);
        z-index: 10;
    }

    .slider-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .slider-btn svg {
        width: 16px;
        height: 16px;
    }

    #prev-btn {
        left: 14px;
    }

    #next-btn {
        right: 14px;
    }

    /* dots */
    .slider-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--border);
        cursor: pointer;
        transition: background var(--trans), width var(--trans);
    }

    .dot.active {
        background: var(--accent);
        width: 20px;
        border-radius: 3px;
    }

    /* ─── SECTION ──────────────────────────────────────────── */
    .section {
        padding: 28px 20px;
    }

    .section-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .section-title {
        font-family: var(--font-head);
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
    }

    .section-sub {
        font-size: 13px;
        color: var(--muted);
        margin-top: 3px;
    }

    .see-all {
        font-size: 13px;
        color: var(--accent);
        font-weight: 500;
        transition: color var(--trans);
    }

    .see-all:hover {
        color: #93c5fd;
    }

    /* ─── NFT GRID ─────────────────────────────────────────── */
    .nft-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }

    .nft-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
        transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
        cursor: pointer;
    }

    .nft-card:hover {
        transform: translateY(-4px);
        border-color: rgba(99, 102, 241, 0.4);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }

    .nft-img {
        width: 100%;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        position: relative;
        overflow: hidden;
    }

    .nft-img .nft-hover-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity var(--trans);
    }

    .nft-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .nft-card:hover .nft-hover-overlay {
        opacity: 1;
    }

    .buy-now-btn {
        height: 36px;
        padding: 0 16px;
        background: var(--accent);
        border-radius: 8px;
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 13px;
        color: #fff;
    }

    .nft-info {
        padding: 12px 14px;
    }

    .nft-collection {
        font-size: 11px;
        color: var(--muted);
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nft-name {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 14px;
        color: var(--text);
        margin-bottom: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nft-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nft-price-label {
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .nft-price-val {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 14px;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .eth-icon {
        font-size: 11px;
        color: var(--accent2);
    }

    .nft-last-sale {
        font-size: 11px;
        color: var(--muted);
    }

    /* ─── TRENDING TABLE ───────────────────────────────────── */
    .trending-table {
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
    }

    .table-head,
    .table-row {
        display: grid;
        grid-template-columns: 40px 1fr 100px 90px 90px;
        align-items: center;
        padding: 12px 16px;
        gap: 12px;
    }

    .table-head {
        background: var(--bg3);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--muted);
        font-weight: 600;
    }

    .table-row {
        border-top: 1px solid var(--border);
        background: var(--bg2);
        transition: background var(--trans);
        cursor: pointer;
    }

    .table-row:hover {
        background: var(--bg3);
    }

    .rank {
        color: var(--muted);
        font-size: 13px;
    }

    .collection-cell {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .coll-avatar {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex-shrink: 0;
        overflow: hidden;
    }

    .coll-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .coll-name {
        font-weight: 600;
        font-size: 14px;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .coll-floor {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 14px;
        color: var(--text);
        text-align: right;
    }

    .coll-vol {
        font-size: 13px;
        color: var(--text);
        text-align: right;
    }

    .change {
        font-weight: 600;
        font-size: 13px;
        text-align: right;
    }

    .change.up {
        color: var(--green);
    }

    .change.down {
        color: var(--red);
    }

    /* ─── TOKENS STRIP ─────────────────────────────────────── */
    .tokens-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .token-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: border-color var(--trans), transform var(--trans);
        cursor: pointer;
    }

    .token-card:hover {
        border-color: rgba(99, 102, 241, 0.35);
        transform: translateY(-2px);
    }

    .token-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex-shrink: 0;
    }

    .token-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .token-name {
        font-weight: 600;
        font-size: 13px;
        color: var(--text);
    }

    .token-mc {
        font-size: 11px;
        color: var(--muted);
        margin-top: 2px;
    }

    .token-chg {
        margin-left: auto;
        font-weight: 700;
        font-size: 12px;
    }

    /* ─── MOBILE OVERLAY ───────────────────────────────────── */
    #mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 140;
        backdrop-filter: blur(2px);
    }

    /* ─── MOBILE DRAWER ────────────────────────────────────── */
    #mobile-drawer {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        background: var(--bg);
        border-right: 1px solid var(--border);
        z-index: 145;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        overflow-y: auto;
    }

    #mobile-drawer.open {
        transform: translateX(0);
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        height: 60px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .drawer-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 18px;
        color: var(--text);
    }

    .drawer-close {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        transition: background var(--trans), color var(--trans);
    }

    .drawer-close:hover {
        background: var(--bg3);
        color: var(--text);
    }

    .drawer-close svg {
        width: 18px;
        height: 18px;
    }

    .drawer-nav {
        padding: 12px;
    }

    .drawer-item {
        display: flex;
        align-items: center;
        gap: 14px;
        height: 46px;
        padding: 0 12px;
        border-radius: 9px;
        color: var(--muted);
        font-size: 15px;
        font-weight: 500;
        transition: background var(--trans), color var(--trans);
        cursor: pointer;
    }

    .drawer-item:hover,
    .drawer-item.active {
        background: var(--bg3);
        color: var(--text);
    }

    .drawer-item svg {
        width: 19px;
        height: 19px;
        flex-shrink: 0;
    }

    .drawer-divider {
        height: 1px;
        background: var(--border);
        margin: 8px 12px;
    }

    /* ─── RESPONSIVE ───────────────────────────────────────── */
    @media (max-width: 900px) {
        #sidenav {
            display: none;
        }

        #main {
            margin-left: 0;
        }

        #hamburger {
            display: flex;
        }

        #topnav-logo {
            display: flex;
            font-weight: 700;
        }

        #search-wrap {
            max-width: none;
        }

        #mobile-drawer {
            display: flex;
        }

        #mobile-overlay {
            display: block;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.28s;
        }

        #mobile-overlay.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .table-head,
        .table-row {
            grid-template-columns: 30px 1fr 80px 70px;
        }

        .table-head>*:nth-child(5),
        .table-row>*:nth-child(5) {
            display: none;
        }
    }

    @media (max-width: 600px) {
        .slide-thumbs {
            display: none;
        }

        .slide-stats {
            gap: 14px;
        }

        .nft-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .tokens-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .table-head,
        .table-row {
            grid-template-columns: 26px 1fr 70px;
        }

        .table-head>*:nth-child(4),
        .table-row>*:nth-child(4),
        .table-head>*:nth-child(5),
        .table-row>*:nth-child(5) {
            display: none;
        }

        .kbd-hint {
            display: none;
        }
    }

    /* ─── LOAD ANIMATION ───────────────────────────────────── */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(16px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fade-up {
        animation: fadeUp 0.5s ease forwards;
    }

    .fade-up:nth-child(1) {
        animation-delay: 0.05s;
        opacity: 0;
    }

    .fade-up:nth-child(2) {
        animation-delay: 0.12s;
        opacity: 0;
    }

    .fade-up:nth-child(3) {
        animation-delay: 0.19s;
        opacity: 0;
    }

    .fade-up:nth-child(4) {
        animation-delay: 0.26s;
        opacity: 0;
    }

    .fade-up:nth-child(5) {
        animation-delay: 0.33s;
        opacity: 0;
    }

    .fade-up:nth-child(6) {
        animation-delay: 0.40s;
        opacity: 0;
    }

    @keyframes shimmer {
        0% {
            background-position: -400px 0;
        }

        100% {
            background-position: 400px 0;
        }
    }

    /* Gradient accent line under topnav */
    #topnav::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
    }

    /* footer */
    #footer {
        border-top: 1px solid var(--border);
        padding: 24px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 16px;
        color: var(--text);
    }

    .footer-links {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-link {
        font-size: 12px;
        color: var(--muted);
        transition: color var(--trans);
    }

    .footer-link:hover {
        color: var(--text);
    }

    .footer-copy {
        font-size: 12px;
        color: var(--muted);
    }

    /* ─── CTA ISSUE BUTTONS ────────────────────────────────── */
    .cta-section {
        padding-bottom: 28px;
    }

    .cta-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .cta-card {
        flex: 1 1 calc(50% - 6px);
        min-width: 260px;
        display: flex;
        align-items: center;
        gap: 14px;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 16px 18px;
        text-align: left;
        color: var(--text);
        cursor: pointer;
        transition: transform var(--trans), border-color var(--trans), background var(--trans), box-shadow var(--trans);
        position: relative;
        overflow: hidden;
    }

    .cta-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
        opacity: 0;
        transition: opacity var(--trans);
        pointer-events: none;
    }

    .cta-card:hover {
        transform: translateY(-3px);
        border-color: rgba(99, 102, 241, 0.35);
        background: var(--bg3);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    }

    .cta-card:hover::before {
        opacity: 1;
    }

    /* icon wrapper */
    .cta-icon-wrap {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform var(--trans);
    }

    .cta-card:hover .cta-icon-wrap {
        transform: scale(1.08);
    }

    .cta-icon-wrap svg {
        width: 20px;
        height: 20px;
    }

    /* icon color themes */
    .cta-icon--mint {
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
    }

    .cta-icon--buy {
        background: rgba(99, 102, 241, 0.15);
        color: #6366f1;
    }

    .cta-icon--error {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
    }

    .cta-icon--token {
        background: rgba(234, 179, 8, 0.15);
        color: #eab308;
    }

    .cta-icon--airdrop {
        background: rgba(34, 197, 94, 0.15);
        color: #22c55e;
    }

    .cta-icon--swap {
        background: rgba(168, 85, 247, 0.15);
        color: #a855f7;
    }

    .cta-icon--list {
        background: rgba(20, 184, 166, 0.15);
        color: #14b8a6;
    }

    .cta-icon--wallet {
        background: rgba(251, 146, 60, 0.15);
        color: #fb923c;
    }

    .cta-icon--gas {
        background: rgba(244, 63, 94, 0.15);
        color: #f43f5e;
    }

    /* text body */
    .cta-body {
        flex: 1;
        min-width: 0;
    }

    .cta-title {
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 13.5px;
        color: var(--text);
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cta-desc {
        font-size: 11.5px;
        color: var(--muted);
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* chevron arrow */
    .cta-arrow {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        color: var(--muted);
        opacity: 0;
        transform: translateX(-4px);
        transition: opacity var(--trans), transform var(--trans);
    }

    .cta-card:hover .cta-arrow {
        opacity: 1;
        transform: translateX(0);
    }

    /* responsive: 1 column on small screens */
    @media (max-width: 600px) {
        .cta-card {
            flex: 1 1 100%;
            min-width: unset;
        }
    }



    /* ══════════════════════════════════════════════════
       WALLET OVERLAY
    ══════════════════════════════════════════════════ */
    .w-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 16px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        overflow-y: auto;
    }

    .w-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

    /* Define custom wallet variables to match dark theme */
    .w-overlay {
        --plum: var(--accent);
        --plum-hv: #2563eb;
        --plum-dim: rgba(59, 130, 246, 0.15);
        --plum-glow: rgba(59, 130, 246, 0.08);
        --surface: var(--bg2);
        --text-2: #b0b0c0;
        --text-3: var(--muted);
        --border-hv: rgba(255, 255, 255, 0.25);
        --white: var(--bg);
    }

    /* shared panel shell */
    .w-panel,
    .w-sub {
        position: relative;
        width: 100%;
        max-width: 420px;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
        overflow-x: hidden;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: 0 24px 80px rgba(49, 41, 56, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08);
        margin: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .w-panel::-webkit-scrollbar,
    .w-sub::-webkit-scrollbar {
        display: none;
    }

    .w-panel.hidden {
        display: none !important;
    }

    .w-sub {
        display: none;
        animation: panelIn 0.25s cubic-bezier(.22, 1, .36, 1) both;
    }

    .w-sub.active {
        display: block;
    }

    /* plum top accent line */
    .w-panel::before,
    .w-sub::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--plum), rgba(49, 41, 56, 0.4), transparent);
        border-radius: 18px 18px 0 0;
        z-index: 2;
    }

    @keyframes panelIn {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* ── HEADER ──────────────────────────────────────── */
    .w-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 22px 16px;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: var(--bg3);
        z-index: 1;
        border-radius: 18px 18px 0 0;
    }

    .w-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -0.01em;
    }

    .w-close {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text-3);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        flex-shrink: 0;
        transition: background 0.18s, color 0.18s, border-color 0.18s;
    }

    .w-close:hover {
        background: var(--plum-dim);
        border-color: var(--border-hv);
        color: var(--plum);
    }

    /* ── SCREEN 1 BODY ───────────────────────────────── */
    .w-body {
        padding: 18px 22px 22px;
    }

    /* featured wallet */
    .w-featured {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 12px;
        border: 1px solid rgba(49, 41, 56, 0.18);
        background: var(--plum-glow);
        cursor: pointer;
        position: relative;
        overflow: hidden;
        margin-bottom: 16px;
        transition: border-color 0.18s, background 0.18s, transform 0.15s;
    }

    .w-featured::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--plum);
    }

    .w-featured:hover {
        border-color: rgba(49, 41, 56, 0.35);
        background: var(--plum-dim);
        transform: translateX(3px);
    }

    .w-featured-badge {
        position: absolute;
        top: 10px;
        right: 12px;
        font-size: 8.5px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--plum);
        background: rgba(49, 41, 56, 0.08);
        border: 1px solid rgba(49, 41, 56, 0.18);
        border-radius: 20px;
        padding: 2px 8px;
        font-weight: 600;
    }

    .w-feat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .w-feat-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .w-feat-name {
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
    }

    .w-feat-desc {
        font-size: 11.5px;
        color: var(--text-2);
        margin-top: 2px;
    }

    /* divider */
    .w-divider {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }

    .w-divider::before,
    .w-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .w-divider span {
        font-size: 10px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-3);
        font-weight: 500;
    }

    /* wallet list */
    .w-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 18px;
    }

    .w-item {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 11px 14px;
        border-radius: 10px;
        border: 1px solid transparent;
        cursor: pointer;
        transition: background 0.18s, border-color 0.18s, transform 0.15s;
    }

    .w-item:hover {
        background: var(--surface);
        border-color: var(--border);
        transform: translateX(3px);
    }

    .w-item-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .w-item-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .w-item-name {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text);
    }

    .w-item-desc {
        font-size: 11px;
        color: var(--text-3);
        margin-top: 1px;
    }

    .w-item-arrow {
        margin-left: auto;
        font-size: 16px;
        color: var(--text-3);
        flex-shrink: 0;
        transition: color 0.18s, transform 0.18s;
    }

    .w-item:hover .w-item-arrow {
        color: var(--plum);
        transform: translateX(2px);
    }

    /* other wallets item */
    .w-item-other {
        border: 1px dashed var(--border);
    }

    .w-item-other .w-item-icon {
        background: var(--plum-dim);
        border-color: rgba(49, 41, 56, 0.15);
        color: var(--plum);
        font-size: 17px;
    }

    .w-item-other:hover {
        border-style: solid;
        border-color: rgba(49, 41, 56, 0.25);
    }

    /* note */
    .w-note {
        font-size: 11px;
        color: var(--text-3);
        text-align: center;
        line-height: 1.65;
    }

    .w-note a {
        color: rgba(49, 41, 56, 0.55);
        text-decoration: none;
    }

    .w-note a:hover {
        color: var(--plum);
    }

    /* ── OTHER WALLETS SCREEN ────────────────────────── */
    .ow-search-wrap {
        padding: 14px 22px 10px;
        border-bottom: 1px solid var(--border);
        position: relative;
    }

    .ow-search-wrap i {
        position: absolute;
        left: 34px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-3);
        font-size: 15px;
        pointer-events: none;
    }

    .ow-search {
        width: 100%;
        padding: 10px 14px 10px 38px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 9px;
        color: var(--text);
        font-size: 13.5px;
        outline: none;
        transition: border-color 0.18s, box-shadow 0.18s;
        font-family: inherit;
    }

    .ow-search::placeholder {
        color: var(--text-3);
    }

    .ow-search:focus {
        border-color: var(--border-hv);
        box-shadow: 0 0 0 3px rgba(49, 41, 56, 0.07);
    }

    .ow-count {
        font-size: 10.5px;
        color: var(--text-3);
        text-align: right;
        padding: 6px 22px 0;
        letter-spacing: 0.06em;
    }

    .ow-list {
        padding: 8px 22px 20px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        max-height: 380px;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ow-list::-webkit-scrollbar {
        display: none;
    }

    .ow-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 10px;
        border-radius: 9px;
        border: 1px solid transparent;
        cursor: pointer;
        transition: background 0.15s, border-color 0.15s, transform 0.13s;
    }

    .ow-item:hover {
        background: var(--surface);
        border-color: var(--border);
        transform: translateX(3px);
    }

    .ow-item.hidden {
        display: none;
    }

    .ow-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ow-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ow-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
    }

    .ow-chain {
        font-size: 10.5px;
        color: var(--text-3);
        margin-top: 1px;
    }

    .ow-no-results {
        display: none;
        text-align: center;
        padding: 32px 0;
        color: var(--text-3);
        font-size: 13.5px;
    }

    .ow-no-results i {
        display: block;
        font-size: 28px;
        margin-bottom: 8px;
        opacity: 0.4;
    }

    /* ── LOADING SCREEN ──────────────────────────────── */
    .w-loading-body {
        padding: 32px 22px 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        text-align: center;
    }

    .w-wallet-chip {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 7px 14px 7px 8px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 30px;
    }

    .w-chip-icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--plum-dim);
    }

    .w-chip-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .w-chip-name {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-2);
    }

    .w-spinner {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 3px solid rgba(49, 41, 56, 0.1);
        border-top-color: var(--plum);
        border-right-color: rgba(49, 41, 56, 0.35);
        animation: spin 0.9s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .w-status {
        font-size: 13px;
        color: var(--text-2);
        line-height: 1.6;
        min-height: 42px;
        max-width: 280px;
        transition: opacity 0.15s;
    }

    .w-progress-wrap {
        width: 100%;
        background: rgba(49, 41, 56, 0.08);
        border-radius: 4px;
        height: 2px;
        overflow: hidden;
    }

    .w-progress-bar {
        height: 100%;
        width: 0%;
        background: var(--plum);
        border-radius: 4px;
        transition: width 0.2s linear;
    }

    /* ── ERROR SCREEN ────────────────────────────────── */
    .w-error-body {
        padding: 28px 22px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
    }

    .w-error-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ef4444;
        font-size: 22px;
    }

    .w-error-msg strong {
        display: block;
        font-size: 14.5px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 6px;
    }

    .w-error-msg {
        font-size: 13px;
        color: var(--text-2);
        line-height: 1.65;
        max-width: 290px;
    }

    /* ── MANUAL SCREEN (custom) ──────────────────────── */
    .w-manual-body {
        padding: 18px 22px 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* chip in manual screen */
    .w-manual-body .w-wallet-chip {
        align-self: center;
    }

    /* ── TYPE TOGGLE (Phrase / Keystore JSON / Private Key) */
    .type-toggle {
        display: flex;
        gap: 6px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 4px;
    }

    .type-btn {
        flex: 1;
        padding: 8px 6px;
        border-radius: 7px;
        border: none;
        background: transparent;
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-3);
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    }

    .type-btn.active {
        background: var(--white);
        color: var(--plum);
        box-shadow: 0 1px 4px rgba(49, 41, 56, 0.12);
    }

    .type-btn:not(.active):hover {
        color: var(--text-2);
        background: rgba(49, 41, 56, 0.04);
    }

    /* input panes */
    .input-pane {
        display: none;
        flex-direction: column;
        gap: 12px;
    }

    .input-pane.active {
        display: flex;
    }

    .w-textarea,
    .w-input {
        width: 100%;
        padding: 13px 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text);
        font-family: inherit;
        font-size: 13px;
        line-height: 1.7;
        resize: none;
        outline: none;
        transition: border-color 0.18s, box-shadow 0.18s;
    }

    .w-textarea::placeholder,
    .w-input::placeholder {
        color: var(--text-3);
    }

    .w-textarea:focus,
    .w-input:focus {
        border-color: var(--border-hv);
        box-shadow: 0 0 0 3px rgba(49, 41, 56, 0.07);
    }

    .w-textarea.phrase-area {
        height: 110px;
    }

    .w-textarea.keystore-area {
        height: 130px;
        font-family: 'Courier New', monospace;
        font-size: 12px;
    }

    .w-textarea.privkey-area {
        height: 80px;
        font-family: 'Courier New', monospace;
        font-size: 12.5px;
    }

    /* attach button (keystore only) */
    .attach-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 16px;
        border-radius: 9px;
        background: var(--surface);
        border: 1px dashed var(--border-hv);
        color: var(--text-2);
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.18s, border-color 0.18s, color 0.18s;
        width: 100%;
        justify-content: center;
    }

    .attach-btn:hover {
        background: var(--plum-dim);
        border-color: rgba(49, 41, 56, 0.35);
        color: var(--plum);
    }

    .attach-btn i {
        font-size: 15px;
    }

    #keystoreFileInput {
        display: none;
    }

    .attach-file-name {
        font-size: 11px;
        color: var(--text-3);
        text-align: center;
        margin-top: -6px;
    }

    /* encrypt note */
    .w-encrypt-note {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 11px 13px;
        background: rgba(49, 41, 56, 0.04);
        border: 1px solid rgba(49, 41, 56, 0.08);
        border-radius: 9px;
    }

    .w-encrypt-note i {
        font-size: 14px;
        color: var(--plum);
        flex-shrink: 0;
        margin-top: 1px;
        opacity: 0.7;
    }

    .w-encrypt-note p {
        font-size: 11px;
        color: var(--text-2);
        line-height: 1.65;
    }

    .w-encrypt-note strong {
        color: rgba(49, 41, 56, 0.6);
        font-weight: 600;
    }

    /* ── BUTTONS ─────────────────────────────────────── */
    .w-btn-stack {
        display: flex;
        flex-direction: column;
        gap: 9px;
        width: 100%;
    }

    .w-btn {
        width: 100%;
        padding: 13px 20px;
        border-radius: 11px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        letter-spacing: 0.01em;
        transition: transform 0.15s, box-shadow 0.18s, background 0.18s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .w-btn-plum {
        background: var(--plum);
        color: #fff;
        border: none;
    }

    .w-btn-plum:hover {
        background: var(--plum-hv);
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(49, 41, 56, 0.28);
    }

    .w-btn-ghost {
        background: transparent;
        color: var(--text-2);
        border: 1px solid var(--border);
    }

    .w-btn-ghost:hover {
        background: var(--surface);
        border-color: var(--border-hv);
        color: var(--text);
        transform: translateY(-1px);
    }