:root {
  --ink: #0f0f10;
  --muted: #6b7280;
  --accent: #7c3aed;
  --accent-soft: #f5f3ff;
  --line: #e5e7eb;
  --bg: #fafafa;
  --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; }
.wrap { max-width: 480px; margin: 0 auto; padding: 20px 20px 48px; }
.step { display: none; }
.step.active { display: block; }

.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: #c4b5fd; }

.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, #f5f3ff 0%, #ede9fe 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);
}

.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: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card h3 { font-size: 16px; font-weight: 600; }
.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 {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
}
.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(--accent); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); margin-top: 8px;
}

.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; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.slot {
  padding: 12px 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.slot.selected { background: var(--pink); color: #fff; border-color: var(--pink); }
.slots-empty { font-size: 13px; text-align: center; padding: 16px 0; }

/* 月曆選日期（類似截圖） */
:root { --pink: #e91e8c; --pink-soft: #fce7f3; }
.cal-toolbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 4px 0;
}
.cal-title {
  flex: 1; text-align: center; font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em;
}
.cal-nav {
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 22px; color: var(--muted); cursor: pointer; border-radius: 8px;
}
.cal-nav:hover { background: var(--pink-soft); color: var(--pink); }
.cal-today {
  border: none; background: transparent; color: var(--pink);
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 8px;
}
.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;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 16px;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 15px; border-radius: 50%; cursor: default;
  color: #d1d5db; user-select: none;
}
.cal-day.pad { visibility: hidden; }
.cal-day.available {
  color: var(--ink); cursor: pointer; font-weight: 500;
}
.cal-day.available:hover { background: var(--pink-soft); color: var(--pink); }
.cal-day.selected {
  background: var(--pink); color: #fff; font-weight: 700;
}
.cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 2px var(--pink);
  color: var(--pink);
}
.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;
}
