html {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}
/* iOS 输入框防缩放：font-size >= 16px */
input, textarea, select {
  font-size: 16px !important;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon-fill {
  font-variation-settings: 'FILL' 1;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.page-content {
  transition: opacity 0.2s ease;
}
h1, h2, h3, h4, h5, h6, p, span, button, input {
  font-family: sans-serif;
}
.nav-item.active {
  background: var(--c-primary-surface);
  color: var(--c-primary);
  border-radius: var(--r-lg);
  font-weight: 600;
}
.nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}
:root {
  /* === Layout Shell === */
  --app-max-width: 600px;
  --top-bar-height: 64px;
  --tabbar-base-height: 80px;
  --action-bar-base-height: 80px;
  --chat-input-height: 88px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* === Color System — 基于 #236a39 === */
  --c-primary: #236a39;
  --c-primary-light: #2d7a48;
  --c-primary-dark: #1a4f2a;
  --c-primary-surface: rgba(35, 106, 57, 0.06);
  --c-primary-border: rgba(35, 106, 57, 0.18);
  --c-secondary: #428988;
  --c-secondary-surface: rgba(66, 137, 136, 0.08);
  --c-tertiary: #6b5e42;
  --c-error: #ba1a1a;
  --c-error-surface: #ffdad6;
  --c-bg: #f8faf7;
  --c-bg-card: #ffffff;
  --c-bg-elevated: #f1f5ee;
  --c-bg-muted: #e8ede5;
  --c-text: #1a2e1f;
  --c-text-sub: #3d4f41;
  --c-text-hint: #6b7c6f;
  --c-border: rgba(35, 106, 57, 0.12);
  --c-border-light: rgba(35, 106, 57, 0.06);
  --c-divider: rgba(185, 201, 188, 0.35);
  --c-shadow: rgba(35, 106, 57, 0.05);

  /* === Spacing System (8px base) === */
  --sp-2: 2px;
  --sp-4: 4px;
  --sp-6: 6px;
  --sp-8: 8px;
  --sp-10: 10px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;

  /* === Typography — 语义层级 Token === */
  --fs-display: 28px;
  --fs-h1: 22px;
  --fs-h2: 18px;
  --fs-h3: 16px;
  --fs-body-lg: 16px;
  --fs-body: 14px;
  --fs-label: 14px;
  --fs-caption: 12px;
  --fs-micro: 10px;
  --lh-tight: 1.25;
  --lh-base: 1.5;
  --lh-relaxed: 1.75;

  /* === Component Tokens === */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;
  --btn-h: 44px;
  --btn-h-sm: 32px;
  --btn-px: 24px;
  --btn-px-sm: 16px;
  --card-r: var(--r-lg);
  --card-shadow: 0 2px 12px var(--c-shadow);
  --input-r: var(--r-md);
  --chip-px: 16px;
  --chip-py: 8px;
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ============================================================
 Atomic Utility Classes — Design Token Based
 ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-weight: 600;
  font-size: var(--fs-label);
  line-height: 20px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--c-primary);
  color: #ffffff;
  padding: var(--sp-12) var(--btn-px);
  border-radius: var(--r-lg);
  min-height: var(--btn-h);
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  padding: var(--sp-12) var(--btn-px);
  border-radius: var(--r-lg);
  min-height: var(--btn-h);
}
.btn-outline:hover {
  background: var(--c-primary-surface);
}
.btn-ghost {
  background: var(--c-bg-elevated);
  color: var(--c-text-sub);
  border: 1px solid var(--c-border);
  padding: var(--sp-8) var(--btn-px-sm);
  border-radius: var(--r-lg);
  min-height: var(--btn-h-sm);
}
.btn-ghost:hover {
  background: var(--c-bg-muted);
}
.btn-sm {
  min-height: var(--btn-h-sm);
  padding: var(--sp-8) var(--btn-px-sm);
  font-size: var(--fs-caption);
}
.btn-block {
  width: 100%;
}

/* --- Chip / Tag --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--chip-py) var(--chip-px);
  border-radius: var(--r-full);
  font-size: var(--fs-caption);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  color: var(--c-text-sub);
}
.chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.chip--active {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
}

/* --- Card --- */
.card {
  background: var(--c-bg-card);
  border-radius: var(--card-r);
}
/* card--bordered 已全线移除（HTML 中不再使用） */

/* --- Typography helpers --- */
.t-display { font-size: var(--fs-display); font-weight: 700; line-height: 36px; letter-spacing: -0.02em; }
.t-h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 30px; letter-spacing: -0.01em; }
.t-h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 26px; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 24px; }
.t-body { font-size: var(--fs-body); font-weight: 400; line-height: 22px; }
.t-body-lg { font-size: var(--fs-body-lg); font-weight: 400; line-height: 24px; }
.t-label { font-size: var(--fs-label); font-weight: 500; line-height: 20px; letter-spacing: 0.02em; }
.t-caption { font-size: var(--fs-caption); font-weight: 400; line-height: 18px; }

/* --- Upload placeholder (replaces repeated dashed border pattern) --- */
.upload-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--c-text-sub);
}
.upload-zone:hover {
  background: var(--c-bg-elevated);
  border-color: var(--c-primary-border);
}
.upload-zone--muted {
  border-color: var(--c-border-light);
  color: var(--c-text-hint);
}

/* --- Step indicator (replaces repeated step circle pattern) --- */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-border);
  background: var(--c-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--c-text-hint);
  flex-shrink: 0;
}
.step-dot--active {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(35, 106, 57, 0.2);
}
.step-dot--done {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(35, 106, 57, 0.2);
}
.fixed-shell {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.fixed-shell__inner {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}
.fixed-shell__inner--header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--top-bar-height);
  padding-left: 24px;
  padding-right: 24px;
}
.fixed-shell__inner--nav {
  padding-left: 16px;
  padding-right: 16px;
}
.fixed-shell__inner--action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 0;
}
.fixed-shell__inner--chat {
  padding: 0.75rem 1.5rem;
}
.bottom-nav-track {
  min-height: var(--tabbar-base-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-shell {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
}
.page-shell--none {
  padding-bottom: 0;
}
.page-shell--tabbar {
  padding-bottom: calc(var(--tabbar-base-height) + var(--safe-bottom));
}
.page-shell--chat {
  padding-bottom: calc(var(--chat-input-height) + var(--tabbar-base-height) + var(--safe-bottom));
}
.page-shell--action {
  padding-bottom: calc(var(--action-bar-base-height) + var(--safe-bottom));
}
.safe-top {
  padding-top: var(--safe-top);
}
.safe-bottom {
  padding-bottom: var(--safe-bottom);
}
.nav-item {
  padding: 0 0.25rem;
}
.nav-item-label {
  white-space: nowrap;
}
.ai-chat-shell {
  bottom: calc(var(--tabbar-base-height) + var(--safe-bottom));
}
@media (max-width: 390px) {
  .fixed-shell__inner--header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .fixed-shell__inner--nav,
  .fixed-shell__inner--action,
  .fixed-shell__inner--chat {
    padding-left: 12px;
    padding-right: 12px;
  }
  .bottom-nav-track {
    gap: 0.25rem;
  }
  .nav-item .material-symbols-outlined {
    font-size: 22px;
  }
  .nav-item-label {
    font-size: 11px;
    line-height: 1.1;
  }
}
/* 小屏手机适配 */
/* --- Modal / Overlay (expert-schedule, etc.) --- */
.modal-overlay {
position: fixed; inset: 0; z-index: 100;
background: rgba(0,0,0,0.4);
display: flex; align-items: center; justify-content: center;
padding: 24px;
opacity: 0; pointer-events: none;
transition: opacity 0.25s ease;
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
}
.modal-overlay.open {
opacity: 1; pointer-events: auto;
}
.modal-card {
background: #ffffff;
border-radius: var(--r-xl);
width: 100%; max-width: 400px;
max-height: 80vh; overflow-y: auto;
box-shadow: 0 20px 60px rgba(0,0,0,0.15);
transform: translateY(20px) scale(0.96);
transition: transform 0.3s cubic-bezier(.32,.72,0,1);
}
.modal-overlay.open .modal-card {
transform: translateY(0) scale(1);
}
.modal-header {
display: flex; align-items: center; justify-content: space-between;
padding: 20px 24px 0;
}
.modal-header h2 {
font-size: 18px; font-weight: 600; color: #1a2e1f;
margin: 0;
}
.modal-close {
width: 32px; height: 32px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
border: none; background: #f1f5ee; color: #6b7c6f;
cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: #e8ede5; color: #1a2e1f; }
.modal-body { padding: 20px 24px 24px; }
.modal-footer {
display: flex; gap: 12px; padding-top: 16px;
}
.modal-footer .btn { flex: 1; }
@media (max-width: 390px) {
.modal-overlay { padding: 16px; }
.modal-card { border-radius: var(--r-lg); }
.modal-header { padding: 16px 20px 0; }
.modal-body { padding: 16px 20px 20px; }
}

/* --- 纵向时段网格 (expert-schedule) --- */
.slot-grid {
  display: flex; flex-direction: column;
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md); overflow: hidden;
  background: var(--c-bg-card);
}
.slot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; min-height: 30px;
  border-bottom: 1px solid var(--c-border-light);
  transition: background 0.12s ease;
}
.slot-row:last-child { border-bottom: none; }
.slot-row--header {
  background: var(--c-bg-elevated);
  padding: 4px 12px; min-height: 26px;
}
.slot-row--booked {
  background: rgba(37, 99, 235, 0.04);
}
.slot-row--lunch {
  background: var(--c-bg);
}
.slot-time {
  width: 44px; font-size: 11px; font-weight: 600;
  color: var(--c-text); flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.slot-bar {
  width: 4px; height: 18px; border-radius: 3px;
  flex-shrink: 0; transition: all 0.15s ease;
}
.slot-bar-header {
  width: 4px; flex-shrink: 0;
}
.slot-bar--avail {
  background: var(--c-primary-light);
  opacity: 0.45;
}
.slot-bar--booked {
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.slot-bar--disabled {
  background: var(--c-bg-muted);
  opacity: 0.7;
}
.slot-bar--lunch {
  background: transparent;
  border: 1px dashed var(--c-border);
  opacity: 0.5;
}
.slot-info {
  font-size: 11px; color: var(--c-text);
  display: flex; align-items: center; gap: 4px;
  flex: 1; overflow: hidden; white-space: nowrap;
}
.slot-row--lunch .slot-info { color: var(--c-text-hint); font-style: italic; }
.slot-row--disabled .slot-info { color: var(--c-text-hint); }
.slot-store-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.slot-store-name {
  font-weight: 600;
}

/* --- 专家排班操作列（调班按钮） --- */
.slot-action {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-action-header {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-hint);
}
.slot-swap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-secondary);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}
.slot-swap-btn:hover {
  background: var(--c-secondary-surface);
  border-color: var(--c-secondary);
}
.slot-swap-btn:active {
  transform: scale(0.95);
}

/* --- 时段设置弹窗网格 --- */
.slot-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.slot-settings-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 4px 8px;
  border-radius: var(--r-md); border: 1.5px solid var(--c-border);
  background: var(--c-bg-card); cursor: pointer;
  transition: all 0.15s ease; user-select: none;
}
.slot-settings-item:hover {
  border-color: var(--c-primary-border);
  background: var(--c-primary-surface);
}
.slot-settings-item.active {
  border-color: var(--c-primary);
  background: rgba(35, 106, 57, 0.05);
}
.slot-settings-time {
  font-size: 11px; font-weight: 600; color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.slot-settings-indicator {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg-elevated);
  transition: all 0.15s ease;
}
.slot-settings-item.active .slot-settings-indicator {
  border-color: var(--c-primary);
  background: var(--c-primary);
  box-shadow: 0 1px 4px rgba(35, 106, 57, 0.25);
}
.slot-settings-label {
  font-size: 10px; color: var(--c-text-hint);
  font-weight: 500;
}
.slot-settings-item.active .slot-settings-label {
  color: var(--c-primary); font-weight: 600;
}
.slot-settings-lunch-sep {
  grid-column: 1 / -1;
  text-align: center; padding: 6px 0 2px;
  font-size: 10px; color: var(--c-text-hint);
  border-bottom: 1px dashed var(--c-border);
  font-style: italic; font-weight: 500;
}

@keyframes modal-bg-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 360px) {
  .fixed-shell__inner--header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .fixed-shell__inner--nav,
  .fixed-shell__inner--action,
  .fixed-shell__inner--chat {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bottom-nav-track {
    gap: 0.125rem;
  }
  .nav-item {
    gap: 0.125rem;
    padding: 0 0.125rem;
  }
  .nav-item .material-symbols-outlined {
    font-size: 20px;
  }
  .nav-item-label {
    font-size: 10px;
    line-height: 1;
  }
  .product-aside {
    width: 72px !important;
  }
  .product-aside button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 12px;
  }
  }

/* ============================================================
   Page-Specific Styles
   ============================================================ */

/* --- store-schedule (Lines 3874-3888) --- */
.shift-morning { background: #fef3c7; color: #92400e; }
.shift-evening { background: #e0e7ff; color: #3730a3; }
.shift-full { background: #d1fae5; color: #065f46; }
.shift-off { background: #e5e7eb; color: #6b7280; }
.shift-leave { background: #ffe4e6; color: #be123c; }

/* Threshold settings qty input – hide number spinners */
.ts-qty-input[type="number"]::-webkit-outer-spin-button,
.ts-qty-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ts-qty-input[type="number"] {
  -moz-appearance: textfield;
}

/* --- recharge (Lines 5253-5288) --- */
/* 重置 radio 默认样式 */
.payment-method input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
}
.payment-method input[type="radio"]:checked {
  border-color: #236a39;
  background: #236a39;
}
/* 禁用态按钮 */
#btn-recharge-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* 金额按钮微交互 */
.recharge-amount-btn:active {
  transform: scale(0.95);
}
/* 隐藏 number input 箭头 */
#recharge-custom-amount::-webkit-outer-spin-button,
#recharge-custom-amount::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
#recharge-custom-amount[type="number"] {
-moz-appearance: textfield;
}

/* --- invoicing (Lines 5809-5832) --- */
/* 列表折叠过渡 */
#invoice-order-items-compact {
transition: all 0.2s ease;
}

/* --- new-appointment (Lines 6366-6401) --- */
/* 隐藏 radio 原始样式，用 label 实现卡片选择 */
.apt-tech-option input[type="radio"] {
position: absolute;
opacity: 0;
pointer-events: none;
}
.apt-service-cb {
-webkit-appearance: none;
appearance: none;
}
.apt-service-cb:checked {
background-color: #236a39;
border-color: #236a39;
}
/* 日期网格滚动支持 */
#apt-date-grid {
overflow-x: auto;
}
#apt-date-grid::-webkit-scrollbar { display: none; }
/* 时间槽不可用态 */
.apt-time-slot:disabled {
  cursor: not-allowed;
}

/* --- new-client (Lines 6406-6450) --- */
.form-input {
  width: 100%; height: 50px; padding: 0 20px;
  background: #ffffff; border: 1.5px solid #d7e5d9; border-radius: var(--r-lg);
  font-size: 16px !important; color: #1a2e1f;
  transition: all 0.2s ease; outline: none;
}
.form-input:focus { border-color: #236a39; box-shadow: 0 0 0 3px rgba(35,106,57,0.06); }
.form-input::placeholder { color: #6b7c6f; }
.form-input.error { border-color: #ba1a1a; }
.form-textarea {
  width: 100%; min-height: 100px; padding: 12px 16px;
  background: #ffffff; border: 1.5px solid #d7e5d9; border-radius: var(--r-lg);
  font-size: 16px !important; color: #1a2e1f; font-family: inherit;
  transition: all 0.2s ease; outline: none; resize: vertical;
}
.form-textarea:focus { border-color: #236a39; box-shadow: 0 0 0 3px rgba(35,106,57,0.06); }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #1a2e1f; margin-bottom: 6px; }
.form-label .required { color: #ba1a1a; margin-left: 2px; }
.form-hint { font-size: 11px; color: #6b7c6f; margin-top: 4px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 500;
  border: 1.5px solid #d7e5d9; background: #ffffff; color: #3d4f41;
  cursor: pointer; transition: all 0.2s ease; user-select: none;
}
.tag-chip:hover { border-color: #236a39; color: #236a39; }
.tag-chip.active { background: #236a39; color: #ffffff; border-color: #236a39; }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-option {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: var(--r-full); border: 1.5px solid #d7e5d9;
  background: #ffffff; color: #3d4f41; font-size: 14px;
  cursor: pointer; transition: all 0.2s ease;
}
.radio-option:hover { border-color: #236a39; color: #236a39; }
.radio-option.active { background: rgba(35,106,57,0.06); color: #236a39; border-color: #236a39; font-weight: 500; }
.radio-option .radio-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #d7e5d9; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.radio-option.active .radio-dot { border-color: #236a39; }
.radio-option.active .radio-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #236a39; }

/* --- product pages custom shadows (Tailwind CDN 不对动态内容生效) --- */
/* 纯平风格：shadow classes 已移除，保留类名兼容 */
.shadow-btn {
  box-shadow: 0 2px 8px rgba(35, 106, 57, 0.18);
}

/* --- goods-detail (slide-up animation & styles) --- */
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.animate-slide-up {
  animation: slide-up 0.35s cubic-bezier(.32,.72,0,1);
}
#goods-swiper {
  -webkit-user-select: none;
  user-select: none;
}
.sku-option.active {
  box-shadow: 0 2px 8px rgba(35,106,57,0.2);
}
#detail-content {
  will-change: max-height;
}

/* card-detail payment radio — checked state managed by JS (iOS 14 compatible, no :has()) */
#card-purchase-popup label.card-payment-checked {
  border-color: #d4a853;
  background: rgba(245, 230, 200, 0.5);
}

/* verification (Lines 7610-7698) --- */
/* Tab 切换过渡 */
.vrf-tab {
  transition: all 0.2s ease;
}
.vrf-tab:active {
  transform: scale(0.95);
}
/* 客户列表项悬停 */
.vrf-customer-item {
  transition: all 0.15s ease;
}
.vrf-customer-item:active {
  transform: scale(0.99);
}
/* 核销订单项过渡 */
.vrf-order-item {
  transition: background 0.15s ease;
}
.vrf-order-item:last-child {
  border-bottom: none;
}
/* 核销按钮 */
.vrf-verify-btn {
  transition: all 0.2s ease;
}
.vrf-verify-btn:active {
  transform: scale(0.95);
}
/* 扫码动画 — 扫描线 */
#vrf-scan-line {
  transition: none;
  will-change: top;
  box-shadow: 0 0 12px 2px rgba(35, 106, 57, 0.5), 0 0 4px rgba(35, 106, 57, 0.3);
}
/* 扫码框四角 */
.border-t-3 { border-top-width: 3px; }
.border-l-3 { border-left-width: 3px; }
.border-r-3 { border-right-width: 3px; }
.border-b-3 { border-bottom-width: 3px; }
/* 扫码容器动画背景 */
#vrf-panel-scan .bg-black\/90 {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}
/* Toast 动画 */
#vrf-toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* 核销结果图标动画 */
.vrf-panel .text-success {
  color: #236a39;
}
.bg-success\/10 {
  background: rgba(35, 106, 57, 0.1);
}
.text-success {
  color: #236a39;
}
/* 搜索输入框圆角统一 */
#vrf-customer-search,
#vrf-code-input {
  -webkit-appearance: none;
  appearance: none;
}
/* 滚动区域 */
#vrf-customer-list,
/* 底部固定留白 */
#page-verification .mt-auto {
  margin-top: auto;
}

/* --- service-log (Lines 7704-7729) --- */
.chip-filter {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 18px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  border: 1.5px solid #d7e5d9;
  background: #ffffff; color: #3d4f41;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; user-select: none;
}
.chip-filter:hover { border-color: #236a39; color: #236a39; }
.chip-filter.active { background: #236a39; color: #ffffff; border-color: #236a39; }
/* ─── Order Tab (my-orders) ─── */
.order-tab {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: #6b7c6f; border-bottom: 2px solid transparent;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
}
.order-tab:hover { color: #236a39; }
.order-tab.active { color: #236a39; border-bottom-color: #236a39; font-weight: 600; }
.order-card-hover { transition: all 0.2s ease; }
.order-card-hover:hover { box-shadow: 0 4px 20px rgba(35,106,57,0.10); transform: translateY(-1px); }
.status-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 500; white-space: nowrap; }
.status-badge--done { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-badge--progress { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-badge--cancelled { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* ─── Service Order (appointment-list) ─── */
.svc-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-sub);
  background: var(--c-bg-card);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}
.svc-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
.svc-tab.active {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
  box-shadow: 0 2px 8px rgba(35, 106, 57, 0.2);
}
.svc-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  font-size: 10px; font-weight: 600;
  background: rgba(0,0,0,0.08);
  color: inherit;
}
.svc-tab.active .svc-tab-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.svc-card__accent {
  position: absolute;
  top: 14px; left: -1px;
  width: 3px; height: 28px;
  border-radius: 0 3px 3px 0;
}
.svc-card__accent--appointment-confirm { background: #d97706; }
.svc-card__accent--service-confirm { background: #f97316; }
.svc-card__accent--waiting { background: #2563eb; }
.svc-card__accent--in-progress { background: #059669; }
.svc-card__accent--completed { background: #6b7280; }
.svc-card__accent--refund { background: #dc2626; }
.svc-card__accent--redo { background: #7c3aed; }
.svc-card__accent--awaiting-payment { background: #4338ca; }

.svc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.svc-status-badge--appointment-confirm { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.svc-status-badge--service-confirm { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.svc-status-badge--waiting { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.svc-status-badge--waiting2 { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.svc-status-badge--completed { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.svc-status-badge--refund { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.svc-status-badge--refund-partial { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.svc-status-badge--redo { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }
.svc-status-badge--in-progress { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.svc-status-badge--awaiting-payment { background: #f0f0ff; color: #4338ca; border: 1px solid #c7d2fe; }
.svc-status-badge--appointment { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }

.svc-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  background: rgba(35, 106, 57, 0.06);
  color: var(--c-primary);
  border: 1px solid rgba(35, 106, 57, 0.12);
  white-space: nowrap;
}

.svc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-sub);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.svc-action-btn:hover { background: var(--c-primary-surface); color: var(--c-primary); border-color: var(--c-primary-border); }
.svc-action-btn:active { transform: scale(0.95); }
.svc-action-btn--primary {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
  box-shadow: 0 2px 6px rgba(35,106,57,0.2);
}
.svc-action-btn--primary:hover { filter: brightness(1.1); }

.svc-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 24px 24px;
}
.svc-sheet-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--c-border-light);
  background: var(--c-bg);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.svc-sheet-action:hover { background: var(--c-primary-surface); border-color: var(--c-primary-border); }
.svc-sheet-action:active { transform: scale(0.95); }
.svc-sheet-action .material-symbols-outlined { font-size: 28px; color: var(--c-primary); }
.svc-sheet-action span:last-child { font-size: 11px; font-weight: 500; color: var(--c-text-sub); }

.svc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--c-text-hint);
}
.svc-empty .material-symbols-outlined { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.svc-empty p { font-size: 14px; text-align: center; }

/* Modal form for service order actions */
.svc-modal-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--input-r);
  font-size: 16px;
  color: var(--c-text);
  outline: none;
  transition: all 0.2s ease;
}
.svc-modal-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-surface); }
.svc-modal-input::placeholder { color: var(--c-text-hint); }

.svc-tech-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--c-bg-card);
}
.svc-tech-option:hover { border-color: var(--c-primary-border); background: var(--c-primary-surface); }
.svc-tech-option.selected { border-color: var(--c-primary); background: var(--c-primary-surface); }
.svc-tech-option .radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s ease;
}
.svc-tech-option.selected .radio-dot { border-color: var(--c-primary); }
.svc-tech-option.selected .radio-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary);
}

/* Toast for feedback */
.svc-toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a2e1f;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 200;
  white-space: nowrap;
  max-width: calc(100vw - 48px);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.svc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.svc-toast .material-symbols-outlined { font-size: 16px; vertical-align: middle; margin-right: 6px; }

/* --- QR Code Payment Modal --- */
.svc-qr-box {
  width: 200px; height: 200px;
  background: #ffffff;
  border-radius: var(--r-lg);
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.svc-qr-placeholder {
  width: 160px; height: 160px;
  background: #f8faf7;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.svc-qr-placeholder::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid var(--c-primary);
  border-radius: var(--r-sm);
  opacity: 0.15;
}
.svc-qr-placeholder .material-symbols-outlined {
  font-size: 48px;
  color: var(--c-primary);
}
.svc-qr-placeholder span:last-child {
  font-size: 11px;
  color: var(--c-text-hint);
}

/* --- Delete Select Modal (item/tech removal) --- */
.svc-delete-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--c-bg-card);
}
.svc-delete-option:hover { border-color: var(--c-error); background: rgba(186,26,26,0.04); }
.svc-delete-option.selected { border-color: var(--c-error); background: rgba(186,26,26,0.06); }
.svc-delete-option .delete-cb {
  width: 20px; height: 20px; border-radius: var(--r-xs);
  border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s ease;
}
.svc-delete-option.selected .delete-cb {
  background: var(--c-error);
  border-color: var(--c-error);
}

/* --- Tech Select for Change (改技师 先选技师) --- */
.svc-change-tech-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--c-bg-card);
}
.svc-change-tech-option:hover { border-color: var(--c-primary-border); background: var(--c-primary-surface); }

/* --- Payment Method Buttons --- */
.svc-pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg-card);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-width: 90px;
}
.svc-pay-method-btn:hover { border-color: var(--c-primary-border); background: var(--c-primary-surface); }
.svc-pay-method-btn:active { transform: scale(0.95); }
.svc-pay-method-btn.active {
  border-color: var(--c-primary);
  background: var(--c-primary-surface);
  box-shadow: 0 0 0 3px rgba(35,106,57,0.1);
}

/* ─── Star Rating (order-review) ─── */
.star-empty { color: #d1d5db; font-variation-settings: 'FILL' 0; }
.star-filled { color: #f59e0b; font-variation-settings: 'FILL' 1; }
#star-rating .star { transition: all 0.15s ease; user-select: none; }
#star-rating .star:active { transform: scale(0.9) !important; }

