:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #dfe5ec;
  --panel: #ffffff;
  --soft: #f3f6f8;
  --teal: #187f78;
  --teal-dark: #0f5f5b;
  --coral: #d76752;
  --gold: #b8873b;
  --blue: #2c66c3;
  --night: #101624;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #eef3f5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.customer-app {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--soft);
  position: relative;
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  background: #f6f8f9;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  background: #fff;
}

.boot-bar {
  width: 180px;
  height: 6px;
  background: #dce5e9;
  border-radius: 999px;
  overflow: hidden;
}

.boot-bar span {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--teal);
  transition: width 0.25s ease;
}

.auth-screen {
  background: #f6f8f9;
  padding-bottom: 18px;
}

.auth-visual {
  height: 36vh;
  min-height: 220px;
  background: #101624 url("./assets/customer-hero-fashion.png") center / cover no-repeat;
  position: relative;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.08), rgba(23, 32, 51, 0.42));
}

.auth-visual-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 58px;
  z-index: 1;
  color: #fff;
}

.auth-visual-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.24);
  font-size: 12px;
  font-weight: 800;
}

.auth-visual-copy h1 {
  margin: 10px 0 4px;
  font-size: 31px;
  line-height: 1.12;
}

.auth-visual-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.auth-panel {
  margin: -42px 14px 0;
  position: relative;
  z-index: 2;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.auth-copy {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.auth-copy strong {
  font-size: 18px;
}

.auth-copy p,
.form-tip {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-brand strong,
.app-top h1,
.page-title strong {
  display: block;
  font-size: 20px;
}

.auth-brand small,
.app-top small,
.page-title span,
label span,
.profile-card span {
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #eef3f5;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 14px;
}

.segmented button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  min-height: 38px;
  color: var(--muted);
}

.segmented button.active {
  background: #fff;
  color: var(--teal-dark);
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(23, 32, 51, 0.08);
}

.form-grid,
.booking-form {
  display: grid;
  gap: 12px;
}

.agreement-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.agreement-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--teal);
}

label {
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 127, 120, 0.12);
}

.primary-btn,
.secondary-btn,
.text-btn,
.quick-grid button,
.service-card button,
.coupon-action {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
}

.primary-btn {
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.secondary-btn {
  background: #e8f1ef;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-btn {
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
  min-height: 32px;
  padding: 4px 6px;
}

.app-screen {
  padding: 14px 14px 86px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-top h1 {
  margin: 2px 0 0;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 14px;
}

.hero-card {
  height: 292px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--night);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 18px 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0), rgba(10, 14, 24, 0.82));
}

.hero-shade span {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

.hero-shade strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
}

.hero-shade p {
  margin: 4px 0 0;
  font-size: 13px;
}

.store-switch,
.section-block,
.campaign-panel,
.profile-card,
.profile-list,
.booking-form,
.service-card,
.coupon-card,
.mini-item,
.preview-block,
.auth-benefits article,
.store-preview-card,
.service-preview-card,
.campaign-preview,
.member-guide article,
.scan-context,
.fashion-board article,
.stylist-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scan-context {
  padding: 12px;
  display: grid;
  gap: 7px;
  border-left: 4px solid var(--teal);
}

.scan-context strong {
  display: block;
}

.scan-context span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.store-switch {
  padding: 12px;
}

.guest-preview {
  display: grid;
  gap: 12px;
  padding: 12px 14px 0;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-stats article {
  background: #172033;
  color: #fff;
  border-radius: 8px;
  padding: 11px 10px;
}

.preview-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.4;
}

.preview-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.auth-benefits {
  display: grid;
  gap: 8px;
}

.auth-benefits article {
  padding: 12px;
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--teal);
}

.auth-benefits article:nth-child(2) {
  border-left-color: var(--coral);
}

.auth-benefits article:nth-child(3) {
  border-left-color: var(--gold);
}

.auth-benefits strong,
.store-preview-card strong,
.service-preview-card strong {
  display: block;
}

.auth-benefits span,
.store-preview-card span,
.service-preview-card span,
.campaign-preview span,
.member-guide span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.preview-block {
  padding: 14px;
}

.store-preview-list,
.service-preview-list {
  display: grid;
  gap: 8px;
}

.store-preview-card {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.service-preview-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
}

.service-preview-card em {
  color: var(--coral);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.campaign-preview {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.campaign-preview strong {
  color: var(--teal-dark);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-row article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.metric-row span,
.service-card small,
.mini-item span,
.coupon-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.deal-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.deal-strip article {
  min-width: 0;
  border: 1px solid rgba(255, 123, 68, 0.22);
  border-radius: 8px;
  padding: 11px 9px;
  background: linear-gradient(180deg, #fff8f3, #ffffff);
  box-shadow: 0 7px 18px rgba(175, 82, 31, 0.07);
}

.deal-strip span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff0e7;
  color: #c2410c;
  font-size: 11px;
  font-weight: 900;
}

.deal-strip strong,
.deal-strip small {
  display: block;
}

.deal-strip strong {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.25;
}

.deal-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quick-grid button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.member-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.member-guide article {
  padding: 12px;
  display: grid;
  gap: 4px;
  min-height: 92px;
}

.member-guide strong {
  display: block;
  color: var(--teal-dark);
}

.fashion-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fashion-board article {
  overflow: hidden;
  display: grid;
  background: #fff;
}

.fashion-board img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  display: block;
}

.fashion-board div {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.fashion-board strong {
  display: block;
}

.fashion-board span,
#stylistSummary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chip-row.compact {
  padding-bottom: 0;
}

.chip-row.compact button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.stylist-list {
  display: grid;
  gap: 10px;
}

.stylist-card {
  padding: 12px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.stylist-card:active {
  transform: scale(0.99);
}

.stylist-card:hover {
  border-color: rgba(24, 127, 120, 0.28);
}

.stylist-cover {
  width: 70px;
  aspect-ratio: 1 / 1.2;
  border-radius: 8px;
  background: #172033;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.stylist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stylist-main {
  display: grid;
  gap: 7px;
}

.stylist-name-row,
.stylist-actions,
.stylist-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stylist-name-row strong {
  font-size: 17px;
}

.stylist-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf5f3;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.stylist-meta-row span,
.stylist-skills {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stylist-profile-line {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.stylist-actions button {
  border: 0;
  border-radius: 8px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.stylist-actions button:first-child {
  background: var(--teal);
  color: #fff;
}

.stylist-actions button:last-child {
  background: #eef3f5;
  color: var(--ink);
}

.section-block {
  padding: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.service-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.service-pill {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fafcfc;
}

.service-pill-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.service-pill-top em {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px 6px;
  background: #fff0e7;
  color: #c2410c;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.service-pill strong,
.service-card strong,
.coupon-card strong,
.mini-item strong {
  display: block;
}

.service-pill span,
.service-card .price {
  color: var(--coral);
  font-weight: 900;
}

.page-title {
  display: grid;
  gap: 10px;
}

.page-title input {
  min-height: 40px;
}

.chip-row {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 2px;
}

.chip-row button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 12px;
}

.chip-row button.active {
  border-color: var(--teal);
  background: #e7f2f0;
  color: var(--teal-dark);
  font-weight: 800;
}

.service-list,
.coupon-list,
.mini-list {
  display: grid;
  gap: 10px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.commerce-service-card {
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
}

.service-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-badges span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef7ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}

.service-badges span:first-child {
  background: #fff0e7;
  color: #c2410c;
}

.service-review-line {
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.service-buybox {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 6px;
  text-align: right;
}

.service-buybox > span {
  color: var(--muted);
  font-size: 11px;
}

.service-card button,
.coupon-action {
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.booking-form {
  padding: 14px;
}

.booking-success {
  margin: 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(18, 166, 106, 0.28);
  border-radius: 10px;
  background: #effaf4;
  display: grid;
  gap: 5px;
}

.booking-success strong {
  color: #087443;
  font-size: 16px;
}

.booking-success span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.booking-success small {
  color: #3f6f58;
  line-height: 1.55;
}

.booking-deal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 123, 68, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff8f3, #ffffff);
  box-shadow: 0 12px 26px rgba(175, 82, 31, 0.08);
}

.booking-deal-summary span,
.booking-deal-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.booking-deal-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.deal-price-box {
  display: grid;
  justify-items: end;
  text-align: right;
  min-width: 108px;
}

.deal-price-box span {
  color: #c2410c;
  font-weight: 900;
}

.deal-price-box strong {
  color: #e46a58;
  font-size: 22px;
  line-height: 1.1;
}

.booking-form .wide {
  grid-column: 1 / -1;
}

.mini-item {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.campaign-panel {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.campaign-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.campaign-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.coupon-action.alt {
  background: #172033;
}

.share-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.share-stat-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  background: #f7faf9;
}

.share-stat-grid strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.wechat-share-guide {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 18px 14px;
  background:
    radial-gradient(circle at 85% 6%, rgba(255, 255, 255, 0.92) 0 42px, transparent 43px),
    linear-gradient(180deg, rgba(23, 32, 51, 0.36), rgba(23, 32, 51, 0.12));
}

.wechat-share-guide[hidden] {
  display: none;
}

.wechat-share-panel {
  width: min(420px, 100%);
  margin-top: max(18px, env(safe-area-inset-top));
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(24, 127, 120, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f1fbf8 54%, #fff7ed 100%);
  box-shadow: 0 20px 46px rgba(23, 32, 51, 0.18);
}

.wechat-share-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-top: 3px solid #19a974;
  border-right: 3px solid #19a974;
  transform: rotate(-12deg);
}

.wechat-share-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.wechat-share-kicker {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 127, 120, 0.1);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.wechat-share-panel strong {
  padding-right: 38px;
  font-size: 20px;
  line-height: 1.3;
}

.wechat-share-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.wechat-share-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.progress-line {
  height: 8px;
  border-radius: 999px;
  background: #e3e9ed;
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--gold);
}

.coupon-card {
  padding: 13px;
  display: grid;
  gap: 8px;
}

.coupon-card[data-status="available"] {
  border-color: rgba(24, 127, 120, 0.35);
}

.coupon-card[data-status="locked"] {
  border-color: rgba(44, 102, 195, 0.35);
}

.coupon-card[data-status="used"],
.coupon-card[data-status="expired"] {
  opacity: 0.7;
}

.profile-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f2f0;
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 900;
}

.profile-list {
  padding: 4px 14px;
}

.profile-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.profile-list article:last-child {
  border-bottom: 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  min-height: 42px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.bottom-nav button.active {
  background: #e7f2f0;
  color: var(--teal-dark);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 28px));
  background: rgba(23, 32, 51, 0.92);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  z-index: 30;
  text-align: center;
}

.photo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 14, 24, 0.68);
  display: grid;
  place-items: end center;
  padding: 16px;
}

.stylist-modal-panel {
  width: min(460px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.stylist-modal-hero {
  min-height: 220px;
  background: #101624 center / cover no-repeat;
  color: #fff;
  display: grid;
  align-content: end;
  padding: 48px 16px 18px;
  position: relative;
}

.stylist-modal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.08), rgba(16, 22, 36, 0.82));
}

.stylist-modal-hero > * {
  position: relative;
  z-index: 1;
}

.stylist-modal-hero strong {
  font-size: 24px;
}

.stylist-modal-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.staff-profile-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.staff-profile-block p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.profile-meta-row,
.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-meta-row span,
.profile-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f2f0;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.portfolio-grid img {
  width: 100%;
  aspect-ratio: 0.75;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3f5;
}

.portfolio-empty {
  grid-column: 1 / -1;
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f6f8fa;
  font-size: 12px;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.review-list span {
  color: var(--muted);
  font-size: 12px;
}

.busy-mask {
  position: fixed;
  inset: 0;
  background: rgba(246, 248, 249, 0.74);
  backdrop-filter: blur(4px);
  z-index: 40;
  display: grid;
  place-items: center;
}

.busy-mask div {
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 10px;
}

.busy-mask span {
  width: 28px;
  height: 28px;
  border: 3px solid #dce5e9;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .campaign-top {
    flex-direction: column;
  }

  .campaign-actions .coupon-action {
    flex: 1;
  }

  .share-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 760px) {
  body {
    background: #dfe7ea;
  }

  .customer-app {
    margin: 18px auto;
    min-height: calc(100vh - 36px);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .bottom-nav {
    bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
  }
}

/* Commercial customer UI refresh: keep business markup stable and lift the visual system. */
:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e3e8ef;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --teal: #16877d;
  --teal-dark: #0f615b;
  --coral: #e46a58;
  --gold: #c28a3e;
  --blue: #356fc8;
  --night: #121a2b;
  --shadow: 0 14px 38px rgba(17, 24, 39, 0.11);
  --shadow-soft: 0 8px 22px rgba(17, 24, 39, 0.07);
  --radius: 8px;
}

html,
body {
  background:
    linear-gradient(180deg, #f7fafc 0%, #edf3f7 42%, #f6f8fb 100%);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.customer-app {
  background:
    linear-gradient(180deg, #f8fbfc 0%, #eef4f7 42%, #f7f9fc 100%);
}

button,
input,
select,
textarea,
.mini-item,
.service-card,
.stylist-card,
.coupon-card,
.section-block,
.auth-panel,
.preview-block {
  min-width: 0;
}

.auth-screen {
  background: #f4f7fa;
}

.auth-visual {
  height: 318px;
  min-height: 318px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(18, 26, 43, 0.18);
}

.auth-visual::after {
  background:
    linear-gradient(180deg, rgba(18, 26, 43, 0.06), rgba(18, 26, 43, 0.24) 45%, rgba(18, 26, 43, 0.82)),
    linear-gradient(90deg, rgba(22, 135, 125, 0.34), rgba(228, 106, 88, 0.12));
}

.auth-visual-copy {
  bottom: 82px;
  display: grid;
  gap: 7px;
}

.auth-visual-copy span,
.hero-shade span {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.auth-visual-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-visual-copy p {
  max-width: 310px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.auth-panel {
  margin: -64px 14px 0;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(14px);
}

.brand-mark {
  border-color: rgba(17, 24, 39, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.auth-brand .brand-mark {
  width: 46px;
  height: 46px;
}

.auth-copy strong,
.page-title strong,
.section-head strong {
  letter-spacing: 0;
}

.auth-copy p,
.form-tip,
.auth-benefits span,
.store-preview-card span,
.service-preview-card span,
.campaign-preview span,
.member-guide span,
.mini-item span,
.coupon-card span,
.service-card small {
  color: #667085;
}

.segmented {
  background: #eef4f6;
  border: 1px solid #e1e9ee;
  gap: 4px;
}

.segmented button.active {
  color: var(--teal-dark);
  box-shadow: 0 6px 18px rgba(15, 97, 91, 0.14);
}

input,
select,
textarea {
  min-height: 48px;
  border-color: #d7e0e7;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

.primary-btn,
.service-card button,
.coupon-action {
  background: linear-gradient(180deg, #1b978d, #116f67);
  box-shadow: 0 10px 22px rgba(17, 111, 103, 0.22);
}

.primary-btn:active,
.service-card button:active,
.coupon-action:active,
.quick-grid button:active {
  transform: translateY(1px);
}

.guest-preview {
  padding-top: 14px;
}

.preview-stats article {
  background: linear-gradient(180deg, #172033, #111827);
  box-shadow: var(--shadow-soft);
}

.preview-stats article:nth-child(2) {
  background: linear-gradient(180deg, #145f62, #11494d);
}

.preview-stats article:nth-child(3) {
  background: linear-gradient(180deg, #a55b4e, #7f3e35);
}

.auth-benefits article,
.preview-block,
.store-switch,
.section-block,
.campaign-panel,
.profile-card,
.profile-list,
.booking-form,
.service-card,
.coupon-card,
.mini-item,
.store-preview-card,
.service-preview-card,
.campaign-preview,
.member-guide article,
.scan-context,
.fashion-board article,
.stylist-card {
  border-color: rgba(215, 224, 231, 0.92);
  box-shadow: var(--shadow-soft);
}

.auth-benefits article,
.scan-context {
  border-left-width: 3px;
}

.store-preview-card,
.service-preview-card,
.mini-item,
.coupon-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.store-preview-card:hover,
.service-preview-card:hover,
.mini-item:hover,
.coupon-card:hover {
  border-color: rgba(22, 135, 125, 0.28);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.app-screen {
  padding: 12px 12px 96px;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: -12px -12px 12px;
  padding: 12px;
  background: rgba(248, 251, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 232, 239, 0.72);
}

.app-top h1 {
  font-size: 19px;
}

.hero-card {
  height: 268px;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
}

.hero-card img {
  filter: saturate(1.04) contrast(1.02);
}

.hero-shade {
  padding: 72px 16px 18px;
  background:
    linear-gradient(180deg, rgba(18, 26, 43, 0), rgba(18, 26, 43, 0.68)),
    linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.14));
}

.hero-shade strong {
  font-size: 25px;
}

.store-switch {
  padding: 14px;
}

.metric-row {
  gap: 9px;
}

.metric-row article {
  padding: 13px 10px;
  background:
    linear-gradient(180deg, #fff, #f9fbfc);
  border-color: #dfe7ee;
  box-shadow: var(--shadow-soft);
}

.metric-row strong {
  font-size: 20px;
}

.quick-grid {
  gap: 9px;
}

.quick-grid button {
  min-height: 52px;
  display: grid;
  align-content: center;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #172033, #111827);
  box-shadow: var(--shadow-soft);
}

.quick-grid button:nth-child(1) {
  background: linear-gradient(180deg, #1b978d, #106a64);
}

.quick-grid button:nth-child(2) {
  background: linear-gradient(180deg, #356fc8, #244e93);
}

.quick-grid button:nth-child(3) {
  background: linear-gradient(180deg, #e46a58, #ae4638);
}

.quick-grid button:nth-child(4) {
  background: linear-gradient(180deg, #c28a3e, #8e6127);
}

.member-guide {
  gap: 9px;
}

.member-guide article {
  min-height: 94px;
}

.fashion-board {
  gap: 9px;
}

.fashion-board img {
  aspect-ratio: 1 / 0.88;
}

.section-block {
  padding: 14px;
}

.section-head {
  align-items: flex-start;
  gap: 12px;
}

.section-head .text-btn {
  flex-shrink: 0;
}

.chip-row {
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar,
.service-strip::-webkit-scrollbar {
  display: none;
}

.chip-row button {
  border-color: #dbe5ec;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}

.chip-row button.active {
  background: #e8f5f2;
  box-shadow: 0 7px 16px rgba(15, 97, 91, 0.12);
}

.stylist-card {
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px;
}

.stylist-cover {
  width: 78px;
  border-radius: 8px;
  background: linear-gradient(180deg, #172033, #263247);
}

.stylist-name-row strong {
  font-size: 18px;
}

.stylist-meta-row span:first-child {
  color: #af6d1f;
  font-weight: 800;
}

.stylist-actions {
  gap: 7px;
}

.stylist-actions button {
  min-height: 36px;
  padding: 7px 11px;
}

.stylist-actions button:first-child {
  background: linear-gradient(180deg, #1b978d, #116f67);
  box-shadow: 0 8px 16px rgba(17, 111, 103, 0.18);
}

.service-strip {
  margin: 0 -2px;
  padding: 0 2px 3px;
}

.service-pill {
  min-width: 156px;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.service-list {
  gap: 11px;
}

.service-card {
  align-items: stretch;
  grid-template-columns: 1fr minmax(76px, auto);
  padding: 14px;
}

.service-card strong {
  font-size: 17px;
}

.service-card .price {
  align-self: center;
  color: var(--coral);
  font-size: 17px;
}

.service-card button {
  align-self: center;
  min-width: 72px;
  white-space: nowrap;
}

.booking-form {
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  padding: 14px;
}

.booking-form label:first-child,
.booking-form label:nth-child(2),
.booking-form .wide,
.booking-form .primary-btn {
  grid-column: 1 / -1;
}

.booking-form .primary-btn {
  margin-top: 2px;
  min-height: 50px;
}

.booking-success {
  margin: 0;
  border-color: rgba(22, 135, 125, 0.22);
  background: linear-gradient(180deg, #f0fbf7, #ffffff);
  box-shadow: var(--shadow-soft);
}

.campaign-panel {
  background:
    linear-gradient(180deg, #ffffff, #fffaf6);
}

.coupon-action.alt {
  background: linear-gradient(180deg, #172033, #101624);
}

.share-stat-grid span {
  background: #ffffff;
}

.profile-card {
  background:
    linear-gradient(180deg, #172033, #111827);
  color: #fff;
}

.profile-card span {
  color: rgba(255, 255, 255, 0.72);
}

.profile-card .avatar {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.bottom-nav {
  width: min(480px, calc(100% - 14px));
  bottom: 8px;
  border: 1px solid rgba(227, 232, 239, 0.9);
  border-radius: 8px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 12px;
}

.bottom-nav button::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border-radius: 7px;
  font-size: 15px;
  line-height: 1;
  color: currentColor;
}

.bottom-nav [data-tab="home"]::before { content: "⌂"; }
.bottom-nav [data-tab="services"]::before { content: "¥"; }
.bottom-nav [data-tab="booking"]::before { content: "＋"; }
.bottom-nav [data-tab="coupons"]::before { content: "券"; font-size: 12px; font-weight: 900; }
.bottom-nav [data-tab="profile"]::before { content: "人"; font-size: 12px; font-weight: 900; }

.bottom-nav button.active {
  background: linear-gradient(180deg, #e8f5f2, #d9efe9);
  color: var(--teal-dark);
}

.customer-app:has(input:focus) .bottom-nav,
.customer-app:has(select:focus) .bottom-nav,
.customer-app:has(textarea:focus) .bottom-nav {
  opacity: 0;
  transform: translate(-50%, calc(100% + 22px));
  pointer-events: none;
}

.toast {
  bottom: 92px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.25);
}

.stylist-modal-panel {
  border-radius: 8px;
}

.stylist-modal-hero {
  min-height: 238px;
}

.portfolio-grid {
  gap: 7px;
}

@media (max-width: 380px) {
  .auth-visual {
    height: 286px;
    min-height: 286px;
  }

  .auth-visual-copy h1 {
    font-size: 30px;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .stylist-card {
    grid-template-columns: 68px 1fr;
  }

  .stylist-cover {
    width: 68px;
  }
}

@media (min-width: 760px) {
  .customer-app {
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
  }

  .bottom-nav {
    bottom: 26px;
    border-radius: 8px;
  }
}

/* Customer booking promotion flow */
.booking-hero-panel {
  min-height: 118px;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 6px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.26)),
    url("./assets/customer-hero-fashion.png") center / cover no-repeat;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
  overflow: hidden;
}

.booking-hero-panel span {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.booking-hero-panel strong {
  display: block;
  font-size: 22px;
  line-height: 1.16;
}

.booking-hero-panel small {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.booking-form {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.booking-native-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.booking-step {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(215, 224, 231, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.booking-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-step-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.booking-step-head strong {
  font-size: 16px;
}

.booking-store-strip,
.booking-date-strip,
.booking-coupon-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.booking-store-strip::-webkit-scrollbar,
.booking-date-strip::-webkit-scrollbar,
.booking-coupon-row::-webkit-scrollbar {
  display: none;
}

.booking-store-strip button,
.booking-date-strip button,
.booking-coupon-row button,
.booking-service-grid button,
.booking-staff-card,
.booking-time-grid button {
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.booking-store-strip button:active,
.booking-date-strip button:active,
.booking-coupon-row button:active,
.booking-service-grid button:active,
.booking-staff-card:active,
.booking-time-grid button:active {
  transform: translateY(1px);
}

.booking-store-strip button.active,
.booking-date-strip button.active,
.booking-coupon-row button.active,
.booking-service-grid button.active,
.booking-staff-card.active,
.booking-time-grid button.active {
  border-color: rgba(22, 135, 125, 0.56);
  background: linear-gradient(180deg, #eef9f6, #ffffff);
  box-shadow: 0 10px 20px rgba(15, 97, 91, 0.12);
}

.booking-store-strip button {
  flex: 0 0 150px;
  min-height: 70px;
  padding: 11px;
  text-align: left;
  display: grid;
  gap: 5px;
}

.booking-store-strip strong,
.booking-service-grid strong,
.booking-staff-card strong,
.booking-coupon-row strong {
  display: block;
}

.booking-store-strip span,
.booking-service-grid span,
.booking-staff-card small,
.booking-coupon-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.booking-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
}

.booking-service-grid button {
  min-height: 104px;
  padding: 12px;
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 6px;
}

.booking-service-grid em {
  color: var(--coral);
  font-style: normal;
  font-weight: 900;
}

.booking-date-strip button {
  flex: 0 0 66px;
  min-height: 66px;
  padding: 8px;
  display: grid;
  place-items: center;
  gap: 3px;
}

.booking-date-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.booking-date-strip strong {
  font-size: 17px;
}

.booking-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.booking-staff-card {
  min-height: 118px;
  padding: 12px 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
}

.booking-staff-card:disabled {
  opacity: 0.52;
  box-shadow: none;
}

.booking-staff-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #172033, #263247);
  color: #fff;
  font-weight: 900;
}

.booking-staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.booking-time-grid button {
  min-height: 44px;
  padding: 8px 6px;
  font-weight: 900;
}

.booking-empty-slot {
  min-height: 72px;
  border: 1px dashed #cfd9e2;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f7fafc;
  font-size: 13px;
}

.booking-coupon-row button {
  flex: 0 0 126px;
  min-height: 62px;
  padding: 10px;
  text-align: left;
}

.booking-form .wide {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(215, 224, 231, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.booking-form .primary-btn {
  grid-column: 1 / -1;
  min-height: 54px;
  font-size: 16px;
}

.booking-step,
.booking-form .wide,
.booking-form .primary-btn {
  scroll-margin-bottom: 118px;
}

@media (max-width: 380px) {
  .booking-service-grid,
  .booking-staff-grid {
    grid-template-columns: 1fr 1fr;
  }

  .booking-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.booking-service-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.booking-service-grid::-webkit-scrollbar {
  display: none;
}

.booking-service-grid button {
  flex: 0 0 148px;
}

/* E-commerce booking layer */
.deal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.deal-strip article {
  min-width: 0;
  border: 1px solid rgba(255, 123, 68, 0.22);
  border-radius: 8px;
  padding: 11px 9px;
  background: linear-gradient(180deg, #fff8f3, #ffffff);
  box-shadow: 0 7px 18px rgba(175, 82, 31, 0.07);
}

.deal-strip span,
.service-pill-top em,
.service-badges span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.deal-strip span,
.service-pill-top em,
.service-badges span:first-child {
  background: #fff0e7;
  color: #c2410c;
}

.deal-strip strong,
.deal-strip small,
.service-pill strong,
.service-pill small {
  display: block;
}

.deal-strip strong {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.25;
}

.deal-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.service-pill-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.commerce-service-card {
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
}

.service-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-badges span {
  background: #eef7ff;
  color: #1d4ed8;
}

.service-review-line {
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.service-buybox {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 6px;
  text-align: right;
}

.service-buybox > span {
  color: var(--muted);
  font-size: 11px;
}

.booking-service-grid small {
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
}

.booking-deal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 123, 68, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff8f3, #ffffff);
  box-shadow: 0 12px 26px rgba(175, 82, 31, 0.08);
}

.booking-deal-summary span,
.booking-deal-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.booking-deal-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.deal-price-box {
  display: grid;
  justify-items: end;
  text-align: right;
  min-width: 108px;
}

.deal-price-box span {
  color: #c2410c;
  font-weight: 900;
}

.deal-price-box strong {
  color: #e46a58;
  font-size: 22px;
  line-height: 1.1;
}

@media (max-width: 380px) {
  .deal-strip {
    grid-template-columns: 1fr;
  }

  .commerce-service-card,
  .booking-deal-summary {
    grid-template-columns: 1fr;
  }

  .service-buybox,
  .deal-price-box {
    justify-items: start;
    text-align: left;
  }
}

/* Booking transaction status */
.booking-success {
  padding: 14px;
  border-radius: 8px;
  gap: 12px;
}

.booking-success-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.booking-success-head > div {
  min-width: 0;
}

.booking-success-head span {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.booking-success-head em,
.appointment-card-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(22, 135, 125, 0.22);
  border-radius: 8px;
  padding: 5px 8px;
  background: #e8f5f2;
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.booking-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.booking-progress.canceled {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-progress span {
  min-width: 0;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 4px;
  color: var(--muted);
  background: #f6f8fb;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.booking-progress .done {
  border-color: rgba(18, 166, 106, 0.24);
  background: #eaf8ef;
  color: #087443;
}

.booking-progress .current {
  border-color: rgba(255, 123, 68, 0.32);
  background: #fff4e8;
  color: #c2410c;
}

.booking-success-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booking-success-summary article {
  min-width: 0;
  border: 1px solid rgba(227, 232, 239, 0.9);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.78);
}

.booking-success-summary span,
.appointment-card-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.booking-success-summary strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.appointment-card {
  gap: 9px;
  border-color: rgba(22, 135, 125, 0.14);
  background: linear-gradient(180deg, #ffffff, #f8fbfb);
}

.appointment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.appointment-card-head strong {
  min-width: 0;
  line-height: 1.35;
}

.appointment-card .booking-progress span {
  min-height: 27px;
  font-size: 10px;
}

.appointment-card-meta {
  display: grid;
  gap: 3px;
  border-top: 1px dashed rgba(148, 163, 184, 0.36);
  padding-top: 8px;
}

.appointment-card small {
  color: #c2410c;
  font-weight: 800;
}

@media (max-width: 380px) {
  .booking-success-head,
  .appointment-card-head {
    display: grid;
  }

  .booking-success-summary {
    grid-template-columns: 1fr;
  }

  .booking-progress span {
    min-height: 30px;
    font-size: 10px;
  }
}

/* 2026-07 official bright promotion polish */
:root {
  --ink: #162033;
  --muted: #64748b;
  --line: #e4ebf2;
  --soft: #f8fbff;
  --teal: #18a99a;
  --teal-dark: #0c7f76;
  --coral: #ff805f;
  --gold: #f5b84b;
  --blue: #3778e5;
  --night: #21345c;
  --shadow: 0 18px 42px rgba(35, 63, 97, 0.12);
}

html,
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 211, 129, 0.32), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(55, 120, 229, 0.12), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #f3fbff 46%, #f9fbff 100%);
}

.customer-app {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(246, 252, 255, 0.98) 42%, #ffffff 100%);
}

.auth-screen {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 204, 112, 0.32), transparent 32%),
    linear-gradient(180deg, #fffaf0 0%, #f5fbff 44%, #ffffff 100%);
}

.auth-visual {
  height: 34vh;
  min-height: 218px;
  background:
    linear-gradient(135deg, rgba(255, 248, 235, 0.86), rgba(240, 252, 255, 0.36)),
    url("./assets/customer-hero-fashion.png") center / cover no-repeat;
}

.auth-visual::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 248, 235, 0.26) 46%, rgba(20, 88, 94, 0.56)),
    linear-gradient(90deg, rgba(255, 180, 94, 0.24), rgba(24, 169, 154, 0.18));
}

.auth-visual-copy {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(15, 78, 88, 0.28);
}

.auth-visual-copy span,
.hero-shade span,
.booking-hero-panel span {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.auth-visual-copy h1 {
  letter-spacing: -1px;
}

.auth-panel,
.section-block,
.campaign-panel,
.booking-form,
.booking-step,
.campaign-preview,
.preview-block,
.profile-card,
.coupon-card,
.appointment-card {
  border-color: rgba(226, 236, 246, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(35, 63, 97, 0.1);
}

.auth-panel {
  margin-top: -46px;
  padding: 18px;
}

.brand-mark,
.auth-brand .brand-mark {
  border: 0;
  color: #0b6f68;
  background: linear-gradient(180deg, #ffffff, #eefbf8);
  box-shadow: inset 0 0 0 2px rgba(24, 169, 154, 0.18), 0 10px 24px rgba(24, 169, 154, 0.14);
}

.segmented {
  border: 1px solid rgba(218, 229, 238, 0.9);
  border-radius: 18px;
  background: #eef7f6;
}

.segmented button {
  border-radius: 14px;
}

input,
select,
textarea {
  border-color: #dbe6ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(24, 169, 154, 0.72);
  box-shadow: 0 0 0 4px rgba(24, 169, 154, 0.12);
}

.primary-btn,
.quick-grid button,
.coupon-action,
.booking-form .primary-btn {
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #19b7a7 0%, #11a09a 58%, #2f8de8 100%);
  box-shadow: 0 14px 26px rgba(24, 169, 154, 0.24);
}

.primary-btn:active,
.quick-grid button:active,
.coupon-action:active {
  transform: translateY(1px) scale(0.99);
}

.coupon-action.alt,
.campaign-actions .coupon-action.alt {
  color: #8a4a10;
  background: linear-gradient(135deg, #fff3d5, #ffd28b);
  box-shadow: 0 12px 22px rgba(245, 184, 75, 0.22);
}

.text-btn {
  color: #0c7f76;
}

.guest-preview,
.app-screen {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 211, 129, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.82), rgba(249, 252, 255, 0.98));
}

.preview-stats article,
.metric-row article {
  border: 1px solid rgba(224, 234, 244, 0.9);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: 0 12px 26px rgba(35, 63, 97, 0.08);
}

.preview-stats article:nth-child(2),
.metric-row article:nth-child(2) {
  background: linear-gradient(180deg, #f1fffb, #ffffff);
}

.preview-stats article:nth-child(3),
.metric-row article:nth-child(3) {
  background: linear-gradient(180deg, #fff6e7, #ffffff);
}

.preview-stats article span,
.metric-row article span,
.preview-stats article strong,
.metric-row article strong {
  color: var(--ink);
  text-shadow: none;
}

.preview-stats article span,
.metric-row article span {
  color: #66758a;
}

.hero-card {
  border: 1px solid rgba(224, 234, 244, 0.96);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(35, 63, 97, 0.12);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 252, 246, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.22));
}

.hero-shade strong,
.hero-shade p {
  color: #162033;
  text-shadow: none;
}

.hero-shade span {
  color: #0c7f76;
  background: rgba(255, 255, 255, 0.78);
}

.deal-strip article,
.auth-benefits article {
  color: var(--ink);
  border: 1px solid rgba(224, 234, 244, 0.86);
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.deal-strip article:nth-child(1),
.auth-benefits article:nth-child(1) {
  background: linear-gradient(180deg, #fff8ed, #ffffff);
}

.deal-strip article:nth-child(2),
.auth-benefits article:nth-child(2) {
  background: linear-gradient(180deg, #effdfa, #ffffff);
}

.deal-strip article:nth-child(3),
.auth-benefits article:nth-child(3) {
  background: linear-gradient(180deg, #eef5ff, #ffffff);
}

.fashion-board article,
.stylist-card,
.service-card,
.mini-item,
.store-preview-list article,
.service-preview-list article {
  border-color: rgba(224, 234, 244, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
  box-shadow: 0 12px 28px rgba(35, 63, 97, 0.08);
}

.booking-hero-panel {
  border: 1px solid rgba(224, 234, 244, 0.92);
  border-radius: 28px;
  color: #162033;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 92% 8%, rgba(255, 211, 129, 0.48), transparent 36%),
    url("./assets/customer-hero-fashion.png") center / cover no-repeat;
  box-shadow: 0 20px 44px rgba(35, 63, 97, 0.12);
}

.booking-hero-panel span {
  color: #0c7f76;
  background: rgba(255, 255, 255, 0.78);
}

.booking-hero-panel strong,
.booking-hero-panel small {
  color: #162033;
}

.booking-store-strip button,
.booking-date-strip button,
.booking-coupon-row button,
.booking-service-grid button,
.booking-staff-card,
.booking-time-grid button {
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
  box-shadow: 0 10px 22px rgba(35, 63, 97, 0.07);
}

.booking-store-strip button.active,
.booking-date-strip button.active,
.booking-coupon-row button.active,
.booking-service-grid button.active,
.booking-staff-card.active,
.booking-time-grid button.active {
  border-color: rgba(24, 169, 154, 0.62);
  background: linear-gradient(180deg, #effdfa, #ffffff);
  box-shadow: 0 12px 26px rgba(24, 169, 154, 0.16);
}

.booking-staff-avatar {
  color: #ffffff;
  background: linear-gradient(135deg, #24b8a8, #3f83ec);
}

.booking-deal-summary,
.booking-success {
  border-color: rgba(255, 184, 75, 0.36);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 211, 129, 0.22), transparent 28%),
    linear-gradient(180deg, #fffaf0, #ffffff);
}

.campaign-panel {
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 211, 129, 0.26), transparent 28%),
    linear-gradient(180deg, #ffffff, #fffdf8);
}

.bottom-nav {
  border-color: rgba(220, 231, 240, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 34px rgba(35, 63, 97, 0.08);
  backdrop-filter: blur(18px);
}

.bottom-nav button.active {
  color: #0c7f76;
}

.bottom-nav button.active::before {
  color: #ffffff;
  background: linear-gradient(135deg, #19b7a7, #2f8de8);
  box-shadow: 0 10px 22px rgba(24, 169, 154, 0.22);
}

.toast {
  border: 1px solid rgba(224, 234, 244, 0.92);
  color: #162033;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(35, 63, 97, 0.16);
}

@media (min-width: 481px) {
  .customer-app {
    border-left: 1px solid rgba(224, 234, 244, 0.82);
    border-right: 1px solid rgba(224, 234, 244, 0.82);
    box-shadow: 0 0 46px rgba(35, 63, 97, 0.1);
  }
}

/* Final mobile-safe overrides for fixed navigation and transaction cards. */
.app-screen {
  padding-bottom: calc(136px + env(safe-area-inset-bottom));
}

#view-booking {
  padding-bottom: 28px;
}

#bookingSuccess {
  scroll-margin: 96px 0 136px;
}

.section-block,
.campaign-panel,
.booking-form,
.booking-step,
.campaign-preview,
.preview-block,
.profile-card,
.coupon-card,
.appointment-card,
.booking-success,
.booking-deal-summary {
  border-radius: 8px;
}

.booking-success-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-success-summary article:first-child {
  grid-column: 1 / -1;
}

/* 2026-07 sunny promotion polish v2 */
.auth-visual {
  background:
    linear-gradient(135deg, rgba(255, 249, 232, 0.86) 0%, rgba(238, 254, 255, 0.76) 48%, rgba(255, 244, 220, 0.64) 100%),
    url("./assets/customer-hero-fashion.png") center / cover no-repeat;
  background-blend-mode: screen, normal;
  box-shadow: 0 16px 34px rgba(35, 84, 104, 0.14);
}

.auth-visual::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 251, 239, 0.18) 48%, rgba(16, 110, 116, 0.38)),
    linear-gradient(90deg, rgba(255, 196, 104, 0.18), rgba(25, 183, 167, 0.14));
}

.auth-visual-copy {
  text-shadow: 0 4px 18px rgba(15, 80, 90, 0.32);
}

.auth-panel {
  border-color: rgba(226, 240, 244, 0.96);
  box-shadow: 0 18px 38px rgba(35, 84, 104, 0.12);
}

.preview-stats article,
.metric-row article {
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}

.primary-btn,
.quick-grid button,
.coupon-action,
.booking-form .primary-btn {
  background: linear-gradient(135deg, #20bea8 0%, #16a5a0 55%, #3294ec 100%);
  box-shadow: 0 14px 26px rgba(24, 169, 154, 0.22);
}

/* 2026-07 sunny promotion polish v3 */
.auth-visual {
  background:
    linear-gradient(135deg, rgba(255, 250, 235, 0.88) 0%, rgba(239, 255, 253, 0.84) 48%, rgba(229, 246, 255, 0.78) 100%),
    url("./assets/customer-hero-fashion.png") center / cover no-repeat;
  background-blend-mode: normal, screen;
}

.auth-visual::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(252, 249, 236, 0.48) 54%, rgba(223, 248, 245, 0.62)),
    linear-gradient(90deg, rgba(255, 198, 102, 0.18), rgba(25, 183, 167, 0.12));
}

.auth-visual-copy {
  color: #173047;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68);
}

.auth-visual-copy span {
  border-color: rgba(24, 169, 154, 0.34);
  color: #0c7f76;
  background: rgba(255, 255, 255, 0.72);
}

.auth-visual-copy p {
  color: #28485d;
}
