/* 고객앱 공통 레이아웃 — 메뉴·장바구니·결제 화면 */
body.hj-customer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* ── 상단 헤더 ── */
.hj-app-top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hj-app-top-inner {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 14px 16px 12px;
}

.hj-app-top--menu .hj-app-top-inner {
    padding: 8px 16px 10px;
}

.hj-app-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 36px;
}

.hj-toolbar-spacer {
    flex: 1;
}

.hj-app-content--menu {
    padding-top: 10px;
}

.hj-store-banner {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.hj-store-welcome {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: #f5e6b8;
    font-size: 14px;
    line-height: 1.5;
}

.hj-app-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hj-store-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hj-store-title-wrap {
    flex: 1;
    min-width: 0;
}

.hj-store-name {
    color: var(--hj-gold-text, #f0d98a);
    font-size: clamp(22px, 5.2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hj-store-meta {
    margin-top: 4px;
    color: var(--hj-muted, #a1a1aa);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hj-app-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.hj-action-chip {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(18, 18, 18, 0.9);
    color: var(--hj-gold-text, #f0d98a);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.hj-action-chip.primary {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.45);
}

.hj-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(18, 18, 18, 0.9);
    color: var(--hj-gold-text, #f0d98a);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

/* 카테고리 탭 */
.hj-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hj-category-tabs::-webkit-scrollbar { display: none; }

.hj-category-tabs .tab {
    border: 1px solid rgba(63, 63, 70, 0.8);
    background: rgba(17, 17, 17, 0.95);
    color: #d4d4d8;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.hj-category-tabs .tab.active {
    border-color: rgba(212, 175, 55, 0.55);
    background: linear-gradient(180deg, rgba(232, 201, 106, 0.22), rgba(199, 164, 58, 0.12));
    color: var(--hj-gold-text, #f0d98a);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.12);
}

/* ── 본문 ── */
.hj-app-content {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 14px 16px 20px;
}

.hj-hint {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.12);
    color: #c4c4cc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

/* ── 메뉴 카드 ── */
.hj-menu-grid {
    display: grid;
    gap: 12px;
}

.hj-category-title {
    margin: 20px 2px 10px;
    color: var(--hj-gold-text, #f0d98a);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hj-menu-card {
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: 0;
    min-height: 108px;
    border: 1px solid rgba(63, 63, 70, 0.65);
    background: linear-gradient(145deg, rgba(22, 22, 24, 0.98), rgba(14, 14, 16, 0.98));
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hj-menu-card:active:not(.soldout) {
    transform: scale(0.985);
}

.hj-menu-card:not(.soldout):hover {
    border-color: rgba(212, 175, 55, 0.28);
}

.hj-menu-info {
    padding: 14px 14px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hj-menu-name {
    color: #f4f4f5;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.hj-menu-desc {
    margin-top: 5px;
    color: var(--hj-muted, #a1a1aa);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hj-menu-price {
    margin-top: 8px;
    color: var(--hj-gold-text, #f0d98a);
    font-size: 17px;
    font-weight: 800;
}

.hj-menu-thumb {
    width: 96px;
    height: 100%;
    min-height: 108px;
    object-fit: cover;
    background: #1a1a1e;
}

.hj-menu-thumb-empty {
    width: 96px;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(180deg, #1c1c20, #141418);
}

.hj-menu-card.soldout {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

/* ── 하단 장바구니 바 ── */
.hj-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.hj-cart-bar-inner {
    width: min(640px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hj-cart-summary {
    flex: 1;
    min-width: 0;
}

.hj-cart-count {
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 600;
}

.hj-cart-total {
    margin-top: 2px;
    color: var(--hj-gold-text, #f0d98a);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hj-cart-cta {
    flex-shrink: 0;
    min-width: 120px;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(180deg, var(--hj-gold, #e8c96a), var(--hj-gold-deep, #c7a43a));
    color: #1a1200;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}

.hj-cart-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── 더보기 메뉴 시트 ── */
.hj-menu-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.hj-menu-sheet.show { display: flex; }

.hj-menu-sheet-panel {
    width: 100%;
    max-width: 640px;
    background: linear-gradient(180deg, #161616, #0c0c0c);
    border-radius: 20px 20px 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    animation: hj-slide-up 0.22s ease;
}

@keyframes hj-slide-up {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.hj-menu-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #3f3f46;
    margin: 4px auto 14px;
}

.hj-menu-sheet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid rgba(63, 63, 70, 0.6);
    background: rgba(18, 18, 18, 0.9);
    color: #f4f4f5;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.hj-menu-sheet-item.danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(80, 20, 20, 0.25);
}

.hj-menu-sheet-item span:last-child {
    color: #71717a;
    font-size: 18px;
}

/* ── 옵션 바텀시트 (메뉴 상세) ── */
.hj-sheet {
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    background: linear-gradient(180deg, #141414, #0a0a0a);
    border-radius: 22px 22px 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.24);
    padding: 16px 16px 24px;
}

.hj-sheet-inner {
    width: min(640px, 100%);
    margin: 0 auto;
}

.hj-sheet-title {
    color: var(--hj-gold-text, #f0d98a);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.sheet-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.sheet-head .close {
    border: 1px solid #3f3f46;
    background: #111;
    color: #f4f4f5;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.option-group {
    margin-top: 16px;
    border-top: 1px solid #27272a;
    padding-top: 14px;
}

.option-title {
    color: #f4f4f5;
    font-size: 17px;
    font-weight: 800;
}

.option-help {
    margin-top: 4px;
    color: var(--hj-muted, #a1a1aa);
    font-size: 13px;
    font-weight: 600;
}

.option-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.option-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #27272a;
    background: #151515;
    border-radius: 12px;
    padding: 12px;
    color: #f4f4f5;
    font-size: 15px;
    font-weight: 700;
}

.option-item input {
    width: 20px;
    height: 20px;
    accent-color: var(--hj-gold-deep, #c7a43a);
}

.qty-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
    border-top: 1px solid #27272a;
    padding-top: 14px;
}

.sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    margin-top: 16px;
}

.sheet-head .price,
.price {
    margin-top: 8px;
    color: var(--hj-gold-text, #f0d98a);
    font-size: 18px;
    font-weight: 800;
}

.hj-empty {
    border: 1px dashed rgba(63, 63, 70, 0.8);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--hj-muted, #a1a1aa);
    font-size: 15px;
    font-weight: 600;
}

/* 매장 선택 카드 */
.hj-store-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border: 1px solid rgba(63, 63, 70, 0.7);
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.98), rgba(12, 12, 14, 0.98));
    color: #f4f4f5;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: border-color 0.15s, transform 0.12s;
    font-family: inherit;
}

.hj-store-card:active {
    transform: scale(0.99);
    border-color: rgba(212, 175, 55, 0.35);
}

.hj-store-card-name {
    color: var(--hj-gold-text, #f0d98a);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hj-store-card-arrow {
    color: rgba(212, 175, 55, 0.7);
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── 서브페이지 공통 헤더 (장바구니·결제·내정보 등) ── */
body.hj-customer.hj-has-page-header {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

body.hj-customer.hj-has-bottom-bar {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.hj-page-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* 바깥 header에 grid가 걸려도 inner가 전체 너비를 쓰도록 */
.hj-page-header > .hj-page-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-height: 44px;
    box-sizing: border-box;
}

/* 헤더에 inner 없이 바로 자식이 있을 때(플랫 구조) */
.hj-page-header:not(:has(.hj-page-header-inner)) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 664px;
    margin-left: auto;
    margin-right: auto;
}

.hj-nav-back,
.hj-nav-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--hj-gold-text, #f0d98a);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: inherit;
    line-height: 1;
}

.hj-nav-back:active,
.hj-nav-icon:active {
    background: rgba(212, 175, 55, 0.08);
}

.hj-page-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hj-gold-text, #f0d98a);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    writing-mode: horizontal-tb;
    word-break: keep-all;
}

.hj-nav-spacer {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.hj-store-section-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--hj-gold-text, #f0d98a);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* ── 카드·버튼·폼 (레거시 class 별칭 포함) ── */
.hj-card,
.card {
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(16, 16, 16, 0.96);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.hj-card-head,
.card-head {
    color: #f5edd2;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    word-break: keep-all;
}

.hj-btn,
.btn {
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hj-btn-gold,
.btn.gold {
    background: linear-gradient(180deg, var(--hj-gold, #e8c96a), var(--hj-gold-deep, #c7a43a));
    color: #1a1200;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.22);
}

.hj-btn-line,
.btn.line {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #111;
    color: #d8bd68;
}

.hj-btn-danger,
.btn.danger {
    border: 1px solid rgba(239, 68, 68, 0.42);
    background: rgba(127, 29, 29, 0.18);
    color: #fca5a5;
}

.hj-btn.full,
.btn.full { width: 100%; }

.hj-btn:disabled,
.btn:disabled {
    background: #27272a;
    color: #71717a;
    cursor: not-allowed;
    box-shadow: none;
}

.hj-input,
.input,
.hj-textarea,
.textarea,
.hj-select,
.select {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: #050505;
    color: #f5edd2;
    border-radius: 14px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

/* ── 장바구니·목록 아이템 ── */
.hj-list { display: grid; gap: 10px; }

.hj-cart-item,
.item {
    border: 1px solid rgba(63, 63, 70, 0.7);
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.98), rgba(12, 12, 14, 0.98));
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hj-cart-item-head,
.item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.hj-cart-item-name,
.item-name {
    color: #f4f4f5;
    font-size: 17px;
    font-weight: 800;
}

.hj-cart-item-price,
.item-price {
    color: var(--hj-gold-text, #f0d98a);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.hj-cart-item-options,
.item-options {
    margin-top: 8px;
    color: var(--hj-muted, #a1a1aa);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.hj-cart-item-actions,
.item-actions {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.hj-qty-btn,
.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #3f3f46;
    background: #151515;
    color: #f4f4f5;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hj-qty,
.qty {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
}

.hj-remove-btn,
.remove {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(127, 29, 29, 0.2);
    color: #fca5a5;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

/* ── 주문내역·링크 목록 ── */
.hj-order-link,
.orders .item,
.list .item {
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(18, 18, 18, 0.95);
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: border-color 0.15s;
}

.hj-order-link:active,
.orders .item:active,
.list .item:active {
    border-color: rgba(212, 175, 55, 0.4);
}

.hj-order-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.hj-order-name,
.name {
    color: #f5edd2;
    font-size: 16px;
    font-weight: 800;
}

.hj-pill,
.pill {
    font-size: 12px;
    font-weight: 800;
    color: var(--hj-gold-text, #f0d98a);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.hj-meta,
.meta,
.order-meta {
    margin-top: 6px;
    color: var(--hj-muted, #a1a1aa);
    font-size: 13px;
    font-weight: 600;
}

/* ── 내 정보 페이지 ── */
.hj-account-wrap {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 0 16px 28px;
}

.hj-account-grid {
    display: grid;
    gap: 10px;
}

.hj-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hj-stat {
    border: 1px solid #27272a;
    background: #0b0b0b;
    border-radius: 14px;
    padding: 12px;
}

.hj-stat .value {
    margin-top: 4px;
    color: #f5edd2;
    font-size: 17px;
    font-weight: 800;
}

.hj-hero-card {
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.18), rgba(17, 17, 17, 0.98));
    border-color: rgba(212, 175, 55, 0.35);
    text-align: center;
    padding: 20px 16px;
}

.hj-stamp-big {
    margin-top: 4px;
    color: var(--hj-gold-text, #f0d98a);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.hj-tier {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: linear-gradient(180deg, var(--hj-gold, #e8c96a), var(--hj-gold-deep, #c7a43a));
    color: #1a1200;
    font-size: 12px;
    font-weight: 800;
}

.hj-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hj-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--hj-gold-text, #f0d98a);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.hj-panel {
    display: none;
    margin-top: 12px;
    gap: 8px;
}

.hj-panel.open { display: grid; }

/* ── 매장 선택 ── */
.hj-pick-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hj-pick-content {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 16px 16px 28px;
    flex: 1;
}

.hj-saved-box {
    display: none;
    margin-bottom: 14px;
    border: 1px solid rgba(212, 175, 55, 0.26);
    background: rgba(20, 17, 10, 0.9);
    border-radius: 16px;
    padding: 16px;
}

.hj-saved-box.show { display: block; }

.hj-store-list { display: grid; gap: 10px; }

/* ── 로그인 ── */
.hj-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 32px;
}

.hj-auth-back {
    align-self: flex-start;
    max-width: 440px;
    width: 100%;
    margin-bottom: 12px;
}

.hj-auth-card {
    width: min(440px, 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(165deg, rgba(24, 20, 8, 0.95), rgba(12, 12, 12, 0.98));
    border-radius: 24px;
    padding: 28px 22px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.hj-auth-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
}

.hj-auth-title {
    margin-top: 14px;
    color: #f5edd2;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hj-auth-desc {
    margin-top: 8px;
    color: var(--hj-muted, #a1a1aa);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.hj-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.hj-auth-tab,
.tab.auth-tab {
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: #0a0a0a;
    color: #d8bd68;
    border-radius: 14px;
    padding: 13px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hj-auth-tab.active,
.tab.auth-tab.active {
    background: linear-gradient(180deg, var(--hj-gold, #e8c96a), var(--hj-gold-deep, #c7a43a));
    color: #1a1200;
    border-color: var(--hj-gold-deep, #c7a43a);
}

.hj-auth-field,
.field {
    display: grid;
    gap: 10px;
}

.hj-auth-field[hidden],
.hj-auth-panel[hidden] {
    display: none !important;
}

.hj-auth-panel {
    display: grid;
    gap: 10px;
}

.hj-auth-row,
.row.auth-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.hj-auth-check,
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    padding: 13px 14px;
    margin-top: 12px;
    color: #eadb9b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hj-auth-check a,
.check a {
    color: var(--hj-gold-text, #f0d98a);
    text-decoration: underline;
    font-weight: 800;
}

.hj-legal-consent-block,
.legal-consent-block {
    display: none;
    gap: 8px;
    margin-top: 4px;
}

.hj-legal-consent-block.show,
.legal-consent-block.show {
    display: grid;
}

.hj-sns-block,
.sns-block {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.hj-sns-btn,
.sns-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hj-sns-btn.kakao,
.sns-btn.kakao {
    background: #fee500;
    color: #191600;
}

.hj-divider,
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
    color: #71717a;
    font-size: 13px;
    font-weight: 700;
}

.hj-divider::before,
.hj-divider::after,
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
}

.hj-modal--center,
.modal.center {
    align-items: center;
    padding: 16px;
}

.hj-modal-card,
.modal-card {
    width: min(400px, 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #101010;
    border-radius: 22px;
    padding: 22px;
    text-align: center;
}

/* ── 결제완료·로딩 ── */
.hj-center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hj-center-card {
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 20px;
    padding: 28px 24px;
    background: rgba(16, 16, 16, 0.96);
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.hj-center-title {
    color: var(--hj-gold-text, #f0d98a);
    font-size: 22px;
    font-weight: 800;
}

.hj-center-msg {
    margin-top: 12px;
    color: var(--hj-muted, #a1a1aa);
    font-weight: 600;
    line-height: 1.5;
}

/* ── 모달 ── */
.hj-modal,
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    z-index: 100;
}

.hj-modal.show,
.modal.show { display: flex; }

/* ── 가게정보 ── */
.hj-info-section {
    padding: 18px 16px;
    border-bottom: 8px solid #070707;
}

.hj-info-row {
    display: grid;
    grid-template-columns: minmax(100px, 32%) 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #1f1f22;
    font-size: 15px;
    line-height: 1.55;
    align-items: start;
}

.hj-info-row:last-child { border-bottom: none; }

.hj-info-label {
    color: var(--hj-muted, #a1a1aa);
    font-weight: 700;
}

.hj-info-value {
    color: #f4f4f5;
    font-weight: 600;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.hj-checkout-bottom,
.bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.hj-checkout-bottom-inner,
.bottom-inner {
    width: min(640px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hj-empty,
.empty {
    border: 1px dashed rgba(63, 63, 70, 0.8);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--hj-muted, #a1a1aa);
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 560px) {
    .hj-quick-grid { grid-template-columns: 1fr; }
    .hj-stamp-big { font-size: 36px; }
}

@media (max-width: 400px) {
    .hj-app-actions .hj-action-chip:not(.primary) {
        display: none;
    }
}
