/* 색상과 기본 값: 여기만 바꾸면 전체 분위기가 바뀝니다 */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #17191e;
  --ink-2: #2a2d35;
  --muted: #767b86;
  --line: #e3e5ea;
  --accent: #f2c94c;
  --accent-ink: #17191e;
  --accent-soft: #fdf3d4;
  --ok: #2f855a;
  --ok-soft: #e1f3e8;
  --danger: #c53030;
  --danger-soft: #fde4e4;
  --radius: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Pretendard', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.sample-note { background: #000; color: #d8dbe2; font-size: 12px; text-align: center; padding: 7px 16px; }

/* ── 상단 ── */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 900; letter-spacing: .04em; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,201,76,.25); }
.toplink { color: #b9bdc7; text-decoration: none; font-size: 14px; }
.toplink:hover { color: var(--accent); }

.hero { background: var(--ink); color: #fff; padding: 22px 0 70px; }
.hero h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 8px 0 0; color: #a3a8b3; font-size: 14px; }
.lift { margin-top: -54px; }

/* ── 카드 ── */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: 0 1px 2px rgba(0,0,0,.04); border: 1px solid var(--line); }
.card h2 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--accent); font-size: 13px; font-weight: 800; }
.card.locked { opacity: .45; pointer-events: none; }

/* ── 날짜 ── */
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date { flex: 0 0 56px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 7px 0; text-align: center; }
.date .w { display: block; font-size: 12px; color: var(--muted); }
.date .d { font-size: 18px; font-weight: 800; }
.date.sun .w { color: var(--danger); }
.date.sat .w { color: #2b6cb0; }
.date.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.date.selected .w { color: var(--accent); }

/* ── 방 ── */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; position: relative; }
.room:hover { border-color: var(--ink); }
.room.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.room .kind { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.room .kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.room .name { font-weight: 800; font-size: 17px; margin-top: 2px; }
.room .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.room .price { margin-top: 8px; font-weight: 700; font-size: 14px; }
.room .price small { color: var(--muted); font-weight: 500; }
.room .free { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 700; color: var(--ok); }
.room .free.none { color: var(--danger); }

/* ── 시간 ── */
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.hour {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 0; font-weight: 700; font-size: 14px;
}
.hour:hover:not(:disabled) { border-color: var(--ink); }
.hour.in { background: var(--accent-soft); border-color: var(--accent); }
.hour.edge { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hour:disabled { background: #f0f1f4; color: #b8bcc5; border-color: #f0f1f4; cursor: not-allowed; text-decoration: line-through; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.hint b { color: var(--ink); }

/* ── 폼 ── */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.input { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.input:focus { outline: none; border-color: var(--ink); }
textarea.input { resize: vertical; min-height: 64px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--bg); font-size: 18px; font-weight: 700; }
.stepper span { min-width: 56px; text-align: center; font-weight: 800; }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }

.summary { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 6px 0 14px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary .k { color: var(--muted); }
.summary .total { border-top: 1px dashed #cfd3da; margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 17px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid transparent; border-radius: 12px; padding: 13px 18px; font-weight: 800; background: var(--ink); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.yellow { background: var(--accent); color: var(--accent-ink); }
.btn.yellow:hover { background: #f5d470; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }

/* ── 상태 ── */
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge.pending { background: var(--accent-soft); color: #9a6b00; }
.badge.confirmed { background: var(--ok-soft); color: var(--ok); }
.badge.done { background: #e8eaee; color: #555b66; }
.badge.cancelled { background: #eee; color: #999; }

/* ── 완료 ── */
.done-box { text-align: center; padding: 26px 20px; }
.done-box .big { font-size: 44px; }
.pay { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px; margin: 14px 0; text-align: left; font-size: 14px; }
.pay b { color: var(--accent); }
.pay .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.pay .row span:first-child { color: #a3a8b3; }

.mybooking { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mybooking b { display: block; }
.mybooking small { color: var(--muted); }

footer { color: var(--muted); font-size: 13px; text-align: center; padding: 28px 0 48px; }
footer .toplink { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .hero h1 { font-size: 23px; }
  .room { padding: 12px; }
  .room .free { position: static; display: block; margin-top: 6px; }
  .hours { grid-template-columns: repeat(4, 1fr); }
}
