/* ===== 회원 · 결제 · 후기 · 관리자 ===== */
html, body { margin: 0; }
.auth-slot { display: flex; align-items: center; gap: 14px; font-size: 14px; white-space: nowrap; }
.auth-slot a, .auth-slot button { color: var(--on-navy-muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.auth-slot a:hover, .auth-slot button:hover { color: var(--gold); }
.auth-slot .who { color: var(--on-navy); font-weight: 700; }
.top .nav + .auth-slot { margin-left: 8px; }
.top .auth-slot:first-of-type:not(.nav + .auth-slot) { margin-left: auto; }
@media (max-width: 860px) { .top .auth-slot { margin-left: auto; } .top .auth-slot + .btn { margin-left: 0; } .auth-slot .who, .auth-slot .opt { display: none; } }

.login-box { max-width: 400px; }
.login-box .sub { font-size: 14px; color: var(--muted); }
.sns { display: grid; gap: 10px; }
.sns button { display: grid; grid-template-columns: 22px 1fr 22px; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 10px; border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.sns svg { width: 20px; height: 20px; }
.sns-kakao { background: #FEE500; color: #191600; }
.sns-naver { background: #03C75A; color: #fff; }
.sns-google { background: #fff; color: #1F1F1F; border: 1px solid #DADCE0 !important; }
.sheet-x { position: absolute; right: 14px; top: 12px; background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.sheet-box { position: relative; }

/* 가격 옆 결제 아이콘 */
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.pay-icon { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--navy); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 12px; padding: 8px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; transition: transform .15s ease; }
.pay-icon:hover { transform: translateY(-2px); }
.pay-icon svg { width: 26px; height: 26px; }
:root[data-theme="dark"] .pay-icon { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pay-icon { color: var(--gold); } }
.seat-line { font-size: 13px; color: var(--muted); }
.seat-line b { color: var(--bad); font-variant-numeric: tabular-nums; }
.mbar .pay-icon { padding: 5px 8px 3px; margin-left: auto; }
.mbar .pay-icon svg { width: 22px; height: 22px; }
.mbar .pay-icon + .btn { margin-left: 0; }

/* 후기 */
.rv-list { display: grid; gap: 12px; }
.rv-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .rv-grid { grid-template-columns: 1fr; } }
.rv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rv-top b { color: var(--ink); font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }
.rv p { font-size: 15px; white-space: pre-line; }
.rv-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; color: var(--muted); display: grid; gap: 6px; background: var(--surface); }
.rv-grid .rv-empty { grid-column: 1 / -1; }
.rv-empty b { color: var(--ink); font-family: var(--display); font-size: 17px; }
.rv-actions { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.link-gold { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 15px; }
.link-gold:hover { text-decoration: underline; }

/* 서브 페이지 */
.page { padding-block: 40px 90px; }
.page-title { display: grid; gap: 8px; margin-bottom: 28px; }
.page-title h1 { font-size: clamp(26px, 3.4vw, 34px); }
.page-title p { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 18px; }
.panel h2 { font-size: 20px; }
.panel h3 { font-size: 16px; font-family: var(--body); font-weight: 800; }
@media (max-width: 520px) { .panel { padding: 20px 16px; } }
.field textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); width: 100%; min-height: 150px; resize: vertical; }
.field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: 12px; color: var(--muted); }
.req::after { content: " *"; color: var(--bad); }
.form-grid { display: grid; gap: 14px; }
@media (max-width: 520px) { .form-grid .two { grid-template-columns: 1fr; } }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.msg { font-size: 14px; border-radius: 10px; padding: 12px 14px; }
.msg-err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.msg-ok { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.msg-info { background: var(--surface-2); color: var(--muted); }
.msg[hidden] { display: none; }

/* 결제 단계 */
.co-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 36px; align-items: start; }
.co-reviews { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 12px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.co-reviews h2 { font-size: 19px; }
.co-reviews .rv { padding: 16px; }
.co-reviews .rv p { font-size: 14px; }
.co-grid.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 980px) { .co-grid, .co-grid.half { grid-template-columns: 1fr; } .co-reviews { position: static; max-height: none; order: 2; } }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper div { border-top: 3px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.stepper div.on { border-color: var(--gold); color: var(--ink); }
.stepper div.done { border-color: var(--navy); color: var(--ink); }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; background: var(--surface-2); border-radius: 12px; padding: 16px 18px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary .total { font-family: var(--display); font-size: 22px; color: var(--ink); }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method { position: relative; display: grid; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: var(--bg); }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method b { font-size: 15px; }
.method span { font-size: 12px; color: var(--muted); }
.method:has(input:checked) { border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.method:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) { .methods { grid-template-columns: 1fr; } }
.bank { border: 1px solid var(--gold); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; background: var(--surface); }
.bank small { color: var(--muted); font-size: 12px; }
.bank b { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bank .copy { justify-self: start; margin-top: 6px; font-size: 13px; padding: 6px 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.invoice { border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 12px; }
.invoice[hidden], .bank-area[hidden] { display: none; }
.bank-area { display: grid; gap: 14px; }
.test-banner { font-size: 13px; background: #FFF4D6; color: #6B4E00; border-radius: 10px; padding: 10px 14px; }
:root[data-theme="dark"] .test-banner { background: #3A3016; color: #F2D78C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .test-banner { background: #3A3016; color: #F2D78C; } }
.status-badge { display: inline-block; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.st-awaiting_payment { background: var(--surface-2); color: var(--muted); }
.st-pending { background: #FFF4D6; color: #6B4E00; }
.st-confirmed { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.st-cancelled { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.sns-inline { max-width: 380px; }

/* 별점 입력 */
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { font-size: 30px; color: var(--line); cursor: pointer; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }

/* 관리자 */
.adm-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.adm-tabs button { background: none; border: 0; font: inherit; font-weight: 700; padding: 12px 14px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.adm-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi small { color: var(--muted); font-size: 12px; display: block; }
.kpi b { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
.tbl th, .tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { color: var(--muted); display: block; font-size: 12px; }
.tbl .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tbl .acts button { font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.tbl .acts button.pri { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.tbl .acts button.dan { color: var(--bad); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.filters select, .filters input { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.filters .btn { padding: 8px 12px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--navy); color: var(--on-navy); padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 90; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.setup-note { border: 1px dashed var(--gold); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--muted); background: var(--surface); }
.simple-footer .wrap { padding-block: 26px; }
