:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #1a6b5c;
  --accent-soft: #f3f4f6;
  --accent-dark: #145247;
  --hero-bg: #f3f4f6;
  --hero-bg-deep: #e5e7eb;
  --primary-dark: #4b5563;
  --btn-shadow: rgba(75, 85, 99, 0.28);
  --pink: #6b7280;
  --pink-soft: #f3f4f6;
  --line: #e5e7eb;
  --bg: #f3f4f6;
  --card: #ffffff;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.is-home-portal { background: #eef2f6; }
body.is-shop-browse { background: var(--bg); }
.hidden { display: none !important; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0; min-height: 100dvh; }
.step { display: none; }
.step.active { display: block; }
#step-shop.active { display: flex; flex-direction: column; min-height: 100dvh; }
#step-home.active { min-height: 100dvh; }

.steps-nav {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 24px;
  padding: 0 4px;
}
.step-dot {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  transition: color .2s, border-color .2s;
}
.step-dot.active { color: var(--accent); border-color: var(--accent); }
.step-dot.done { color: var(--ink); border-color: #d1d5db; }

/* ── 會員入口首頁 ── */
.home-portal { padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
.home-hero {
  margin: 12px 16px 0;
  background: var(--card);
  border-radius: 20px;
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(61, 79, 95, .08);
}
.home-profile { margin-bottom: 18px; }
.home-avatar {
  width: 80px; height: 80px; margin: 0 auto 12px;
  border-radius: 50%; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--muted);
  box-shadow: 0 2px 10px rgba(61, 79, 95, .1);
  overflow: hidden;
}
.home-avatar.has-photo { padding: 0; }
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-greeting { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.btn-hero {
  display: block; width: 100%;
  padding: 15px 24px; margin-top: 4px;
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  border: none; color: #fff; font-size: 16px; font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--btn-shadow, rgba(75, 85, 99, 0.28));
  cursor: pointer;
}
.btn-hero:active { transform: scale(.98); }
.home-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 16px 0;
}
.home-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 80px; padding: 14px 12px;
  background: var(--card); border: none; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.home-tile-ico { font-size: 20px; }
.home-menu-card {
  margin: 14px 16px 0; background: var(--card); border-radius: 16px;
  overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.home-menu-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 16px; border: none; background: none;
  border-bottom: 1px solid var(--line); text-align: left;
  font-size: 15px; color: var(--ink); cursor: pointer; text-decoration: none;
}
.home-menu-row:last-child { border-bottom: none; }
.home-menu-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  flex-shrink: 0;
}
.home-menu-ico.blue { background: #dbeafe; }
.home-menu-ico.teal { background: #ccfbf1; }
.home-menu-ico.orange { background: #ffedd5; }
.home-menu-ico.green { background: #dcfce7; }
.home-menu-text { flex: 1; font-weight: 500; }
.home-menu-chevron { color: #d1d5db; font-size: 18px; flex-shrink: 0; }
.home-shop-name { text-align: center; font-size: 11px; color: #9ca3af; margin-top: 20px; padding: 0 16px 8px; }
.home-menu-ico.pink { background: var(--accent-soft); }

/* ── 宣傳產品（點進才看內容） ── */
.promo-page-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.promo-back {
  width: 36px; height: 36px; border: none; background: #f3f4f6;
  border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); flex-shrink: 0;
}
.promo-page-title { font-size: 16px; font-weight: 700; flex: 1; margin: 0; }
.promo-list-card {
  margin: 12px 16px; background: var(--card); border-radius: 14px;
  border: 1px solid var(--line); overflow: hidden;
}
.promo-list-row { width: 100%; }
.promo-list-thumb {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.promo-detail-body { padding: 0 0 24px; }
.promo-detail-image img {
  width: 100%; max-height: 320px; object-fit: cover; display: block;
}
.promo-detail-card {
  margin: 12px 16px; padding: 16px; background: var(--card);
  border-radius: 14px; border: 1px solid var(--line);
}
.promo-detail-name { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.promo-detail-sub { font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.promo-detail-desc {
  font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 12px;
  white-space: pre-wrap;
}
.promo-detail-price { font-size: 16px; font-weight: 700; color: var(--accent-dark, #4b5563); margin: 0; }
.promo-empty { padding: 24px 16px; text-align: center; color: var(--muted); }

/* ── 同意書 ── */
.consent-view-body { padding: 0 0 24px; }
.consent-block {
  margin: 12px 16px; padding: 16px; background: var(--card);
  border-radius: 14px; border: 1px solid var(--line);
}
.consent-block h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.consent-block p { font-size: 15px; line-height: 1.65; margin: 0; white-space: pre-wrap; }
.booking-consent-wrap { margin: 4px 0 12px; }
.booking-consent-label { margin: 0 0 8px; }
.link-inline {
  border: none; background: none; padding: 0; color: var(--accent);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline;
}

/* ── 店家瀏覽（封面／頭像／活動公告／圖片分類） ── */
.shop-browse {
  display: flex; flex-direction: column; min-height: 100dvh; height: 100dvh;
  max-width: 480px; margin: 0 auto; width: 100%;
  overflow: hidden;
  --shop-sticky-h: 48px;
  background: var(--bg);
}
.shop-browse-body {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 0; background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.shop-hero-wrap {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, #e8eaed 0%, #d1d5db 55%, #c4c9d1 100%);
}
.shop-hero {
  width: 100%; height: 220px;
  overflow: hidden; position: relative;
}
.shop-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shop-hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 28px;
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
}
.shop-browse-close {
  width: 36px; height: 36px; border: none; background: #f3f4f6;
  border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); flex-shrink: 0;
}
.shop-browse-close-float {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.12);
  color: #374151;
}
.shop-profile-card {
  display: flex; gap: 14px; align-items: flex-start;
  margin: -28px 12px 0; padding: 16px 16px 14px;
  background: var(--card); border-radius: 18px 18px 14px 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
  position: relative; z-index: 2;
}
.shop-profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: #f3f4f6; border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.shop-profile-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.shop-profile-meta { min-width: 0; flex: 1; padding-top: 2px; }
.shop-profile-meta h2 {
  font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; color: var(--ink);
}
.shop-profile-row {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0 0 4px;
}
.shop-profile-row .shop-profile-ico { flex-shrink: 0; width: 14px; text-align: center; }
.shop-profile-row a { color: inherit; text-decoration: none; }

.shop-announce {
  margin: 12px 12px 4px; padding: 14px 14px 16px;
  background: #eef3ff; border-radius: 16px;
}
.shop-announce.hidden { display: none !important; }
.shop-announce-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--ink);
}
.shop-announce-title .shop-announce-ico { font-size: 15px; }
.shop-announce-img {
  display: block; width: 100%; border-radius: 12px; overflow: hidden;
  margin-bottom: 12px; background: #fff; border: none; padding: 0; cursor: pointer;
}
.shop-announce-img img { width: 100%; display: block; max-height: 320px; object-fit: cover; }
.shop-announce-body {
  font-size: 14px; line-height: 1.7; color: #374151; white-space: pre-wrap;
}

.shop-browse-tabs {
  display: flex; gap: 0; overflow-x: auto;
  position: sticky; top: 0; z-index: 15;
  background: var(--card);
  padding: 0 4px; margin-top: 10px;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.shop-tab {
  flex: 0 0 auto; padding: 12px 12px; border: none; background: none;
  font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.shop-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.shop-tab.hidden, .shop-section.hidden { display: none !important; }
.shop-browse-body .shop-section:not(.hidden) { display: block; }
.shop-browse-social { margin-top: 8px; }
.shop-browse-social.hidden { display: none; }
.shop-social-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-social-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; flex-shrink: 0; border: none;
}
.shop-social-btn svg { width: 16px; height: 16px; display: block; }
.shop-social-btn.line { background: #06c755; color: #fff; }
.shop-social-line-text { font-size: 8px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.shop-social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.links-social-row { margin-bottom: 12px; }
.links-ico { width: 18px; flex-shrink: 0; text-align: center; }
.shop-section {
  scroll-margin-top: var(--shop-sticky-h);
  padding: 0 0 8px;
}
.shop-section-title {
  font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--ink);
}
.shop-section + .shop-section { border-top: 8px solid var(--bg); }
#shopSectionPhotos,
#shopSectionNotices,
#shopSectionIntro,
#shopSectionHours,
#shopSectionLinks { padding: 12px 16px 16px; }
.shop-section-inner { padding: 12px 16px 16px; }
.shop-browse-foot {
  flex-shrink: 0; position: static; width: 100%; z-index: 30;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.btn-shop-recommend {
  flex: 0 0 auto; min-width: 72px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-shop-recommend.hidden { display: none !important; }
.btn-shop-primary {
  flex: 1; padding: 14px 20px; border: none; border-radius: 999px;
  background: var(--primary-dark); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.photos-panel { display: flex; flex-direction: column; gap: 12px; }
.gallery-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.gallery-pill {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.gallery-pill.active {
  background: #374151; color: #fff; border-color: #374151;
}
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.gallery-tile {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: none; padding: 0; background: #f3f4f6; cursor: pointer;
}
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-empty {
  text-align: center; padding: 36px 12px;
  color: var(--muted); font-size: 14px;
  background: var(--card); border-radius: 12px; border: 1px dashed var(--line);
}
.photo-hero {
  width: 100%; min-height: 200px; max-height: 280px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #d1d5db 100%);
  overflow: hidden; position: relative;
}
.photo-hero img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.photo-hero-placeholder {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92); font-size: 18px; font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.12);
}
.photo-logo-row {
  display: flex; justify-content: center; margin-top: -36px;
  padding: 0 16px 12px; position: relative; z-index: 1;
}
.photo-logo {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); border: 3px solid #fff; background: #fff;
}
.photo-logo-fallback {
  width: 72px; height: 72px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border: 3px solid #fff;
}
.social-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.social-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700; text-decoration: none; color: #fff;
}
.social-chip.line { background: #06c755; }
.shop-empty { text-align: center; padding: 32px 16px; }
.notices-panel { display: flex; flex-direction: column; gap: 12px; }
.notice-block {
  background: var(--card); border-radius: 12px; padding: 16px;
  border: 1px solid var(--line);
}
.notice-block h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.notice-block p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.notice-thumb-btn {
  display: block; width: 100%; max-width: 200px; padding: 0; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #f9fafb; cursor: pointer; text-align: left;
}
.notice-thumb { display: block; width: 100%; height: 120px; object-fit: cover; }
.notice-thumb-hint { display: block; font-size: 11px; color: var(--muted); padding: 6px 10px; }
.notice-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.notice-lightbox.open { pointer-events: auto; opacity: 1; }
body.notice-lightbox-open { overflow: hidden; }
.notice-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.notice-lightbox-inner { position: relative; max-width: 92vw; max-height: 88dvh; z-index: 1; }
.notice-lightbox-inner img {
  display: block; max-width: 92vw; max-height: 82dvh; object-fit: contain; border-radius: 8px;
}
.notice-lightbox-close {
  position: absolute; top: -44px; right: 0; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.15);
  color: #fff; font-size: 24px; cursor: pointer;
}
.intro-block { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.intro-text { font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.shop-cover-inline {
  border-radius: 12px; overflow: hidden; margin-bottom: 12px; max-height: 160px;
}
.shop-cover-inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hours-section, .links-section {
  background: var(--card); border-radius: 12px; padding: 16px; border: 1px solid var(--line);
}
.hours-section-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 15px;
}
.hours-ico { font-size: 18px; }
.hours-list { list-style: none; }
.hours-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:last-child { color: var(--muted); font-weight: 500; }
.hours-note { font-size: 12px; margin-top: 12px; line-height: 1.5; }
.links-list { list-style: none; }
.links-list li {
  padding: 12px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.links-list li:last-child { border-bottom: none; }
.links-list a { color: var(--accent); text-decoration: none; }

/* 預約流程步驟內距 */
#step-designer, #step-service, #step-datetime, #step-info,
#step-deposit, #step-proof, #step-wait, #step-success, #step-login {
  padding: 20px 20px 48px;
}
.steps-nav { padding: 16px 20px 0; margin-bottom: 8px; }

.shop-hero { text-align: center; margin-bottom: 20px; }
.shop-header { margin: 0 -20px 20px; }
.shop-header--home .shop-hero { margin-bottom: 0; padding: 0 20px; }
.shop-cover-wrap {
  width: 100%; height: 160px; overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.shop-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-header.has-cover .shop-hero { margin-top: -36px; position: relative; z-index: 1; }
.shop-header.has-cover .shop-logo { box-shadow: 0 4px 16px rgba(0,0,0,.12); border: 3px solid var(--card); }
.shop-logo {
  width: 72px; height: 72px; margin: 0 auto 12px;
  background: var(--accent-soft); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; overflow: hidden;
}
.shop-logo.has-image { background: var(--card); padding: 0; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-logo.large { width: 80px; height: 80px; border-radius: 22px; }
.shop-header .login-panel { padding: 0 20px; }
.shop-hero h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.shop-tagline { font-size: 13px; color: var(--muted); margin-top: 4px; }

.shop-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
}
.shop-intro { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.shop-meta { list-style: none; margin-bottom: 12px; }
.shop-meta li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; margin-bottom: 8px; color: var(--ink);
}
.shop-meta a { color: var(--accent); text-decoration: none; }
.hours-box {
  font-size: 13px; color: var(--muted);
  padding-top: 12px; border-top: 1px solid var(--line);
}
.booking-notices { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.notices-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.notices-list { display: flex; flex-direction: column; gap: 8px; }
.notice-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
}
.notice-item summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.notice-item summary::-webkit-details-marker { display: none; }
.notice-item summary::after {
  content: "＋";
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.notice-item[open] summary::after { content: "－"; }
.notice-item p {
  padding: 0 14px 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.slots-price-hint { font-size: 12px; margin: 4px 0 10px; }
.price-sub { font-size: 12px; color: var(--muted); font-weight: 400; }

.page-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.page-desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.card:hover { border-color: var(--accent-border, var(--accent)); box-shadow: 0 0 0 3px var(--accent-soft); }
.card:active { transform: scale(.985); }
.card.selected,
.designer-card.selected,
.service-card.selected {
  border-color: var(--accent-dark, var(--accent));
  box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.22);
  background: var(--accent-tint, var(--accent-soft, #e5e7eb));
}
.card.selected::after,
.designer-card.selected::after,
.service-card.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dark, var(--ink));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.card h3 { font-size: 16px; font-weight: 600; padding-right: 28px; }
.card .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.card .desc { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.designer-card,
.service-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.service-card {
  display: block;
}
.designer-card .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.designer-card .avatar.placeholder {
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.designer-body { flex: 1; min-width: 0; }
.designer-body .bio { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.btn {
  display: block; width: 100%; padding: 14px;
  background: var(--ink); color: #fff; border: none;
  border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 16px;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--primary-dark); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); margin-top: 8px;
}
.btn-google {
  background: #fff; color: #1f2937;
  border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-google:active { background: #f9fafb; }

.label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; margin-top: 4px; }
.input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; margin-bottom: 14px;
}
.input-readonly { background: #f9fafb; color: var(--muted); cursor: not-allowed; }
.field-hint { font-size: 12px; margin: -8px 0 14px; line-height: 1.4; }

.slots-section { margin-top: 8px; padding-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; min-height: 48px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 6px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card, #fff);
  font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--ink);
}
.slot-time { line-height: 1.2; }
.slot-price { font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.slot.selected { background: var(--pink); color: #fff; border-color: var(--pink); }
.slot.selected .slot-price { color: rgba(255,255,255,.85); }
.slot--surcharge { border-color: #d1d5db; }
.slots-empty { font-size: 13px; text-align: center; padding: 16px 0; }

.service-extras {
  margin: 4px 0 16px;
  padding: 14px 14px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.service-extras.hidden { display: none !important; }
.service-extras-note {
  font-size: 12px; margin: -4px 0 10px; line-height: 1.4;
}
.service-addons {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.service-addon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-addon-card {
  margin: 0;
}
.service-extras-title {
  font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px;
}
.service-extras-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.service-extra-chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  font: inherit; color: inherit; cursor: pointer;
  text-align: left; -webkit-tap-highlight-color: transparent;
}
.service-extra-chip .extra-name { font-size: 14px; font-weight: 600; }
.service-extra-chip .extra-meta { font-size: 11px; color: var(--muted); }
.service-extra-chip.selected {
  border-color: var(--accent-dark, var(--accent));
  background: var(--accent-tint, var(--accent-soft));
  box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.18);
}

/* 月曆選日期（僅預約／會員改期，勿影響後台排程月曆） */
:root { --pink: #6b7280; --pink-soft: #f3f4f6; }
#step-datetime .cal-toolbar,
#page-booking .cal-toolbar,
#page-member .cal-toolbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 4px 0;
}
#step-datetime .cal-title,
#page-booking .cal-title,
#page-member .cal-title {
  flex: 1; text-align: center; font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em;
}
#step-datetime .cal-nav,
#page-booking .cal-nav,
#page-member .cal-nav {
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 22px; color: var(--muted); cursor: pointer; border-radius: 8px;
}
#step-datetime .cal-nav:hover,
#page-booking .cal-nav:hover,
#page-member .cal-nav:hover { background: var(--pink-soft); color: var(--pink); }
#step-datetime .cal-today,
#page-booking .cal-today,
#page-member .cal-today {
  border: none; background: transparent; color: var(--pink);
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 8px;
}
#step-datetime .cal-weekdays,
#page-booking .cal-weekdays,
#page-member .cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 12px; color: var(--muted);
  margin-bottom: 8px; font-weight: 500;
}
#step-datetime .cal-grid,
#page-booking .cal-grid,
#page-member .cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 16px;
  min-height: 264px;
  touch-action: manipulation;
}
#step-datetime.cal-interaction-locked .cal-grid,
#step-datetime.cal-interaction-locked .cal-toolbar,
#step-datetime.cal-interaction-locked .cal-today,
#page-booking #step-datetime.cal-interaction-locked .cal-grid,
#page-booking #step-datetime.cal-interaction-locked .cal-toolbar,
#page-booking #step-datetime.cal-interaction-locked .cal-today {
  pointer-events: none;
}
#step-datetime .step-actions,
#page-booking #step-datetime .step-actions {
  position: relative;
  z-index: 5;
  margin-top: 4px;
  padding-top: 12px;
  background: var(--bg, #f9fafb);
}
#step-datetime .btn,
#page-booking #step-datetime .btn {
  position: relative;
  z-index: 5;
  touch-action: manipulation;
}
#step-datetime .cal-day,
#page-booking .cal-day,
#page-member .cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 15px; border-radius: 50%; cursor: default;
  color: #9ca3af; user-select: none; background: transparent;
}
#step-datetime .cal-day.pad,
#page-booking .cal-day.pad,
#page-member .cal-day.pad { visibility: hidden; }
#step-datetime .cal-day.available,
#page-booking .cal-day.available,
#page-member .cal-day.available {
  color: var(--ink); cursor: pointer; font-weight: 600;
  background: #fff; border: 1px solid var(--line);
}
#step-datetime .cal-day.available:hover,
#page-booking .cal-day.available:hover,
#page-member .cal-day.available:hover { background: var(--pink-soft); color: var(--pink); }
#step-datetime .cal-day.selected,
#page-booking .cal-day.selected,
#page-member .cal-day.selected {
  background: var(--accent-dark, var(--pink)); color: #fff; font-weight: 700;
  border-color: var(--accent-dark, var(--pink));
}
#step-datetime .cal-day.today:not(.selected),
#page-booking .cal-day.today:not(.selected),
#page-member .cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 2px var(--pink);
  color: var(--pink);
}
#step-datetime .cal-day.past,
#page-booking .cal-day.past,
#page-member .cal-day.past {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.55;
}
#step-datetime .cal-empty,
#page-booking .cal-empty,
#page-member .cal-empty {
  text-align: center; padding: 24px 16px; margin: 8px 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; color: var(--muted); background: var(--card);
}

.status-success { text-align: center; padding: 40px 16px; }
.status-success .success-ico {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: #ecfdf5; color: #059669; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.success-box {
  text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-top: 20px;
  font-size: 14px; line-height: 1.9;
}
.success-box strong { display: inline-block; min-width: 4em; color: var(--muted); font-weight: 600; }

.summary-box {
  background: var(--accent-soft); border-radius: 12px;
  padding: 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.8;
}

.bank-box { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; text-align: center; margin: 20px 0; }
.bank-box .amount { font-size: 32px; font-weight: 700; color: var(--accent); }
.bank-box .info { font-size: 14px; margin-top: 12px; line-height: 1.8; }

.status-wait { text-align: center; padding: 48px 20px; }
.status-wait .ico { font-size: 48px; margin-bottom: 16px; }

.banner-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 12px 16px; border-radius: 12px; font-size: 13px;
  margin-bottom: 16px; display: none;
}
.banner-error.show { display: block; }
.banner-demo {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 10px 14px; border-radius: 12px; font-size: 12px;
  margin-bottom: 16px; line-height: 1.5;
}
.muted { color: var(--muted); }
.center-note { font-size: 13px; text-align: center; margin-bottom: 16px; }

.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.top-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); flex: 1; min-width: 0;
}
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.btn-member {
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: none; padding: 8px 12px;
  border: 1px solid var(--accent); border-radius: 20px;
  white-space: nowrap;
}
.btn-member:hover { background: var(--accent-soft); }

.login-panel { text-align: center; padding: 40px 12px 24px; }
.login-panel .large { margin-bottom: 16px; }
.login-panel h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.login-desc { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.login-hint { font-size: 12px; margin-top: 16px; }
.privacy-consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 12px; color: var(--muted); margin: 0 8px 20px; line-height: 1.5; cursor: pointer; }
.privacy-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.login-mobile-tip {
  font-size: 12px; line-height: 1.6; margin-top: 12px;
  padding: 12px; background: #f0fdf4; border-radius: 10px;
  border: 1px solid #bbf7d0; text-align: left;
}
.login-diag { margin-top: 24px; text-align: left; font-size: 13px; }
.login-diag summary { cursor: pointer; color: var(--accent); }
.diag-uri {
  display: block; word-break: break-all; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 11px; margin-top: 8px;
}
.btn-line {
  background: #06c755; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; max-width: 320px; margin: 0 auto;
}
.btn-line .line-ico {
  font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}

/* 匯款帳號複製 */
.bank-acct { font-weight: 700; letter-spacing: 0.02em; }
.btn-copy {
  display: inline-block; margin-left: 8px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--accent); color: var(--accent);
  background: #fff; border-radius: 999px; vertical-align: middle;
}
.btn-copy:active { transform: scale(0.96); }
