@import url("/fonts/gowun-dodum-d287ac22317c3e4fafdc35b4a318853b.css"); /* 고운돋움(SIL OFL 1.1, fonts/OFL.txt) — 쇼핑몰 안 파일 */
/* 청록 테마(REQ-71, 21번 5장, 시안 디자인시안/teal) — 색·둥글기·글꼴은 여기 한 곳에서만 정한다 */
:root {
	--fg: #1c1917; --muted: #6b635c; --line: #e7e2da; --line-strong: #d6cfc5;
	--bg-soft: #f6f2ec; --bg-page: #faf7f2; --surface: #fff;
	--accent: #0f766e; --accent-dark: #115e59; --accent-soft: #e6f4f1; --accent-line: #b7e0d8;
	--sun: #f59e0b; --sun-pale: #fffbeb; --sun-soft: #fef3c7; --sun-line: #fde68a; --sun-ink: #92400e;
	--danger: #b91c1c; --danger-soft: #fef2f2; --danger-line: #fecaca;
	--r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px; --radius: var(--r-sm);
	--shadow: 0 10px 30px rgba(28, 25, 23, .06);
	--font: "Gowun Dodum", system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
	--font-num: system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; /* 계좌·주문번호·금액처럼 정확히 읽을 숫자 */
	--max: 1120px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg-page);
	font-family: var(--font); line-height: 1.55;
	word-break: keep-all; overflow-wrap: break-word; } /* 한글은 낱말 단위로 줄바꿈, 긴 번호는 넘치면 끊음 */
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0 0 8px; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
/* 정확히 읽어야 하는 숫자는 기본 글꼴(21번 5장) */
input[inputmode="numeric"], input[type="tel"], .code-box strong, .fixed-value, .account-lock, .order-no, .pay-summary dd,
.cart-price, .product-price, .clock strong, .order-card .code-row b, .remit-phrase { font-family: var(--font-num); }
img { max-width: 100%; }

/* Lucide 아이콘(icons.html) — 이모지 대신. 기본은 글자 크기·글자색을 따른다 */
.icon { width: 1em; height: 1em; vertical-align: -.125em; flex-shrink: 0; }
.site-header .icon { width: 1.15em; height: 1.15em; }
#scroll-top .icon { width: 20px; height: 20px; }
#scroll-top[hidden] { display: none; }
.pw-toggle .icon { display: block; width: 18px; height: 18px; }
.pw-toggle .icon-eye-off, .pw-toggle.on .icon-eye { display: none; }
.pw-toggle.on .icon-eye-off { display: block; }
.steps-bar .step i .icon { width: 12px; height: 12px; }
.mark .icon { width: 28px; height: 28px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }

/* ===== 버튼 ===== */
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--r-sm); text-align: center;
	background: var(--accent); color: #fff; font-weight: 700; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-invert { background: #fff; color: var(--accent); }
.btn-invert:hover { background: #f0fdfa; color: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-line { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.btn-line:hover { background: var(--bg-soft); color: var(--fg); }
.site-header .btn-sm { border-radius: 999px; } /* 헤더 [로그인]·[가입]은 원본처럼 둥근 버튼(REQ-44) */
.link-button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }

/* ===== 공지 띠 ===== */
.notice-bar { background: var(--accent); color: #ccfbf1; font-size: .82rem; }
.notice-bar .wrap { display: flex; align-items: center; gap: 8px; height: 34px; max-width: var(--max); margin: 0 auto; padding: 0 16px; overflow: hidden; white-space: nowrap; }
.notice-bar b { color: #fff; }
.notice-bar span { overflow: hidden; text-overflow: ellipsis; }

/* ===== 헤더 ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 64px; padding: 0 16px;
	max-width: var(--max); margin: 0 auto; }
.site-header .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.logo-img { display: block; width: auto; height: 34px; }   /* 로고 그림(static/images/logo.png, 사용자 2026-10-16) */
.auth-logo .logo-img { height: 40px; }
.pin-brand .logo-img { height: 28px; }
.main-nav { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 8px 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav-item > a:hover { color: var(--fg); }
.nav-item > a.active { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }

/* 구매 드롭다운 */
.dropdown { position: absolute; top: 100%; left: 0; min-width: 180px; z-index: 10;
	list-style: none; margin: 0; padding: 8px 0; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
	visibility: hidden; opacity: 0; transform: translateY(-4px);
	transition: opacity .12s ease, transform .12s ease, visibility 0s linear .35s; }
/* 메뉴와 드롭다운 사이 빈틈을 덮는 투명 브리지 (마우스가 천천히 내려가도 끊기지 않게) */
.has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0;
	height: 14px; display: none; }
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
	visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }
.dropdown a { display: block; padding: 9px 18px; font-size: .92rem; }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown .divider { height: 1px; background: var(--line); margin: 6px 0; }

/* 시세 흐름 표시 */
.ticker { margin-left: auto; position: relative; height: 30px; min-width: 230px; overflow: hidden; }
.ticker-item { display: none; align-items: center; gap: 8px; height: 30px; font-size: .88rem; white-space: nowrap; }
.ticker-item.on { display: flex; }
.ticker-icon { color: var(--accent); display: inline-flex; }
.chip { border-radius: 999px; padding: 2px 9px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.chip-blue { background: var(--accent-soft); color: var(--accent-dark); }
.chip-green, .chip-ok { background: var(--accent-soft); color: var(--accent-dark); }
.chip-gray { background: var(--bg-soft); color: var(--muted); }

.header-right { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
/* 오른쪽 메뉴는 줄어들거나 꺾이지 않는다 — 공간이 모자라면 시세 흐름 표시가 먼저 줄어든다 */
.header-right > * { flex-shrink: 0; white-space: nowrap; }
.clock { text-align: right; line-height: 1.2; font-size: .75rem; color: var(--muted); }
.clock strong { display: block; font-size: .92rem; color: var(--fg); }
.icon-link { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); font-size: 1.05rem; }
.icon-link:hover { background: var(--bg-soft); }
.cart-badge { position: absolute; top: 2px; right: 0; background: var(--sun); color: #451a03; font-weight: 800;
	border-radius: 999px; font-size: .68rem; padding: 0 5px; }
.logout-form { display: inline; }

/* 사용자 메뉴(PC 닉네임·휴대폰) */
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; list-style: none; z-index: 20;
	margin: 0; padding: 6px 0; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r); box-shadow: var(--shadow); }
.user-menu li a, .user-menu li button { display: block; width: 100%; text-align: left; padding: 9px 16px; font-size: .9rem; }
.user-menu li a:hover, .user-menu li button:hover { background: var(--accent-soft); color: var(--accent); }
.user-menu .divider { height: 1px; background: var(--line); margin: 6px 0; }
.user-menu .menu-nick { padding: 9px 16px; font-size: .9rem; font-weight: 700; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem; }
.nick-menu > summary { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
	border-radius: 999px; border: 1px solid var(--line); }
.nick-menu > summary:hover { background: var(--bg-soft); }
.nick-menu .nick { font-weight: 700; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nick-box { display: flex; flex-direction: column; line-height: 1.2; }
.nick-box .mcht { color: var(--muted); font-size: .72rem; font-family: var(--font-num); }
.user-menu .menu-mcht { padding: 0 16px 6px; margin-top: -6px; color: var(--muted); font-size: .8rem; font-family: var(--font-num); }
.nick-menu .caret { display: inline-flex; color: var(--muted); font-size: .8rem; }
.nick-menu[open] > summary .caret { transform: rotate(180deg); }
.user-menu.mobile-only > summary { width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.1rem; border-radius: var(--r-sm); }
.mobile-only { display: none; }

/* ===== 본문 공통 ===== */
main { max-width: var(--max); margin: 0 auto; padding: 24px 16px 40px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block-head h2 { font-size: 1.15rem; }
.more { color: var(--muted); font-size: .9rem; }
.more:hover { color: var(--accent); }

/* ===== 메인(REQ-71 청록 시안) ===== */
.feature { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(120deg, #0f766e, #14b8a6); color: #fff;
	display: grid; grid-template-columns: 1.2fr .8fr; }
.feature .txt { padding: 40px 44px; }
.feature .sale { display: inline-block; background: var(--sun); color: #451a03; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.feature h1 { font-size: 2.3rem; line-height: 1.25; margin: 16px 0 10px; }
.feature p { color: #ccfbf1; margin: 0 0 24px; }
.feature .btn .icon { margin-left: 6px; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: #f0fdfa; color: var(--accent-dark); }
.feature .art { position: relative; min-height: 230px; }
.feature .art .c { position: absolute; border-radius: 16px; background: #fff; color: var(--fg); box-shadow: 0 18px 40px rgba(0,0,0,.22); padding: 16px 18px; width: 210px; }
.feature .art small { color: var(--muted); display: block; font-size: .75rem; }
.feature .art strong { font-size: 1.5rem; font-family: var(--font-num); }
.feature .art .bar { height: 6px; border-radius: 3px; background: var(--accent); margin-top: 10px; width: 60%; }
.feature .art .bar-sun { width: 35%; background: var(--sun); }
.feature .art .c1 { top: 36px; left: 16px; transform: rotate(-6deg); }
.feature .art .c2 { top: 116px; left: 100px; transform: rotate(5deg); }

/* 빠른 메뉴(휴대폰) */
.quick-menu { display: none; gap: 8px; margin-top: 14px; }
.quick-menu a { flex: 1; text-align: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; }

/* 요약 카드 */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.summary .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.summary .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.summary .label { display: block; color: var(--muted); font-size: .8rem; }
.summary strong { font-size: 1.05rem; }

.s-head { display: flex; justify-content: space-between; align-items: baseline; margin: 32px 0 14px; }
.s-head h2 { margin: 0; font-size: 1.3rem; }
.more { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: 2px; }
.more:hover { color: var(--accent); }

/* 상품권 진열 */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; padding: 0 0 8px; margin: 0; list-style: none; scroll-snap-type: x mandatory; }
.shelf li { scroll-snap-align: start; }
.shelf a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.shelf a:hover { border-color: var(--accent-line); }
.shelf .face { height: 104px; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 800; font-size: 1.8rem; position: relative; }
.shelf .face span { position: absolute; top: 12px; right: 12px; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--fg); }
.shelf .meta { padding: 12px 14px 14px; }
.shelf .meta strong { display: block; }
.shelf .meta small { color: var(--muted); font-size: .8rem; }
.shelf .off .face { filter: grayscale(.85); opacity: .6; }

/* 이용 안내 3단계 */
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.guide-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.guide-cards .ic { width: 50px; height: 50px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px; }
.guide-cards b { color: var(--accent); font-size: .8rem; }
.guide-cards strong { display: block; font-size: 1.05rem; margin: 2px 0 4px; }
.guide-cards span:not(.ic) { color: var(--muted); font-size: .9rem; }

/* 공지·시세 탭 상자 */
.tabs-box .tab-body { padding: 6px 22px 14px; }
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.row-list li:last-child { border-bottom: 0; }
.row-list li[data-href] { cursor: pointer; }
.row-list .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-list .d { color: var(--muted); font-size: .82rem; font-family: var(--font-num); }
.row-list small { color: var(--muted); margin-left: 6px; font-family: var(--font-num); }
.badge.badge-hot { background: var(--sun-soft); color: var(--sun-ink); }
.pane-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; font-size: .85rem; color: var(--muted); }
.pane-foot a { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ===== 공지(고객센터 화면) ===== */
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block-head h2 { font-size: 1.15rem; }
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notice-list a, .notice-list .notice-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.badge { background: var(--bg-soft); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.notice-title { flex: 1; }
.notice-date { color: var(--muted); font-size: .85rem; }

/* ===== 시세 표 ===== */
.rate-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rate-table th, .rate-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.rate-table th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.rate-table tbody tr { cursor: pointer; }
.rate-table tbody tr:hover { background: var(--bg-soft); }
.rate-table td small { color: var(--muted); display: block; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
/* 시세 화면 표는 흰 상자로(REQ-44) */
.rate-table.wide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.rate-table.wide tbody tr:last-child td { border-bottom: 0; }
.rate-table.wide th:first-child, .rate-table.wide td:first-child { padding-left: 18px; }
.rate-foot { color: var(--muted); font-size: .8rem; margin: 10px 0 0; }

/* ===== 푸터 ===== */
.site-footer { background: #f3eee6; padding: 32px 16px 28px; font-size: .9rem; color: var(--muted); }
.site-footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand strong { color: var(--fg); font-size: 1.05rem; }
.footer-brand p { margin: 4px 0 0; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer nav a:hover { color: var(--accent); }
.footer-contact p { margin: 0 0 6px; }
.footer-contact .hours { font-size: .85rem; }
/* 문제 표시로 오해하지 않게 빨강 없이 흰 상자(DSN-9), 글 왼쪽·버튼 오른쪽(REQ-44) */
.refund-box { background: var(--surface); color: var(--fg); border-radius: var(--r); padding: 18px 22px; margin-top: 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.refund-box p { margin: 4px 0 0; color: var(--muted); }
.refund-box .btn { white-space: nowrap; }
.footer-biz { margin-top: 20px; font-size: .85rem; }
.footer-biz p { margin: 3px 0; }
.footer-bottom { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom nav a:nth-child(2) { color: var(--fg); font-weight: 700; } /* 개인정보처리방침은 눈에 띄게 */
.footer-bottom .copyright { margin: 0; }

/* ===== 휴대폰 아래 탭 ===== */
.mobile-tab { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
	background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mobile-tab a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: .75rem; color: var(--muted); }
.mobile-tab a .icon { width: 1.25rem; height: 1.25rem; }
.mobile-tab a.on { color: var(--accent); font-weight: 700; }

/* ===== 맨 위로 ===== */
#scroll-top { position: fixed; right: 16px; bottom: 76px; z-index: 55;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--accent); color: #fff; display: grid; place-items: center; }

/* ===== 구매 목록 ===== */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 1.5rem; }
.page-head p { color: var(--muted); margin: 0; }
.kyc-row { display: flex; gap: 8px; margin-top: 12px; }
.auth-card .kyc-row .btn { flex: 1; width: auto; margin-top: 0; padding: 11px; font-size: .95rem; }
.kyc-row .btn { flex: 1; text-align: center; }
/* KYC 상태 안내(REQ-68) — 안내 창·주문서·가입 완료·마이페이지 */
.kyc-msg > strong { display: block; margin-bottom: 4px; }
.kyc-msg > span { display: block; color: var(--muted); font-size: .9rem; }
.kyc-msg > [hidden] { display: none; }
.kyc-msg .kyc-reason-line { color: var(--danger); }
.kyc-box { margin: 14px 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--sun-pale); border: 1px solid var(--sun-line); text-align: left; }
.kyc-box > strong { display: block; }
.kyc-box p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.kyc-box .btn { display: block; width: 100%; margin-top: 12px; text-align: center; }
.kyc-result [data-kyc-msg] { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-soft); }
.kyc-result [data-kyc-msg][hidden] { display: none; }
.kyc-dialog .modal-body { text-align: center; }
.kyc-dialog .modal-actions { flex-direction: column; }
.kyc-mark { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
	background: var(--sun-pale); color: var(--sun-ink); font-size: 1.5rem; }

/* 마이페이지 개인정보 탭(REQ-25) */
.profile-tab { display: flex; flex-direction: column; gap: 16px; }
.profile-tab .form-panel { display: flex; flex-direction: column; gap: 12px; }
.info-list { margin: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: .9rem; }
.info-list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.info-list dd .field-help { margin: 0; }
.pw-change { display: flex; flex-direction: column; gap: 14px; }
.pw-change[hidden] { display: none; }
.msg-done { margin: 0; color: var(--accent-dark); font-weight: 600; font-size: .9rem; }
.msg-done[hidden] { display: none; }
@media (max-width: 520px) {
	.info-list > div { grid-template-columns: 1fr; gap: 4px; }
}
.auth-card input[readonly] { background: var(--bg-soft); color: var(--fg); cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
/* 꺼진 칩·테두리 버튼은 회색 바탕 위에서도 버튼으로 보이게 테두리를 한 단계 진하게(REQ-44 후속, Q-136) */
.chip-filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; background: #fff; }
.chip-filter:hover { border-color: var(--accent); color: var(--accent); }
.chip-filter.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-count { color: var(--muted); font-size: .82rem; }
.chip-filter.on .chip-count { color: rgba(255,255,255,.85); }
.chip-badge { background: #fff; color: var(--accent); border-radius: 999px;
	min-width: 18px; text-align: center; font-size: .75rem; font-weight: 700; padding: 0 5px; }
.chip-filter.on .chip-badge { background: #fff; }

/* 상품 카드(REQ-71 청록 시안) — 위쪽 브랜드 색 띠, 아래 수량 */
.product-grid { list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	overflow: hidden; display: flex; flex-direction: column; }
.product-card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15,118,110,.14); }
.product-thumb { height: 104px; display: flex; align-items: flex-end; padding: 12px 14px; color: #fff; font-weight: 800; font-size: 1.8rem; }
.product-thumb.muted { background: #cfc8bf; }
.product-thumb.small { width: 52px; height: 52px; border-radius: var(--r); padding: 0; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.soldout-badge { position: absolute; top: 10px; right: 10px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
	background: rgba(255,255,255,.92); color: var(--muted); }
.product-body { padding: 12px 14px 4px; }
.product-brand { display: block; color: var(--muted); font-size: .85rem; }
.product-face { display: block; font-size: 1.15rem; font-family: var(--font-num); }
.soldout .product-face { color: var(--muted); }
.product-price b { color: var(--accent); }
.product-price .discount { background: var(--accent-soft); color: var(--accent); border-radius: 6px;
	font-style: normal; font-size: .75rem; padding: 1px 6px; margin-left: 4px; }
.stock-none { color: var(--muted); font-size: .82rem; }
.product-card .stock-none { margin: 10px 14px 14px; padding: 9px; text-align: center; background: var(--bg-soft); border-radius: var(--r-sm); font-size: .88rem; }

.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface);
	border-radius: var(--r-xs); cursor: pointer; font-size: 1rem; line-height: 1; }
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.stepper input { width: 44px; height: 30px; text-align: center; border: 1px solid var(--line);
	border-radius: var(--r-xs); -moz-appearance: textfield; font-family: var(--font-num); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 목록 카드 안 수량은 카드 폭을 다 쓰는 한 덩어리 */
.product-card .stepper { margin: 10px 14px 14px; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.product-card .stepper button { width: 40px; height: 38px; border: 0; border-radius: 0; background: var(--bg-soft); font-size: 1.1rem; }
.product-card .stepper button:hover { background: var(--accent-soft); color: var(--accent); }
.product-card .stepper input { flex: 1; min-width: 0; width: auto; height: 38px; border: 0; border-radius: 0; font-weight: 700; background: var(--surface); }

.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* 하단 선택 막대 */
.select-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; background: var(--surface);
	border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(28,25,23,.06); }
.select-bar[hidden] { display: none; }
.select-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px;
	max-width: var(--max); margin: 0 auto; padding: 12px 16px; }
.select-sum strong { margin-right: 10px; }
.select-sum span { color: var(--accent); font-weight: 800; font-size: 1.1rem; font-family: var(--font-num); }
.select-actions { display: flex; gap: 8px; }
.btn-gray { background: var(--bg-soft); color: var(--fg); border: 1px solid var(--line); }
.btn-gray:hover { background: #efe9e0; color: var(--fg); }
.btn[disabled], .btn[disabled]:hover { background: #d6d1c9; color: #fff; border-color: transparent; cursor: not-allowed; }

/* 토스트 */
.toast { position: fixed; right: 16px; top: 76px; z-index: 70; background: var(--accent-dark); color: #fff;
	padding: 12px 18px; border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0,0,0,.15); font-size: .9rem;
	max-width: min(420px, calc(100vw - 32px)); line-height: 1.45; }

/* ===== 브랜드 상세(REQ-71 청록 시안) ===== */
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb strong { color: var(--fg); }

.detail-head { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px; }
.detail-thumb { width: 84px; height: 84px; border-radius: 22px; color: #fff; flex: none;
	display: grid; place-items: center; font-weight: 800; font-size: 2rem; }
.detail-head h1 { font-size: 1.6rem; margin: 6px 0 2px; }
.detail-head p { margin: 0; color: var(--muted); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-soft { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.badge-gray { background: var(--bg-soft); color: var(--muted); border-radius: 6px; font-size: .75rem; padding: 2px 8px; }
.badge-blue { background: var(--accent-soft); color: var(--accent); border-radius: 6px; font-size: .75rem; padding: 2px 8px; font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.detail-grid > * { min-width: 0; } /* 긴 한 줄 글자가 칸을 밀어 화면이 옆으로 넘치지 않게 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { flex: 1; padding: 15px 10px; background: none; border: 0; cursor: pointer;
	font-size: 1rem; font-weight: 700; color: var(--muted); }
.tab.on { color: var(--fg); box-shadow: inset 0 -3px 0 var(--accent); }
.tab-body { display: none; padding: 22px; }
.tab-body.on { display: block; }
.tab-body h3 { font-size: 1rem; margin: 18px 0 8px; }
.tab-body h3:first-of-type { margin-top: 14px; }

.feature-list, .step-list { margin: 0 0 8px; padding-left: 20px; }
.feature-list li, .step-list li { margin: 4px 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tags span { background: var(--bg-soft); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }

.info-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.info-table th, .info-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 30%; color: var(--muted); font-weight: 400; }

/* 유의사항·입금 전 확인 — 문제 표시가 아니라 주의라 노랑 */
.warn-box { margin-top: 20px; background: var(--sun-soft); color: var(--sun-ink); border-radius: var(--r); padding: 14px 16px; font-size: .9rem; }
.warn-box ul { margin: 6px 0 0; padding-left: 18px; }
.warn-box li { margin: 3px 0; font-size: .88rem; }

/* 구매 패널 */
.buy-panel { position: sticky; top: 84px; }
.buy-panel h2 { font-size: 1.1rem; margin: 0; }
.denom-list { list-style: none; margin: 0 0 18px; padding: 0; }
.denom-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
	border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 8px; }
.denom-row.picked { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15,118,110,.14); }
.denom-row.soldout { background: var(--bg-soft); color: var(--muted); }
.denom-info strong { display: block; font-family: var(--font-num); }
.denom-info b { color: var(--accent); font-size: .9rem; }

.pay-summary { border-top: 1px solid var(--line); padding-top: 16px; }
.empty-pick { color: var(--muted); text-align: center; margin: 8px 0 16px; }
.pay-summary dl { margin: 0 0 16px; }
.pay-summary dl > div, dl.pay-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .92rem; }
.pay-summary dt { color: var(--muted); white-space: nowrap; }
.pay-summary dd { margin: 0; text-align: right; font-weight: 700; }
.pay-summary .minus { color: var(--danger); }
.pay-summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1rem; }
.pay-summary .total:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.pay-summary .total dt { color: var(--fg); font-weight: 700; }
.pay-summary .total dd { color: var(--accent-dark); font-size: 1.35rem; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy-actions .btn { padding: 14px; }
.buy-note { color: var(--muted); font-size: .82rem; margin: 14px 0 0; text-align: center; }

/* 금액 직접 입력 */
.field { display: block; }
.field span { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 1rem; }
.field input:focus, .field select:focus, .form-panel textarea:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
.field-help { color: var(--muted); font-size: .84rem; margin: 8px 0 0; }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 700; margin: 8px 0 0; }
#direct-form { display: flex; flex-direction: column; gap: 14px; }
#direct-form.tab-body:not(.on) { display: none; }
#direct-form .field-help, #direct-form .field-error { margin: 0; }
.amount-input { display: flex; align-items: center; border: 2px solid var(--line); border-radius: var(--r); padding: 0 14px; background: var(--surface); cursor: text; }
.amount-input:focus-within { border-color: var(--accent); }
.amount-input input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; font-size: 1.05rem; padding: 0; text-align: right; background: none; }
/* 비어 있을 땐 안내 글자와 '원'을 같은 크기·연한 색으로 한 줄에 맞추고, 숫자를 넣으면 크고 굵게 */
.amount-input input:not(:placeholder-shown) { font-size: 1.3rem; font-weight: 800; }
.amount-input span { font-size: 1.05rem; font-weight: 700; margin-left: 6px; }
.amount-input:has(input:placeholder-shown) span { color: #a8a29e; font-weight: 400; }
.amount-input input::placeholder { color: #a8a29e; font-family: var(--font); }
.adds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.adds button { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-xs); padding: 8px 0; font-size: .85rem; font-weight: 700; cursor: pointer; }
.adds button:hover { border-color: var(--accent); color: var(--accent); }
.split-preview { background: var(--accent-soft); color: var(--accent-dark); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 700; font-size: .92rem; }

.empty-page { text-align: center; padding: 60px 16px; }
.empty-page p { color: var(--muted); margin: 8px 0 20px; }

/* ===== 폼·목록 공용 ===== */
.narrow { max-width: 460px; margin: 0 auto; }
.form-panel { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.form-panel[hidden] { display: none; } /* 위 display:flex 가 hidden 을 덮지 않게(REQ-64, 회원 탈퇴 칸은 처음 닫힘) */
.form-panel select, .form-panel textarea { width: 100%; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; }
.form-links { color: var(--muted); font-size: .88rem; text-align: center; margin: 4px 0 0; }
.form-links a:hover { color: var(--accent); }
.checkline { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.login-notice { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm);
	padding: 12px 14px; font-size: .9rem; }
.login-notice a { color: var(--accent); font-weight: 600; }

.rate-table.wide td, .rate-table.wide th { padding: 14px 10px; }
.rate-table.wide th { background: var(--bg-soft); font-weight: 400; font-size: .82rem; }
.rate-table.wide td:first-child { font-weight: 700; }
.rate-table tr.soldout td { color: var(--muted); }

/* ===== 오류 화면(REQ-71 청록 시안) ===== */
.error-page { text-align: center; padding: 56px 16px; }
.error-page .code { font-size: 4.5rem; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -2px; font-family: var(--font-num); }
.error-page h1 { margin: 14px 0 6px; font-size: 1.5rem; }
.error-page p { color: var(--muted); margin: 0 0 22px; }
.error-page .chips { justify-content: center; margin-top: 18px; }

.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq-list summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.faq-list p { color: var(--muted); margin: 10px 0 0; padding-left: 4px; }

/* ===== 주문 흐름(장바구니·주문서·입금 안내, REQ-71 청록 시안) ===== */
.flow-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .85rem; color: var(--muted); counter-reset: f; flex-wrap: wrap; }
.flow-steps li { display: flex; align-items: center; gap: 6px; }
.flow-steps li::before { counter-increment: f; content: counter(f); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
	background: var(--bg-soft); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; font-family: var(--font-num); }
.flow-steps li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: var(--line); margin-left: 4px; }
.flow-steps .done { color: var(--accent-dark); }
.flow-steps .done::before { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-dark); }
.flow-steps .now { color: var(--fg); font-weight: 700; }
.flow-steps .now::before { background: var(--accent); border-color: var(--accent); color: #fff; }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.form-panel .cart-item { padding: 14px 0; }
.form-panel .cart-item:first-child { padding-top: 0; }
.cart-item.soldout { background: var(--bg-soft); color: var(--muted); }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-info strong { font-size: 1.02rem; }
.cart-price { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.cart-price b { color: var(--accent-dark); }
.qty { background: var(--bg-soft); border-radius: 6px; padding: 1px 8px; font-size: .82rem; color: var(--muted); }
.soldout-text { color: var(--danger); font-style: normal; font-size: .82rem; }
.delete { font-size: 1.2rem; line-height: 1; color: var(--muted); padding: 6px; border-radius: var(--r-xs); }
.delete:hover { color: var(--danger); background: var(--bg-soft); }
.cart-clear { padding: 12px 18px; text-align: right; }
.cart-clear button { color: var(--muted); font-size: .88rem; }

/* 오른쪽 결제 칸 */
.buy-box { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.buy-box h2 { font-size: 1.1rem; margin: 0; }
.buy-box .pay-summary { border-top: 0; padding-top: 0; }
.buy-box .pay-summary dl, .buy-box dl.pay-summary { margin: 0; }
.buy-box .buy-note { margin: 0; }
.buy-box .field-help, .buy-box .field-error { margin: 0; }
.btn.block { display: block; width: 100%; padding: 14px; text-align: center; }

/* 주문서 칸 */
.form-panel h3 { margin: 0; font-size: 1.02rem; }
.form-panel h3:not(:first-child) { margin-top: 8px; }
.form-panel .warn-box, .form-panel .code-box { margin: 0; }
.pay-method { border: 2px solid var(--accent); border-radius: var(--r); padding: 14px 16px; background: var(--accent-soft); display: flex; gap: 12px; align-items: flex-start; }
.pay-method > .icon { width: 1.4rem; height: 1.4rem; color: var(--accent); margin-top: 2px; }
.pay-method strong { display: block; }
.pay-method .field-help { margin: 2px 0 0; }

/* 입금 안내 — 할 일 순서 번호 */
.todo-step { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.todo-step b { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .72rem; font-family: var(--font-num); }
.code-box-key .todo-step { color: var(--sun-ink); }
.code-box-key .todo-step b { background: var(--sun); color: #451a03; }
.code-box .label .icon { vertical-align: -.15em; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(15,118,110,.35); } 50% { box-shadow: 0 0 0 7px rgba(15,118,110,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.status-box.wait { display: flex; gap: 10px; align-items: center; }

/* 휴대폰 아래 고정 결제 막대(장바구니·주문서) — PC에서는 숨김 */
.pay-bar { display: none; }

/* ===== 반응형 ===== */
@media (max-width: 1100px) {
	.clock { display: none; }
	.ticker { min-width: 0; }
}

@media (max-width: 900px) {
	.product-grid { grid-template-columns: repeat(3, 1fr); }
	.detail-grid { grid-template-columns: 1fr; }
	.buy-panel { position: static; }
	.summary { grid-template-columns: repeat(2, 1fr); }
	.feature { grid-template-columns: 1fr; }
	.feature .art { display: none; }
}

@media (max-width: 760px) {
	/* 휴대폰: 메뉴 글자는 아래 탭으로, 시세 흐름 표시는 머리 아래 한 줄로 내린다 */
	.header-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
	.main-nav, .pc-only { display: none; }
	.mobile-only { display: block; }
	.header-right { margin-left: auto; }
	.ticker { order: 3; flex: 0 0 calc(100% + 32px); min-width: 0; margin: 0 -16px -10px; padding: 0 16px; height: 34px;
		background: var(--bg-soft); border-top: 1px solid var(--line); }
	.ticker-item { height: 34px; font-size: .82rem; }
	.mobile-tab { display: flex; }
	body { padding-bottom: 64px; }
	#scroll-top { bottom: 76px; }
	.select-bar { bottom: 56px; }
	.quick-menu { display: flex; }
	.feature .txt { padding: 28px 22px; }
	.feature h1 { font-size: 1.7rem; }
	.guide-cards { grid-template-columns: 1fr; }
	.shelf { grid-auto-columns: 156px; }
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.refund-box { flex-direction: column; align-items: flex-start; }
	.tabs-box .tab-body { padding: 4px 16px 12px; }
	.select-bar .wrap { flex-direction: column; align-items: stretch; }
	.select-actions .btn { flex: 1; }
	.detail-head { padding: 16px; }
	.detail-thumb { width: 64px; height: 64px; border-radius: 18px; font-size: 1.6rem; }
	.detail-head h1 { font-size: 1.3rem; }
	.tab-body { padding: 18px; }
	.pay-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 56px; z-index: 58; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(28,25,23,.06); }
	.pay-bar small { display: block; color: var(--muted); font-size: .75rem; }
	.pay-bar strong { font-size: 1.15rem; color: var(--accent-dark); font-family: var(--font-num); }
	.pay-bar .btn { flex: 0 0 auto; min-width: 128px; padding: 13px 18px; }
	body:has(.pay-bar) { padding-bottom: 130px; }
	body:has(.pay-bar) #scroll-top { bottom: 140px; }
	.has-bar .buy-panel .btn.block { display: none; }
	.code-box-key strong { font-size: 1.35rem; }
	.pay-summary .total dd { font-size: 1.2rem; }
	.buy-box { padding: 18px; }
}

@media (max-width: 400px) {
	.summary { grid-template-columns: 1fr 1fr; gap: 8px; }
	.summary .card { padding: 12px; gap: 8px; flex-direction: column; align-items: flex-start; } /* 좁은 폭: 아이콘을 위로 올려 값이 한 줄에 */
	.summary .ic { width: 32px; height: 32px; font-size: 1rem; }
	.summary strong { font-size: .92rem; }
	/* 주문 단계 표시가 폭 360에서도 한 줄 — 잇는 선을 빼고 조금 작게 */
	.flow-steps { gap: 8px; font-size: .78rem; flex-wrap: nowrap; }
	.flow-steps li { gap: 4px; white-space: nowrap; }
	.flow-steps li::before { width: 20px; height: 20px; }
	.flow-steps li:not(:last-child)::after { content: none; }
}
@media (max-width: 360px) {
	/* 폭 320 작은 휴대폰 — 한 줄이 칸을 넘지 않게 조금 더 작게 */
	.flow-steps { gap: 6px; font-size: .72rem; }
	.flow-steps li::before { width: 18px; height: 18px; font-size: .7rem; }
}

.toast a { color:var(--accent-line); margin-left:10px; text-decoration:underline; }
.toast.toast-error { background: var(--danger); }

.info-fixed { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.info-fixed p { margin: 0 0 4px; font-size: .9rem; }
.info-fixed ol { margin: 4px 0 6px; padding-left: 20px; font-size: .9rem; }

/* ===== 로그인·회원가입 (쇼핑몰 화면) ===== */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 36px 0 56px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .auth-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem;
	color: var(--accent-dark); margin-bottom: 12px; }
.auth-head h1 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-head p { color: var(--muted); margin: 0; font-size: .93rem; }

.auth-dup { flex-wrap: wrap; text-align: center; }   /* 가입 중복 회원(REQ-79) — 문구 + [로그인 하기] */
.auth-notice { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px;
	background: var(--sun-soft); color: var(--sun-ink);
	border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; }

.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 24px; box-shadow: var(--shadow); }
.auth-card .field + .field { margin-top: 16px; }
.auth-card > .field-error { margin: 0 0 14px; padding: 10px 12px; background: var(--danger-soft); border-radius: var(--r-xs); }
.auth-card .btn { width: 100%; text-align: center; margin-top: 20px; padding: 14px; font-size: 1rem; }

.field-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.field-row span { margin: 0; font-size: .9rem; }
.field-row .field-links { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); }
.field-row .field-links a:hover { color: var(--accent); }

.pw-box { position: relative; }
.pw-box input { padding-right: 46px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
	border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1;
	padding: 6px; color: var(--muted); }
.pw-toggle:hover { color: var(--fg); }

.auth-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.auth-section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.auth-section > h2 { font-size: .95rem; margin-bottom: 14px; }

.auth-foot { margin-top: 20px; text-align: center; font-size: .88rem; color: var(--muted); }
.auth-foot .secure { display: block; margin-bottom: 14px; font-size: .82rem; }
.auth-foot a { color: var(--accent); font-weight: 600; }
.auth-foot p { margin: 6px 0; }

.pw-rules { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pw-rules li { font-size: .8rem; color: var(--muted); }
.pw-rules li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px;
	border: 1.5px solid currentColor; border-radius: 50%; vertical-align: 1px; }
.pw-rules li.ok { color: var(--accent-dark); }
.pw-rules li.ok::before { background: currentColor; }
.pw-allow { margin: 8px 0 0; font-size: .8rem; }   /* 허용 특수문자(REQ-83) */
.pw-allow b { display: block; white-space: nowrap; margin-top: 2px; font-family: var(--font-num); font-weight: 600; color: var(--fg); letter-spacing: .2em; }   /* 둘째 줄 기호 26개, 320px에서도 한 줄(사용자 2026-10-15) */

.steps-bar { display: flex; align-items: center; gap: 6px; justify-content: center;
	margin-bottom: 22px; flex-wrap: wrap; }
.steps-bar .step { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.steps-bar .step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
	background: var(--bg-soft); border: 1px solid var(--line); font-style: normal; font-size: .75rem; }
.steps-bar .step.on { color: var(--fg); font-weight: 700; }
.steps-bar .step.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps-bar .step.done i { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-dark); }
.steps-bar .sep { width: 14px; height: 1px; background: var(--line); }

/* 가입 완료 — 카드 안쪽 여백은 .auth-card 기본보다 넉넉히(전에는 좌우 0으로 덮어써 상자·버튼이 카드 끝에 붙었다), 상자 사이 12px */
.auth-done { text-align: center; padding: 10px 0 4px; }   /* 입금 안내 결제 완료(pending)도 쓴다 */
.auth-card.auth-done { padding: 32px 28px 28px; word-break: keep-all; }
.auth-done .mark { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px;
	display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.8rem; }
.auth-done h2 { margin: 0 0 6px; }
.auth-done > p { margin: 0; color: var(--muted); }
.auth-card.auth-done > p { margin-bottom: 22px; }
.auth-done .code-box { margin: 0 0 12px; }
.auth-section .kyc-box { margin: 18px 0 0; padding: 16px 18px; }   /* 가입 3단계 KYC(사용자 2026-10-15) */
.auth-section .kyc-box .btn { margin-top: 14px; padding: 12px; }
.auth-done > .btn { margin-top: 24px; }
.btn-kyc { background: var(--sun); color: #451a03; }   /* KYC 상자 안 눌러야 할 버튼 — 상자 색과 맞춘 노랑 */
.btn-kyc:hover { background: #d97706; color: #451a03; }
.code-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
	padding: 14px 16px; margin: 18px 0; }
.code-box .label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.code-box strong { font-size: 1.3rem; letter-spacing: .5px; }
.fixed-value { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft); }
.fixed-value strong { letter-spacing: .5px; }
/* 입금자명 강조 — 금액과 입금자명(닉네임)이 같아야 자동으로 확인된다 */
.code-box-key { background: var(--sun-pale); border: 2px solid var(--sun); }
.code-box-key .label { color: var(--sun-ink); font-weight: 700; }
.code-box-key strong { font-size: 1.6rem; color: var(--sun-ink); }
.key-warn { margin: 8px 0 0; font-size: .86rem; color: var(--sun-ink); font-weight: 600; }

/* 주문 대기(상품권 발행 중) */
.wait-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm);
	background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-dark); }
.wait-box strong { display: block; font-size: .95rem; }
.wait-box .field-help { margin: 4px 0 0; }
.wait-box[hidden] { display: none; }
.spinner { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; border-radius: 50%;
	border: 3px solid var(--accent-line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

@media (max-width: 520px) {
	.auth-wrap { padding: 20px 0 40px; }
	.auth-card { padding: 20px 16px; border-radius: var(--r); }
	.auth-card.auth-done { padding: 26px 18px 20px; }
	.auth-done h1 { font-size: 1.4rem; }   /* 좁은 화면에서 "가입이 / 완료되었어요"로 끊기지 않게 */
	.auth-section .kyc-box { padding: 14px; }
}

/* 입력 + 옆 버튼 (아이디 중복확인) */
.field .input-with-btn { display: flex; gap: 8px; margin-bottom: 0; }
.field .input-with-btn input { flex: 1; min-width: 0; }
.field .input-with-btn .btn { width: auto; flex: none; margin-top: 0; padding: 12px 16px;
	white-space: nowrap; align-self: stretch; font-size: .9rem; }
.msg-ok { color: var(--accent-dark); }
.msg-ng { color: var(--danger); }

/* 주문서 · 입금 안내 */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100% - 32px)); }
dialog.modal::backdrop { background: rgba(28,25,23,.5); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-body h2 { font-size: 1.15rem; margin: 0; }
.modal-actions { display: flex; gap: 8px; }
.modal-actions .btn { flex: 1; text-align: center; }

/* PIN 조회(REQ-24) — 주문 상세 PIN 칸 + PIN 모달 */
.pin-head { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pin-head h2, .pin-head h3 { margin: 0; }
/* 사용 완료(REQ-51) — 문제 표시가 아니라 상태라 회색 상자 */
.pin-used { display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
.pin-used[hidden] { display: none; }
.pin-used strong { color: var(--fg); }
.pin-used strong, .pin-used span { white-space: nowrap; } /* "사용 완료 · 날짜"가 중간에 끊기지 않게(REQ-65) */
.pin-box .btn { margin: 10px 0; }
.pin-warn { color: var(--danger); font-size: .85rem; font-weight: 600; }
.pin-group h3 { font-size: .95rem; margin: 0 0 8px; }
.pin-group + .pin-group { margin-top: 14px; }
.pin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pin-card { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
	border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--bg-page); }
.pin-face { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.pin-no { font-family: ui-monospace, "Consolas", monospace; font-size: 1rem; letter-spacing: .5px; word-break: break-all; }
.pin-eye { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--muted); line-height: 0; border-radius: var(--r-xs); }
.pin-eye:hover, .pin-eye.on { color: var(--accent); background: var(--accent-soft); }
.pin-eye .icon { width: 18px; height: 18px; }
.pin-eye .icon-eye-off, .pin-eye.on .icon-eye { display: none; }
.pin-eye.on .icon-eye-off { display: inline; }
.pin-copy, #pin-copy-all { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pin-copied { margin: 0; color: var(--accent-dark); font-size: .85rem; font-weight: 600; }
.pin-copied[hidden] { display: none; }
.pin-result[hidden] { display: none; }
.pin-result .pay-summary dd { text-align: right; word-break: break-all; }
#pin-message { margin-top: 4px; font-size: .93rem; }
@media (max-width: 760px) {
	/* 휴대폰 PIN 카드 2줄(REQ-71 청록 시안) — 윗줄 PIN 16자리, 아랫줄 권종 · 보기 · 복사(REQ-65 한 줄 유지) */
	.pin-card { grid-template-columns: 1fr auto auto; }
	.pin-no { grid-column: 1 / -1; grid-row: 1; white-space: nowrap; word-break: normal; }
	.pin-face { grid-column: 1; grid-row: 2; }
	.pin-eye { grid-column: 2; grid-row: 2; }
	.pin-copy { grid-column: 3; grid-row: 2; }
}
.safety-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: .88rem; }
.safety-item p { margin: 0 0 8px; }
.status-box { border-radius: var(--r); padding: 14px 16px; font-size: .92rem; }
.status-box.ok { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-line); }
.status-box.wait { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-line); }
.status-box.check { background: var(--sun-pale); color: var(--sun-ink); border: 1px solid var(--sun-line); }
.status-box.end { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deposit-holder { display: inline-block; margin-left: 6px; white-space: nowrap; }   /* 입금 안내 예금주(계좌 옆) */
.account-lock { display: block; letter-spacing: 1px; color: #a8a29e; margin: 2px 0 4px; white-space: nowrap; overflow: hidden; font-size: clamp(.9rem, 4.2vw, 1.1rem) !important; }
/* 마이페이지 주문내역(REQ-71 청록 시안) */
.order-total { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; background: var(--accent-soft); border-radius: var(--r); padding: 14px 18px; color: var(--accent-dark); }
.order-total b { font-size: 1.15rem; font-family: var(--font-num); }
.order-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: block; background: var(--surface); }
.order-card .code-row strong { font-size: 1.02rem; }
.order-card .code-row b { font-size: 1.1rem; }
.order-no, .num { font-family: var(--font-num); }
.order-card + .order-card { margin-top: 10px; }
.order-card:hover { border-color: var(--accent); }
.order-card .code-row { margin-bottom: 6px; }
.order-meta { color: var(--muted); font-size: .82rem; }
.status-badge { border-radius: 999px; padding: 3px 10px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: var(--bg-soft); color: var(--muted); }
.status-badge.wait { background: var(--accent-soft); color: var(--accent); }
.status-badge.ok { background: var(--accent-soft); color: var(--accent-dark); }
/* 회원 주문 상태 4개(API명세 10 3장) — 입금대기 노랑(손님이 할 일) / 입금확인 연한 청록 / 발행완료 진한 청록 / 확인중 회색 */
.status-badge.st-wait { background: var(--sun-soft); color: var(--sun-ink); }
.status-badge.st-paid { background: var(--accent-soft); color: var(--accent-dark); }
.status-badge.st-issued { background: var(--accent); color: #fff; }
.status-badge.st-check { background: #f1ede7; color: #57534e; border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 16px; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px;
	border-radius: 50%; background: var(--accent); }
.timeline time { display: block; color: var(--muted); font-size: .8rem; }
/* 모바일에서 모달이 화면보다 길면 안에서 스크롤하고, 버튼은 항상 아래에 보이게 */
dialog.modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
dialog.modal .modal-actions { position: sticky; bottom: 0; background: #fff; padding: 10px 0 2px; }

/* REQ-30 — 1:1 문의 글자 수, 회원 탈퇴 링크, 약관 본문, 숨긴 폼 */
form[hidden] { display: none; }
.field .char-count { text-align: right; margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.withdraw { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.withdraw > .panel { align-self: stretch; }
.withdraw-link { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; }
.legal-body { padding: 24px; }
.legal-body h2 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--accent-dark); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: .93rem; line-height: 1.75; margin: 0; }
.legal-body ul, .legal-body ol { margin: 0; padding-left: 20px; }
.legal-body .legal-date { color: var(--muted); margin-top: 24px; }
.legal-body h3 { font-size: .95rem; margin: 14px 0 6px; }
.legal-body li > ul { margin-top: 4px; }
.legal-body mark.todo { background: none; color: inherit; } /* 채울 빈칸 — 색칠 없이 본문과 같게(사용자 2026-10-16, 사업자명 입력 뒤) */
/* 가입 1단계 약관 줄 [보기]와 약관 창(REQ-45) */
.auth-section > .checkline, .checkline-row { padding: 5px 0; }
.checkline-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.terms-view { color: var(--muted); font-size: .85rem; text-decoration: underline; flex-shrink: 0; }
.terms-view:hover { color: var(--accent); }
dialog.terms-dialog { width: min(640px, calc(100% - 32px)); }
.legal-scroll { max-height: min(55dvh, 520px); overflow-y: auto; overscroll-behavior: contain;
	border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }

/* 주문내역 카드 = 주문 상세(사용자, 2026-10-12) — 발행일·안내·[PIN 조회] 한 줄 */
.order-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.order-actions > .order-meta:first-child { margin-right: auto; }
/* 발행일 뒤에 발행번호가 오면(REQ-53) 두 줄 글자를 왼쪽에 모으고 버튼만 오른쪽 */
.order-actions > .order-meta:first-child:has(+ .order-meta) { margin-right: 0; }
.order-actions > .order-meta + .order-meta { margin-right: auto; }

.order-card:hover { border-color: var(--line); } /* 이제 링크가 아님 */
/* PIN 목록은 창 안에서만 스크롤 — 제목·경고·버튼은 고정 */
#pin-groups { max-height: min(46dvh, 420px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
/* 문자 링크 PIN 화면 — 사이트 틀 없이 PIN 창 하나 */
body.pin-only { background: var(--bg-page); min-height: 100dvh; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.pin-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); width: min(520px, 100%); box-shadow: var(--shadow); }
.pin-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent-dark); margin-bottom: 4px; }
.pin-title { font-size: 1.3rem; margin: 0; }
#pin-verify-submit, .pin-sheet #pin-copy-all { width: 100%; text-align: center; }
.pin-sheet .field + .field { margin-top: 14px; }
.pin-sheet #pin-verify-submit { margin-top: 18px; }
.pin-result { display: flex; flex-direction: column; gap: 12px; }
.pin-result[hidden] { display: none; }

/* 반환 신청(REQ-47) — 왼쪽 신청서(입금·계좌·동의 묶음), 오른쪽 안내와 내 신청 */
.form-panel .auth-section { display: flex; flex-direction: column; gap: 14px; }
.form-panel .auth-section > h2 { margin: 0; }
.refund-side { display: flex; flex-direction: column; gap: 16px; }
.notice-box { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-dark); border-radius: var(--r); padding: 14px 16px; font-size: .9rem; }
.notice-box ul { margin: 6px 0 0; padding-left: 18px; }
.form-panel .auth-section > h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.auth-section > h2 b { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .75rem; font-family: var(--font-num); }
.file-drop { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--accent-line); border-radius: var(--r-sm);
	padding: 12px 14px; background: var(--bg-page); color: var(--muted); font-size: .9rem; cursor: pointer; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--accent); }
.file-drop .icon { color: var(--accent); width: 1.2rem; height: 1.2rem; }
.field .file-drop { margin: 0; font-weight: 400; }
.file-drop input[type="file"] { position: absolute; left: 0; bottom: 0; opacity: 0; width: 1px; height: 1px; padding: 0; }
.order-help { color: var(--accent-dark); text-decoration: underline; font-size: .85rem; } /* 입금대기 카드 반환 신청 링크(REQ-47) */
/* 첨부 파일 목록(REQ-54) */
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 8px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-xs); font-size: .88rem; }
.field .file-list span { display: inline; margin: 0; overflow-wrap: anywhere; }
.file-list .link-button { color: var(--muted); text-decoration: underline; flex-shrink: 0; }
.file-list .link-button:hover { color: var(--danger); }
.field input[type="file"] { padding: 10px; background: #fff; }
/* 입금 안내 계좌번호 확인 — 따라 칠 문구를 입력 칸 위에 크게(REQ-61). 입력을 시작해도 사라지지 않는다 */
.remit-phrase { display: block; margin: 0 0 8px; padding: 10px 12px; background: var(--surface); border: 1px dashed var(--accent-line);
	border-radius: var(--r-sm); color: var(--accent-dark); font-size: 1.05rem; letter-spacing: .2px; user-select: none; }
