.xa-header {
    position: relative;
    z-index: 500;
    background: #ffffff;
    border-bottom: 1px solid #d9dee7;
}

.xa-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 88px;
}

.xa-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    justify-self: start;
}

.xa-header__brand--mobile {
    display: none;
}

.xa-header__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.xa-header__brand-text {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
    white-space: nowrap;
}

.xa-header__burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
    justify-self: end;
}

.xa-header__burger-line {
    position: absolute;
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.xa-header__burger-line:nth-child(1) {
    transform: translateY(-6px);
}

.xa-header__burger-line:nth-child(2) {
    transform: translateY(0);
}

.xa-header__burger-line:nth-child(3) {
    transform: translateY(6px);
}

.xa-header__burger.is-open .xa-header__burger-line:nth-child(1) {
    transform: rotate(45deg);
}

.xa-header__burger.is-open .xa-header__burger-line:nth-child(2) {
    opacity: 0;
}

.xa-header__burger.is-open .xa-header__burger-line:nth-child(3) {
    transform: rotate(-45deg);
}

.xa-header__panel {
    display: contents;
}

.xa-header__panel-top,
.xa-header__close {
    display: none;
}

.xa-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 0;
    justify-self: center;
}

.xa-nav__link,
.xa-nav__toggle {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.xa-nav__link:hover,
.xa-nav__toggle:hover,
.xa-nav__link.is-active,
.xa-nav__group.is-active > .xa-nav__toggle {
    color: #22a447;
}

.xa-nav__label {
    display: inline-flex;
    align-items: center;
}

.xa-nav__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: currentColor;
    flex-shrink: 0;
}

.xa-nav__icon svg,
.xa-header__action-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.xa-nav__caret {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.xa-nav__group {
    position: relative;
}

.xa-nav__group.is-open .xa-nav__caret {
    transform: rotate(180deg);
}

.xa-nav__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 10px;
    border: 1px solid #d9dee7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    display: none;
    z-index: 600;
}

.xa-nav__group--right .xa-nav__menu {
    left: auto;
    right: 0;
}

.xa-nav__group.is-open > .xa-nav__menu {
    display: block;
}

.xa-nav__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
}

.xa-nav__menu a:hover,
.xa-nav__menu a.is-active {
    background: #f3faf5;
    color: #22a447;
}

.xa-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    justify-self: end;
}

.xa-header__create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: #2db24c;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.xa-header__create:hover {
    background: #279742;
    color: #fff;
}

.xa-header__create .xa-nav__icon {
    margin-right: 8px;
}

.xa-header__guest-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #d9dee7;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.xa-header__guest-link:hover {
    border-color: #22a447;
    color: #22a447;
}

.xa-header__action-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 980px) {
    body.xa-menu-open {
        overflow: hidden;
    }

    .xa-header {
        z-index: 1000;
    }

    .xa-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 76px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .xa-header__brand-text {
        font-size: 17px;
    }

    .xa-header__burger {
        display: inline-flex;
        margin-left: auto;
    }

    .xa-header__panel {
        display: none;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 1100;
        padding: 18px 20px 24px;
        overflow-y: auto;
    }

    .xa-header__panel.is-open {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .xa-header__panel-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid #d9dee7;
    }

    .xa-header__brand--mobile {
        display: inline-flex;
    }

    .xa-header__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #d9dee7;
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
    }

    .xa-header__close-line {
        position: absolute;
        width: 18px;
        height: 2px;
        background: #0f172a;
        border-radius: 999px;
    }

    .xa-header__close-line:nth-child(1) {
        transform: rotate(45deg);
    }

    .xa-header__close-line:nth-child(2) {
        transform: rotate(-45deg);
    }

    .xa-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
    }

    .xa-nav__link,
    .xa-nav__toggle {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
    }

    .xa-nav__group {
        width: 100%;
    }

    .xa-nav__menu {
        position: static;
        display: none;
        min-width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border-radius: 12px;
        border: 1px solid #e6ebf1;
        background: #fafcff;
    }

    .xa-nav__group.is-open > .xa-nav__menu {
        display: block;
    }

    .xa-header__actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
    }

    .xa-header__create,
    .xa-header__guest-link {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .xa-header__logo {
        width: 42px;
        height: 42px;
    }

    .xa-header__brand-text {
        font-size: 16px;
    }

    .xa-header__panel {
        padding: 16px 16px 22px;
    }
}
/* V3.1.20 structured account menu */
.xa-nav__menu--structured {
    min-width: 260px;
    padding: 8px;
}
.xa-nav__menu-section {
    padding: 6px 0;
    border-bottom: 1px solid #eef2f4;
}
.xa-nav__menu-section--last,
.xa-nav__menu-section:last-child {
    border-bottom: 0;
}
.xa-nav__menu-heading {
    display: block;
    padding: 6px 12px 4px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.xa-nav__menu--structured a {
    padding-top: 8px;
    padding-bottom: 8px;
}
