/* 색상과 기본 값: 여기만 바꾸면 전체 분위기가 바뀝니다 */
:root {
  --bg: #f3f2ed;
  --surface: #ffffff;
  --text: #22291f;
  --muted: #7b8276;
  --line: #e2e3da;
  --accent: #4f6f5d;
  --accent-2: #3d5849;
  --accent-soft: #e5ece6;
  --warn: #b7791f;
  --warn-soft: #fbf0dc;
  --danger: #b4483c;
  --danger-soft: #f8e4e1;
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  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 { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ── 가상 브랜드 안내줄 ── */
.sample-note { background: var(--text); color: #e9ece4; font-size: 12px; text-align: center; padding: 7px 16px; }

/* ── 상단 ── */
.topbar { background: var(--bg); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.logo small { display: block; font-weight: 500; letter-spacing: .3em; font-size: 9px; color: var(--muted); margin-top: -3px; }
.toplink { color: var(--muted); text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; }
.toplink:hover { color: var(--accent); }

.hero { padding: 26px 0 6px; }
.hero h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; line-height: 1.3; }
.hero p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ── 카드 ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; }
.card h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card h2 small { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ── 내 수강권 ── */
.pass { background: var(--accent); color: #f2f5f1; border: 0; position: relative; overflow: hidden; }
.pass::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,255,255,.07); }
.pass__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pass__name { font-size: 14px; opacity: .85; }
.pass__who { font-size: 18px; font-weight: 700; }
.pass__left { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.pass__left b { font-size: 46px; line-height: 1; letter-spacing: -.04em; }
.pass__left span { opacity: .8; }
.pass__bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); margin-top: 14px; overflow: hidden; }
.pass__bar i { display: block; height: 100%; background: #d9e8c8; border-radius: 3px; }
.pass__meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; opacity: .85; }
.pass .toplink { color: #dfe7dc; text-decoration: underline; text-underline-offset: 3px; }

/* ── 시작 폼 ── */
.start-form { display: grid; gap: 10px; }
.start-row { display: flex; gap: 8px; }
.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
.input:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.hint b { color: var(--text); }
.error { color: var(--danger); font-size: 13px; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid transparent; border-radius: 12px; padding: 12px 16px; font-weight: 700;
  background: var(--accent); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--accent-2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.warn { background: var(--warn-soft); color: var(--warn); }
.btn.warn:hover { background: #f6e3c1; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

/* ── 요일 선택 ── */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day {
  border: 0; background: transparent; border-radius: 14px; padding: 8px 0; text-align: center;
}
.day .w { display: block; font-size: 12px; color: var(--muted); }
.day .d { display: block; font-size: 18px; font-weight: 700; margin-top: 2px; }
.day.today .w { color: var(--accent); font-weight: 700; }
.day.selected { background: var(--text); color: #fff; }
.day.selected .w { color: #c9cfc4; }
.day:disabled { opacity: .3; cursor: not-allowed; }

/* ── 수업 목록 ── */
.classes { display: grid; gap: 10px; margin-top: 14px; }
.cls {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  border-left: 4px solid var(--c, var(--accent));
}
.cls.past { opacity: .45; }
.cls__time b { display: block; font-size: 17px; }
.cls__time span { font-size: 12px; color: var(--muted); }
.cls__name { font-weight: 700; }
.cls__sub { font-size: 13px; color: var(--muted); }
.seats { display: flex; gap: 3px; margin-top: 7px; flex-wrap: wrap; }
.seats i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); }
.seats i.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.seat-text { font-size: 12px; color: var(--muted); margin-left: 6px; }
.seat-text.full { color: var(--warn); font-weight: 700; }
.cls__act { text-align: right; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.tag.booked { background: var(--accent-soft); color: var(--accent); }
.tag.waiting { background: var(--warn-soft); color: var(--warn); }
.tag.attended { background: var(--accent-soft); color: var(--accent); }
.tag.absent { background: var(--danger-soft); color: var(--danger); }
.tag.cancelled { background: #eee; color: #999; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ── 내 예약 ── */
.mine { display: grid; gap: 8px; }
.mine__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mine__row:last-child { border-bottom: 0; }
.mine__row b { display: block; font-size: 15px; }
.mine__row small { color: var(--muted); }

.policy { font-size: 13px; color: var(--muted); padding-left: 18px; margin: 0; }
.policy li { margin: 4px 0; }

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

/* ── 토스트 ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--text); 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) {
  .cls { grid-template-columns: 52px 1fr; }
  .cls__act { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
  .day .d { font-size: 16px; }
  .pass__left b { font-size: 40px; }
}
