.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: linear-gradient(180deg, var(--rm-garnet-900), #2a0710);
    border-bottom: 1px solid rgba(217,164,65,.12);
}

.site-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 60px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
}

.site-header img {
    height: 44px;
    width: auto;
    display: block;
}

.header-user-box {
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--rm-text-dim, #c9beb2);
}
.header-user-box a {
    color: var(--rm-gold-300, #f2d296);
    text-decoration: none;
    font-weight: 700;
}
@media (min-width: 640px) {
    .header-user-box { display: inline-flex; }
}

.site-header__toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(217,164,65,.25);
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.site-header__toggle:hover {
    background: rgba(255,255,255,.09);
}

.site-header__toggle-line {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: orange;
    transition: transform .24s ease, opacity .18s ease, top .24s ease;
}

.site-header__toggle-line:nth-child(1) { top: 14px; }
.site-header__toggle-line:nth-child(2) { top: 20px; }
.site-header__toggle-line:nth-child(3) { top: 26px; }

.site-header__toggle.is-open .site-header__toggle-line:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}
.site-header__toggle.is-open .site-header__toggle-line:nth-child(2) { opacity: 0; }
.site-header__toggle.is-open .site-header__toggle-line:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.site-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 7, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
    z-index: 1190;
}
.site-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    background: linear-gradient(180deg, var(--rm-garnet-900, #3d0c14), #1a0509);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(217,164,65,.15);
}
.site-drawer.is-open { transform: translateX(0); }

.site-drawer__header {
    padding: 22px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-drawer__header img { height: 38px; }

.site-drawer__nav {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.site-drawer__link {
    display: block;
    text-decoration: none;
    color: rgba(246,241,234,.88);
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 14px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.site-drawer__link:hover {
    background: rgba(255,255,255,.05);
}

.site-drawer__link.is-active {
    background: rgba(217,164,65,.12);
    color: var(--rm-gold-300, #f2d296);
    border-color: rgba(217,164,65,.28);
}

.site-drawer__link-logout {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 16px;
    color: rgba(246,241,234,.55) !important;
}

body.menu-open { overflow: hidden; }

.header-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.header-logout-link:hover { background: rgba(255,255,255,0.1); }
.site-drawer__sublink {
    display: block;
    padding: 10px 16px 10px 34px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    border-left: 2px solid rgba(255,255,255,0.08);
    margin-left: 14px;
}

.site-drawer__sublink:hover,
.site-drawer__sublink.is-active {
    color: #fff;
    border-left-color: rgba(255,255,255,0.32);
}