*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: #0a0e1a;
    color: #e8eaf2;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #3b9eff;
    text-decoration: none;
}

a:hover {
    color: #6db8ff;
}

.btn-bb-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff !important;
    border: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s, transform 0.15s;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-bb-primary:hover {
    background: #2e8eef;
    transform: translateY(-1px);
}

.btn-bb-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--blue) !important;
    border: 1px solid var(--blue-bdr);
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s, transform 0.15s;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-bb-outline:hover {
    background: var(--blue-dim);
    transform: translateY(-1px);
}

.bb-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
}

.bb-nav-mobile {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.bb-nav-mobile.open {
    display: block;
}

.bb-nav-mobile a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.bb-nav-mobile a:last-child {
    border-bottom: none;
}

/* ─── Page body ───────────────────────────── */
.bb-page-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}

/* ─── Ambient glow orbs ───────────────────── */
.bb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.35;
}

.bb-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 158, 255, 0.4) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.bb-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
}

.bb-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.2) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
}

/* ─── 404 card ────────────────────────────── */
.bb-404-card {
    width: 100%;
    max-width: 680px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Big 404 number */
.bb-404-number {
    font-size: 160px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -8px;
    color: transparent;
    background: linear-gradient(135deg, #3b9eff 0%, #9b59b6 50%, #3b9eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 8px;
    user-select: none;
    animation: shimmer 4s ease-in-out infinite;
    background-size: 200% auto;
}

/* Big 404 number */
.bb-other-number {
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -8px;
    color: transparent;
    background: linear-gradient(135deg, #3b9eff 0%, #9b59b6 50%, #3b9eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 8px;
    user-select: none;
    animation: shimmer 4s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Icon badge */
.bb-404-icon {
    width: 72px;
    height: 72px;
    background: var(--blue-dim);
    border: 1px solid var(--blue-bdr);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 32px 4px var(--blue-glow);
}

.bb-404-icon i {
    font-size: 32px;
    color: var(--blue);
}

.bb-404-card h1 {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.bb-404-card p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* Divider */
.bb-404-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px auto;
    max-width: 320px;
}

.bb-404-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.bb-404-divider-text {
    font-size: 12px;
    color: var(--faint);
    white-space: nowrap;
}

/* Action buttons */
.bb-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Quick links */
.bb-404-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bb-404-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--muted) !important;
    text-decoration: none !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.bb-404-link:hover {
    border-color: var(--blue-bdr);
    color: #e8eaf2 !important;
    background: var(--surface2);
}

.bb-404-link i {
    font-size: 15px;
    color: var(--blue);
}

/* Error code badge */
.bb-404-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--red);
    padding: 4px 12px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.bb-404-badge i {
    font-size: 12px;
}

/* ─── Footer ──────────────────────────────── */
.bb-footer-bottom {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    flex-shrink: 0;
}

.bb-footer-bottom p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.bb-coingecko-dot {
    width: 14px;
    height: 14px;
    background: #1a8c5b;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
    margin-right: 4px;
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 767px) {
    .bb-navbar {
        padding: 0 20px;
    }

    .bb-nav-links {
        display: none;
    }

    .bb-nav-toggle {
        display: block;
    }

    .bb-404-number {
        font-size: 100px;
        letter-spacing: -4px;
    }

    .bb-404-card h1 {
        font-size: 24px;
    }

    .bb-404-card p {
        font-size: 15px;
    }
}