/* 사용자 헤더 — 기존 .hd 링크는 유지하고 배치·드롭다운·계정 영역만 재정의한다. */
.hd.user-header {
    --uh-ink: #10213d;
    --uh-muted: #6f7c91;
    --uh-line: #dce4f1;
    --uh-mist: #f3f6fb;
    --uh-blue: #4b6ff0;
    --uh-blue-soft: #edf2ff;
    --uh-signal: #24bfa7;
    --uh-surface: #ffffff;
    background: linear-gradient(180deg, #f6f8fc 0%, #f1f5fb 100%);
    box-shadow: 0 1px 0 rgba(16, 33, 61, 0.05);
}

.hd.user-header .inner-1500 {
    padding: 16px 0;
}

.hd.user-header .inner-1500 .hd-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 88px;
    margin: 0;
    padding: 0 18px 0 22px;
    overflow: visible;
    border: 1px solid rgba(199, 210, 228, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 34px rgba(24, 47, 88, 0.08);
}

.hd.user-header .inner-1500 .hd-wrap::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 12px;
    left: 26px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--uh-signal) 0 5%, var(--uh-blue) 5% 18%, transparent 18%);
    opacity: 0.8;
    pointer-events: none;
}

.hd.user-header .inner-1500 .hd-wrap .hd-logo,
.hd.user-header .inner-1500 .hd-wrap .hd-logo a {
    width: auto;
    height: auto;
    min-width: 0;
    flex-shrink: 0;
}

.hd.user-header .inner-1500 .hd-wrap .hd-logo a {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.hd.user-header .inner-1500 .hd-wrap .hd-logo a img {
    position: static;
    display: block;
    width: 126px;
    height: auto;
    top: auto;
    left: auto;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    margin: 0;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: auto;
    margin: 0;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    height: auto;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #43516a;
    white-space: nowrap;
    text-align: center;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 0 0 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2:hover > a,
.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2:focus-within > a,
.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2.on > a,
.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2.active > a {
    border-color: #dce5fa;
    background: var(--uh-blue-soft);
    color: #3156d7;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2.active > a {
    box-shadow: inset 0 -2px 0 var(--uh-blue);
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 .sub-col {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 120;
    width: max-content;
    min-width: 184px;
    min-height: 0;
    padding: 9px;
    text-align: left;
    border: 1px solid var(--uh-line);
    border-radius: 15px;
    background: var(--uh-surface);
    box-shadow: 0 18px 42px rgba(16, 33, 61, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -7px);
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2:hover .sub-col,
.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2:focus-within .sub-col {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 .sub-col > li a {
    display: flex;
    align-items: center;
    min-height: 39px;
    margin: 0;
    padding: 0 12px;
    border-radius: 9px;
    font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
    font-size: 13px;
    line-height: 1.35;
    color: #536078;
    white-space: nowrap;
}

.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 .sub-col > li a:hover,
.hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 .sub-col > li a:focus-visible {
    background: var(--uh-blue-soft);
    color: #2f55d4;
}

.hd.user-header .hd-sub-backdrop {
    display: none !important;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 7px;
    width: auto;
    margin: 0;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right br {
    display: none;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-login,
.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--uh-line);
    border-radius: 12px;
    background: #fff;
    font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #526078;
    white-space: nowrap;
    text-align: center;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-login:hover,
.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-admin:hover {
    border-color: #c7d4ed;
    background: var(--uh-blue-soft);
    color: #3156d7;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-login {
    border-color: var(--uh-blue);
    background: var(--uh-blue);
    color: #fff;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-login:hover {
    background: #3d5de0;
    color: #fff;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-login:before,
.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-admin:before,
.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-logout:before,
.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-my-page:before {
    content: none;
    margin: 0;
    filter: none;
}

.hd.user-header .hd-user-tools {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 46px;
    padding: 3px 4px 3px 5px;
    border: 1px solid #dfe6f1;
    border-radius: 15px;
    background: #f7f9fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.hd.user-header .hd-wallet {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 128px;
    height: 38px;
}

.hd.user-header .hd-point {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 7px 0 5px;
    color: #243450;
}

.hd.user-header .hd-point__coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #fff7cf;
    box-shadow: inset 0 0 0 1px #f0dfa0;
}

.hd.user-header .hd-point .ic-point {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.hd.user-header .hd-point__value {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.hd.user-header .hd-point__value strong {
    font: 700 13px/1 "Roboto Mono", "Noto Sans KR", monospace;
    letter-spacing: -.04em;
    color: #243450;
}

.hd.user-header .hd-point__value small {
    color: #8793a7;
    font: 700 9px/1 "Roboto Mono", monospace;
}

.hd.user-header .hd-charge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: #e9efff;
    color: #3159d9;
    font-family: "S-CoreDream-6", "Noto Sans KR", sans-serif;
    font-size: 10px;
    line-height: 1;
    transition: color 150ms ease, background-color 150ms ease;
}

.hd.user-header .hd-charge:hover,
.hd.user-header .hd-charge:focus-visible {
    background: #dce6ff;
    color: #2448c5;
}

.hd.user-header .hd-tools-divider {
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: #dde4ef;
}

.hd.user-header .hd-account {
    position: relative;
}

.hd.user-header .hd-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 9px 0 4px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #33435e;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.hd.user-header .hd-account-toggle:hover,
.hd.user-header .hd-account.is-open .hd-account-toggle {
    background: #fff;
    color: #234bc7;
    box-shadow: 0 4px 12px rgba(36, 68, 113, .10);
}

.hd.user-header .hd-account-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 10px;
    background: linear-gradient(145deg, #dce7ff 0%, #cbd9ff 100%);
    color: #3157cf;
    font-family: "S-CoreDream-7", "Noto Sans KR", sans-serif;
    font-size: 12px;
    box-shadow: inset 0 0 0 1px rgba(75, 111, 240, .16);
}

.hd.user-header .hd-account-avatar::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--uh-signal);
}

.hd.user-header .hd-account-toggle__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.hd.user-header .hd-account-toggle__copy small {
    color: #8b96a8;
    font: 700 8px/1 "Roboto Mono", "Noto Sans KR", monospace;
    letter-spacing: .06em;
}

.hd.user-header .hd-account-toggle__name {
    max-width: 88px;
    overflow: hidden;
    color: inherit;
    font-family: "S-CoreDream-6", "Noto Sans KR", sans-serif;
    font-size: 11px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd.user-header .hd-account-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 0 0 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
}

.hd.user-header .hd-account-menu {
    position: absolute;
    top: calc(100% + 11px);
    right: -4px;
    z-index: 130;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    padding: 7px;
    border: 1px solid #dce4f0;
    border-radius: 13px;
    background: var(--uh-surface);
    box-shadow: 0 18px 42px rgba(22, 43, 80, .15);
}

.hd.user-header .hd-account-menu[hidden] {
    display: none;
}

.hd.user-header .hd-account-menu a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 8px;
    font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
    font-size: 13px;
    color: #536078;
}

.hd.user-header .hd-account-menu a:hover,
.hd.user-header .hd-account-menu a:focus-visible {
    background: #f0f4ff;
    color: #2f55d4;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dfe6f1;
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-btn:hover,
.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-btn:focus-visible {
    border-color: #cbd7ee;
    background: #f5f7fc;
    box-shadow: 0 5px 14px rgba(36, 68, 113, .08);
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-btn .ic-search::before,
.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-btn .ic-search.close-btn::before {
    content: url("/images/icon_search_s_gray.png");
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-area {
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 0 0 18px 18px;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-area.drop {
    height: auto;
    padding: 22px 0 26px;
    overflow: visible;
}

.hd.user-header .side-nav-list {
    display: none;
}

.hd.user-header .inner-1500 .hd-wrap .hd-right .hd-mobile-nav-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 66px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--uh-line);
    border-radius: 11px;
    background: var(--uh-mist);
    font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
    font-size: 12px;
    color: var(--uh-ink);
}

.hd.user-header .hd-mobile-nav-btn__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hd.user-header .hd-mobile-nav-btn__bars i {
    display: block;
    width: 15px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease;
}

.hd.user-header.user-menu-open .hd-mobile-nav-btn__bars i:first-child {
    transform: translateY(2.75px) rotate(45deg);
}

.hd.user-header.user-menu-open .hd-mobile-nav-btn__bars i:last-child {
    transform: translateY(-2.75px) rotate(-45deg);
}

.hd.user-header .main_nav--mobile {
    display: none;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 8px 0 28px;
    background: transparent;
}

.hd.user-header .main_nav--mobile:not(.d-none) {
    display: block;
}

.hd.user-header .main_nav--mobile .inner-1500 {
    padding: 0 0 12px;
}

.hd.user-header .hd-mobile-account {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid var(--uh-line);
    border-radius: 16px;
    background: var(--uh-surface);
}

.hd.user-header .hd-mobile-account a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #e1e7f1;
    border-radius: 10px;
    background: var(--uh-mist);
    font-family: "S-CoreDream-5", "Noto Sans KR", sans-serif;
    font-size: 12px;
    color: #526077;
}

.hd.user-header .hd-mobile-account .hd-login,
.hd.user-header .hd-mobile-account .hd-charge {
    border-color: transparent;
    background: var(--uh-blue);
    color: #fff;
}

.hd.user-header .main_nav--mobile .depth2 {
    margin: 0 0 6px;
    border: 1px solid var(--uh-line);
    border-radius: 14px;
    background: var(--uh-surface);
    overflow: hidden;
}

.hd.user-header .main_nav--mobile .depth2 > a {
    display: block;
    padding: 0 16px;
    font-size: 15px;
    line-height: 46px;
    color: var(--uh-ink);
}

.hd.user-header .main_nav--mobile .sub-col {
    display: block;
    padding: 0 10px 10px;
}

.hd.user-header .main_nav--mobile .sub-col a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.4;
    color: #536078;
}

.hd.user-header .main_nav--mobile .sub-col a:hover {
    background: var(--uh-blue-soft);
    color: #2f55d4;
}

.hd.user-header a:focus-visible,
.hd.user-header button:focus-visible {
    outline: 3px solid rgba(75, 111, 240, 0.28);
    outline-offset: 3px;
}

@media screen and (max-width: 1460px) {
    .hd.user-header .inner-1500 .hd-wrap .main_nav > ul .depth2 > a {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media screen and (max-width: 1300px) {
    .hd.user-header .inner-1500 .hd-wrap .main_nav {
        display: none;
    }

    .hd.user-header .inner-1500 .hd-wrap .hd-logo,
    .hd.user-header .inner-1500 .hd-wrap .hd-logo a img {
        width: auto;
        max-width: 118px;
        height: auto;
    }

    .hd.user-header .inner-1500 .hd-wrap .hd-right .hd-mobile-nav-btn {
        display: inline-flex;
    }

    .hd.user-header .inner-1500 .hd-wrap .hd-right .hd-charge {
        display: none;
    }

    .hd.user-header .hd-wallet {
        min-width: 84px;
    }
}

@media screen and (max-width: 720px) {
    .hd.user-header .inner-1500 {
        width: calc(100% - 24px);
        padding: 10px 0 12px;
    }

    .hd.user-header .inner-1500 .hd-wrap {
        height: 72px;
        padding: 0 12px 0 14px;
        border-radius: 16px;
        gap: 10px;
    }

    .hd.user-header .inner-1500 .hd-wrap .hd-logo a img {
        width: 102px;
    }

    .hd.user-header .inner-1500 .hd-wrap .hd-right .hd-admin,
    .hd.user-header .inner-1500 .hd-wrap .hd-right .hd-mobile-nav-btn span:last-child {
        display: none;
    }

    .hd.user-header .inner-1500 .hd-wrap .hd-right {
        gap: 6px;
    }

    .hd.user-header .hd-user-tools {
        height: 42px;
        padding: 2px;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .hd.user-header .hd-wallet,
    .hd.user-header .hd-tools-divider,
    .hd.user-header .hd-account-toggle__copy,
    .hd.user-header .hd-account-toggle::after {
        display: none;
    }

    .hd.user-header .hd-account-toggle {
        width: 40px;
        height: 40px;
        padding: 5px;
        border: 1px solid #dfe6f1;
        border-radius: 12px;
        background: #fff;
    }

    .hd.user-header .hd-account-avatar {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 9px;
    }
}

@media screen and (max-width: 420px) {
    .hd.user-header .inner-1500 .hd-wrap .hd-right .hd-search-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd.user-header *,
    .hd.user-header *::before,
    .hd.user-header *::after {
        scroll-behavior: auto;
        transition-duration: .01ms !important;
    }
}
