*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hv: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hv: rgba(255, 255, 255, 0.16);
    --red: #9c3535;
    --red-dim: rgba(156, 53, 53, 0.18);
    --red-glow: rgba(156, 53, 53, 0.08);
    --text: #f0f0f0;
    --text-2: rgba(240, 240, 240, 0.55);
    --text-3: rgba(240, 240, 240, 0.28);
    --white: #ffffff;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    /* subtle noise grain overlay */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ── NAV ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;

    /* glassmorphism */
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    border-bottom: 1px solid var(--border);
}

/* subtle red accent line at bottom of nav */
nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--red) 30%,
            rgba(156, 53, 53, 0.4) 70%,
            transparent 100%);
    opacity: 0.6;
}

/* ── LOGO ─────────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* fallback SVG */
.logo-mark svg {
    width: 20px;
    height: 20px;
}

.logo-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: var(--white);
}

.logo-slash {
    color: var(--red);
    margin: 0 2px;
    opacity: 0.8;
    font-weight: 300;
}

.logo-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-2);
    letter-spacing: 0.01em;
}

/* ── ELIGIBILITY BUTTON ──────────────────────────── */
.btn-eligibility {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-eligibility:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-eligibility .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    animation: blink 2s ease-in-out infinite;
}

/* live badge */
.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid rgba(156, 53, 53, 0.3);
    border-radius: 20px;
    padding: 1px 6px;
}

.badge-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* ── RIGHT SIDE ──────────────────────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* subtle tge countdown pill */
.tge-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-2);
    padding: 6px 12px;
    background: var(--red-glow);
    border: 1px solid rgba(156, 53, 53, 0.2);
    border-radius: 8px;
    white-space: nowrap;
}

.tge-pill span {
    color: var(--red);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-connect:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.btn-connect i {
    font-size: 14px;
}



@media (max-width: 340px) {
    .logo-name {
        display: none;
    }

    .tge-pill {
        display: none;
    }

    nav {
        padding: 0 20px;
    }
}

@media (max-width: 860px) {
    .tge-pill {
        display: none;
    }

    .btn-connect.nav-connect {
        display: none;
    }

    nav {
        padding: 0 24px;
    }
}

.hero {
    min-height: 100vh;
    padding: 140px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background mesh */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center,
            rgba(156, 53, 53, 0.12) 0%,
            rgba(156, 53, 53, 0.04) 40%,
            transparent 70%);
    filter: blur(60px);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── SNAPSHOT BANNER ─────────────────────────────── */
.snapshot-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
    animation: fadeUp 0.5s ease both;
}

.snapshot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
    animation: blink 2s ease-in-out infinite;
}

/* ── HEADLINE ────────────────────────────────────── */
.hero-headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 6.5vw, 76px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeUp 0.5s ease 0.08s both;
}

.hero-headline em {
    font-style: normal;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-headline .red-word {
    color: var(--red);
    -webkit-text-fill-color: var(--red);
}

/* ── SUBTEXT ─────────────────────────────────────── */
.hero-sub {
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 300;
    color: var(--text-2);
    text-align: center;
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 40px;
    animation: fadeUp 0.5s ease 0.14s both;
}

/* ── CTA BUTTONS ─────────────────────────────────── */
.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 72px;
    animation: fadeUp 0.5s ease 0.2s both;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 10px;
    background: #ffffff;
    color: #000;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.cta-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 13px 28px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: color 0.2s, border-color 0.2s, transform 0.15s, background 0.2s;
}

.cta-secondary:hover {
    color: var(--white);
    border-color: var(--border-hv);
    background: var(--surface-hv);
    transform: translateY(-2px);
}

/* ── COUNTDOWN ROW ───────────────────────────────── */
.countdown-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 56px;
    animation: fadeUp 0.5s ease 0.24s both;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px 10px;
    backdrop-filter: blur(12px);
    min-width: 72px;
}

.cd-num {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cd-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 5px;
}

.cd-sep {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--red);
    opacity: 0.6;
    margin-bottom: 10px;
}

.cd-tge-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(156, 53, 53, 0.2);
    border-radius: 8px;
    background: var(--red-glow);
    margin-left: 10px;
}

.cd-tge-label span {
    color: var(--red);
}

/* ── ALLOCATION CARDS ────────────────────────────── */
.alloc-section {
    width: 100%;
    animation: fadeUp 0.5s ease 0.3s both;
}

.alloc-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    text-align: center;
    margin-bottom: 20px;
}

.alloc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.alloc-card {
    position: relative;
    padding: 24px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.2s;
}

.alloc-card:hover {
    border-color: var(--border-hv);
    transform: translateY(-3px);
}

/* red accent top border on first card */
.alloc-card.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), rgba(156, 53, 53, 0.3));
}

.alloc-card.primary {
    border-color: rgba(156, 53, 53, 0.25);
    background: rgba(156, 53, 53, 0.04);
}

.alloc-card.primary:hover {
    border-color: rgba(156, 53, 53, 0.45);
}

/* card inner glow */
.alloc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.04), transparent 60%);
    pointer-events: none;
}

.alloc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.alloc-card.primary .alloc-icon {
    background: var(--red-dim);
    border-color: rgba(156, 53, 53, 0.3);
    color: var(--red);
}

.alloc-pct {
    font-family: 'Syne', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.alloc-card.primary .alloc-pct {
    color: var(--red);
}

.alloc-tokens {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.alloc-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.alloc-desc {
    font-size: 12.5px;
    font-weight: 300;
    color: var(--text-2);
    line-height: 1.6;
}

.alloc-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.alloc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-3);
}

.alloc-meta i {
    font-size: 13px;
}

/* total supply strip */
.supply-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: var(--text-2);
}

.supply-strip strong {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.supply-strip .pipe {
    width: 1px;
    height: 16px;
    background: var(--border);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .alloc-grid {
        grid-template-columns: 1fr;
    }

    .countdown-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cd-tge-label {
        margin-left: 0;
    }

    .hero {
        padding: 120px 20px 80px;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-primary,
    .cta-secondary {
        justify-content: center;
    }
}


/* ── COUNTDOWN ROW ───────────────────────────────── */
.countdown-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 56px;
    animation: fadeUp 0.5s ease 0.24s both;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px 10px;
    backdrop-filter: blur(12px);
    min-width: 72px;
}

.cd-num {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cd-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 5px;
}

.cd-sep {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--red);
    opacity: 0.6;
    margin-bottom: 10px;
}


/* ── ACTION GRID ─────────────────────────────────── */
.action-section {
    width: 100%;
    margin-top: 0px;
    animation: fadeUp 0.5s ease 0.36s both;
    margin-bottom: 40px;
}

.action-section-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    text-align: center;
    margin-bottom: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.22s, background 0.22s, transform 0.18s;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.04), transparent 65%);
    opacity: 0;
    transition: opacity 0.22s;
}

.action-card:hover {
    border-color: rgba(156, 53, 53, 0.3);
    background: rgba(156, 53, 53, 0.04);
    transform: translateY(-3px);
}

.action-card:hover::before {
    opacity: 1;
}

/* red top accent on hover */
.action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--red), transparent);
    opacity: 0;
    transition: opacity 0.22s;
}

.action-card:hover::after {
    opacity: 1;
}

.action-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-2);
    flex-shrink: 0;
    transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.action-card:hover .action-icon {
    background: var(--red-dim);
    border-color: rgba(156, 53, 53, 0.35);
    color: var(--red);
}

.action-card-text {
    position: relative;
    z-index: 1;
}

.action-card-name {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 4px;
}

.action-card-desc {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-3);
    line-height: 1.5;
}

.action-arrow {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 13px;
    color: var(--text-3);
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--red);
}

@media (max-width: 720px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--red) 30%,
            rgba(156, 53, 53, 0.3) 70%,
            transparent 100%);
    opacity: 0.5;
}

.footer-row {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.footer-copy {
    font-size: 11px;
    color: var(--text-3);
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-social:hover {
    border-color: rgba(156, 53, 53, 0.35);
    background: var(--red-glow);
    color: var(--text);
}

@media (max-width: 640px) {
    footer {
        padding: 20px;
    }

    .footer-row {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .footer-copy {
        border-left: none;
        padding-left: 0;
    }
}

/* ══════════════════════════════════════════════════
       WALLET MODAL — Backpack Support
    ══════════════════════════════════════════════════ */
.w-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    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;
}

/* shared panel */
.w-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    margin: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.w-panel::-webkit-scrollbar {
    display: none;
}

.w-panel.hidden {
    display: none !important;
}

/* red top stripe */
.w-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), rgba(156, 53, 53, 0.2), transparent);
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

/* sub panels — hidden by default */
.w-sub {
    display: none;
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    margin: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    animation: panelIn 0.25s cubic-bezier(.22, 1, .36, 1) both;
}

.w-sub::-webkit-scrollbar {
    display: none;
}

.w-sub.active {
    display: block;
}

.w-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), rgba(156, 53, 53, 0.2), transparent);
    border-radius: 20px 20px 0 0;
    z-index: 2;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── PANEL HEADER ────────────────────────────────── */
.w-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    background: #111111;
    z-index: 1;
}

.w-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.01em;
}

.w-close {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    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(--red-dim);
    border-color: rgba(156, 53, 53, 0.3);
    color: var(--white);
}

/* ── SCREEN 1 BODY ───────────────────────────────── */
.w-body {
    padding: 16px 20px 20px;
}

/* featured wallet */
.w-featured {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(156, 53, 53, 0.25);
    background: rgba(156, 53, 53, 0.06);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color 0.18s, background 0.18s, transform 0.15s;
}

.w-featured:hover {
    border-color: rgba(156, 53, 53, 0.5);
    background: rgba(156, 53, 53, 0.1);
    transform: translateX(3px);
}

.w-featured::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red);
    border-radius: 2px 0 0 2px;
}

.w-featured-badge {
    position: absolute;
    top: 9px;
    right: 10px;
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(156, 53, 53, 0.12);
    border: 1px solid rgba(156, 53, 53, 0.25);
    border-radius: 20px;
    padding: 2px 7px;
}

.w-featured-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.w-featured-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.w-featured-name {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.w-featured-desc {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

/* divider */
.w-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.w-divider::before,
.w-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.w-divider span {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* wallet list */
.w-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.w-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    position: relative;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.w-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.w-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.w-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.w-item-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--white);
}

.w-item-desc {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}

.w-item-arrow {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: color 0.18s, transform 0.18s;
}

.w-item:hover .w-item-arrow {
    color: var(--text-2);
    transform: translateX(2px);
}

/* other wallets item */
.w-item-other {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
}

.w-item-other .w-item-icon {
    background: rgba(156, 53, 53, 0.08);
    border: 1px solid rgba(156, 53, 53, 0.15);
    color: var(--red);
    font-size: 16px;
}

.w-item-other:hover {
    border-style: solid;
    border-color: rgba(156, 53, 53, 0.25);
    background: rgba(156, 53, 53, 0.04);
}

/* modal note */
.w-note {
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
    line-height: 1.6;
}

.w-note a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.w-note a:hover {
    color: var(--text-2);
}

/* ── OTHER WALLETS SCREEN ────────────────────────── */
.ow-search-wrap {
    padding: 14px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.ow-search-wrap i {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 15px;
    pointer-events: none;
}

.ow-search {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s;
}

.ow-search::placeholder {
    color: var(--text-3);
}

.ow-search:focus {
    border-color: rgba(156, 53, 53, 0.4);
}

.ow-list {
    padding: 10px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ow-list::-webkit-scrollbar {
    display: none;
}

.ow-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.16s, border-color 0.16s, transform 0.13s;
}

.ow-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.ow-item.hidden {
    display: none;
}

.ow-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ow-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ow-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
}

.ow-chain {
    font-size: 10.5px;
    color: var(--text-3);
    margin-top: 1px;
}

.ow-no-results {
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-3);
    display: none;
}

/* ── LOADING SCREEN ──────────────────────────────── */
.w-loading-body {
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.w-wallet-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
}

.w-wallet-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
}

.w-wallet-chip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.w-wallet-chip-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
}

/* DNA-style dual ring loader */
.w-loader {
    position: relative;
    width: 64px;
    height: 64px;
}

.w-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.w-loader-ring-1 {
    border-top-color: var(--red);
    border-right-color: rgba(156, 53, 53, 0.3);
    animation: spin1 1.1s linear infinite;
}

.w-loader-ring-2 {
    inset: 8px;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    border-left-color: rgba(255, 255, 255, 0.15);
    animation: spin2 0.8s linear infinite reverse;
}

.w-loader-ring-3 {
    inset: 16px;
    border-top-color: rgba(156, 53, 53, 0.6);
    border-right-color: transparent;
    animation: spin1 1.4s linear infinite;
}

.w-loader-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: dotPulse 1.1s ease-in-out infinite;
}

@keyframes spin1 {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin2 {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

.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(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 2px;
    overflow: hidden;
}

.w-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red), rgba(156, 53, 53, 0.5));
    border-radius: 4px;
    transition: width 0.2s linear;
}

/* ── ERROR SCREEN ────────────────────────────────── */
.w-error-body {
    padding: 28px 24px;
    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(156, 53, 53, 0.1);
    border: 1px solid rgba(156, 53, 53, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 20px;
}

.w-error-msg strong {
    display: block;
    font-size: 14px;
    font-family: 'Syne', sans-serif;
    color: var(--white);
    margin-bottom: 6px;
}

.w-error-msg {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 280px;
}

/* ── MANUAL SCREEN ───────────────────────────────── */
.w-manual-body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.w-field-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: -8px;
}

.w-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    outline: none;
    cursor: pointer;
    transition: border-color 0.18s;
}

.w-select:focus {
    border-color: rgba(156, 53, 53, 0.4);
}

.w-select option {
    background: #111;
}

.w-textarea {
    width: 100%;
    height: 140px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    resize: none;
    outline: none;
    transition: border-color 0.18s;
}

.w-textarea::placeholder {
    color: var(--text-3);
}

.w-textarea:focus {
    border-color: rgba(156, 53, 53, 0.4);
}

.w-encrypt-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
}

.w-encrypt-note i {
    font-size: 14px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 1px;
}

.w-encrypt-note p {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.6;
}

.w-encrypt-note strong {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

/* ── BUTTONS ─────────────────────────────────────── */
.w-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.w-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    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: 7px;
}

.w-btn-white {
    background: #ffffff;
    color: #000;
    border: none;
}

.w-btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.w-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.w-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-1px);
}