/* =========================================================
   Filebob / منصة مشاركة — Premium public header
   Scoped to .fb-header / .fb-header-pro only
   Brand tokens: --primaryColor #0045AD · --secondaryColor #002369
   ========================================================= */

.fb-header.fb-header-pro {
    --fb-header-h: 74px;
    --fb-brand-gap: 0.7rem;
    --fb-nav-gap: 0.15rem;
    --fb-ink: #0f1c33;
    --fb-ink-soft: rgba(15, 28, 51, 0.72);
    --fb-glass: rgba(8, 22, 48, 0.42);
    --fb-line: rgba(255, 255, 255, 0.14);
    height: var(--fb-header-h);
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        backdrop-filter 0.35s ease;
}

@media (max-width: 991.98px) {
    .fb-header.fb-header-pro {
        --fb-header-h: 64px;
    }
}

.fb-header.fb-header-pro.nav-bar--compact {
    --fb-header-h: 62px;
    --fb-nav-gap: 0;
}

.fb-header.fb-header-pro.nav-bar--comfortable {
    --fb-header-h: 82px;
    --fb-nav-gap: 0.35rem;
}

/* Signature accent rail */
.fb-header.fb-header-pro .fb-header-accent {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--secondaryColor, #002369) 0%,
        var(--primaryColor, #0045ad) 48%,
        #3d7dff 100%
    );
    opacity: 0.95;
    transform-origin: center top;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.fb-header.fb-header-pro.active .fb-header-accent,
.header.v3 .fb-header.fb-header-pro .fb-header-accent,
.fb-header.fb-header-pro.nav-bar--solid .fb-header-accent {
    height: 3px;
    opacity: 1;
}

.fb-header.fb-header-pro .fb-header-inner {
    position: relative;
    z-index: 1;
    gap: 1.1rem;
    height: 100%;
}

.fb-header.fb-header-pro .nav-bar-actions {
    gap: 0.65rem;
}

/* —— Brand lockup (hero-level signal) —— */
.fb-header.fb-header-pro .logo.fb-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--fb-brand-gap);
    height: auto;
    min-height: 40px;
    max-width: min(52vw, 320px);
    text-decoration: none;
    color: inherit;
    flex-shrink: 1;
    transition: transform 0.28s ease;
}

.fb-header.fb-header-pro .logo.fb-brand:hover {
    transform: translateY(-1px);
    color: inherit;
}

.fb-header.fb-header-pro .fb-brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 0.4rem 1rem rgba(0, 20, 60, 0.22);
    overflow: hidden;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.fb-header.fb-header-pro .fb-brand-mark img {
    height: 32px;
    width: auto;
    max-width: 36px;
    object-fit: contain;
}

.fb-header.fb-header-pro .fb-brand-mark img:last-child {
    display: none;
}

.fb-header.fb-header-pro .fb-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.fb-header.fb-header-pro .fb-brand-name {
    display: block;
    font-family: Almarai, "Segoe UI", Tahoma, sans-serif;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* —— Nav links —— */
.fb-header.fb-header-pro .fb-nav-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
}

.fb-header.fb-header-pro .fb-nav-primary {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--fb-nav-gap);
}

.fb-header.fb-header-pro .fb-nav-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.fb-header.fb-header-pro .fb-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.55rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.94) !important;
    border-radius: 0.4rem;
    transition: color 0.22s ease, background 0.22s ease;
}

.fb-header.fb-header-pro .fb-nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0.55rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.9;
}

.fb-header.fb-header-pro .fb-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.fb-header.fb-header-pro .fb-nav-link:hover::after {
    transform: scaleX(1);
}

/* —— Tools: language + theme —— */
.fb-header.fb-header-pro .language button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    font-size: 0.86rem;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.fb-header.fb-header-pro .language button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.fb-header.fb-header-pro .fb-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.fb-header.fb-header-pro .fb-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(-8deg);
}

/* —— Auth CTAs —— */
.fb-header.fb-header-pro .fb-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-inline-start: 0.15rem;
}

.fb-header.fb-header-pro .fb-btn-signin,
.fb-header.fb-header-pro .fb-btn-signup {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.4rem 0.9rem !important;
    border-radius: 0.55rem !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease !important;
}

.fb-header.fb-header-pro .fb-btn-signin {
    border-width: 1.5px !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #fff !important;
    background: transparent !important;
}

.fb-header.fb-header-pro .fb-btn-signin:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #fff !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.fb-header.fb-header-pro .fb-btn-signup {
    border: 0 !important;
    color: var(--secondaryColor, #002369) !important;
    background: #fff !important;
    box-shadow: 0 0.4rem 1rem rgba(0, 20, 60, 0.18);
}

.fb-header.fb-header-pro .fb-btn-signup:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primaryColor, #0045ad), var(--secondaryColor, #002369)) !important;
    transform: translateY(-1px);
    box-shadow: 0 0.55rem 1.15rem rgba(0, 35, 105, 0.28);
}

.fb-header.fb-header-pro .fb-nav-upload {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.4rem 0.8rem !important;
    border-radius: 0.55rem !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    border: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primaryColor, #0045ad), var(--secondaryColor, #002369)) !important;
    color: #fff !important;
    box-shadow: 0 0.4rem 1rem rgba(0, 35, 105, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.fb-header.fb-header-pro .fb-nav-upload span {
    white-space: nowrap;
}

.fb-header.fb-header-pro .fb-nav-upload:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 0.55rem 1.2rem rgba(0, 35, 105, 0.35);
}

/* —— User menu —— */
.fb-header.fb-header-pro .fb-user-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.45rem 0.2rem 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.fb-header.fb-header-pro .fb-user-menu .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.fb-header.fb-header-pro .fb-user-menu .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-header.fb-header-pro .fb-user-menu .user-name {
    font-weight: 700;
    font-size: 0.88rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* —— Hamburger —— */
.fb-header.fb-header-pro .fb-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.fb-header.fb-header-pro .fb-menu-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
}

.fb-header.fb-header-pro .fb-menu-toggle-bars span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.28s ease;
}

.fb-header.fb-header-pro .fb-menu-toggle-bars span:nth-child(2) {
    width: 70%;
}

.fb-header.fb-header-pro .nav-bar-menu.active ~ .fb-menu-toggle .fb-menu-toggle-bars span:nth-child(1),
.fb-header.fb-header-pro.is-menu-open .fb-menu-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.fb-header.fb-header-pro .nav-bar-menu.active ~ .fb-menu-toggle .fb-menu-toggle-bars span:nth-child(2),
.fb-header.fb-header-pro.is-menu-open .fb-menu-toggle-bars span:nth-child(2) {
    opacity: 0;
}

.fb-header.fb-header-pro .nav-bar-menu.active ~ .fb-menu-toggle .fb-menu-toggle-bars span:nth-child(3),
.fb-header.fb-header-pro.is-menu-open .fb-menu-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Note: toggle is sibling of .nav-bar-menu inside .nav-bar-actions */
.fb-header.fb-header-pro .nav-bar-actions .nav-bar-menu.active ~ .fb-menu-toggle .fb-menu-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.fb-header.fb-header-pro .nav-bar-actions .nav-bar-menu.active ~ .fb-menu-toggle .fb-menu-toggle-bars span:nth-child(2) {
    opacity: 0;
}
.fb-header.fb-header-pro .nav-bar-actions .nav-bar-menu.active ~ .fb-menu-toggle .fb-menu-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* —— Style variants (default / glass / transparent / solid) —— */
.fb-header.fb-header-pro.nav-bar--glass:not(.active) {
    background: var(--fb-glass);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border-bottom: 1px solid var(--fb-line);
    box-shadow: 0 0.65rem 1.5rem rgba(4, 16, 40, 0.18);
}

.fb-header.fb-header-pro.nav-bar--transparent:not(.active) {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid transparent;
}

.fb-header.fb-header-pro.nav-bar--solid {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 35, 105, 0.08);
    box-shadow: 0 0.55rem 1.35rem rgba(15, 40, 80, 0.08);
}

/* Scroll solidify / active */
.header .nav-bar.fb-header-pro.active {
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 35, 105, 0.08);
    box-shadow: 0 0.55rem 1.45rem rgba(15, 40, 80, 0.1);
}

.header .nav-bar.fb-header-pro.active .fb-brand-name,
.header.v3 .nav-bar.fb-header-pro .fb-brand-name,
.fb-header.fb-header-pro.nav-bar--solid .fb-brand-name {
    color: var(--fb-ink);
}

.header .nav-bar.fb-header-pro.active .fb-brand-mark,
.header.v3 .nav-bar.fb-header-pro .fb-brand-mark,
.fb-header.fb-header-pro.nav-bar--solid .fb-brand-mark {
    background: linear-gradient(145deg, #eef4ff, #fff);
    border-color: rgba(0, 69, 173, 0.18);
    box-shadow: 0 0.3rem 0.7rem rgba(0, 35, 105, 0.1);
}

.header .nav-bar.fb-header-pro.active .fb-brand-mark img,
.header.v3 .nav-bar.fb-header-pro .fb-brand-mark img,
.fb-header.fb-header-pro.nav-bar--solid .fb-brand-mark img {
    display: none;
}

.header .nav-bar.fb-header-pro.active .fb-brand-mark img:last-child,
.header.v3 .nav-bar.fb-header-pro .fb-brand-mark img:last-child,
.fb-header.fb-header-pro.nav-bar--solid .fb-brand-mark img:last-child {
    display: block;
}

.header .nav-bar.fb-header-pro.active .fb-nav-link,
.header.v3 .nav-bar.fb-header-pro .fb-nav-link,
.fb-header.fb-header-pro.nav-bar--solid .fb-nav-link {
    color: var(--fb-ink-soft) !important;
}

.header .nav-bar.fb-header-pro.active .fb-nav-link:hover,
.header.v3 .nav-bar.fb-header-pro .fb-nav-link:hover,
.fb-header.fb-header-pro.nav-bar--solid .fb-nav-link:hover {
    color: var(--primaryColor, #0045ad) !important;
    background: rgba(0, 69, 173, 0.06);
}

.header .nav-bar.fb-header-pro.active .fb-nav-link::after,
.header.v3 .nav-bar.fb-header-pro .fb-nav-link::after,
.fb-header.fb-header-pro.nav-bar--solid .fb-nav-link::after {
    background: var(--primaryColor, #0045ad);
}

.header .nav-bar.fb-header-pro.active .language button,
.header.v3 .nav-bar.fb-header-pro .language button,
.fb-header.fb-header-pro.nav-bar--solid .language button {
    color: var(--fb-ink);
    border-color: rgba(0, 35, 105, 0.14);
    background: rgba(0, 69, 173, 0.05);
}

.header .nav-bar.fb-header-pro.active .fb-theme-toggle,
.header.v3 .nav-bar.fb-header-pro .fb-theme-toggle,
.fb-header.fb-header-pro.nav-bar--solid .fb-theme-toggle {
    color: var(--fb-ink);
    border-color: rgba(0, 35, 105, 0.14);
    background: rgba(0, 69, 173, 0.05);
}

.header .nav-bar.fb-header-pro.active .fb-btn-signin,
.header.v3 .nav-bar.fb-header-pro .fb-btn-signin,
.fb-header.fb-header-pro.nav-bar--solid .fb-btn-signin {
    border-color: var(--primaryColor, #0045ad) !important;
    color: var(--primaryColor, #0045ad) !important;
    background: transparent !important;
}

.header .nav-bar.fb-header-pro.active .fb-btn-signin:hover,
.header.v3 .nav-bar.fb-header-pro .fb-btn-signin:hover,
.fb-header.fb-header-pro.nav-bar--solid .fb-btn-signin:hover {
    background: var(--primaryColor, #0045ad) !important;
    color: #fff !important;
}

.header .nav-bar.fb-header-pro.active .fb-btn-signup,
.header.v3 .nav-bar.fb-header-pro .fb-btn-signup,
.fb-header.fb-header-pro.nav-bar--solid .fb-btn-signup {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primaryColor, #0045ad), var(--secondaryColor, #002369)) !important;
    box-shadow: 0 0.4rem 1rem rgba(0, 35, 105, 0.22);
}

.header .nav-bar.fb-header-pro.active .fb-user-menu,
.header.v3 .nav-bar.fb-header-pro .fb-user-menu,
.only-nav .header .nav-bar.fb-header-pro .fb-user-menu,
.fb-header.fb-header-pro.nav-bar--solid .fb-user-menu {
    color: var(--fb-ink);
    border-color: rgba(0, 35, 105, 0.12);
    background: rgba(0, 69, 173, 0.05);
}

.header .nav-bar.fb-header-pro.active .fb-menu-toggle,
.header.v3 .nav-bar.fb-header-pro .fb-menu-toggle,
.fb-header.fb-header-pro.nav-bar--solid .fb-menu-toggle {
    color: var(--fb-ink);
    border-color: rgba(0, 35, 105, 0.14);
    background: rgba(0, 69, 173, 0.05);
}

/* Dark theme scrolled surface */
[data-theme="dark"] .header .nav-bar.fb-header-pro.active,
[data-theme="dark"] .header.v3 .nav-bar.fb-header-pro {
    background-color: #151a22;
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0.55rem 1.45rem rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .header .nav-bar.fb-header-pro.active .fb-brand-name,
[data-theme="dark"] .header.v3 .nav-bar.fb-header-pro .fb-brand-name,
[data-theme="dark"] .header .nav-bar.fb-header-pro.active .fb-nav-link,
[data-theme="dark"] .header.v3 .nav-bar.fb-header-pro .fb-nav-link,
[data-theme="dark"] .header .nav-bar.fb-header-pro.active .language button,
[data-theme="dark"] .header .nav-bar.fb-header-pro.active .fb-theme-toggle,
[data-theme="dark"] .header .nav-bar.fb-header-pro.active .fb-menu-toggle,
[data-theme="dark"] .header .nav-bar.fb-header-pro.active .fb-user-menu {
    color: #e8eaed !important;
}

[data-theme="dark"] .header .nav-bar.fb-header-pro.active .fb-nav-link:hover {
    color: #8eb6ff !important;
    background: rgba(61, 125, 255, 0.12);
}

/* —— Mobile drawer —— */
.fb-header.fb-header-pro .fb-drawer-head {
    display: none;
}

@media (max-width: 991.98px) {
    .fb-header.fb-header-pro .fb-drawer-head {
        display: flex !important;
        padding-bottom: 0.85rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px solid rgba(0, 35, 105, 0.1);
    }

    .fb-header.fb-header-pro .fb-drawer-brand-name {
        font-family: Almarai, "Segoe UI", Tahoma, sans-serif;
        font-weight: 800;
        font-size: 1.15rem;
        color: var(--secondaryColor, #002369);
    }

    .fb-header.fb-header-pro .fb-nav-links {
        align-items: stretch;
        gap: 0.35rem;
        border-inline-start: 3px solid transparent;
        background-image:
            linear-gradient(#fff, #fff),
            linear-gradient(180deg, var(--secondaryColor, #002369), var(--primaryColor, #0045ad), #3d7dff);
        background-origin: border-box;
        background-clip: padding-box, border-box;
        box-shadow: -0.75rem 0 2rem rgba(7, 31, 68, 0.18);
    }

    html[dir="rtl"] .fb-header.fb-header-pro .fb-nav-links {
        box-shadow: 0.75rem 0 2rem rgba(7, 31, 68, 0.18);
    }

    .fb-header.fb-header-pro .fb-nav-primary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        width: 100%;
    }

    .fb-header.fb-header-pro .fb-nav-tools {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 0.5rem 0;
        border-top: 1px dashed rgba(0, 35, 105, 0.12);
        border-bottom: 1px dashed rgba(0, 35, 105, 0.12);
        margin: 0.35rem 0;
    }

    .fb-header.fb-header-pro .fb-nav-link {
        width: 100%;
        padding: 0.75rem 0.85rem;
        color: var(--fb-ink) !important;
        font-size: 1.02rem !important;
        border-radius: 0.65rem;
    }

    .fb-header.fb-header-pro .fb-nav-link::after {
        display: none;
    }

    .fb-header.fb-header-pro .fb-nav-link:hover {
        color: var(--primaryColor, #0045ad) !important;
        background: rgba(0, 69, 173, 0.07);
    }

    .fb-header.fb-header-pro .language button {
        color: var(--fb-ink);
        border-color: rgba(0, 35, 105, 0.14);
        background: rgba(0, 69, 173, 0.05);
    }

    .fb-header.fb-header-pro .fb-theme-toggle {
        color: var(--fb-ink);
        border-color: rgba(0, 35, 105, 0.14);
        background: rgba(0, 69, 173, 0.05);
    }

    .fb-header.fb-header-pro .fb-auth-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.55rem;
        margin: 0.35rem 0 0;
    }

    .fb-header.fb-header-pro .fb-btn-signin {
        width: 100%;
        border-color: var(--primaryColor, #0045ad) !important;
        color: var(--primaryColor, #0045ad) !important;
    }

    .fb-header.fb-header-pro .fb-btn-signup,
    .fb-header.fb-header-pro .fb-nav-upload {
        width: 100%;
        color: #fff !important;
        background: linear-gradient(135deg, var(--primaryColor, #0045ad), var(--secondaryColor, #002369)) !important;
    }

    .fb-header.fb-header-pro .fb-brand-name {
        font-size: 1.05rem;
    }

    .fb-header.fb-header-pro .fb-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .fb-header.fb-header-pro .overlay {
        background: rgba(8, 18, 40, 0.55);
    }
}

/* Compact brand on very small screens */
@media (max-width: 380px) {
    .fb-header.fb-header-pro .fb-brand-name {
        font-size: 0.95rem;
    }
}

/* Template shell coexistence — keep brand readable on colored shells */
body.tpl-body.tpl-header-gradient .header--tpl .fb-header.fb-header-pro .fb-brand-name,
body.tpl-body.tpl-header-neon .header--tpl .fb-header.fb-header-pro .fb-brand-name {
    color: #fff;
}

body.tpl-body.tpl-header-floating .header--tpl .fb-header.fb-header-pro {
    border-radius: 999px;
}

body.tpl-body.tpl-header-floating .header--tpl .fb-header.fb-header-pro .fb-header-accent {
    border-radius: 999px 999px 0 0;
}

/* Kill conflicting default logo height inside pro brand */
.header .nav-bar.fb-header-pro .logo.fb-brand {
    height: auto;
}

.header .nav-bar.fb-header-pro .logo.fb-brand > img {
    display: none;
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .fb-header.fb-header-pro,
    .fb-header.fb-header-pro .logo.fb-brand,
    .fb-header.fb-header-pro .fb-nav-link,
    .fb-header.fb-header-pro .fb-nav-link::after,
    .fb-header.fb-header-pro .fb-btn-signin,
    .fb-header.fb-header-pro .fb-btn-signup,
    .fb-header.fb-header-pro .fb-nav-upload,
    .fb-header.fb-header-pro .fb-menu-toggle-bars span {
        transition: none !important;
    }
}
