/* Shared sticky header + hamburger menu (home, crypto split, etc.) */

.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a1f28;
    border-bottom: 1px solid #2d3544;
}

.mobile-topbar .topbar {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border-bottom: none;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #2d3544;
    border-radius: 10px;
    background: #131820;
    color: #e8eaed;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-btn svg {
    display: block;
}

.mobile-topbar .topbar .mobile-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav .btn.ghost.sm {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .mobile-menu-btn {
        display: inline-flex;
        margin-left: auto;
    }

    .mobile-topbar .topbar {
        position: relative;
        flex-wrap: nowrap;
    }

    .mobile-topbar .topbar .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        margin: 0;
        background: #1a1f28;
        border-bottom: 1px solid #2d3544;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        z-index: 101;
    }

    .mobile-topbar .topbar .mobile-nav.is-open {
        display: flex;
    }

    .mobile-topbar .topbar .mobile-nav a,
    .mobile-topbar .topbar .mobile-nav .mobile-nav-action {
        padding: 0.85rem 0.9rem;
        border-radius: 8px;
        font-size: 0.95rem;
        text-align: left;
        width: 100%;
        justify-content: flex-start;
    }

    .mobile-topbar .topbar .mobile-nav a:hover,
    .mobile-topbar .topbar .mobile-nav a.topbar-active {
        background: rgba(0, 255, 157, 0.08);
        text-decoration: none;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}
