/* Unified site header */
.tb-site-header {
    position: relative;
    z-index: 1060;
    width: 100%;
    background: transparent;
    box-shadow: none;
}

/* Only logo row stays fixed on scroll */
.tb-topbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1061;
    background: linear-gradient(135deg, #5b6ee8 0%, #7c4fbd 100%);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
}

.tb-site-header .facebook-topbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: linear-gradient(135deg, #5b6ee8 0%, #7c4fbd 100%) !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.tb-site-header .facebook-topbar .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 14px 8px !important;
}

.tb-site-header .facebook-topbar .mobile-logo {
    height: 32px !important;
    max-width: 130px !important;
    border-radius: 6px;
}

.tb-site-header .facebook-logo .fa-check-circle {
    color: #93c5fd !important;
    font-size: .85rem;
}

.tb-site-header .facebook-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
}

.tb-site-header .facebook-icon:hover {
    background: rgba(255, 255, 255, .28);
}

/* Quick links row — part of purple header */
.tb-quicklinks {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tb-quicklinks::-webkit-scrollbar { display: none; }

.tb-quicklink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s ease;
}
.tb-quicklink:hover {
    background: rgba(255, 255, 255, .28);
    color: #fff;
}
.tb-quicklink i { font-size: .8rem; opacity: .95; }

.tb-quicklinks__hint {
    margin-left: auto;
    color: rgba(255, 255, 255, .75);
    font-size: .72rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Desktop tabs */
.tb-site-header .facebook-tabs {
    position: relative !important;
    top: auto !important;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.tb-site-header .facebook-tabs .container-fluid {
    background: #fff !important;
    border-top: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.tb-site-header .tb-tabs-row {
    gap: 4px;
}

.tb-site-header .facebook-tab .tab-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
}

body.has-facebook-topbar {
    padding-top: var(--fb-topbar-height, 82px);
}

@media (min-width: 768px) {
    .tb-site-header .facebook-tabs {
        position: fixed;
        top: var(--tb-sticky-row-height, 56px);
        left: 0;
        right: 0;
        z-index: 1060;
        background: #fff;
        box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
    }
}

@media (min-width: 768px) {
    .tb-site-header .facebook-topbar .content {
        padding: 12px 20px 6px !important;
    }
    .tb-quicklinks {
        padding: 0 20px 12px;
    }
}

@media (max-width: 767.98px) {
    #tbSiteHeader .facebook-topbar {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #tbMobileQuickStrip {
        display: grid !important;
    }
}

@media (max-width: 767px) {
    .tb-site-header .facebook-topbar .content {
        padding: 8px 12px 6px !important;
    }
    .tb-quicklinks {
        padding: 0 12px 8px;
    }
    .tb-site-header .facebook-icon {
        width: 32px;
        height: 32px;
    }

    /* Mobile tab bar — My Card + Video */
    .tb-site-header .facebook-tabs {
        border-top: 1px solid #e5e7eb;
    }
    .tb-site-header .tb-tabs-row {
        width: 100%;
        gap: 0;
    }
    .tb-site-header .facebook-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: .75rem;
    }
    .tb-site-header .facebook-tab-icon {
        font-size: 1.25rem;
        margin-bottom: 2px;
    }
    .tb-site-header .facebook-tab .tab-label {
        display: block;
        font-size: .72rem;
        font-weight: 600;
        line-height: 1.2;
    }
}

@media (max-width: 380px) {
    .tb-quicklink span { display: none; }
    .tb-quicklink { padding: 7px 10px; }
}
