.gptc-header-v3 {
    position: sticky;
    top: 0;
    z-index: 110;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(203,213,225,.78);
}
.gptc-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}
.gptc-header-v3__inner {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 64px;
    padding: 8px 0;
}
.gptc-header-v3__left,
.gptc-header-v3__brand,
.gptc-header-v3__menu,
.gptc-header-v3__right,
.gptc-header-v3__profile-head,
.gptc-header-v3__mobile-head,
.gptc-header-v3__mobile-brand,
.gptc-header-v3__mobile-user,
.gptc-header-v3__mobile-actions {
    display: flex;
    align-items: center;
}
.gptc-header-v3__left,
.gptc-header-v3__right {
    gap: 10px;
}
.gptc-header-v3__brand {
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}
.gptc-header-v3__logo-orbit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.10), transparent 56%), #fff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 8px 22px rgba(15,23,42,.06);
}
.gptc-header-v3__logo-orbit--mobile {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
}
.gptc-header-v3__logo-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translate3d(var(--gptc-logo-x, 0px), var(--gptc-logo-y, 0px), 0) rotate(var(--gptc-logo-r, 0deg));
    transition: transform .18s ease-out;
    will-change: transform;
}
.gptc-header-v3__logo-follow img,
.gptc-header-v3__logo-follow .custom-logo {
    width: auto;
    max-width: 92%;
    max-height: 92%;
    display: block;
}
.gptc-header-v3__logo-fallback {
    font-size: .95rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.04em;
}
.gptc-header-v3__brand-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.gptc-header-v3__brand-text strong {
    font-size: 1rem;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #0f172a;
}
.gptc-header-v3__brand-text small {
    font-size: .76rem;
    line-height: 1.18;
    color: #64748b;
}
.gptc-header-v3__nav {
    min-width: 0;
}
.gptc-header-v3__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}
.gptc-header-v3__menu li {
    margin: 0;
}
.gptc-header-v3__menu a,
.gptc-header-v3__chip,
.gptc-header-v3__button,
.gptc-header-v3__profile-toggle,
.gptc-header-v3__mobile-nav a,
.gptc-header-v3__profile-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 13px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
    transition: .2s ease;
}
.gptc-header-v3__menu a {
    color: #475569;
    border-radius: 999px;
}
.gptc-header-v3__menu a:hover,
.gptc-header-v3__menu .current-menu-item > a,
.gptc-header-v3__menu .current_page_item > a,
.gptc-header-v3__menu .current-menu-ancestor > a {
    color: #1d4ed8;
    background: #edf4ff;
}
.gptc-header-v3__chip {
    border-radius: 999px;
    background: rgba(15,23,42,.05);
    color: #334155;
}
.gptc-header-v3__chip:hover {
    background: #edf4ff;
    color: #1d4ed8;
}
.gptc-header-v3__button {
    border: 1px solid transparent;
}
.gptc-header-v3__button--ghost {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15,23,42,.12);
}
.gptc-header-v3__button--primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37,99,235,.14);
}
.gptc-header-v3__button--ghost:hover {
    color: #2563eb;
    border-color: rgba(37,99,235,.24);
}
.gptc-header-v3__button--primary:hover {
    color: #fff;
    background: #1d4ed8;
}
.gptc-header-v3__button--auth {
    min-width: 170px;
}
.gptc-header-v3__right {
    justify-content: flex-end;
    position: relative;
}
.gptc-header-v3__profile-toggle {
    width: 40px;
    min-width: 40px;
    padding: 0;
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
    cursor: pointer;
}
.gptc-header-v3__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1d4ed8;
    font-size: .8rem;
    font-weight: 900;
}
.gptc-header-v3__avatar--large {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}
.gptc-header-v3__profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 276px;
    z-index: 20;
}
.gptc-header-v3__profile-card {
    padding: 16px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 42px rgba(15,23,42,.14);
}
.gptc-header-v3__profile-head {
    gap: 12px;
    margin-bottom: 14px;
}
.gptc-header-v3__profile-head strong {
    display: block;
    font-size: .98rem;
    line-height: 1.12;
    color: #0f172a;
}
.gptc-header-v3__profile-head span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.35;
    word-break: break-word;
}
.gptc-header-v3__profile-links {
    display: grid;
    gap: 8px;
}
.gptc-header-v3__profile-links a,
.gptc-header-v3__mobile-nav a {
    justify-content: flex-start;
    color: #334155;
    background: rgba(15,23,42,.04);
}
.gptc-header-v3__profile-links a:hover,
.gptc-header-v3__mobile-nav a:hover {
    color: #1d4ed8;
    background: #edf4ff;
}
.gptc-header-v3__burger {
    display: none;
    appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    border: 1px solid rgba(15,23,42,.12);
    background: #fff;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
}
.gptc-header-v3__burger span:not(.screen-reader-text) {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}
.gptc-header-v3__mobile[hidden] {
    display: none;
}
.gptc-header-v3__mobile {
    position: fixed;
    inset: 0;
    z-index: 120;
}
.gptc-header-v3__mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.52);
    backdrop-filter: blur(4px);
}
.gptc-header-v3__mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 100vw);
    height: 100dvh;
    padding: 18px;
    background: #fff;
    box-shadow: -18px 0 48px rgba(15,23,42,.14);
    overflow-y: auto;
}
.gptc-header-v3__mobile-head {
    justify-content: space-between;
    gap: 12px;
}
.gptc-header-v3__mobile-brand {
    gap: 12px;
}
.gptc-header-v3__mobile-brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
}
.gptc-header-v3__mobile-brand span,
.gptc-header-v3__mobile-user span {
    display: block;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.35;
}
.gptc-header-v3__mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    border: 1px solid rgba(15,23,42,.12);
    background: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.gptc-header-v3__mobile-user {
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15,23,42,.04);
}
.gptc-header-v3__mobile-user strong {
    display: block;
    font-size: .96rem;
    line-height: 1.1;
}
.gptc-header-v3__mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}
.gptc-header-v3__mobile-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
body.gptc-header-mobile-open {
    overflow: hidden;
}
@media (max-width: 1180px) {
    .gptc-header-v3__menu a {
        padding: 0 12px;
        font-size: .86rem;
    }
    .gptc-header-v3__chip--desktop,
    .gptc-header-v3__button--desktop {
        display: none;
    }
}
@media (max-width: 900px) {
    .gptc-shell {
        width: min(100% - 20px, 1280px);
    }
    .gptc-header-v3__inner {
        grid-template-columns: 1fr auto;
        min-height: 58px;
        padding: 6px 0;
    }
    .gptc-header-v3__burger {
        display: inline-flex;
    }
    .gptc-header-v3__nav,
    .gptc-header-v3__profile-toggle,
    .gptc-header-v3__profile-dropdown,
    .gptc-header-v3__chip--desktop,
    .gptc-header-v3__button--desktop {
        display: none !important;
    }
    .gptc-header-v3__button--auth {
        min-width: auto;
        padding: 0 14px;
        font-size: .86rem;
    }
    .gptc-header-v3__logo-orbit {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 16px;
    }
    .gptc-header-v3__brand-text strong {
        font-size: .95rem;
    }
    .gptc-header-v3__brand-text small {
        font-size: .72rem;
    }
}
@media (max-width: 560px) {
    .gptc-header-v3__inner {
        gap: 10px;
    }
    .gptc-header-v3__brand {
        gap: 10px;
    }
    .gptc-header-v3__brand-text small {
        display: none;
    }
    .gptc-header-v3__button--auth {
        min-height: 36px;
        padding: 0 12px;
        font-size: .82rem;
    }
}
