body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--color-page-background);
    background-image:
        linear-gradient(rgb(3 10 14 / 66%), rgb(3 10 14 / 76%)),
        var(--background-bottom);
    background-position: center, center -32px;
    background-size: cover, cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-page-text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.55;
}

header.site-header {
    position: relative;
    z-index: 1;
    height: 136px;
    border-bottom: 2px solid var(--color-honey-border);
    background: linear-gradient(180deg, rgb(3 10 14 / 96%), rgb(5 17 23 / 94%));
    box-shadow: 0 8px 28px rgb(0 0 0 / 35%);
}

.header-main {
    display: grid;
    width: min(1440px, calc(100% - 48px));
    height: 104px;
    margin: 0 auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-account,
.header-session,
#navbar-account {
    display: flex;
    align-items: center;
}

.header-session form {
    display: flex;
    align-items: center;
}

.header-account {
    justify-self: start;
    gap: 12px;
}

.header-account a,
.header-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 150ms ease, filter 150ms ease;
}

.header-account a:hover,
.header-actions a:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgb(18 184 239 / 55%));
}

.header-account img {
    display: block;
    object-fit: contain;
}

#navbar-account a,
#navbar-login,
#navbar-logout {
    height: 64px;
}

#navbar-account a,
.header-session button {
    flex: 0 0 auto;
}

.header-session button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#profile-img {
    width: 56px;
    height: 56px;
}

.header-session img {
    display: block;
    width: 96px;
    height: 36px;
    object-fit: contain;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    color: var(--color-honey-brown);
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 180px;
    height: 104px;
    object-fit: cover;
}

.vip-badge {
    display: block;
    width: 100px;
    height: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 12px;
}

.header-actions a {
    height: 64px;
}

.header-actions img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

#cart-img {
    width: 60px;
    height: 60px;
}

#navbar-shop {
    position: absolute;
    bottom: -2px;
    left: max(24px, calc((100% - 1120px) / 2));
}

#navbar-shop a {
    display: block;
    min-width: 92px;
    padding: 5px 18px 4px;
    border: 1px solid var(--color-honey-border);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #09151c;
    color: var(--color-honey-brown);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

#navbar-shop a[aria-current="page"] {
    color: #63dcff;
    box-shadow: inset 0 2px 0 #12b8ef;
}

.vip-price-note {
    color: var(--color-gold-text);
    font-weight: 600;
}

a {
    color: var(--color-link);
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    color: var(--color-text-strong);
    background-color: var(--color-surface-subtle);
    border-color: var(--color-border-input);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #35c9f3;
    outline-offset: 3px;
}

::selection {
    color: #031117;
    background: #46d4fa;
}

@media (max-width: 800px) {
    header.site-header {
        height: 118px;
    }

    .header-main {
        width: calc(100% - 24px);
        height: 76px;
    }

    .header-account {
        gap: 6px;
    }

    #profile-img {
        width: 46px;
        height: 46px;
    }

    .header-session img {
        width: 76px;
        height: 30px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-actions img {
        width: 42px;
        height: 42px;
    }

    #cart-img {
        width: 48px;
        height: 48px;
    }

    .brand-logo {
        width: clamp(96px, 34vw, 160px);
        height: 76px;
    }

    .vip-badge {
        width: 58px;
    }
}

@media (max-width: 420px) {
    .header-main {
        gap: 4px;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    #profile-img {
        width: 40px;
        height: 40px;
    }

    .header-session img {
        width: 62px;
        height: 26px;
    }



    .header-actions img {
        width: 32px;
        height: 32px;
    }

    #cart-img {
        width: 38px;
        height: 38px;
    }
}
