/* ============================================================
   PS MASSAGE · Booking · Styles
   Monochrome — black / gray / white, high contrast
   ------------------------------------------------------------
   Colour is used only where it carries meaning:
     · white  = selected / active
     · gray   = inactive, booked, past
   (a muted red is kept for error text only, so mistakes stay visible)
   ============================================================ */

:root {
  --bg:        #000000;
  --bg-soft:   #101010;
  --card:      #191919;
  --card-2:    #242424;
  --line:      rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.11);
  --accent:    #ffffff;
  --accent-2:  #ededed;
  --text:      #ffffff;
  --text-2:    #cfcfcf;
  --text-3:    #979797;
  --text-4:    #666666;
  --ok:        #cfcfcf;
  --err:       #ffffff;
  --radius:    14px;
  --radius-sm: 10px;
  --safe-b:    env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性必须无条件生效：类选择器里的 display 会盖掉浏览器默认的
   [hidden]{display:none}（例如 .quota{display:flex}、.mail-state{display:flex}），
   否则该隐藏的元素会一直显示出来。 */
[hidden] { display: none !important; }

/* 兜底：button 的 UA 默认色是黑(buttontext)，会盖掉继承的白，
   统一继承 body 颜色；各按钮类的显式 color 声明优先级更高，不受影响 */
button { color: inherit; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  /* 底部固定操作栏约 110px + 安全区，再留一点余量，
     保证表单最后一项（同意条款 / 上门费说明）不会被压住 */
  padding-bottom: calc(150px + var(--safe-b));
  position: relative;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 38px 22px 28px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner { position: relative; }

.brand-mark {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 21px; letter-spacing: .5px;
  color: var(--text);
}
.brand-name {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 4.5px;
  color: var(--text);
}
.brand-sub {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--text-2);
}
.brand-tag {
  margin-top: 13px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-2);
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 26px 6px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step span {
  width: 31px; height: 31px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14.5px;
  display: grid; place-items: center;
  transition: .32s cubic-bezier(.4,0,.2,1);
  background: var(--bg-soft);
}
.step em {
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--text-3);
  transition: .32s;
}
.step.active span,
.step.done span {
  border-color: var(--accent);
  color: #000;
  background: var(--accent);
}
.step.active em, .step.done em { color: var(--text); }
.step.done span { background: var(--accent); border-color: var(--accent); color: #000; }

.step-line { flex: 1; height: 1px; background: var(--line-soft); margin: 0 8px 18px; position: relative; }
.step-line i { position: absolute; inset: 0; width: 0; background: var(--accent); transition: width .4s; }
.steps[data-progress="2"] .step-line:nth-of-type(2) i { width: 100%; }
.steps[data-progress="3"] .step-line:nth-of-type(2) i,
.steps[data-progress="3"] .step-line:nth-of-type(4) i { width: 100%; }

/* ---------- Screens ---------- */
.screen { display: none; padding: 16px 20px 0; animation: fadeUp .3s cubic-bezier(.4,0,.2,1); }
.screen.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.q-title { font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.q-title.small { font-size: 17.5px; margin-top: 4px; }
.q-hint { margin-top: 6px; font-size: 14.5px; color: var(--text-3); margin-bottom: 18px; }

/* 加购搭配规则的提示（例如磨砂必须配 90 分钟以上项目） */
.step-hint {
  margin: -8px 0 14px;
  padding: 11px 13px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.09);
}
.step-hint[hidden] { display: none; }

/* ---------- Service cards ---------- */
.service-list { display: flex; flex-direction: column; gap: 12px; }
.service-card {
  position: relative;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: .22s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.service-card.on {
  border-color: var(--accent);
  background: var(--card-2);
}
.service-card .sv-top { display: flex; align-items: baseline; gap: 8px; padding-right: 38px; }
.service-card h3 { font-size: 18.5px; font-weight: 700; letter-spacing: .2px; line-height: 1.35; color: var(--text); }
.service-card .sv-badge {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--bg-soft);
}
.service-card .sv-pressure { margin-top: 5px; font-size: 14px; color: var(--text-2); letter-spacing: .2px; }
.service-card .sv-desc {
  margin-top: 9px; font-size: 15px; color: var(--text-2); line-height: 1.6;
  /* 全部显示 —— 益处/功能一目了然，不再截断 */
  display: block;
}
.service-card.on .sv-desc { display: block; }

.sv-badge.addon {
  border-style: dashed;
  border-color: rgba(255,255,255,.55);
  color: var(--text);
}

/* 加购型项目（如 Full Body Scrub）：虚线卡片 + 常显搭配说明 */
.service-card.is-addon { border-style: dashed; }
.service-card.is-addon .sv-dur-hint { display: block; }
.service-card.is-addon .sv-check { border-style: dashed; }
.service-card.is-addon.on { border-style: solid; }
.service-card.is-addon.on .sv-check { border-style: solid; }

/* 选中后才出现的引导语 */
.sv-dur-hint {
  display: none;
  margin-top: 11px;
  font-size: 13.5px; letter-spacing: .3px;
  color: var(--text-3);
}
.service-card.on .sv-dur-hint { display: block; }

/* duration rows — tappable, inside the card */
.sv-opts { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.sv-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%;
  font-family: var(--font);
  font-size: 16.5px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition: .2s cubic-bezier(.4,0,.2,1);
}
.sv-opt:active { transform: scale(.99); }
.sv-opt .o-d { color: var(--text-2); }
.sv-opt .o-p { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.sv-opt .o-tick { display: none; font-size: 16px; font-weight: 700; }
.sv-opt.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.sv-opt.on .o-d, .sv-opt.on .o-p, .sv-opt.on .o-tick { color: #000; }
.sv-opt.on .o-tick { display: inline; }

.sv-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 11px;
  border-left: 2px solid var(--line);
  background: rgba(255,255,255,.03);
  line-height: 1.6;
}

.sv-check {
  position: absolute; right: 16px; top: 16px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: .24s;
}
.service-card.on .sv-check { background: var(--accent); border-color: var(--accent); }
.sv-check svg { width: 13px; height: 13px; stroke: #000; stroke-width: 2.8; fill: none; opacity: 0; transition: .2s; }
.service-card.on .sv-check svg { opacity: 1; }

/* ---------- Duration chips ---------- */
.duration-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  font-size: 16px;
  transition: .22s;
  display: flex; align-items: center; gap: 8px;
}
.chip .c-p { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.on { border-color: var(--accent); background: rgba(255,255,255,.14); color: var(--text); }

/* in-call / out-call switch */
#locRow .chip {
  flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 11px 20px; border-radius: 14px; font-weight: 600;
}
.chip .c-s { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.chip.on .c-s { color: var(--text-2); }
/* contact-method switch (WhatsApp / WeChat / Phone) */
#ctRow .chip {
  flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 9px 16px; border-radius: 14px; font-weight: 600; font-size: 15.5px;
}
#ctRow .chip .c-s { font-size: 12px; }
.hint { font-size: 13px; color: var(--text-3); margin-top: 7px; line-height: 1.5; }

/* ---------- Date strip ---------- */
.date-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-item {
  flex: 0 0 auto;
  width: 66px;
  padding: 13px 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  text-align: center;
  transition: .24s cubic-bezier(.4,0,.2,1);
}
.date-item .d-w { font-size: 13px; color: var(--text-3); letter-spacing: .5px; }
.date-item .d-d { font-size: 22px; font-weight: 700; margin: 3px 0 2px; font-variant-numeric: tabular-nums; }
.date-item .d-m { font-size: 12px; color: var(--text-3); }
.date-item.on { border-color: var(--accent); background: rgba(255,255,255,.08); }
.date-item.on .d-w, .date-item.on .d-m { color: var(--text-2); }
.date-item.on .d-d { color: var(--text); }
.date-item.disabled { opacity: .3; }

/* a day the studio is off (set in the admin) */
.date-item.closed { opacity: .42; }
.date-item .d-closed {
  margin-top: 4px; font-size: 10.5px; letter-spacing: .6px;
  color: var(--text-3); text-transform: uppercase;
}
.date-item.on .d-closed { color: var(--text-2); }

/* ---------- Legend + quota ---------- */
.legend { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.free { background: var(--accent); }
.dot.busy { background: var(--text-4); }
.dot.past { background: var(--text-4); opacity: .5; }
/* rest & cleaning window — hollow dot */
.dot.buf { background: transparent; border: 1.5px solid var(--text-3); }

.quota {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14.5px; color: var(--text-2);
  padding: 10px 13px; margin-bottom: 15px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.quota b { color: var(--text); font-weight: 700; }
.quota.full { border-color: var(--line); color: var(--text-2); }

/* ---------- Slots ---------- */
.slot-wrap { min-height: 180px; }
.slot-loading { text-align: center; padding: 46px 0; color: var(--text-2); font-size: 15.5px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-group-title {
  grid-column: 1 / -1;
  font-size: 13.5px;
  letter-spacing: 1.4px;
  color: var(--text-2);
  margin: 12px 0 3px;
  text-transform: uppercase;
}
.slot {
  padding: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text-2);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
  transition: .2s;
}
.slot:disabled { opacity: .3; }
.slot.busy { color: var(--text-4); text-decoration: line-through; }
.slot.past { color: var(--text-4); opacity: .45; }
/* blocked by another session's rest & cleaning window (or closing time) */
.slot.buffer {
  color: var(--text-3);
  opacity: .5;
  border-style: dashed;
  background: transparent;
}
/* closed by the studio in the admin (day off or a blocked window) */
.slot.closed {
  color: var(--text-3);
  opacity: .5;
  border-style: dashed;
  background: transparent;
}
.slot.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.slot-empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- Summary ---------- */
.summary-card {
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 20px;
}
.summary-card .sm-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 16px; }
.summary-card .sm-row + .sm-row { border-top: 1px dashed var(--line-soft); }
.summary-card .sm-k { color: var(--text-3); flex: 0 0 auto; }
.summary-card .sm-v { color: var(--text); text-align: right; font-weight: 600; word-break: break-word; }
.summary-card .sm-v.gold { color: var(--text); font-weight: 700; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 19px; }
.field label { display: block; font-size: 15.5px; color: var(--text-2); margin-bottom: 8px; }
.field label b { color: var(--text); font-weight: 700; }
.field label .opt { color: var(--text-3); font-size: 14px; margin-left: 4px; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 17.5px;
  font-family: var(--font);
  outline: none;
  transition: .22s;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--card-2);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.field.err input, .field.err textarea { border-color: var(--err); }
.counter { text-align: right; font-size: 13.5px; color: var(--text-3); margin-top: 5px; }
/* 错误提示：纯灰度 + 边框 + 加粗，不用红色 */
.err {
  font-size: 14.5px; color: var(--text); font-weight: 600;
  margin-top: 6px; min-height: 0;
  padding: 7px 11px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px; background: rgba(255,255,255,.07);
}
.err:empty { display: none; }

.agree { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.agree input { margin-top: 3px; width: 20px; height: 20px; accent-color: #000; flex: 0 0 auto; }

/* add-ons */
.addon-box { display: flex; flex-direction: column; gap: 11px; }
.addon {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 15.5px;
  color: var(--text-2);
  cursor: pointer;
}
.addon input { margin-top: 3px; width: 20px; height: 20px; accent-color: #000; flex: 0 0 auto; }
.addon .a-t { color: var(--text); }
.addon .a-p { color: var(--text); font-weight: 700; }

/* info note */
.info-note {
  padding: 14px 15px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.info-note h4 { font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; font-weight: 700; }
.info-note .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.info-note .row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
/* out-call: the travel fee is confirmed by David after booking */
.info-note .oc-confirm {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- Action bar ---------- */
.actionbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 15px 20px calc(15px + var(--safe-b));
  display: flex; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.95) 34%, var(--bg) 100%);
  backdrop-filter: blur(12px);
  z-index: 40;
}
.btn-primary, .btn-ghost {
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: .6px;
  padding: 17px 0;
  cursor: pointer;
  transition: .24s cubic-bezier(.4,0,.2,1);
}
.btn-primary {
  flex: 1;
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-primary:disabled { opacity: .35; }
.btn-ghost {
  flex: 0 0 98px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 16.5px;
}
.btn-ghost:active { background: var(--card-2); }
.wide { width: 100%; }

.footnote {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  padding: 0 20px 18px;
  letter-spacing: .3px;
}

/* ---------- Success modal ----------
   弹窗内容可能比屏幕高（票据 + 地址 + 状态说明）：
   用 flex + margin:auto 居中 —— 内容超高时自动从顶部开始并可滚动，
   不会像 grid/place-items:center 那样把底部裁掉。 */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px;
  z-index: 100;
  animation: fadeIn .28s;
}
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-card {
  width: 100%; max-width: 420px;
  margin: auto;               /* 有空间时垂直居中；超高时贴顶并可滚动 */
  padding: 32px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 28px 70px -24px #000;
  text-align: center;
  animation: popIn .4s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(12px) } to { opacity: 1; transform: none } }
.tick { width: 66px; height: 66px; margin: 0 auto 18px; }
.tick circle { stroke: var(--accent); stroke-width: 1.8; opacity: .4; }
.tick path { stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; animation: draw .55s .18s forwards cubic-bezier(.65,0,.35,1); }
@keyframes draw { to { stroke-dashoffset: 0 } }
.modal-card h2 { font-size: 23px; font-weight: 700; letter-spacing: .4px; }
.modal-sub { margin-top: 7px; font-size: 15.5px; color: var(--text-2); }

.ticket {
  margin: 20px 0 16px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  text-align: left;
}
.ticket .tk-row, .ticket .sm-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding: 7px 0; }
.ticket .tk-row + .tk-row, .ticket .sm-row + .sm-row { border-top: 1px solid var(--line-soft); }
.ticket .tk-k, .ticket .sm-k { color: var(--text-3); flex: 0 0 auto; }
.ticket .tk-v, .ticket .sm-v { color: var(--text); text-align: right; font-weight: 600; word-break: break-word; }
.ticket .tk-v.gold, .ticket .sm-v.gold { color: var(--text); font-weight: 700; }
.ticket .tk-code {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-family: var(--serif);
  letter-spacing: 3.5px;
  font-size: 18.5px;
  color: var(--text);
  font-weight: 700;
}
.modal-note { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; line-height: 1.6; }

/* 邮件发送状态：发成功 / 未填邮箱 / 发送失败（都提示截屏兜底） */
.mail-state {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--text-2);
  text-align: left;
  line-height: 1.55;
}
.mail-state.ok    { border-color: rgba(255,255,255,.5); color: var(--text); }
.mail-state.wait  { color: var(--text-2); }
.mail-state.warn  { border-color: rgba(255,255,255,.5); color: var(--text); font-weight: 600; }
.mail-state .ms-i { flex: 0 0 auto; font-size: 15px; line-height: 1.5; }
.mail-state b { color: var(--text); word-break: break-all; }

/* 弹窗底部动作区：复制 + 完成 */
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-secondary {
  width: 100%;
  padding: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  letter-spacing: .4px;
  cursor: pointer;
  transition: .22s;
}
.btn-secondary:active { background: var(--card-2); }

/* ---------- Deposit (定金) ---------- */
.deposit {
  margin: 0 0 16px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  text-align: left;
}
.deposit[hidden] { display: none; }
.dp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dp-amt {
  font-size: 24px; font-weight: 700; letter-spacing: .5px;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.dp-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: .3px; }
.dp-sub { margin-top: 7px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

.dp-methods { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.dp-method {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  transition: .2s cubic-bezier(.4,0,.2,1);
}
.dp-method:active { transform: scale(.99); background: var(--card-2); }
.dp-method .m-l { text-align: left; }
.dp-method .m-n { display: block; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.dp-method .m-s { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text-3); }
.dp-method .m-r {
  flex: 0 0 auto; text-align: right;
  font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dp-method .m-r small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-3); letter-spacing: .3px; }

.dp-ref {
  margin-top: 13px;
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.dp-ref b {
  font-family: var(--serif);
  font-size: 16.5px; letter-spacing: 2px; color: var(--text);
}
.dp-copy {
  margin-left: 7px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12.5px;
  cursor: pointer;
}
.dp-copy:active { background: var(--card-2); }
.dp-note { margin-top: 11px; font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.dp-note:empty { display: none; }

.dp-paid {
  width: 100%;
  margin-top: 14px;
  padding: 14px 0;
  border: 1px dashed rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  cursor: pointer;
}
.dp-paid[hidden] { display: none; }
.dp-paid:active { background: var(--card-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 130px;
  transform: translateX(-50%);
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  z-index: 200;
  animation: fadeIn .22s;
  max-width: 84vw;
  text-align: center;
}
.toast.bad { border-color: rgba(255,255,255,.55); color: var(--text); }

/* ---------- Honeypot (invisible to humans) ---------- */
.hp { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   客人自助管理页 manage.html
   ============================================================ */
.mg { max-width: 560px; margin: 0 auto; padding: 26px 18px calc(40px + var(--safe-b)); }

.mg-head { text-align: center; margin-bottom: 22px; }
.mg-head .brand-mark {
  width: 46px; height: 46px; margin: 0 auto 12px; border: 1px solid var(--line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; letter-spacing: .14em; color: var(--text);
}
.mg-head h1 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: .02em; }
.mg-sub { margin-top: 6px; color: var(--text-3); font-size: 13px; letter-spacing: .08em; }

.mg-box {
  padding: 22px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--card); color: var(--text-2); font-size: 15px; text-align: center;
}
.mg-err { border-color: var(--line); }
.mg-err-t { color: var(--text); font-size: 16px; margin-bottom: 8px; }
.mg-err-s { color: var(--text-3); font-size: 13px; line-height: 1.6; }

.mg-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.mg-ref {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft);
}
.mg-ref span { color: var(--text-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.mg-ref b { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; }

.mg-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px;
}
.mg-row:last-of-type { border-bottom: 0; }
.mg-row .k { flex: 0 0 104px; color: var(--text-3); font-size: 13px; padding-top: 1px; }
.mg-row .v { flex: 1; color: var(--text-2); line-height: 1.55; word-break: break-word; }
.mg-row.hi .v { color: var(--text); }

.mg-lock {
  margin: -4px 18px 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); color: var(--text-3); font-size: 13px; line-height: 1.55;
}

/* 定金区块 */
.mg-deposit { padding: 16px 18px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); }
.mg-dep-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.mg-dep-head b { font-size: 22px; font-family: var(--serif); }
.mg-dep-head span { color: var(--text-2); font-size: 14px; }
.mg-dep-sub { color: var(--text-3); font-size: 13px; line-height: 1.6; }
.mg-pays { display: grid; gap: 10px; margin: 14px 0 10px; }
.mg-pay {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card-2); color: var(--text); text-decoration: none;
}
.mg-pay .m-l { display: flex; flex-direction: column; gap: 2px; }
.mg-pay .m-l b { font-size: 15px; font-weight: 600; }
.mg-pay .m-l small { color: var(--text-3); font-size: 11px; }
.mg-pay .m-r { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 18px; }
.mg-pay .m-r small { color: var(--text-3); font-size: 11px; }
.mg-dep-note { color: var(--text-3); font-size: 12px; line-height: 1.6; }
.mg-dep-note b { color: var(--text); }

/* 操作区 */
.mg-action { padding: 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; }
.mg-acts { display: grid; gap: 10px; }
.mg-btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--accent);
  background: var(--accent); color: #000; font-size: 15px; cursor: pointer;
  font-family: inherit;
}
.mg-btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.mg-btn.danger { background: transparent; color: var(--err); border-color: var(--line); }
.mg-btn:disabled { opacity: .5; cursor: default; }

.mg-req { display: grid; gap: 8px; }
.mg-req-t { color: var(--text); font-size: 15px; }
.mg-req-s { color: var(--text-3); font-size: 13px; line-height: 1.6; margin-bottom: 4px; }
.mg-done { color: var(--text-3); font-size: 14px; line-height: 1.6; }

.mg-foot { margin-top: 22px; text-align: center; }
.mg-foot a { color: var(--text-3); font-size: 13px; text-decoration: none; }

.mg-toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-b));
  transform: translateX(-50%); padding: 13px 24px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--text); font-size: 15px; z-index: 200; animation: fadeIn .22s;
  max-width: 84vw; text-align: center;
}

@media (max-width: 380px) {
  .mg-row { flex-direction: column; gap: 4px; }
  .mg-row .k { flex: none; }
}

/* In-call 地址锁定：定金未付时成功票据里只给区级信息 */
.tk-lock {
  margin: 2px 0 10px; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px dashed rgba(255,255,255,.22); color: var(--text-3);
  font-size: 12.5px; line-height: 1.55;
}
.tk-lock.ok { border-style: solid; color: var(--text-2); }

/* ---------- Guests: 1 / 2 (side by side) ---------- */
/* 移到步骤 1 顶部时，做成醒目卡片（左侧强调条），一眼能看到 */
.party-field {
  margin-top: 18px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card-2, var(--card));
}
.party-field > label { font-size: 16px; font-weight: 700; color: var(--text); }
#partyRow { margin-top: 11px; }
#partyRow .chip {
  flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 11px 20px; border-radius: 14px; font-weight: 600;
}
#partyRow .chip.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
}
#partyRow .chip.on .c-s { color: rgba(0,0,0,.6); }
#partyRow .chip .c-s { font-size: 12.5px; }
.party-note { margin-top: 9px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
