﻿:root {
    --bv-header-primary: #ff2e93;
    --bv-header-primary-dark: #d91f78;
    --bv-header-primary-soft: rgba(255, 46, 147, .11);
    --bv-header-primary-softer: rgba(255, 46, 147, .065);
    --bv-header-background: #f4f6f9;
    --bv-header-surface: #ffffff;
    --bv-header-surface-2: #f8f9fb;
    --bv-header-surface-3: #f0f2f6;
    --bv-header-text: #202124;
    --bv-header-text-soft: #424752;
    --bv-header-muted: #727986;
    --bv-header-border: #e5e8ee;
    --bv-header-danger: #dc2626;
    --bv-header-success: #168a4d;
    --bv-header-warning: #b7791f;
    --bv-header-shadow-sm: 0 8px 24px rgba(22, 30, 48, .07);
    --bv-header-shadow: 0 18px 50px rgba(22, 30, 48, .10);
    --bv-header-shadow-strong: 0 28px 80px rgba(15, 23, 42, .24);
    --bv-header-radius-sm: 16px;
    --bv-header-radius: 24px;
    --bv-header-radius-lg: 32px;
    --bv-header-page-width: 1180px;
    --bv-header-transition: 180ms ease;
}

.bv-header,
.bv-header *,
.bv-header *::before,
.bv-header *::after {
    box-sizing: border-box;
}

.bv-header {
    min-width: 0;
    color: var(--bv-header-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

    .bv-header button,
    .bv-header input,
    .bv-header textarea,
    .bv-header select {
        font: inherit;
    }

    .bv-header button,
    .bv-header a {
        -webkit-tap-highlight-color: transparent;
    }

    .bv-header button {
        cursor: pointer;
    }

    .bv-header a {
        color: inherit;
        text-decoration: none;
    }

    .bv-header img {
        max-width: 100%;
    }

    .bv-header [hidden] {
        display: none !important;
    }

body.bv-header-body-locked {
    overflow: hidden;
}

.bv-header-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bv-header-card {
    border: 1px solid rgba(229, 232, 238, .94);
    border-radius: var(--bv-header-radius);
    background: var(--bv-header-surface);
    box-shadow: var(--bv-header-shadow-sm);
}

.bv-header-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
    transition: transform var(--bv-header-transition), background-color var(--bv-header-transition), border-color var(--bv-header-transition), color var(--bv-header-transition), opacity var(--bv-header-transition);
}

    .bv-header-button:active {
        transform: scale(.97);
    }

    .bv-header-button:disabled,
    .bv-header-button[aria-disabled="true"] {
        cursor: not-allowed;
        opacity: .58;
    }

.bv-header-button--primary {
    border-color: var(--bv-header-primary);
    background: var(--bv-header-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 46, 147, .22);
}

.bv-header-button--secondary {
    border-color: var(--bv-header-border);
    background: var(--bv-header-surface-2);
    color: var(--bv-header-text);
}

.bv-header-button--danger {
    border-color: rgba(220, 38, 38, .18);
    background: rgba(220, 38, 38, .08);
    color: var(--bv-header-danger);
}

.bv-header-button--icon {
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.bv-header-feedback {
    position: fixed;
    left: 50%;
    bottom: max( 82px, calc( env(safe-area-inset-bottom) + 72px ) );
    z-index: 2147483640;
    min-width: min( 340px, calc(100vw - 26px) );
    max-width: 520px;
    padding: 11px 14px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    box-shadow: var(--bv-header-shadow-strong);
    text-align: center;
    font-size: .80rem;
    font-weight: 850;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(18px);
    transition: opacity var(--bv-header-transition), transform var(--bv-header-transition);
}

    .bv-header-feedback.is-visible {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .bv-header-feedback.is-success {
        background: var(--bv-header-success);
    }

    .bv-header-feedback.is-error {
        background: var(--bv-header-danger);
    }

    .bv-header-feedback.is-warning {
        background: var(--bv-header-warning);
    }

.bv-header-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 30px;
    text-align: center;
}

.bv-header-state__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    border-radius: 26px;
    background: var(--bv-header-primary-soft);
    color: var(--bv-header-primary-dark);
    font-size: 1.5rem;
}

.bv-header-state strong {
    font-size: 1rem;
    font-weight: 950;
}

.bv-header-state p {
    max-width: 440px;
    margin: 0;
    color: var(--bv-header-muted);
    font-size: .83rem;
    line-height: 1.5;
}

.bv-header-state--error
.bv-header-state__icon {
    background: rgba(220, 38, 38, .09);
    color: var(--bv-header-danger);
}

.bv-header-state--restricted
.bv-header-state__icon {
    background: rgba(114, 121, 134, .11);
    color: var(--bv-header-muted);
}

.bv-header-loading {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--bv-header-muted);
    font-size: .78rem;
    font-weight: 820;
}

    .bv-header-loading i {
        color: var(--bv-header-primary);
        font-size: 1.2rem;
    }

.bv-header-skeleton {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bv-header-skeleton__item {
    min-height: 190px;
    border-radius: 18px;
    background: linear-gradient( 100deg, var(--bv-header-surface-3) 20%, var(--bv-header-surface-2) 38%, var(--bv-header-surface-3) 56% );
    background-size: 220% 100%;
    animation: bv-header-skeleton-loading 1.35s linear infinite;
}

.bv-header-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}

    .bv-header-overlay.is-open {
        display: flex;
    }

.bv-header-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .50);
    backdrop-filter: blur(5px);
}

.bv-header-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(580px, 100%);
    max-height: min(88dvh, 840px);
    overflow: auto;
    padding: 14px;
    border-radius: 28px;
    background: var(--bv-header-surface);
    box-shadow: var(--bv-header-shadow-strong);
}

.bv-header-overlay__header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: -2px -2px 12px;
    padding: 4px 4px 12px;
    background: var(--bv-header-surface);
}

    .bv-header-overlay__header h2 {
        margin: 0;
        font-size: 1rem;
        font-weight: 950;
    }

    .bv-header-overlay__header p {
        margin: 4px 0 0;
        color: var(--bv-header-muted);
        font-size: .77rem;
        line-height: 1.4;
        font-weight: 720;
    }

.bv-header-overlay__close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--bv-header-surface-2);
    color: var(--bv-header-text);
}

.bv-header-overlay__body {
    min-width: 0;
}

.bv-header-overlay__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.bv-header-menu {
    display: grid;
    gap: 8px;
}

.bv-header-menu__item {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border: 0;
    border-radius: 18px;
    background: var(--bv-header-surface-2);
    color: var(--bv-header-text);
    text-align: left;
}

.bv-header-menu__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--bv-header-surface);
    color: var(--bv-header-primary-dark);
    box-shadow: 0 5px 14px rgba(22, 30, 48, .07);
}

.bv-header-menu__item strong {
    display: block;
    font-size: .83rem;
    font-weight: 930;
}

.bv-header-menu__item small {
    display: block;
    margin-top: 2px;
    color: var(--bv-header-muted);
    font-size: .71rem;
    line-height: 1.25;
    font-weight: 720;
}

.bv-header-menu__item.is-danger,
.bv-header-menu__item.is-danger
.bv-header-menu__icon {
    color: var(--bv-header-danger);
}

.bv-header-content-sentinel {
    min-height: 72px;
    display: grid;
    place-items: center;
    margin-top: 8px;
}

.bv-header-content-sentinel__loading {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--bv-header-surface-2);
    color: var(--bv-header-muted);
    font-size: .73rem;
    font-weight: 820;
}

@keyframes bv-header-skeleton-loading {
    to {
        background-position-x: -220%;
    }
}

@media (min-width: 760px) {
    .bv-header-overlay {
        align-items: center;
    }

    .bv-header-skeleton {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-header *,
    .bv-header *::before,
    .bv-header *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
