:root {
    --bg: #07070b;
    --panel: #111216;
    --panel-soft: #1b1d22;
    --text: #f4f6fb;
    --muted: #9aa3b2;
    --line: #252933;
    --accent: #e91563;
    --accent-2: #e91563;
    --dh-main-category-width: 116px;
    --dh-head-height: 61px;
}

html[data-theme="light"] {
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-soft: #eef1f7;
    --text: #10131b;
    --muted: #5f6877;
    --line: #d7dce7;
    --accent: #e91563;
    --accent-2: #e91563;
}

body {
    background: var(--bg);
    color: var(--text);
    padding-top: var(--dh-head-height);
}

body.dh-shop-body {
    padding-top: calc(var(--dh-head-height) + 46px);
}

/* 그누보드 접근성 헬퍼: 프론트 페이지에서도 screen-reader-only 텍스트 숨김 */
.sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 임베드 iframe 페이지(support_notice에서 board.php 등 포함). */
html[data-dh-iframe="1"] body {
    padding-top: 0;
    background: transparent;
}

.dh-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 16px 10px 0;
    min-height: var(--dh-head-height);
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
}

.dh-head-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dh-head-left {
    display: grid;
    grid-template-columns: var(--dh-main-category-width) auto;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}

.dh-head-toggle-slot {
    width: var(--dh-main-category-width);
    min-width: var(--dh-main-category-width);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.dh-circle-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
}

.dh-head-theme-switch {
    width: 82px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.dh-head-theme-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    background: linear-gradient(180deg, #f5f7fb 0%, #e7ebf3 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.dh-head-theme-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1;
    opacity: 0;
}

.dh-head-theme-text-light {
    left: 10px;
    color: #4c5972;
}

.dh-head-theme-text-dark {
    right: 10px;
    color: #7a8496;
    opacity: 1;
}

.dh-head-theme-thumb {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 32px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #40506c;
    transition: left .2s ease, background .2s ease, color .2s ease;
}

.dh-head-theme-switch .material-symbols-outlined {
    font-size: 16px;
}

.dh-circle-btn .material-symbols-outlined,
.dh-search-submit .material-symbols-outlined {
    font-size: 20px;
}

html[data-theme="dark"] .dh-head-theme-track {
    background: linear-gradient(180deg, #2d3952 0%, #222b3f 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

html[data-theme="dark"] .dh-head-theme-text-light {
    color: #dfe6f7;
    opacity: 1;
}

html[data-theme="dark"] .dh-head-theme-text-dark {
    color: #8c99b0;
    opacity: 0;
}

html[data-theme="dark"] .dh-head-theme-thumb {
    left: 47px;
    background: linear-gradient(180deg, #455776 0%, #374863 100%);
    color: #f4f7ff;
}

.dh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    min-width: 140px;
    margin-left: 0;
    padding-left: 10px;
}

.dh-brand-logo {
    display: block;
    max-width: 180px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dh-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 26% 28%, #ffd37a, #ff8a36 45%, #db2f68 100%);
}

.dh-brand-name {
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: scaleY(0.82);
    transform-origin: left center;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.dh-search-wrap {
    margin-left: 12px;
    flex: 1;
    max-width: 900px;
    position: relative;
    display: block;
    margin-bottom: 0;
}

.dh-search-input {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    padding: 0 48px 0 40px;
    outline: none;
}

.dh-search-submit {
    position: absolute;
    left: 14px;
    top: 10px;
    color: var(--muted);
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dh-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dh-search-clear .material-symbols-outlined {
    font-size: 18px;
}

.dh-search-clear:hover {
    color: var(--text);
}

.dh-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dh-auth {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.dh-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dh-user-menu-toggle {
    min-height: 40px;
    padding: 4px 8px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.dh-user-menu-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dh-user-menu-avatar .dh-member-avatar-wrap {
    width: 30px;
    height: 30px;
}

.dh-user-menu-caret {
    font-size: 18px;
    color: var(--muted);
}

.dh-user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    min-height: 56px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in oklab, var(--panel) 92%, black 8%);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    z-index: 1200;
}

.dh-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.dh-user-menu-notification-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3b86 0%, #ef1878 58%, #cf0b63 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.dh-user-menu-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--muted);
}

.dh-user-menu-item:hover {
    background: color-mix(in oklab, var(--panel-2) 82%, white 6%);
}

.dh-user-menu-item:hover .material-symbols-outlined {
    color: var(--text);
}

.dh-user-menu-item-danger {
    color: #ff5f8f;
}

.dh-user-menu-item-danger .material-symbols-outlined {
    color: #ff5f8f;
}

html[data-theme="light"] .dh-user-menu-toggle {
    background: #fff;
}

html[data-theme="light"] .dh-user-menu-panel {
    background: #fff;
    box-shadow: 0 16px 32px rgba(18, 24, 38, .12);
}

html[data-theme="light"] .dh-user-menu-item:hover {
    background: #f3f6fb;
}

.dh-theme-admin {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.dh-shop-category-bar {
    width: 100%;
    min-height: 46px;
    margin: 4px -16px -10px 0;
    border-top: 0;
    background: transparent;
    color: var(--text);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dh-shop-category-bar::-webkit-scrollbar {
    display: none;
}

.dh-shop-category-inner {
    width: max-content;
    min-width: 100%;
    height: 46px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.dh-shop-category-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    flex: 0 0 auto;
}

.dh-shop-category-link:hover {
    color: #e91563;
}

.dh-shop-category-icon {
    font-size: 20px;
    line-height: 1;
    color: currentColor;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
}

.dh-shop-category-link + .dh-shop-category-link::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 14px;
    transform: translateY(-50%);
    background: color-mix(in oklab, var(--line) 82%, var(--text) 18%);
}

.dh-shop-category-link-hot::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff145f;
}

.dh-shop-category-badge {
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, #ff145f 24%, var(--panel) 76%);
    background: color-mix(in oklab, #ff145f 10%, var(--panel) 90%);
    color: #ff145f;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.dh-shop-category-amazon {
    gap: 8px;
}

.dh-shop-amazon-mark {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #243044;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
}

html[data-theme="light"] .dh-shop-category-bar {
    background: transparent;
    color: #111;
}

html[data-theme="light"] .dh-shop-category-link {
    color: #111;
}

html[data-theme="light"] .dh-shop-category-link + .dh-shop-category-link::before {
    background: #d9dce3;
}

html[data-theme="light"] .dh-shop-category-badge {
    border-color: #ffd3df;
    background: #fff7fa;
}

.dh-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dh-head-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--bg);
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3b86 0%, #ef1878 58%, #cf0b63 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(239, 24, 120, 0.28);
}

.dh-head-notification-badge-inside {
    top: -6px;
    right: -6px;
    z-index: 1;
}

html[data-theme="light"] .dh-head-notification-badge {
    border-color: #eef3fb;
}

.dh-settings-link {
    text-decoration: none;
}

.dh-login {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--line));
    border-radius: 10px;
    background: color-mix(in oklab, var(--panel) 88%, transparent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.dh-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dh-login .material-symbols-outlined,
.dh-signup .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.dh-login:hover {
    background: color-mix(in oklab, var(--panel-soft) 92%, transparent);
    border-color: color-mix(in oklab, var(--accent) 32%, var(--line));
    color: #ff4b92;
}

.dh-signup:hover {
    filter: brightness(1.06);
}

html[data-theme="light"] .dh-login {
    background: #fff;
    border-color: color-mix(in oklab, var(--accent) 14%, var(--line));
}

html[data-theme="light"] .dh-login:hover {
    background: #fff5fa;
}

@media (max-width: 1100px) {
    :root {
        --dh-main-category-width: 96px;
    }
    .dh-head-toggle-slot {
        width: var(--dh-main-category-width);
        min-width: var(--dh-main-category-width);
    }
    .dh-brand-name { font-size: 32px; }
    .dh-brand-logo { max-width: 150px; }
    .dh-search-wrap { max-width: none; }
    .dh-shop-category-inner {
        justify-content: flex-start;
        gap: 18px;
    }
}

@media (max-width: 860px) {
    :root {
        --dh-main-category-width: 72px;
    }
    .dh-head-inner {
        gap: 10px;
    }
    .dh-head-toggle-slot {
        width: var(--dh-main-category-width);
        min-width: var(--dh-main-category-width);
    }
    .dh-actions { display: none; }
    .dh-auth { gap: 8px; }
    .dh-signup { padding: 0 12px; }
    body.dh-shop-body {
        padding-top: calc(var(--dh-head-height) + 42px);
    }
    .dh-shop-category-bar {
        min-height: 42px;
        margin-top: 4px;
    }
    .dh-shop-category-inner {
        height: 42px;
        padding: 0 12px;
        gap: 16px;
    }
    .dh-shop-category-link {
        min-height: 42px;
        font-size: 14px;
    }
    .dh-shop-category-icon {
        font-size: 18px;
    }
    .dh-shop-category-link + .dh-shop-category-link::before {
        left: -8px;
        height: 12px;
    }
    .dh-shop-category-badge {
        top: -3px;
        padding: 1px 6px;
        font-size: 9px;
    }
    .dh-shop-amazon-mark {
        width: 18px;
        height: 18px;
        font-size: 13px;
    }
}

@media (max-width: 980px) and (orientation: portrait) {
    .dh-head .dh-search-wrap,
    .dh-head .dh-actions,
    .dh-head .dh-head-theme-switch,
    .dh-head .dh-auth {
        display: none;
    }

    .dh-head .dh-search-wrap.is-mobile-search-open {
        position: fixed;
        display: block;
        left: 92px;
        right: 12px;
        top: calc(var(--dh-head-height) + 48px);
        z-index: 1250;
        margin: 0;
        max-width: none;
    }

    .dh-head .dh-search-wrap.is-mobile-search-open .dh-search-input {
        height: 44px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
    }
}

.dh-side-mobile-actions {
    display: none;
}

.dh-side-mobile-action {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 980px) and (orientation: portrait) {
    .dh-side-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0 6px 10px;
        flex: 0 0 auto;
    }

    .dh-side-mobile-action {
        min-height: 46px !important;
        box-shadow: none !important;
    }

    .dh-side-mobile-action .material-symbols-outlined {
        font-size: 22px;
    }
}


.dh-search-wrap {
    overflow: visible;
}

.dh-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 1200;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in oklab, var(--panel) 94%, #16181d 6%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .34);
    padding: 14px;
    max-height: min(72vh, 760px);
    overflow: hidden;
}

html[data-theme="light"] .dh-search-panel {
    background: color-mix(in oklab, var(--panel) 96%, #eef2f8 4%);
    box-shadow: 0 20px 40px rgba(17, 25, 40, .15);
}

.dh-search-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.dh-search-panel-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: color-mix(in oklab, var(--panel-soft) 84%, transparent);
}

.dh-search-panel-results {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dh-search-panel-title,
.dh-search-panel-title-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #8f7cff;
}

.dh-search-result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(46vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px; /* 스크롤바가 콘텐츠를 덮지 않도록 */
}

.dh-search-result-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: color-mix(in oklab, var(--panel-soft) 88%, transparent);
    border: 1px solid transparent;
    color: var(--text);
    text-decoration: none;
}

.dh-search-result-item:hover {
    border-color: color-mix(in oklab, var(--accent) 38%, var(--line));
}

.dh-search-result-thumb-wrap,
.dh-search-result-thumb,
.dh-search-result-thumb-placeholder {
    width: 104px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.dh-search-result-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-search-result-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in oklab, var(--panel) 82%, transparent);
    color: var(--muted);
}

.dh-search-result-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dh-search-result-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.dh-search-result-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.dh-search-result-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.dh-search-empty,
.dh-search-keyword-empty {
    color: var(--muted);
    font-size: 13px;
}

.dh-search-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dh-search-keyword {
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in oklab, var(--panel-soft) 88%, transparent);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dh-search-keyword:hover,
.dh-search-recent-clear:hover {
    border-color: color-mix(in oklab, var(--accent) 42%, var(--line));
    color: var(--accent);
}

.dh-search-recent-clear {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 900px) {
    .dh-search-panel-grid {
        grid-template-columns: 1fr;
    }

    .dh-search-result-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .dh-search-result-thumb-wrap,
    .dh-search-result-thumb,
    .dh-search-result-thumb-placeholder {
        width: 88px;
    }
}


body.dh-modal-open {
    overflow: hidden;
}

.dh-head-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.dh-head-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, .68);
    backdrop-filter: blur(4px);
}

.dh-head-modal-dialog {
    position: relative;
    width: min(92vw, 520px);
    margin: 92px auto 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in oklab, var(--panel) 96%, transparent);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
    overflow: hidden;
}

.dh-head-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.dh-head-modal-head h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.dh-head-modal-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in oklab, var(--panel-soft) 92%, transparent);
    color: var(--muted);
    cursor: pointer;
}

.dh-head-modal-body {
    padding: 22px;
}

.dh-head-password-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dh-head-password-form label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.dh-head-password-form .form-control {
    height: 50px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-soft) 94%, transparent);
    color: var(--text);
    padding: 0 14px;
}

.dh-head-login-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.dh-head-login-links a {
    color: var(--muted);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.dh-head-login-links a:hover {
    color: var(--text);
}

.dh-head-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}

.dh-head-btn-cancel,
.dh-head-btn-submit {
    appearance: none;
    min-width: 92px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.dh-head-btn-cancel {
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-soft) 92%, transparent);
    color: var(--text);
}

.dh-head-btn-cancel:hover {
    background: color-mix(in oklab, var(--panel-soft) 82%, white 4%);
}

.dh-head-btn-submit {
    border: 0;
    background: linear-gradient(180deg, #2f7dff 0%, #1f63f2 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 99, 242, .24);
}

.dh-head-btn-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

@media (max-width: 980px) and (orientation: landscape) {
    #dhLoginModal .dh-head-modal-dialog {
        width: min(56vw, 520px);
        max-height: calc(100dvh - 32px);
        margin: 16px auto 0;
        border-radius: 16px;
        overflow: auto;
    }

    #dhLoginModal .dh-head-modal-head {
        padding: 12px 18px;
    }

    #dhLoginModal .dh-head-modal-head h2 {
        font-size: 1.65rem;
    }

    #dhLoginModal .dh-head-modal-close {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    #dhLoginModal .dh-head-modal-body {
        padding: 14px 18px 16px;
    }

    #dhLoginModal .dh-head-password-form {
        gap: 8px;
    }

    #dhLoginModal .dh-head-password-form label {
        font-size: 1.05rem;
    }

    #dhLoginModal .dh-head-password-form .form-control {
        height: 42px;
        border-radius: 10px;
    }

    #dhLoginModal .dh-head-login-links {
        padding-top: 2px;
    }

    #dhLoginModal .dh-head-login-links a {
        font-size: 1rem;
    }

    #dhLoginModal .dh-head-modal-actions {
        padding-top: 6px;
    }

    #dhLoginModal .dh-head-btn-cancel,
    #dhLoginModal .dh-head-btn-submit {
        height: 36px;
        min-width: 84px;
        font-size: 1rem;
        border-radius: 9px;
    }
}

html[data-theme="light"] .dh-head-btn-cancel {
    background: #fff;
    border-color: var(--line);
}

.dh-head-modal-alert {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.dh-head-modal-alert.is-error {
    border: 1px solid rgba(245, 96, 108, .35);
    background: rgba(245, 96, 108, .12);
    color: #ffadb5;
}

.dh-head-modal-alert.is-success {
    border: 1px solid rgba(71, 198, 133, .3);
    background: rgba(71, 198, 133, .12);
    color: #8ff0bb;
}

/* 제재 안내 모달(차단 회원) */
#dhSanctionModal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

#dhSanctionModal .dh-head-modal-dialog {
    margin: 0;
}

.dh-sanction-modal-lead {
    margin: 0 0 12px;
    font-size: calc(1.28rem - 1px);
    font-weight: 700;
    color: var(--text);
}

.dh-sanction-modal-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(70, 169, 255, .28);
    background: rgba(70, 169, 255, .10);
}

.dh-sanction-modal-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 169, 255, .18);
    color: #bfe6ff;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 auto;
}

.dh-sanction-modal-text {
    min-width: 0;
    color: var(--text);
    font-size: calc(1.25rem - 1px);
    font-weight: 600;
    line-height: 1.45;
}

.dh-sanction-modal-main {
    margin: 0 0 8px;
    font-weight: 800;
}

.dh-sanction-modal-reason strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 800;
}

.dh-sanction-modal-meta {
    margin-top: 8px;
    font-size: calc(1.18rem - 1px);
    color: color-mix(in oklab, var(--muted) 92%, white 10%);
    font-weight: 600;
}

/* 제재 안내 버튼을 홈의 강조 버튼 스타일로 맞춤 */
.dh-sanction-modal-actions .dh-head-btn-submit {
    background: linear-gradient(180deg, #46a9ff 0%, #1b66ff 100%);
    box-shadow: 0 10px 22px rgba(27, 102, 255, .22);
}

.dh-sanction-modal-actions .dh-head-btn-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

html[data-theme="light"] .dh-sanction-modal-box {
    border-color: rgba(25, 117, 255, .22);
    background: rgba(25, 117, 255, .08);
}

html[data-theme="light"] .dh-sanction-modal-icon {
    background: rgba(25, 117, 255, .12);
    color: #1b66ff;
}

.dh-sanction-modal-footer-note {
    margin: 12px 0 0;
    font-size: calc(1.18rem - 1px);
    color: var(--muted);
    font-weight: 600;
}
