/* ═══════════════════════════════════════════════════════════════════════════
   享蒸の碧璽奈米汗蒸舘 — Design System
   精緻和風／韓式｜象牙白紙感 × 墨色明朝 × 低調金
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* 底色：象牙白／米紙 */
  --paper:      #F3ECDE;
  --paper-deep: #EAE0CD;
  --surface:    #FCFAF4;
  --surface-2:  #FFFFFF;

  /* 墨色文字 */
  --ink:        #2C241B;
  --ink-soft:   #6E6353;
  --ink-faint:  #A99E8B;

  /* 低調金／韓式赤茶 */
  --gold:       #A67C3D;
  --gold-deep:  #8A6530;
  --gold-tint:  #F0E6D2;
  --clay:       #B4614A;

  /* 狀態色 */
  --green:      #5B8C61;
  --green-bg:   #E7EFE3;
  --red:        #B4544A;
  --red-bg:     #F3E2DE;
  --amber:      #B08430;
  --amber-bg:   #F3E9CF;

  /* 線／分隔 */
  --line:       #E2D7C2;
  --line-soft:  #ECE3D2;

  /* 陰影 */
  --shadow-sm:  0 1px 2px rgba(60,45,25,.05), 0 4px 14px rgba(60,45,25,.05);
  --shadow-md:  0 2px 6px rgba(60,45,25,.06), 0 12px 34px rgba(60,45,25,.09);

  /* 間距 */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 24px;
  --space-xl: 36px;

  /* 圓角 */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  /* 排版 */
  --font-sans:    'Noto Sans TC', -apple-system, 'Segoe UI', sans-serif;
  --font-serif:   'Noto Serif TC', serif;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* iOS：連點不觸發 double-tap zoom（捲動、捏合縮放不受影響） */
* { touch-action: manipulation; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  /* 捲動到頂再下拉時不外洩給 LINE（避免誤觸 LIFF 下滑收合） */
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(120% 55% at 50% 0%, #F8F2E7 0%, transparent 60%),
    radial-gradient(90% 40% at 50% 100%, rgba(166,124,61,.05) 0%, transparent 70%);
}

/* ── 統一線條圖示 ─────────────────────────────────────────────────────────── */
.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* 內嵌於文字標籤前的小圖示 */
.ic-inline {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  color: var(--gold-deep);
  margin-right: 7px;
}

/* 圓角方塊圖示底 */
.ic-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.ic-box .ic { width: 21px; height: 21px; }

/* ── 畫面切換系統 ────────────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateX(24px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.screen.slide-out {
  opacity: 0;
  transform: translateX(-24px);
}

/* ── 載入畫面 ──────────────────────────────────────────────────────────── */
#screen-loading {
  justify-content: center;
  align-items: center;
  background: var(--paper);
  transform: none;
}
.loading-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
.steam-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
  animation: steam-expand 3s ease-out infinite;
}
.ring1 { width: 100px; height: 100px; animation-delay: 0s; }
.ring2 { width: 160px; height: 160px; animation-delay: 0.8s; }
.ring3 { width: 220px; height: 220px; animation-delay: 1.6s; }
@keyframes steam-expand {
  0%   { opacity: 0.5; transform: scale(0.4); }
  100% { opacity: 0;   transform: scale(1); }
}
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.brand-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  color: var(--gold-deep);
  filter: drop-shadow(0 4px 14px rgba(166,124,61,.28));
}
.brand-icon .ic { width: 46px; height: 46px; stroke-width: 1.4; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 4px;
  margin-top: var(--space-sm);
}
.brand-sub {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 5px;
  margin-top: 6px;
}

/* 載入點動畫 */
.loading-dots { display: flex; gap: 8px; }
.loading-dots span {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-9px); opacity: 1; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  padding: max(env(safe-area-inset-top), 14px) var(--space-lg) var(--space-md);
  background: rgba(243, 236, 222, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  gap: var(--space-sm);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.header-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #FBF3E0, #EFE1C4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--gold-deep);
}
.header-icon .ic { width: 23px; height: 23px; }
.header-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1.15;
}
.header-subtitle {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin-top: 2px;
}
.header-center { flex: 1; text-align: center; }
.header-center .header-title { font-size: 17px; color: var(--ink); }
.header-spacer { width: 34px; flex-shrink: 0; }
.step-indicator {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  margin-top: 3px;
}

/* ── 卡片（原 glass-card） ─────────────────────────────────────────────────── */
.glass-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.glass-card:active { transform: scale(0.99); }

/* ── 按鈕 ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3A2E20, #2A2118);
  color: #FCF7EC;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 1px;
  box-shadow: 0 8px 22px rgba(42,33,24,.24);
}
.btn-primary:active { transform: scale(0.98); filter: brightness(1.1); }
.btn-primary .ic { width: 19px; height: 19px; color: var(--gold); stroke-width: 1.9; }
.btn-glow { box-shadow: 0 10px 26px rgba(42,33,24,.26); }
.btn-glow:hover { box-shadow: 0 12px 30px rgba(42,33,24,.32); }
.btn-arrow { display: inline-flex; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-secondary .ic { width: 18px; height: 18px; color: var(--gold-deep); }
.btn-secondary:active { background: var(--surface); }

.btn-back {
  background: none;
  border: none;
  color: var(--gold-deep);
  cursor: pointer;
  padding: 4px;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-back .ic { width: 22px; height: 22px; }
.btn-back:active { background: var(--surface); }

/* ── 首頁 ────────────────────────────────────────────────────────────────── */
.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom, 24px));
}

/* Hero 問候 */
.hero { padding: var(--space-xs) 2px 2px; }
.hero .greet { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 6px;
}
.hero h1 .accent { color: var(--gold-deep); }

/* 小抬頭 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--ink-faint);
  margin: var(--space-xs) 2px calc(-1 * var(--space-xs));
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 用戶卡 */
.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.user-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(150deg, #F3E7CE, #E7D5B2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  flex-shrink: 0;
  overflow: hidden;
}
.user-avatar .ic { width: 24px; height: 24px; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 16px; font-weight: 500; color: var(--ink); }
.user-tag { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.user-badge {
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
  white-space: nowrap;
}

/* 資訊卡 */
.info-card { overflow: hidden; }
.info-card-inner { display: flex; flex-direction: column; }
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}
.info-divider { height: 1px; background: var(--line-soft); margin: 0 20px; }
.info-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.info-icon .ic { width: 20px; height: 20px; }
.info-label { font-size: 12px; color: var(--ink-faint); letter-spacing: 1px; }
.info-value { font-size: 15px; color: var(--ink); margin-top: 3px; font-weight: 500; }
.info-value strong, .info-value .gold-text { font-family: var(--font-serif); color: var(--gold-deep); font-weight: 600; }
.info-sub { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.gold-text { color: var(--gold-deep); font-weight: 600; }
.muted-text { color: var(--ink-faint); }

/* 首訪限定優惠橫幅 */
.promo-banner {
  padding: 18px 20px;
  border: 1px solid #E7D3A6;
  background: linear-gradient(140deg, #FBF4E4, #F5E9D1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166,124,61,.13), transparent 70%);
}
.promo-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}
.promo-banner-tag .ic { width: 15px; height: 15px; }
.promo-banner-items {
  display: flex;
  align-items: stretch;
  gap: 14px;
  position: relative;
}
.promo-banner-item { flex: 1; }
.promo-banner-sep { width: 1px; background: #E7D3A6; }
.promo-banner-title { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.promo-banner-price { font-family: var(--font-serif); font-size: 15px; color: var(--ink); }
.promo-banner-price strong { font-size: 24px; color: var(--ink); margin: 0 1px; font-weight: 600; }
.promo-banner-price span { font-size: 12px; color: var(--ink-soft); font-family: var(--font-sans); }
.promo-banner-note { font-size: 11.5px; color: var(--gold-deep); margin-top: 2px; }
.promo-banner-foot {
  margin-top: var(--space-sm);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: .3px;
}

/* ── 日曆 ────────────────────────────────────────────────────────────────── */
.date-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0 2px;
}
.cal-month { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); }
/* 月份按鈕：可點開月曆直接跳日期 */
.cal-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.cal-picker-btn:active { background: var(--surface); }
.cal-picker-btn .ic { width: 17px; height: 17px; color: var(--gold-deep); }
.cal-picker-btn .ic-caret { width: 14px; height: 14px; color: var(--ink-faint); }
.today-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-tint);
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.today-chip:active { background: var(--paper-deep); }
/* 月曆上／下個月：文字＋箭頭，一眼可懂 */
.cal-month-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.cal-month-btn .ic { width: 14px; height: 14px; }
.cal-month-btn:active:not(:disabled) { background: var(--surface); }
.cal-month-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-sheet-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  padding: var(--space-sm) 0;
}
.cal-weekdays .closed-day { color: var(--clay); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  position: relative;
}
.cal-day:not(.disabled):not(.closed):not(.empty):active,
.cal-day.selected {
  background: linear-gradient(135deg, #3A2E20, #2A2118);
  color: #FCF7EC;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(42,33,24,.24);
}
.cal-day.today { border-color: var(--gold); color: var(--gold-deep); font-weight: 600; }
.cal-day.empty { cursor: default; }
.cal-day.disabled, .cal-day.closed {
  color: var(--ink-faint);
  cursor: not-allowed;
  opacity: 0.45;
}
.cal-day.closed { color: var(--clay); opacity: 0.4; }
.cal-hint { font-size: 12px; color: var(--ink-soft); text-align: center; }

/* ── 時段選擇 ─────────────────────────────────────────────────────────────── */
.slots-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.slot-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  color: var(--ink-soft);
  font-size: 14px;
}
.slots-grid { display: flex; flex-direction: column; gap: var(--space-sm); }
.slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.slot-card:not(.slot-full):active {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(166,124,61,.18);
}
.slot-card.slot-full { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.slot-time { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.slot-end { font-size: 13px; color: var(--ink-soft); }
.slot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.slot-capacity { font-size: 12px; color: var(--ink-soft); }
.slot-dots { display: flex; gap: 4px; }
.slot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.slot-dot.filled { background: var(--gold); }
.slot-dot.available { background: var(--green); }
.slot-badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.badge-available { background: var(--green-bg); color: var(--green); }
.badge-full      { background: var(--red-bg);   color: var(--red); }
.badge-limited   { background: var(--amber-bg); color: var(--amber); }
.slots-empty { text-align: center; color: var(--ink-soft); font-size: 14px; padding: var(--space-xl); }

/* ── 確認頁 ──────────────────────────────────────────────────────────────── */
.confirm-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.confirm-card { padding: var(--space-lg); }
.confirm-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line-soft);
}
.confirm-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-tint);
  border: 1px solid var(--line-soft);
  color: var(--gold-deep);
}
.confirm-icon .ic { width: 22px; height: 22px; }
.confirm-header h2 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.confirm-rows { display: flex; flex-direction: column; gap: 2px; }
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label {
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
}
.confirm-label .ic { width: 16px; height: 16px; margin-right: 8px; color: var(--gold-deep); }
.confirm-value { font-weight: 500; color: var(--ink); text-align: right; }
.confirm-row-total { padding-top: 14px; }
.confirm-row-total .confirm-value { font-family: var(--font-serif); font-size: 18px; color: var(--gold-deep); font-weight: 600; }
.confirm-note {
  margin-top: var(--space-md);
  padding: 14px 16px;
  background: var(--gold-tint);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gold-deep);
}

/* ── 成功頁 ──────────────────────────────────────────────────────────────── */
.success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-lg);
}
.success-animation {
  position: relative;
  width: 96px; height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: success-pulse 1.5s ease-out forwards;
}
@keyframes success-pulse {
  0%   { opacity: 1; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.5; transform: scale(1); }
}
.success-checkmark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3A2E20, #2A2118);
  color: #FCF7EC;
  display: grid; place-items: center;
  animation: check-pop 0.5s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.success-checkmark .ic { width: 30px; height: 30px; stroke-width: 2.2; }
@keyframes check-pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--ink); text-align: center; }
.success-sub { font-size: 14px; color: var(--ink-soft); text-align: center; }
.success-card { width: 100%; padding: var(--space-lg); }

/* ── 我的預約 ─────────────────────────────────────────────────────────────── */
.my-bookings-content { flex: 1; padding: var(--space-lg); }
.my-bookings-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.booking-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.booking-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}
.booking-item-time { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.booking-item-code { font-size: 12px; color: var(--gold-deep); font-weight: 600; }
.booking-item-date { font-size: 13px; color: var(--ink-soft); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink);
  color: #FCF7EC;
  border-radius: var(--radius-full);
  padding: 13px 24px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(42,33,24,.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.d-none { display: none !important; }

/* ── 填寫資料頁 ──────────────────────────────────────────────────────────── */
.details-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.selected-summary {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}
.summary-icon {
  width: 20px; height: 20px;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.form-section { display: flex; flex-direction: column; gap: 9px; }
.form-label {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* 人數選擇：全寬膠囊，− ＋ 分置兩端、人數置中 */
.hc-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.hc-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.hc-btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.hc-btn:active:not(:disabled) { background: var(--gold-tint); border-color: var(--gold); }
.hc-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.hc-display { display: flex; align-items: baseline; gap: 4px; }
.hc-number { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--ink); min-width: 20px; text-align: center; }
.hc-unit { font-size: 13px; color: var(--ink-soft); }
.hc-cap-hint { font-size: 12px; color: var(--clay); }

/* 表單輸入框 */
.form-input, .form-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.form-textarea { resize: none; }
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(166,124,61,.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-faint); }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 27, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 1;
  transition: opacity 0.3s;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: flex !important;
}
.modal-card {
  width: 100%;
  max-width: 320px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-md);
}
.modal-overlay.hidden .modal-card { transform: scale(0.9); }
.modal-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); text-align: center; }
.modal-text { font-size: 14px; color: var(--ink-soft); text-align: center; line-height: 1.6; }
.modal-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.modal-btn { flex: 1; padding: 13px; }

.btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(180,84,74,.28);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.btn-danger:active { background: #EED6D0; }
.btn-cancel-sm {
  margin-top: var(--space-sm);
  padding: 9px 16px;
  font-size: 13px;
  width: auto;
  align-self: flex-start;
  border-radius: var(--radius-full);
}

/* ── 會員建檔 ─────────────────────────────────────────────────────────────── */
.registration-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}
.reg-header { text-align: center; margin-bottom: var(--space-md); }
.reg-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-sm);
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--gold-tint);
  border: 1px solid var(--line);
  color: var(--gold-deep);
}
.reg-icon .ic { width: 32px; height: 32px; }
.reg-title { font-family: var(--font-serif); font-size: 23px; font-weight: 600; color: var(--ink); }
.reg-sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ── 付款方式卡 ───────────────────────────────────────────────────────────── */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }
.payment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.payment-card:active { transform: scale(0.99); }
.payment-card.selected {
  border-color: var(--gold);
  background: var(--gold-tint);
  box-shadow: 0 4px 16px rgba(166,124,61,.16);
}
.payment-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--gold-tint);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.payment-icon .ic { width: 23px; height: 23px; }
.payment-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.payment-name { font-size: 16px; font-weight: 500; color: var(--ink); }
.payment-desc { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.payment-price { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--gold-deep); }
.payment-price .ic { width: 20px; height: 20px; color: var(--ink-faint); }

.badge-recommend {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #FCF7EC;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

/* ── 購買套票 ─────────────────────────────────────────────────────────────── */
.package-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
}
.package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}
.package-name { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.package-price { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--gold-deep); }
.package-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line-soft);
}
.voucher-balance {
  background: linear-gradient(140deg, #FBF4E4, #F5E9D1);
  border: 1px solid #E7D3A6;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}
.balance-label { font-size: 14px; color: var(--ink-soft); }
.balance-value { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--gold-deep); }

/* ── 日期＋時段合併畫面（availability-first）─────────────────────────────── */
/* 日期條：連續 60 日、可左右滑動（LIFF 全畫面寬，向兩側出血） */
.date-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 0 calc(-1 * var(--space-lg));
  padding: 2px var(--space-lg) 8px;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-strip-month {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
  padding: 8px 3px;
  border-left: 1px dashed var(--line);
  letter-spacing: 2px;
}
.date-cell {
  flex: 0 0 52px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 0 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.date-cell-wd  { font-size: 11px; color: var(--ink-faint); }
.date-cell-day { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.date-cell-tag { font-size: 9px; color: var(--clay); min-height: 12px; line-height: 12px; }
.date-cell.today { border-color: var(--gold); }
.date-cell.selected {
  background: linear-gradient(135deg, #3A2E20, #2A2118);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(42,33,24,.24);
}
.date-cell.selected .date-cell-wd,
.date-cell.selected .date-cell-day { color: #FCF7EC; }
.date-cell.disabled, .date-cell.closed { opacity: 0.4; cursor: not-allowed; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.filter-chip:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-weight: 600;
}
.filter-chip input { accent-color: var(--gold); margin: 0; }

.badge-private { background: var(--gold-tint); color: var(--gold-deep); }

/* ── 時段選項 Bottom Sheet ────────────────────────────────────────────────── */
.sheet-overlay { align-items: flex-end; padding: 0; }
.sheet-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-sm) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-md);
  /* 讓 JS 完整接管觸控（配合 preventDefault），下滑手勢不會外洩給 LINE 收合 LIFF */
  touch-action: none;
}
.modal-overlay.hidden .sheet-card { transform: translateY(100%); }
.sheet-handle {
  width: 42px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--line);
  margin: 0 auto 2px;
}
.sheet-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}
.sheet-hc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
}
.option-card { margin: 0; }
.option-card.selected { border-color: var(--gold); background: var(--gold-tint); }
.opt-private-cap { font-size: 12px; color: var(--gold-deep); margin-top: 3px; }

/* ── 結帳頁 ──────────────────────────────────────────────────────────────── */
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.checkout-total .confirm-value { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--gold-deep); }
