/* ============================================================
   DevBoost app header — shared layout layer.
   The top bar (logo + header-right with catalog button / balance /
   notification bell / profile avatar) was duplicated, pixel-identical,
   across 8 dashboard page CSS files and the 3 public legal pages.

   This is a LAYOUT primitive, not a skin component, so it ships as a
   linked stylesheet (like colors_and_type.css) rather than a JS-injected
   component — it must also serve the public legal pages, which load no JS,
   and an always-present header should not flash in unstyled.

   Linked by: campaign_brief, company_brief, finances, incoming_offers,
   integration_brief, my_campaigns, settings, streamer_search (dashboards)
   + consent, offers, policy (public, logo only).

   NOT used by the moderator pages (slimmer header: 44px logo, faint border)
   or the marketing landing — those keep their own header.
   ============================================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #fff;
}

.logo img {
    height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-catalog {
    padding: 12px 20px;
    background: var(--glass-fill, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(var(--glass-blur, 10px));
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill, 24px);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-stroke, rgba(255, 255, 255, 0.2));
}

.btn-catalog:hover {
    background: var(--main-purple, #9C4DFF);
    color: #000;
    font-weight: 700;
    border-color: var(--main-purple, #9C4DFF);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(156, 77, 255, 0.4);
}

.balance {
    display: inline-flex;
    align-items: center;
    background: var(--glass-fill, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(var(--glass-blur, 10px));
    padding: 12px 16px;
    border-radius: var(--r-pill, 24px);
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--glass-stroke, rgba(255, 255, 255, 0.2));
}

.balance:hover {
    background: var(--main-purple, #9C4DFF);
    color: #000;
    font-weight: 700;
    border-color: var(--main-purple, #9C4DFF);
}

/* Mobile: tighten the header, hide the desktop balance chip (it moves into
   the profile dropdown — see js/profile_menu.js), shrink the bell. */
@media (max-width: 768px) {
    .header-right {
        gap: 4px;
    }

    .logo img {
        width: 72px;
        height: auto;
    }

    .btn-catalog {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }

    .balance,
    .header .balance,
    a[href="finances.html"].balance {
        display: none !important;
    }

    .notifications-dropdown {
        margin: 0 4px;
    }

    .notifications-icon {
        width: 36px;
        height: 36px;
    }

    .notifications-menu {
        width: 280px;
        right: -50px;
    }
}
