/* ============================================
   零代码平台 — Pure CSS (no dependencies)
   ============================================ */

/* --- Design Tokens --- */
:root {
  --primary: #4a7ff7;
  --primary-light: #eef3ff;
  --primary-hover: #f0f3ff;
  --primary-active: #e8edff;
  --danger: #e34d59;
  --text-main: #1a1a1a;
  --text-body: #666;
  --text-hint: #999;
  --text-light: #bbb;
  --bg-page: #f5f6f7;
  --bg-card: #fff;
  --border: #e7e7e7;
  --border-light: #f0f0f0;
  --sidebar-w: 220px;
  --sidebar-collapsed-w: 56px;
  --header-h: 56px;
  --radius-card: 10px;
  --radius-btn: 6px;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* --- Global Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font-stack); font-size: 14px; color: var(--text-main); background: var(--bg-page); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input { font-family: inherit; outline: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #c4cdd5; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- Button --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 16px; border-radius: var(--radius-btn); font-size: 13px; font-weight: 500;
  transition: all .2s; gap: 6px; border: 1px solid var(--border);
  background: #fff; color: var(--text-main);
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: #5a8af0; border-color: #5a8af0; color: #fff; opacity: 0.92; }
.btn--sm { padding: 4px 12px; font-size: 12px; }
.btn--lg { padding: 10px 28px; font-size: 15px; font-weight: 500; border-radius: 8px; }
.btn--block { width: 100%; }
.btn--outline { background: transparent; }

/* --- Layout --- */
.app-layout { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: #fff; border-right: 1px solid var(--border); z-index: 100;
  display: flex; flex-direction: column; transition: width .25s ease;
  overflow: hidden;
}
.sidebar--collapsed { width: var(--sidebar-collapsed-w); }
.sidebar__header {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.sidebar__brand { display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.sidebar__toggle { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; flex-shrink: 0; }
.sidebar__toggle:hover { background: var(--primary-hover); }
.sidebar__menu { flex: 1; overflow-y: auto; padding: 8px 0; }

.sidebar__menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 40px; cursor: pointer; transition: all .15s;
  white-space: nowrap; overflow: hidden;
}
.sidebar__menu-item:hover { background: var(--primary-hover); }
.sidebar__menu-item--active { background: var(--primary-active); color: var(--primary); }
.sidebar__menu-item--active-parent { color: var(--primary); }
.sidebar__menu-item-left { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.sidebar__menu-icon { flex-shrink: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.sidebar__menu-label { font-size: 14px; }
.sidebar__menu-arrow { display: flex; align-items: center; color: #999; transition: transform .2s; flex-shrink: 0; }

.sidebar__submenu { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.sidebar__submenu--open { max-height: 400px; }
.sidebar__submenu-item {
  padding: 0 16px 0 44px; height: 36px; display: flex; align-items: center;
  font-size: 13px; color: var(--text-body); cursor: pointer; transition: all .15s;
  white-space: nowrap; overflow: hidden;
}
.sidebar__submenu-item:hover { background: var(--primary-hover); color: var(--primary); }
.sidebar__submenu-item--active { background: var(--primary-active); color: var(--primary); font-weight: 500; }

/* Collapsed sidebar */
.sidebar--collapsed .sidebar__brand { display: none; }
.sidebar--collapsed .sidebar__header { justify-content: center; }
.sidebar--collapsed .sidebar__menu-label,
.sidebar--collapsed .sidebar__menu-arrow,
.sidebar--collapsed .sidebar__submenu { display: none; }
.sidebar--collapsed .sidebar__menu-item { justify-content: center; padding: 0; }
.sidebar--collapsed .sidebar__menu-item-left { justify-content: center; }

/* --- Main Area --- */
.app-layout__main {
  margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; transition: margin-left .25s ease;
}
.app-layout__main--collapsed { margin-left: var(--sidebar-collapsed-w); }
.app-header {
  height: var(--header-h); background: var(--bg-card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex-shrink: 0;
}
.app-header__title { font-size: 16px; font-weight: 600; }
.app-layout__content { flex: 1; padding: 24px; overflow-y: auto; }

/* ==========================================
   Page: Store List
   ========================================== */
.app-layout__main--full {
  margin-left: 0 !important; width: 100%; max-width: 100%;
}
.app-layout__main--full .app-layout__content {
  padding: 0;
}
.store-list-page {
  min-height: 100vh; background: #fff;
}
.store-list-page__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px; background: transparent;
}
.store-list-page__logo { display: flex; align-items: center; }
.store-list-page__avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.store-list-page__avatar svg { stroke: #fff; }
.store-list-page__right-actions {
  display: flex; align-items: center; gap: 12px;
}
.store-list-page__lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid #ddd; background: #fff;
  font-size: 13px; font-weight: 500; color: #333;
  cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.store-list-page__lang-toggle:hover {
  border-color: var(--primary); color: var(--primary);
  background: #f0f5ff;
}
.store-list-page__lang-toggle svg { flex-shrink: 0; }
.store-list-page__body {
  padding: 24px 48px;
}
.store-list-page__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.store-list-page__empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 0;
  color: var(--text-hint); font-size: 14px;
}
.store-card {
  position: relative;
  background: #fff; border: 1px solid #e8e8ee; border-radius: 10px;
  padding: 20px; cursor: pointer; transition: all .2s;
}
.store-card:hover {
  border-color: var(--primary); box-shadow: 0 4px 16px rgba(74,127,247,.1);
  transform: translateY(-2px);
}
/* -- Add Store Card -- */
.store-card--add {
  border: 2px dashed #d0d0d8; background: #fafafc;
  display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 20px;
}
.store-card--add:hover {
  border-color: var(--primary); background: #f5f0ff;
  box-shadow: 0 4px 16px rgba(74,127,247,.08);
  transform: translateY(-2px);
}
.store-card--add__inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.store-card--add__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #f0ecff; color: #7c5cfc;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.store-card--add:hover .store-card--add__icon {
  background: #e0d4ff; color: #5a3de6;
  transform: scale(1.08);
}
.store-card--add__label {
  font-size: 14px; font-weight: 500; color: #999;
  transition: color .2s;
}
.store-card--add:hover .store-card--add__label {
  color: var(--primary);
}
.store-card__header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.store-card__icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.store-card__info { flex: 1; min-width: 0; }
.store-card__delete-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: transparent; color: #c0c0c8; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0; opacity: 0;
  pointer-events: none;
}
.store-card:hover .store-card__delete-btn {
  opacity: 1; pointer-events: auto;
}
.store-card__delete-btn:hover {
  background: #fff0f0; color: #e74c3c;
}
.store-card__name {
  font-size: 15px; font-weight: 600; color: var(--text-main);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.store-card__trial { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.store-card__industry-tag {
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--tag-color, #7c5cfc);
  background: color-mix(in srgb, var(--tag-color, #7c5cfc) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, #7c5cfc) 20%, transparent);
  line-height: 1.4; white-space: nowrap;
}
.store-card__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid #f0f0f5;
}
.store-card__stats {
  display: flex; gap: 24px; padding-top: 12px;
  border-top: 1px solid #f0f0f5;
}
.store-card__stats--center {
  justify-content: center; text-align: center;
}
.store-card__stat { }
.store-card__stat-value { font-size: 18px; font-weight: 700; color: var(--text-main); }
.store-card__stat-label { font-size: 11px; color: var(--text-hint); margin-top: 2px; }
.store-card__meta {
  padding: 8px 0 4px; display: flex; flex-direction: column; gap: 4px;
}
.store-card__meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-hint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.store-card__meta-item svg { flex-shrink: 0; stroke: #999; }

/* ==========================================
   Page: Store Manage (门店管理)
   ========================================== */
/* Store table */
.sm-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.sm-table__th {
  text-align: left; padding: 10px 12px; font-weight: 500;
  color: var(--text-hint); font-size: 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.sm-table__row { transition: background 0.15s; }
.sm-table__row:hover { background: #f8f9fb; }
.sm-table__cell {
  padding: 14px 12px; border-bottom: 1px solid var(--border);
  color: var(--text-main); vertical-align: middle;
}
.sm-table__cell--name { font-weight: 500; white-space: nowrap; }
.sm-default-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--primary); background: #eef3ff;
  padding: 1px 8px; border-radius: 4px; margin-left: 8px;
  vertical-align: middle;
}
.sm-table__cell--remark { color: var(--text-hint); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-table__cell--actions { white-space: nowrap; }
.action-link--danger { color: #e74c3c !important; }
.action-link--danger:hover { color: #c0392b !important; }

/* Modal */
.sm-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.sm-modal {
  background: #fff; border-radius: 14px; width: 460px; max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.sm-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.sm-modal__title { font-size: 17px; font-weight: 600; color: var(--text-main); margin: 0; }
.sm-modal__close {
  width: 28px; height: 28px; border: none; background: transparent;
  border-radius: 50%; font-size: 18px; color: #999; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.sm-modal__close:hover { background: #f5f5f5; color: #333; }
.sm-modal__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.sm-modal__footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid #f0f0f5;
}

/* Form fields (shared) */
.store-manage__field { display: flex; flex-direction: column; gap: 6px; }
.store-manage__label { font-size: 13px; font-weight: 500; color: var(--text-main); }
.store-manage__required { color: #e74c3c; margin-right: 2px; }
.store-manage__textarea {
  min-height: 80px; resize: vertical;
  font-family: inherit; line-height: 1.5;
}

/* Time Picker */
.sm-time-picker {
  display: flex; align-items: center; gap: 10px;
}
.sm-time-input {
  width: 130px; text-align: center; font-size: 14px;
}
.sm-time-picker__sep {
  font-size: 14px; color: var(--text-hint); user-select: none;
}

/* ==========================================
   Page: Home
   ========================================== */
.home-page__welcome { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.home-page__subtitle { font-size: 14px; color: var(--text-hint); margin-bottom: 24px; }
.home-page__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card); border-radius: var(--radius-card); padding: 20px;
  border: 1px solid var(--border); transition: all .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.stat-card__label { font-size: 13px; color: var(--text-hint); margin-bottom: 8px; }
.stat-card__value { font-size: 28px; font-weight: 700; }
.home-page__quick-actions h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  background: var(--bg-card); border-radius: var(--radius-card); padding: 24px;
  text-align: center; border: 1px solid var(--border); cursor: pointer;
  font-size: 14px; color: var(--text-body); transition: all .2s;
}
.quick-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74,127,247,.1); }

/* ==========================================
   Page: Placeholder
   ========================================== */
.placeholder-page {
  display: flex; align-items: center; justify-content: center; min-height: 400px;
}
.placeholder-page__card {
  background: var(--bg-card); border-radius: 12px; padding: 48px 64px;
  text-align: center; border: 1px solid var(--border);
}
.placeholder-page__title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.placeholder-page__desc { font-size: 14px; color: var(--text-hint); }

/* ==========================================
   Page: Store Design
   ========================================== */
.store-design__header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.store-design__title { font-size: 20px; font-weight: 600; }
.store-design__adv { font-size: 13px; color: var(--primary); cursor: pointer; }
.store-design__body { display: flex; gap: 64px; align-items: flex-start; justify-content: center; }
.store-design__body .ob-phone-preview,
.store-design__body .ob-phone-preview--tpl { width: 300px; flex-shrink: 0; position: sticky; top: 24px; }
.store-design__body .ob-phone-preview__frame,
.store-design__body .ob-phone-preview--tpl .ob-phone-preview__frame { width: 300px; height: 650px; }
.store-design__settings { display: flex; flex-direction: column; gap: 16px; width: 340px; flex-shrink: 0; }

/* Settings cards */
.settings-card {
  background: var(--bg-card); border-radius: var(--radius-card); padding: 16px;
  border: 1px solid var(--border);
}
.settings-card__title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.settings-card__subtitle { font-size: 12px; color: var(--text-hint); margin-bottom: 12px; }
.settings-card__label { font-size: 13px; color: var(--text-main); margin-bottom: 6px; display: flex; align-items: center; gap: 2px; }
.settings-card__required { color: var(--danger); }

/* Input */
.input-text {
  width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); font-size: 13px; transition: border-color .2s;
}
.input-text:focus { border-color: var(--primary); }

/* Upload box */
.upload-box {
  width: 64px; height: 64px; border: 1px dashed #c4cdd5; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #c4cdd5;
  transition: border-color .2s;
}
.upload-box:hover { border-color: var(--primary); color: var(--primary); }

/* Checkbox group */
.checkbox-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkbox-label {
  display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.nav-checkbox-label {
  display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; user-select: none;
}
.nav-checkbox-label input[type="checkbox"] {
  width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer;
}

/* Style cards (global styles) */
.style-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.style-card {
  border: 2px solid var(--border); border-radius: 8px; padding: 10px; cursor: pointer;
  transition: border-color .2s; overflow: hidden;
}
.style-card--active { border-color: var(--primary); }
.style-card:hover { border-color: var(--primary); }
.style-card__preview { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.style-card__box { height: 30px; border-radius: 3px; }
.style-card__bar { height: 4px; border-radius: 2px; margin-top: 4px; }
.style-card__name { font-size: 12px; text-align: center; color: var(--text-secondary); margin-top: 6px; }

/* Color capsules */
.color-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.color-capsule {
  display: flex; width: 56px; height: 24px; border-radius: 12px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: border-color .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.color-capsule--active { border-color: var(--primary); }
.color-capsule:hover { border-color: var(--primary); }
.color-capsule__seg { flex: 1; min-width: 0; }

/* Layout / ratio toggles */
.toggle-options { display: flex; gap: 8px; margin-bottom: 16px; }
.toggle-option {
  padding: 6px 16px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-size: 12px; cursor: pointer; transition: all .2s; background: #fff;
}
.toggle-option--active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.toggle-option:hover { border-color: var(--primary); }

/* ==========================================
   Phone Preview
   ========================================== */
.phone-preview { width: 300px; flex-shrink: 0; position: sticky; top: 24px; }
.phone-preview__frame {
  width: 300px; height: 650px; background: #fff; border-radius: 36px;
  border: 8px solid #e7e7e7; padding: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
  display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
}
.phone-preview__content {
  flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.phone-preview__content::-webkit-scrollbar { width: 0; display: none; }

/* Phone search bar */
.phone-search {
  display: flex; align-items: center; background: #f5f5f5; border-radius: 16px;
  padding: 6px 12px; gap: 6px; margin-bottom: 10px;
}
.phone-search__text { font-size: 12px; color: #999; flex: 1; }

/* Phone hero (legacy) */
.phone-hero {
  height: 160px; background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.phone-hero__circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.5); position: absolute; right: 20px; top: 20px;
}

/* Phone carousel (real sliding) */
.phone-carousel {
  position: relative; border-radius: 8px; margin-bottom: 10px;
  overflow: hidden; height: 130px;
}
.phone-carousel__track {
  display: flex; width: 100%; height: 100%;
  transition: transform .5s ease;
}
.phone-carousel__slide {
  min-width: 100%; height: 100%; flex-shrink: 0;
}
.phone-carousel__slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.phone-carousel__dots {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.phone-carousel__dot {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5);
  cursor: pointer; transition: background .2s;
}
.phone-carousel__dot--active {
  background: #fff; width: 14px; border-radius: 3px;
}

/* Phone tabs (ranking) */
.phone-tabs {
  display: flex; gap: 12px; margin-bottom: 8px; padding: 0 4px;
}
.phone-tab {
  font-size: 12px; font-weight: 600; color: var(--text-hint); cursor: pointer;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.phone-tab--active { color: var(--text-main); border-bottom-color: var(--text-main); }

/* Phone ranked products */
.phone-ranked { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.phone-ranked-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px;
}
.phone-ranked-item__badge {
  width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.phone-ranked-item__badge--1 { background: #ff4d4f; }
.phone-ranked-item__badge--2 { background: #ff7a00; }
.phone-ranked-item__badge--3 { background: #ffc53d; }
.phone-ranked-item__img {
  width: 40px; height: 40px; background: #f0f0f0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phone-ranked-item__name { font-size: 11px; color: var(--text-main); }

/* Phone product cards */
.phone-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.phone-product-card { border-radius: 6px; overflow: hidden; }
.phone-product-card__img {
  height: 60px; background: #f0f0f0; display: flex; align-items: center;
  justify-content: center;
}
.phone-product-card__name { font-size: 10px; padding: 4px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-product-card__price { font-size: 10px; padding: 0 4px 4px; color: var(--danger); font-weight: 600; }

/* Phone carousel component (轮播图 component style) */
.phone-carousel-comp { margin-bottom: 10px; }
.phone-carousel-comp__banner {
  width: 100%; height: 130px; border-radius: 8px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 40%, #3a3a55 100%);
  display: flex; align-items: center; justify-content: center;
}
.phone-carousel-comp__overlay {
  text-align: center; color: #fff; z-index: 1; padding: 16px;
}
.phone-carousel-comp__title {
  font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: .5px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.phone-carousel-comp__desc {
  font-size: 9px; opacity: .8; margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.phone-carousel-comp__btn {
  display: inline-block; padding: 4px 14px; background: #fff; color: #1a1a2e;
  font-size: 9px; font-weight: 600; border-radius: 3px; cursor: pointer;
}
.phone-carousel-comp__dots {
  display: flex; justify-content: center; gap: 4px; margin-top: 6px;
}
.phone-carousel-comp__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ccc;
}
.phone-carousel-comp__dot--active { background: #333; }
.phone-carousel-comp__banner--img {
  background: none !important; padding: 0;
}
.phone-carousel-comp__banner--img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
}

/* Phone nav component (图文导航 component style) */
.phone-nav-comp {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 4px;
  margin-bottom: 10px; padding: 8px 0;
  border: 1px solid #eee; border-radius: 8px; padding: 10px 4px;
  background: #fff;
}
.phone-nav-comp__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.phone-nav-comp__icon {
  width: 28px; height: 28px; border-radius: 50%; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  overflow: hidden;
}
.phone-nav-comp__icon-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.phone-nav-comp__label {
  font-size: 7px; color: #666; white-space: nowrap;
}

/* Phone products component (RECOMMEND vertical list style) */
.phone-products-comp {
  margin-bottom: 10px; background: #fff; border-radius: 8px;
  padding: 10px 8px; border: 1px solid #f0f0f0;
}
.phone-products-comp__header {
  font-size: 11px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px;
  letter-spacing: .3px;
}
.phone-products-comp__list {
  display: flex; flex-direction: column; gap: 8px;
}
.phone-products-comp__row {
  display: flex; gap: 8px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid #f5f5f5;
}
.phone-products-comp__row:last-child { border-bottom: none; }
.phone-products-comp__thumb {
  width: 56px; height: 56px; min-width: 56px; background: #f5f5f5; border-radius: 6px;
  overflow: hidden;
}
.phone-products-comp__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.phone-products-comp__info {
  flex: 1; min-width: 0;
}
.phone-products-comp__name {
  font-size: 9px; font-weight: 500; color: #1a1a1a; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone-products-comp__rating {
  font-size: 7px; color: #999; margin-bottom: 2px;
}
.phone-products-comp__price {
  font-size: 10px; font-weight: 700; color: #1a1a1a;
}
.phone-products-comp__viewall {
  margin-top: 8px; text-align: center; padding: 5px 0;
  background: #f5f3ee; border-radius: 14px; font-size: 8px;
  color: #666; cursor: pointer; font-weight: 500;
}

/* ── Beauty Theme Phone Preview ── */
.ob-phone-preview__frame--beauty {
  background: #f5ede3 !important;
}
/* ── Food Theme Phone Preview ── */
.ob-phone-preview__frame--food {
  background: #fdf5f0 !important;
}
.ob-phone-preview__content--beauty {
  background: #f5ede3 !important;
}
.phone-beauty-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px 4px;
}
.phone-beauty-header__brand {
  font-size: 16px; font-weight: 700; color: #5a3e1b;
  font-style: italic; letter-spacing: 1px;
  font-family: 'Georgia', 'Times New Roman', 'Playfair Display', serif;
}
.phone-beauty-header__icons {
  display: flex; gap: 6px; align-items: center;
}
.phone-beauty-header__search-icon {
  display: flex; align-items: center; justify-content: center;
}
.phone-beauty-header__search-icon svg {
  width: 16px; height: 16px;
}
/* Phone Announcement Bar */
.phone-announcement {
  margin: 0 8px 8px; padding: 0;
}
.phone-announcement__inner {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: #faf7f2; border-radius: 16px;
  border: 1px solid #f0ebe3;
}
.phone-announcement__icon {
  flex-shrink: 0; width: 14px; height: 14px;
}
.phone-announcement__text {
  flex: 1; font-size: 8px; color: #5a3e1b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone-announcement__arrow {
  flex-shrink: 0; font-size: 10px; color: #c8a96e;
}
/* Beauty carousel */
.phone-carousel-comp--beauty {
  margin: 0 0 8px;
}
.phone-carousel-comp__banner--beauty {
  background: url('./images/products/spa-banner.png') center/cover no-repeat;
  min-height: 130px; position: relative; border-radius: 12px;
  overflow: hidden;
}
.phone-carousel-comp__overlay--beauty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; padding: 16px;
  background: rgba(42, 30, 15, 0.45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.phone-carousel-comp__title--beauty {
  font-size: 16px; font-weight: 700; color: #fff;
  line-height: 1.3; margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.phone-carousel-comp__btn--beauty {
  background: #c8a96e; color: #fff;
  padding: 4px 12px; border-radius: 4px;
  font-size: 7px; font-weight: 600; letter-spacing: 0.5px;
}
/* Beauty nav icons */
.phone-nav-comp--beauty {
  display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important; padding: 12px 8px !important;
  background: transparent !important; border: none !important;
  box-shadow: none !important;
}
.phone-nav-comp__icon--beauty {
  width: 40px !important; height: 40px !important;
  border-radius: 50% !important;
  background: #ede0cf !important;
  border: 1.5px solid #d4c5a9 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 16px !important;
}
.phone-nav-comp__icon--beauty svg {
  width: 20px; height: 20px;
}
/* Beauty product cards */
.phone-products-comp--beauty {
  background: transparent !important; border: none !important;
  padding: 0 !important;
}
.phone-products-comp__header--beauty {
  color: #c8a96e !important; font-size: 12px !important;
  font-weight: 700 !important; text-align: center; margin-bottom: 10px;
}
.phone-products-comp__list--beauty {
  display: flex !important; flex-direction: column !important; gap: 8px !important;
}
.phone-products-comp__card--beauty {
  display: flex; gap: 8px; background: #faf5ed;
  border-radius: 12px; overflow: hidden; min-height: 80px;
}
.phone-products-comp__card-img--beauty {
  width: 100px; min-width: 100px; position: relative;
  background: #e8ddd0; overflow: hidden;
}
.phone-products-comp__card-img--beauty img {
  width: 100%; height: 100%; object-fit: cover;
}
.phone-products-comp__card-fav--beauty {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(255,255,255,0.7); border-radius: 50%;
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #999;
}
.phone-products-comp__card-info--beauty {
  flex: 1; padding: 8px 8px 8px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.phone-products-comp__card-info--beauty .phone-products-comp__name {
  font-size: 9px; font-weight: 600; color: #3a2a1a; margin-bottom: 6px;
}
.phone-products-comp__card-price--beauty {
  font-size: 12px; font-weight: 700; color: #8b6914; margin-bottom: 2px;
}
.phone-products-comp__card-member--beauty {
  font-size: 7px; color: #999;
}

/* Phone PLUS member */
.phone-member {
  background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 12px; display: flex; align-items: center;
  justify-content: space-between;
}
.phone-member__title { font-size: 12px; font-weight: 600; color: #e8c872; }
.phone-member__sub { font-size: 10px; color: #c9a84c; margin-top: 2px; }
.phone-member__btn {
  background: linear-gradient(135deg, #e8c872, #c9a84c); color: #1a1a2e;
  font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 10px; border: none;
}

/* Phone tabbar */
.phone-tabbar {
  display: flex; align-items: center; flex-shrink: 0; margin-top: auto;
  border-top: 1px solid #eee; padding: 8px 0 4px; background: #fff;
}
.phone-tabbar__item {
  flex: 1; text-align: center; font-size: 10px; color: var(--text-hint);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.phone-tabbar__icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: #999;
}
.phone-tabbar__icon svg { width: 18px; height: 18px; }
.phone-tabbar__item--active { color: var(--primary); }
.phone-tabbar__item--active .phone-tabbar__icon { color: var(--primary); }

/* ==========================================
   Page: Page Design (List)
   ========================================== */
.page-design { max-width: 100%; }
.page-design__title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.page-design__cards { display: flex; gap: 16px; margin-bottom: 24px; }
.page-design__card {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: all .2s; min-width: 200px;
}
.page-design__card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(74,127,247,.1); }
.page-design__card-icon {
  width: 36px; height: 36px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
}
.page-design__card-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.page-design__card-desc { font-size: 12px; color: var(--text-hint); }
.page-design__content {
  background: var(--bg-card); border-radius: 8px; padding: 20px 24px;
  border: 1px solid var(--border);
}
.page-design__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.page-design__title { font-size: 20px; font-weight: 600; margin: 0; }

/* Page List Items */
.pglist { display: flex; flex-direction: column; gap: 2px; }
.pglist-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 8px; cursor: default;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.pglist-item:last-child { border-bottom: none; }
.pglist-item:hover { background: #f8f9fb; }
.pglist-item__left { display: flex; align-items: center; gap: 14px; }
.pglist-item__info { display: flex; flex-direction: column; }
.pglist-item__name { font-size: 14px; font-weight: 500; color: var(--text-main); }
.pglist-item__desc { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.pglist-item__right { display: flex; align-items: center; gap: 16px; }
.pglist-item__eye {
  cursor: pointer;
  display: flex; align-items: center; padding: 4px;
  border-radius: 4px; position: relative;
}
.pglist-item__eye:hover { background: #e8ecf0; }

/* Preview tooltip — reuse onboarding phone frame, scaled down */
.pglist-preview-tooltip {
  position: absolute; z-index: 100; pointer-events: none;
}
.pgpv-real {
  transform: scale(0.62);
  transform-origin: top left;
}
/* Remove double shadow/border from inner phone frame in tooltip */
.pgpv-real .ob-phone-preview { width: 240px; }
.pgpv-real .ob-phone-preview__frame {
  width: 240px; height: 520px;
}

/* ── Real Page Editor (3-column, like component editor) ── */
.real-page-editor {
  display: flex; height: calc(100vh - var(--header-h, 56px));
  margin: -24px; background: var(--bg-page);
}
/* Left: component list */
.real-page-editor__left {
  width: 200px; background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0;
}
.real-page-editor__left-header {
  height: 48px; display: flex; align-items: center; padding: 0 12px;
  border-bottom: 1px solid var(--border-light);
}
.real-page-editor__back {
  cursor: pointer; display: flex; align-items: center; padding: 4px;
  border-radius: 4px; transition: background 0.15s;
}
.real-page-editor__back:hover { background: #f0f0f0; }
.real-page-editor__comp-list { flex: 1; padding: 8px 0; overflow-y: auto; }
.rpg-comp-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  cursor: pointer; transition: background 0.15s; font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.rpg-comp-item:hover { background: #f5f6f8; }
.rpg-comp-item--active { background: #e8ecf0; }
.rpg-comp-item__name { flex: 1; font-weight: 500; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpg-comp-item__eye {
  cursor: pointer; display: flex; align-items: center; padding: 2px;
  border-radius: 3px; flex-shrink: 0;
}
.rpg-comp-item__eye:hover { background: #dde1e6; }
/* Center: phone preview */
.real-page-editor__center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding: 24px 20px; overflow: hidden; position: relative;
}
.real-page-editor__center .ob-phone-preview { width: 280px; }
.real-page-editor__center .ob-phone-preview__frame {
  width: 280px; height: 560px;
}
/* Right: config panel */
.real-page-editor__right {
  width: 280px; background: var(--bg-card); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
}
.real-page-editor__right-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.real-page-editor__right-title {
  font-size: 14px; font-weight: 600; color: var(--text-main);
}
.real-page-editor__right-actions {
  display: flex; gap: 8px;
}
.real-page-editor__fields {
  flex: 1; overflow-y: auto; padding: 16px;
}
.real-page-editor__fields::-webkit-scrollbar { width: 4px; }
.real-page-editor__fields::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 2px; }

/* Editor fields */
.rpg-field { margin-bottom: 14px; }
.rpg-field__label {
  display: block; font-size: 12px; font-weight: 500; color: var(--text-body);
  margin-bottom: 6px;
}
.rpg-field__input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; transition: border-color 0.15s;
  background: var(--bg-card); box-sizing: border-box;
}
.rpg-field__input:focus { border-color: var(--primary); outline: none; }
.rpg-field__textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; resize: vertical; font-family: inherit;
  background: var(--bg-card); box-sizing: border-box;
}
.rpg-field__textarea:focus { border-color: var(--primary); outline: none; }
.rpg-field__group-title {
  font-size: 13px; font-weight: 600; color: var(--text-main);
  margin: 16px 0 8px; padding-top: 10px; border-top: 1px solid var(--border);
}
.rpg-field__img-wrap { display: flex; flex-direction: column; }
.rpg-field__img-preview {
  width: 100%; max-height: 80px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border);
}
.rpg-field__img-preview-wrap {
  position: relative; width: 100%; margin-bottom: 0;
}
.rpg-field__img-preview-wrap img {
  width: 100%; max-height: 80px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); display: block;
}
.rpg-field__img-remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none;
  font-size: 14px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; line-height: 1; padding: 0;
}
.rpg-field__img-remove:hover { background: rgba(0,0,0,.7); }
.rpg-field__upload-area {
  border: 2px dashed #ddd; border-radius: 8px; min-height: 80px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s; overflow: hidden;
}
.rpg-field__upload-area:hover { border-color: var(--primary, #4a7ff7); }
.rpg-field__upload-area--dragover { border-color: var(--primary, #4a7ff7); background: rgba(74,127,247,0.04); }
.rpg-field__upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px;
}
.rpg-field__upload-text {
  font-size: 12px; font-weight: 500; color: var(--primary, #4a7ff7); cursor: pointer;
}
.rpg-field__upload-hint { font-size: 11px; color: #999; }
.rpg-field__img-empty {
  width: 100%; height: 48px; background: #f5f5f5; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #999;
}

/* ── Sidebar Panel (分类组合) ── */
.rpg-sidebar-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  padding: 0 16px; margin-bottom: 16px;
}
.rpg-sidebar-tab {
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: #999;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s;
}
.rpg-sidebar-tab--active {
  color: var(--text-main); border-bottom-color: var(--text-main);
}
.rpg-sidebar-tab:hover { color: var(--text-main); }

.rpg-sidebar-hint {
  font-size: 12px; color: #999; line-height: 1.6; padding: 0;
}

/* Custom Select */
.rpg-sidebar-select {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: 13px; background: var(--bg-card); transition: border-color .15s;
}
.rpg-sidebar-select:hover { border-color: var(--primary); }
.rpg-sidebar-select__value { flex: 1; }
.rpg-sidebar-select__dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 10; overflow: hidden;
}
.rpg-sidebar-select__dropdown--open { display: block; }
.rpg-sidebar-select__option {
  padding: 10px 14px; font-size: 13px; cursor: pointer; transition: background .1s;
}
.rpg-sidebar-select__option:hover { background: #f5f7ff; }
.rpg-sidebar-select__option--active { background: #f0f4ff; color: var(--primary); }

/* Menu Groups */
.rpg-sidebar-groups { display: flex; flex-direction: column; gap: 0; }
.rpg-sidebar-group-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 8px;
  border-bottom: 1px solid #f0ebe2; cursor: default; background: #faf7f2;
  border-radius: 6px; margin-bottom: 4px;
}
.rpg-sidebar-group-item:last-child { margin-bottom: 0; }
.rpg-sidebar-group-item__drag { cursor: grab; opacity: .4; display: flex; }
.rpg-sidebar-group-item__drag:hover { opacity: .8; }
.rpg-sidebar-group-item__icon { display: flex; color: #5a3e1b; }
.rpg-sidebar-group-item__name { font-size: 13px; color: #5a3e1b; font-weight: 500; }

/* Add Content Button */
.rpg-sidebar-add {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 12px 4px; cursor: pointer; margin-top: 4px;
}
.rpg-sidebar-add__icon {
  width: 22px; height: 22px; border-radius: 4px; background: #eef2ff;
  color: var(--primary); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.rpg-sidebar-add__text {
  font-size: 13px; font-weight: 500; color: var(--primary);
}
.rpg-sidebar-add__dropdown {
  display: none; position: absolute; bottom: calc(100% + 4px); left: 0;
  min-width: 160px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 10; overflow: hidden;
}
.rpg-sidebar-add__dropdown--open { display: block; }
.rpg-sidebar-add__option {
  padding: 10px 16px; font-size: 13px; cursor: pointer; transition: background .1s;
}
.rpg-sidebar-add__option:hover { background: #f5f7ff; }

/* Style Tab */
.rpg-sidebar-section { padding: 0; }
.rpg-sidebar-section__title {
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.rpg-sidebar-section__bar {
  width: 3px; height: 16px; background: var(--primary); border-radius: 2px;
}

/* Toggle button row (direction/alignment) */
.rpg-sidebar-toggle-row {
  display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.rpg-sidebar-toggle-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 10px 0; cursor: pointer; color: #bbb; transition: all .15s;
  background: #fff;
}
.rpg-sidebar-toggle-btn--active {
  background: #eef2ff; color: var(--primary);
}
.rpg-sidebar-toggle-btn:not(:last-child) { border-right: 1px solid var(--border); }
.rpg-sidebar-toggle-btn:hover { background: #f8f9ff; }

/* Color row */
.rpg-sidebar-color-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.rpg-sidebar-color-row__label { font-size: 13px; color: var(--text-main); }
.rpg-sidebar-color-swatch {
  width: 48px; height: 28px; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; padding: 0; background: none; -webkit-appearance: none; appearance: none;
}
.rpg-sidebar-color-swatch::-webkit-color-swatch-wrapper { padding: 2px; }
.rpg-sidebar-color-swatch::-webkit-color-swatch { border: none; border-radius: 4px; }

/* Toggle switch (same as pg-create) */
.rpg-sidebar-toggle-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-main);
}
.rpg-sidebar-switch {
  position: relative; display: inline-block; width: 40px; height: 22px;
}
.rpg-sidebar-switch input { opacity: 0; width: 0; height: 0; }
.rpg-sidebar-switch__slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 22px; transition: background .2s;
}
.rpg-sidebar-switch__slider::before {
  content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.rpg-sidebar-switch input:checked + .rpg-sidebar-switch__slider { background: var(--primary); }
.rpg-sidebar-switch input:checked + .rpg-sidebar-switch__slider::before { transform: translateX(18px); }

/* ── Product List Panel ── */
.rpg-pl-group-select { margin-top: 4px; }
.rpg-pl-group-placeholder {
  background: #f5f7fa; border-radius: 8px; padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.rpg-pl-group-selected {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #f5f7fa; border-radius: 8px; position: relative;
}
.rpg-pl-group-selected__img {
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover;
}
.rpg-pl-group-selected__name { font-size: 13px; font-weight: 500; flex: 1; }
.rpg-pl-group-selected__remove {
  width: 20px; height: 20px; border: none; background: rgba(0,0,0,.3);
  color: #fff; border-radius: 50%; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.rpg-pl-group-selected__remove:hover { background: rgba(0,0,0,.5); }
.rpg-pl-group-list {
  margin-top: 8px; border: 1px solid var(--border); border-radius: 8px;
  max-height: 200px; overflow-y: auto;
}
.rpg-pl-group-list__item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  cursor: pointer; transition: background .1s;
}
.rpg-pl-group-list__item:hover { background: #f5f7ff; }
.rpg-pl-group-list__item:not(:last-child) { border-bottom: 1px solid #f0f0f0; }
.rpg-pl-group-list__img {
  width: 36px; height: 36px; border-radius: 6px; object-fit: cover;
}
.rpg-pl-group-list__img-empty {
  width: 36px; height: 36px; border-radius: 6px; background: #eee;
}
.rpg-pl-group-list__info { display: flex; flex-direction: column; gap: 2px; }
.rpg-pl-group-list__name { font-size: 13px; font-weight: 500; }
.rpg-pl-group-list__count { font-size: 11px; color: #999; }

.rpg-pl-slider-row {
  display: flex; align-items: center; gap: 10px;
}
.rpg-pl-slider {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, #ddd 50%, #ddd 100%);
  border-radius: 2px; outline: none;
}
.rpg-pl-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 2px solid var(--primary);
  cursor: pointer;
}
.rpg-pl-slider-num {
  width: 44px; padding: 4px 6px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; text-align: center;
  background: var(--bg-card);
}

.rpg-pl-checkboxes {
  display: flex; flex-direction: column; gap: 12px; margin-top: 8px;
}
.rpg-pl-checkbox {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--text-main); cursor: pointer;
}
.rpg-pl-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary);
  cursor: pointer; margin: 0;
}

/* ── Nav Grid Compact Items ── */
.rpg-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.rpg-nav-item:last-child { border-bottom: none; }
.rpg-nav-item__icon-area {
  position: relative; width: 44px; height: 44px; flex-shrink: 0;
  border: 1.5px solid #e8e8e8; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: border-color .15s; background: #faf8f4;
}
.rpg-nav-item__icon-area:hover .rpg-nav-item__icon-overlay { opacity: 1; }
.rpg-nav-item__icon-default {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.rpg-nav-item__icon-default svg { width: 100%; height: 100%; }
.rpg-nav-item__icon-img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 8px;
}
.rpg-nav-item__icon-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; opacity: 0; transition: opacity .15s;
}
.rpg-nav-item__body { flex: 1; min-width: 0; }
.rpg-nav-item__body .rpg-field__input { font-size: 13px; }

/* ── Carousel Banner Slots ── */
.rpg-banner-slots {
  display: flex; gap: 8px;
}
.rpg-banner-slot {
  position: relative; flex: 1; aspect-ratio: 16/9; border-radius: 8px;
  overflow: hidden; cursor: pointer; border: 1.5px solid #e8e8e8;
  background: #f5f5f5; display: flex; align-items: center; justify-content: center;
  min-height: 56px;
}
.rpg-banner-slot:hover .rpg-banner-slot__overlay { opacity: 1; }
.rpg-banner-slot__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rpg-banner-slot__empty {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px;
}
.rpg-banner-slot__empty span { font-size: 10px; color: #bbb; }
.rpg-banner-slot__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}

/* Hero Image Slot */
.rpg-hero-img-slot {
  position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 8px;
  overflow: hidden; cursor: pointer; border: 1.5px solid #e8e8e8; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
}
.rpg-hero-img-slot:hover .rpg-hero-img-slot__overlay { opacity: 1; }
.rpg-hero-img-slot__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpg-hero-img-slot__empty { display: flex; align-items: center; justify-content: center; }
.rpg-hero-img-slot__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s; border-radius: 6px;
}

/* Time Picker Preview Pills */
.rpg-tp-preview {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0;
}
.rpg-tp-pill {
  padding: 5px 10px; font-size: 11px; border-radius: 16px;
  border: 1px solid #e0d8cc; background: #fff; color: #5a3e1b;
}
.rpg-tp-pill--active {
  background: #5a3e1b; color: #fff; border-color: #5a3e1b;
}

/* Phone preview in editor — reuses ob-phone-preview (same as onboarding) */
.real-page-editor__phone-label {
  font-size: 12px; font-weight: 500; color: var(--text-hint);
  margin-bottom: 12px;
}

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tab-item {
  padding: 6px 16px; border-radius: 4px; font-size: 13px; cursor: pointer;
  background: transparent; color: var(--text-body); transition: all .2s; border: none;
}
.tab-item--active { background: var(--primary); color: #fff; }
.tab-item:hover:not(.tab-item--active) { background: var(--primary-hover); }

/* Search bar */
.search-bar { margin-bottom: 16px; }
.search-input {
  width: 280px; height: 32px; padding: 0 10px 0 32px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); font-size: 13px; transition: border-color .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 8px center no-repeat;
}
.search-input:focus { border-color: var(--primary); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600;
  color: var(--text-hint); border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border-light);
}
.data-table tr:hover td { background: #fafbfc; }
.action-link { color: var(--primary); cursor: pointer; font-size: 13px; margin-right: 12px; }
.action-link:hover { text-decoration: underline; }
.action-link--danger { color: var(--danger); }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 0;
}
.empty-state__text { font-size: 13px; color: var(--text-hint); margin-top: 16px; }

/* ==========================================
   Modal / Dialog
   ========================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--bg-card); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.15);
  max-height: 80vh; overflow-y: auto; animation: slideUp .25s ease;
}
.modal__header {
  padding: 20px 24px 12px; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.modal__close {
  width: 28px; height: 28px; border: none; background: transparent; cursor: pointer;
  font-size: 18px; color: var(--text-hint); border-radius: 4px; display: flex;
  align-items: center; justify-content: center;
}
.modal__close:hover { background: #f0f0f0; }
.modal__body { padding: 0 24px 24px; }

/* Template modal */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.template-card {
  cursor: pointer; border-radius: 8px; overflow: hidden; transition: all .2s;
  border: 2px solid transparent;
}
.template-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(74,127,247,.15); }
.template-card--blank { border: 2px dashed #c4cdd5; }
.template-card--blank:hover { border-color: var(--primary); border-style: dashed; }
.template-card__blank {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 280px; background: #fafbfc;
}
.template-card__blank-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #e8ecf0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.template-card__blank-text { font-size: 14px; color: var(--text-body); }
.template-card__preview {
  height: 280px; background: #fafbfc; overflow: hidden; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.template-card__name { text-align: center; font-size: 13px; color: var(--text-main); padding: 10px 0; }

/* Template preview blocks */
.tpl-header { font-size: 9px; color: var(--text-body); text-align: center; letter-spacing: 1px; }
.tpl-title { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.4; }
.tpl-text { font-size: 8px; color: var(--text-body); text-align: center; line-height: 1.5; padding: 0 8px; }
.tpl-img { height: 60px; background: #e0e4e8; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: var(--text-body); font-size: 10px; font-weight: 600; }
.tpl-img-top { height: 80px; background: #e0e4e8; border-radius: 4px; display: flex; align-items: center; justify-content: center; position: relative; }
.tpl-img-top__overlay { position: absolute; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.tpl-cols { display: flex; gap: 8px; }
.tpl-col { flex: 1; }
.tpl-col-title { font-size: 8px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.tpl-col-line { height: 3px; background: #e0e4e8; border-radius: 2px; margin-bottom: 3px; }
.tpl-img-sm { height: 50px; background: #e0e4e8; border-radius: 4px; }
.tpl-banner-red { background: #c44; border-radius: 4px; padding: 12px 8px; text-align: center; color: #fff; }
.tpl-banner-red span { display: block; font-size: 10px; font-weight: 600; }
.tpl-banner-red .tpl-small { font-size: 8px; font-weight: 400; margin-top: 2px; }
.tpl-tag { font-size: 10px; font-weight: 600; padding: 4px 0; }
.tpl-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl-thumb { height: 50px; background: #e0e4e8; border-radius: 4px; display: flex; align-items: center; justify-content: center; }

/* Confirm dialog – polished custom modal */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease;
}
.confirm-overlay--visible { background: rgba(0,0,0,.45); }
.confirm-dialog {
  width: 420px; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  text-align: center; padding: 32px 28px 24px;
  transform: scale(0.85) translateY(20px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-overlay--visible .confirm-dialog {
  transform: scale(1) translateY(0); opacity: 1;
}
.confirm-dialog__icon { margin-bottom: 16px; }
.confirm-dialog__title {
  font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px;
}
.confirm-dialog__message {
  font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 28px;
  padding: 0 8px;
}
.confirm-dialog__footer {
  display: flex; justify-content: center; gap: 12px;
}
.confirm-dialog__btn {
  padding: 9px 28px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s ease;
  min-width: 100px;
}
.confirm-dialog__btn--cancel {
  background: #f3f4f6; color: #555;
}
.confirm-dialog__btn--cancel:hover { background: #e5e7eb; color: #333; }
.confirm-dialog__btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(67,56,202,.25);
}
.confirm-dialog__btn--primary:hover {
  background: var(--primary-dark, #4338ca); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(67,56,202,.35);
}
.confirm-dialog__btn--danger {
  background: #ef4444; color: #fff;
  box-shadow: 0 4px 14px rgba(239,68,68,.25);
}
.confirm-dialog__btn--danger:hover {
  background: #dc2626; transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239,68,68,.35);
}

/* ==========================================
   Page Editor (3-column)
   ========================================== */
.page-editor {
  display: flex; height: calc(100vh - var(--header-h));
  margin: -24px; background: var(--bg-page);
}
.page-editor__left {
  width: 180px; background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0;
}
.page-editor__left-header {
  height: 48px; display: flex; align-items: center; padding: 0 12px;
  border-bottom: 1px solid var(--border-light);
}
.page-editor__back { cursor: pointer; display: flex; align-items: center; padding: 4px; border-radius: 4px; }
.page-editor__back:hover { background: #f0f0f0; }
.page-editor__components { flex: 1; padding: 8px 0; overflow-y: auto; }
.page-editor__comp-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  cursor: pointer; transition: background .15s; font-size: 13px;
  position: relative;
}
.page-editor__comp-drag {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
  cursor: grab; opacity: 0; transition: opacity .15s;
  border-radius: 3px;
}
.page-editor__comp-drag:hover { background: #e8e8e8; }
.page-editor__comp-drag:active { cursor: grabbing; }
.page-editor__comp-item:hover .page-editor__comp-drag { opacity: 1; }
.page-editor__comp-item:hover { background: #f5f6f7; }
.page-editor__comp-item--active { background: var(--primary-light); color: var(--primary); }
.page-editor__comp-item--active .page-editor__comp-drag { opacity: 0; }
.page-editor__comp-item--active:hover .page-editor__comp-drag { opacity: 1; }
.page-editor__comp-item--dragging {
  background: var(--bg-card); border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  opacity: 0.9 !important;
}
.page-editor__comp-item--dragging .page-editor__comp-drag { opacity: 1; }
.page-editor__comp-placeholder {
  background: var(--primary-light); border: 1px dashed var(--primary);
  border-radius: 4px; margin: 0;
}
.page-editor__comp-name { flex: 1; }
.page-editor__comp-eye { display: flex; cursor: pointer; padding: 2px; color: var(--text-hint); }
.page-editor__comp-eye:hover { color: var(--text-main); }
.page-editor__add-btn { padding: 12px; }

.page-editor__center {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.page-editor__phone {
  width: 300px; height: 650px; background: #fff; border-radius: 36px;
  border: 8px solid #e7e7e7; box-shadow: 0 4px 24px rgba(0,0,0,.08);
  display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
  padding: 12px 16px;
}
.page-editor__status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0 8px; flex-shrink: 0;
}
.page-editor__time { font-size: 12px; font-weight: 600; }
.page-editor__status-icons { display: flex; gap: 4px; align-items: center; }
.page-editor__phone-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.page-editor__phone-content > .page-editor__phone-block:last-child { margin-top: auto; }
.page-editor__phone-content::-webkit-scrollbar { display: none; }
.page-editor__phone-body { flex: 1; }

.page-editor__phone-block {
  border: 2px solid transparent; border-radius: 6px; padding: 4px;
  cursor: pointer; transition: border-color .15s; position: relative; margin-bottom: 4px;
}
.page-editor__phone-block:hover { border-color: #ddd; }
.page-editor__phone-block--selected { border-color: #f0a020; }
.page-editor__block-label {
  position: absolute; top: -1px; left: -2px; background: #f0a020; color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 3px 0 3px 0;
  z-index: 2; white-space: nowrap; line-height: 1.4;
}
.page-editor__block-actions {
  position: absolute; top: -1px; right: -2px; display: flex; gap: 0;
  z-index: 2;
}
.page-editor__block-action-btn {
  width: 26px; height: 26px; border: none; background: #f0a020; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; padding: 0;
}
.page-editor__block-action-btn:first-child { border-radius: 0 0 0 3px; }
.page-editor__block-action-btn:last-child { border-radius: 0 3px 0 3px; }
.page-editor__block-action-btn:hover { background: #e09010; }
.page-editor__block-action-btn--disabled { opacity: .4; cursor: not-allowed; }
.page-editor__block-action-btn--disabled:hover { background: #f0a020; }

/* Phone component preview blocks */
.phone-comp-preview { padding: 4px 0; }
.phone-slide-scroll::-webkit-scrollbar { display: none; }
.phone-slide-scroll { scrollbar-width: none; -ms-overflow-style: none; }

.page-editor__nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px; font-size: 13px; font-weight: 500;
}
.page-editor__footer-area { text-align: center; padding: 12px 4px; }
.page-editor__footer-brand { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.page-editor__footer-sub { font-size: 10px; color: #b0b8c4; }

.page-editor__zoom {
  position: absolute; bottom: 16px; right: 24px; display: flex; align-items: center;
  gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 12px; color: var(--text-body);
}
.page-editor__zoom-btn { cursor: pointer; font-size: 16px; width: 20px; text-align: center; user-select: none; }
.page-editor__zoom-btn:hover { color: var(--primary); }

.page-editor__right {
  width: 260px; background: var(--bg-card); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0;
}
.page-editor__right-header {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.page-editor__props { padding: 16px; }
.page-editor__props-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.page-editor__props-hint { font-size: 12px; color: var(--text-hint); }

.page-editor__no-select {
  padding: 24px 16px; display: flex; flex-direction: column; align-items: center;
}
.page-editor__no-select-icons { display: flex; gap: 8px; margin-bottom: 16px; }
.page-editor__no-select-icon {
  width: 40px; height: 40px; border-radius: 6px;
}
.page-editor__no-select-icon--1 { background: linear-gradient(135deg, #c4cdd5, #dfe3e8); }
.page-editor__no-select-icon--2 { background: linear-gradient(135deg, #dfe3e8, #e8ecf0); }
.page-editor__no-select-title { font-size: 13px; font-weight: 500; color: var(--text-body); margin-bottom: 6px; }
.page-editor__no-select-desc { font-size: 12px; color: var(--text-hint); text-align: center; line-height: 1.6; margin-bottom: 24px; }
.page-editor__shortcuts { width: 100%; border-top: 1px solid var(--border-light); padding-top: 16px; }
.page-editor__shortcuts-title { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.page-editor__shortcut-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; font-size: 12px; color: var(--text-body);
}
.page-editor__shortcut-key { font-size: 11px; color: var(--text-hint); }

/* ==========================================
   Toast
   ========================================== */
#toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px;
  padding: 14px 24px; font-size: 14px; font-weight: 500; color: #1a1a2e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  animation: toastSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto; transition: opacity 0.35s ease, transform 0.35s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
.toast--exit { opacity: 0; transform: translateY(-12px) scale(0.96); }
.toast--success {}
.toast--error {}
.toast__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast__icon svg { display: block; }
.toast__text { line-height: 1.4; letter-spacing: -0.1px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==========================================
   Component Library Panel
   ========================================== */
.comp-lib-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 2000;
  display: flex; animation: fadeIn .2s ease;
}
.comp-lib {
  position: relative; width: 520px; height: 100vh; background: var(--bg-card);
  box-shadow: 4px 0 24px rgba(0,0,0,.12); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .25s ease;
}
.comp-lib--open { transform: translateX(0); }
.comp-lib__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.comp-lib__header-title { font-size: 16px; font-weight: 600; }
.comp-lib__close {
  width: 28px; height: 28px; border: none; background: transparent; cursor: pointer;
  font-size: 20px; color: var(--text-hint); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.comp-lib__close:hover { background: #f0f0f0; color: var(--text-main); }
.comp-lib__body { display: flex; flex: 1; overflow: hidden; }

/* Component Library Tabs (left sidebar) */
.comp-lib__tabs {
  width: 80px; flex-shrink: 0; border-right: 1px solid var(--border-light);
  padding: 12px 0; overflow-y: auto; background: #fafbfc;
}
.comp-lib__tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px; cursor: pointer; transition: all .15s; position: relative;
  color: var(--text-body);
}
.comp-lib__tab:hover { color: var(--primary); background: var(--primary-hover); }
.comp-lib__tab--active {
  color: var(--primary); background: var(--primary-light);
}
.comp-lib__tab--active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--primary); border-radius: 0 2px 2px 0;
}
.comp-lib__tab-icon { display: flex; align-items: center; justify-content: center; }
.comp-lib__tab-label { font-size: 11px; white-space: nowrap; }

/* Component Library Content */
.comp-lib__content {
  flex: 1; overflow-y: auto; padding: 0;
}
.comp-lib__content::-webkit-scrollbar { width: 4px; }
.comp-lib__content::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Placeholder for unimplemented tabs */
.comp-lib__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 8px; color: var(--text-hint);
}
.comp-lib__placeholder-text { font-size: 16px; font-weight: 500; }
.comp-lib__placeholder-hint { font-size: 13px; }

/* Component Library Sections */
.comp-lib__sections { padding: 4px 0; }
.comp-lib__section { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.comp-lib__section:last-child { border-bottom: none; }
.comp-lib__section-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.comp-lib__section-indicator {
  width: 3px; height: 14px; background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.comp-lib__section-title { font-size: 14px; font-weight: 600; flex: 1; }
.comp-lib__section-more { font-size: 12px; color: var(--primary); cursor: pointer; white-space: nowrap; }
.comp-lib__section-more:hover { text-decoration: underline; }

/* Component Card */
.comp-lib__card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; cursor: pointer; transition: all .2s; overflow: hidden;
}
.comp-lib__card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(74,127,247,.12); }
.comp-lib__card-label { font-size: 12px; font-weight: 500; color: var(--text-main); margin-bottom: 8px; }

/* Product items grid */
.comp-lib__card-products { display: flex; gap: 10px; overflow-x: auto; }
.comp-lib__card-products::-webkit-scrollbar { display: none; }
.comp-lib__card-products--slide { gap: 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }

.comp-lib__prod-item { flex: 0 0 auto; width: 140px; }
.comp-lib__prod-item--group { width: 130px; }
.comp-lib__prod-item--slide { width: 130px; scroll-snap-align: start; }

.comp-lib__prod-img {
  width: 100%; height: 100px; background: #f5f5f5; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden; margin-bottom: 6px;
}
.comp-lib__prod-img--large { height: 120px; }
.comp-lib__prod-img-placeholder { color: #ddd; }
.comp-lib__prod-badge {
  position: absolute; top: 6px; left: 6px; background: var(--primary);
  color: #fff; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px;
}
.comp-lib__prod-fav {
  position: absolute; top: 6px; right: 6px; font-size: 14px; color: var(--text-hint);
  cursor: pointer;
}
.comp-lib__prod-name { font-size: 11px; color: var(--text-main); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-lib__prod-price { font-size: 13px; font-weight: 700; color: var(--text-main); }
.comp-lib__prod-currency { font-size: 10px; font-weight: 600; }
.comp-lib__prod-cents { font-size: 10px; }
.comp-lib__prod-price-row { display: flex; align-items: baseline; gap: 6px; }
.comp-lib__prod-price-sale { font-size: 13px; font-weight: 700; color: #e34d59; }
.comp-lib__prod-price-orig { font-size: 10px; color: var(--text-hint); text-decoration: line-through; }
.comp-lib__prod-group-info { font-size: 10px; color: #e34d59; margin-top: 2px; }
.comp-lib__prod-cart-icon { font-size: 14px; }

/* View All button */
.comp-lib__card-viewall { text-align: center; margin-top: 10px; }
.comp-lib__viewall-btn {
  display: inline-block; padding: 4px 20px; background: var(--primary);
  color: #fff; font-size: 11px; font-weight: 500; border-radius: 12px;
}

/* Ranking section */
.comp-lib__ranking-tabs {
  display: flex; gap: 0; margin-bottom: 10px; background: #f5f5f5; border-radius: 20px;
  padding: 3px; overflow: hidden;
}
.comp-lib__ranking-tab {
  flex: 1; text-align: center; font-size: 11px; padding: 6px 12px;
  border-radius: 18px; cursor: pointer; transition: all .2s; color: var(--text-body);
}
.comp-lib__ranking-tab--active { background: var(--primary); color: #fff; font-weight: 500; }
.comp-lib__ranking-items { display: flex; gap: 10px; overflow-x: auto; }
.comp-lib__ranking-items::-webkit-scrollbar { display: none; }
.comp-lib__ranking-item { flex: 0 0 auto; width: 100px; text-align: center; position: relative; }
.comp-lib__ranking-badge {
  position: absolute; top: 4px; left: 4px; z-index: 1;
  padding: 2px 5px; border-radius: 3px; font-size: 8px; font-weight: 700;
  color: #fff; line-height: 1.2; text-align: center;
}
.comp-lib__ranking-badge--1 { background: #ff4d4f; }
.comp-lib__ranking-badge--2 { background: #ff7a00; }
.comp-lib__ranking-badge--3 { background: #ffc53d; }
.comp-lib__ranking-img {
  width: 100%; height: 80px; background: #f5f5f5; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.comp-lib__ranking-name { font-size: 10px; color: var(--text-main); margin-bottom: 2px; }
.comp-lib__ranking-price { font-size: 13px; font-weight: 700; color: var(--text-main); }

/* Combo section */
.comp-lib__card--combo { padding: 0; overflow: hidden; }
.comp-lib__combo-banner {
  background: linear-gradient(135deg, #2a2a3e 0%, #3a3a5e 100%);
  padding: 16px; color: #fff; position: relative;
}
.comp-lib__combo-banner-text { font-size: 9px; letter-spacing: 1px; opacity: .8; margin-bottom: 4px; }
.comp-lib__combo-banner-title { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.comp-lib__combo-banner-btn {
  display: inline-block; margin-top: 8px; padding: 4px 12px;
  border: 1px solid #fff; border-radius: 3px; font-size: 10px; font-weight: 600;
}
.comp-lib__combo-items { display: flex; gap: 0; border-top: 1px solid var(--border-light); }
.comp-lib__combo-item {
  flex: 1; padding: 8px; border-right: 1px solid var(--border-light); text-align: center;
}
.comp-lib__combo-item:last-child { border-right: none; }
.comp-lib__combo-img {
  width: 100%; height: 70px; background: #f5f5f5; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.comp-lib__combo-price { font-size: 13px; font-weight: 700; color: var(--text-main); }

/* ==========================================
   Image Tab Components
   ========================================== */

/* 轮播图 – Image Slide */
.comp-lib__slide-banner {
  width: 100%; height: 200px; border-radius: 8px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 40%, #3a3a55 100%);
  display: flex; align-items: center; justify-content: center;
}
.comp-lib__slide-overlay {
  text-align: center; color: #fff; z-index: 1; padding: 20px;
}
.comp-lib__slide-title {
  font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: .5px;
}
.comp-lib__slide-desc {
  font-size: 12px; opacity: .8; margin-bottom: 12px;
}
.comp-lib__slide-btn {
  display: inline-block; padding: 6px 20px; background: #fff; color: #1a1a2e;
  font-size: 11px; font-weight: 600; border-radius: 4px; cursor: pointer;
}
.comp-lib__slide-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 10px;
}
.comp-lib__slide-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ccc;
}
.comp-lib__slide-dot--active { background: #333; }

/* 图片组合 – Picture Portfolio */
.comp-lib__portfolio-grid {
  display: flex; gap: 10px;
}
.comp-lib__portfolio-item {
  flex: 1; min-width: 0;
}
.comp-lib__portfolio-img {
  width: 100%; height: 160px; border-radius: 6px; overflow: hidden; position: relative;
  background: linear-gradient(145deg, #2a3a4a 0%, #1a2a3a 60%, #0a1a2a 100%);
  display: flex; align-items: flex-end;
}
.comp-lib__portfolio-img-overlay {
  padding: 14px; color: #fff; width: 100%;
  background: linear-gradient(transparent 0%, rgba(0,0,0,.45) 100%);
}
.comp-lib__portfolio-heading {
  font-size: 14px; font-weight: 700; margin-bottom: 4px;
}
.comp-lib__portfolio-desc {
  font-size: 10px; opacity: .85; line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comp-lib__portfolio-link {
  font-size: 10px; font-weight: 600; opacity: .95; cursor: pointer;
}
.comp-lib__portfolio-link:hover { text-decoration: underline; }

/* 图片广告 – Image Ad */
.comp-lib__ad-grid {
  display: flex; gap: 8px;
}
.comp-lib__ad-item {
  flex: 1; min-width: 0;
}
.comp-lib__ad-img {
  width: 100%; height: 90px; background: #f0f0f0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.comp-lib__ad-img .comp-lib__prod-img-placeholder { color: #ccc; }

/* 单个图文叠加 – Image with text overlay */
.comp-lib__overlay-card {
  width: 100%; padding: 36px 24px; border-radius: 8px; text-align: center;
  background: linear-gradient(135deg, #2a3a5a 0%, #1e2e48 50%, #162038 100%);
  color: #fff;
}
.comp-lib__overlay-title {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}
.comp-lib__overlay-desc {
  font-size: 11px; opacity: .8; line-height: 1.5; margin-bottom: 14px;
  max-width: 320px; margin-left: auto; margin-right: auto;
}
.comp-lib__overlay-btn {
  display: inline-block; padding: 6px 20px; background: #fff; color: #1a2a4a;
  font-size: 11px; font-weight: 600; border-radius: 4px; cursor: pointer;
}

/* 图文 – Image with Text */
.comp-lib__imgtext-img {
  width: 100%; height: 180px; background: linear-gradient(135deg, #1a2a3a 0%, #2a3a4a 100%);
  border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center;
}
.comp-lib__imgtext-img .comp-lib__prod-img-placeholder { color: rgba(255,255,255,.3); }
.comp-lib__imgtext-body {
  padding: 16px; text-align: center;
}
.comp-lib__imgtext-heading {
  font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 8px;
}
.comp-lib__imgtext-desc {
  font-size: 11px; color: var(--text-body); line-height: 1.6; margin-bottom: 14px;
}
.comp-lib__imgtext-btn {
  display: inline-block; padding: 7px 22px; background: #222; color: #fff;
  font-size: 11px; font-weight: 600; border-radius: 4px; cursor: pointer;
}

/* 图文导航 – Image Nav Grid */
.comp-lib__nav-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px;
}
.comp-lib__nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.comp-lib__nav-icon {
  width: 48px; height: 48px; border-radius: 50%; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.comp-lib__nav-label {
  font-size: 10px; color: var(--text-body); white-space: nowrap;
}

/* ==========================================
   General Tab Components (通用)
   ========================================== */

/* 公告栏 */
.gen__announce {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #f8f8f8; border-radius: 24px;
}
.gen__announce-icon { flex-shrink: 0; color: #666; display: flex; }
.gen__announce-text { flex: 1; font-size: 13px; color: var(--text-main); }
.gen__announce-arrow { font-size: 16px; color: #bbb; flex-shrink: 0; }

/* 商品搜索 */
.gen__search {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #f5f5f5; border-radius: 6px; border: 1px solid #eee;
}
.gen__search-placeholder { font-size: 13px; color: #bbb; }

/* 业务卡片 */
.gen__biz-layout {
  display: flex; gap: 10px;
}
.gen__biz-left {
  flex: 0 0 auto; width: calc(50% - 5px);
}
.gen__biz-right {
  flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.gen__biz-item {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; padding: 16px 14px; border: 1px solid #eee; border-radius: 12px;
  background: #fff;
}
.gen__biz-item--tall {
  height: 100%; justify-content: center; align-items: center;
}
.gen__biz-icon { color: #c8963e; }
.gen__biz-label { font-size: 13px; font-weight: 500; color: var(--text-main); }
.gen__biz-dot { color: #c8963e; margin-left: 2px; }

/* 开通会员 */
.gen__member {
  border-radius: 10px; overflow: hidden;
}
.gen__member-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #faf6f0;
}
.gen__member-info { flex: 1; }
.gen__member-title { font-size: 14px; font-weight: 700; color: #3a2a1a; margin-bottom: 4px; }
.gen__member-perks { display: flex; gap: 8px; font-size: 10px; color: #8a7a6a; }
.gen__member-btn {
  padding: 6px 16px; background: #2a2a2a; color: #fff; border-radius: 6px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.gen__member-bottom {
  padding: 10px 16px; background: #5a4a3a; color: #e8d8c8; font-size: 11px;
  display: flex; align-items: center; gap: 6px;
}

/* 组件盒子(Beta) */
.gen__widget-box {
  display: flex; flex-direction: column; gap: 8px;
}
.gen__widget-item {
  height: 80px; background: #f2f2f2; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.gen__widget-placeholder { color: #ccc; }

/* 分类组合 */
.gen__catcombo {
  display: flex; gap: 0; min-height: 320px;
}
.gen__catcombo-tabs {
  width: 80px; flex-shrink: 0; border-right: 1px solid #eee;
  display: flex; flex-direction: column; padding: 4px 0;
}
.gen__catcombo-tab {
  padding: 10px 6px; font-size: 10px; text-align: center; color: var(--text-body);
  cursor: pointer; line-height: 1.3; word-break: break-word;
}
.gen__catcombo-tab--active { color: var(--primary); font-weight: 600; }
.gen__catcombo-list {
  flex: 1; display: flex; flex-direction: column; gap: 0; overflow-y: auto;
}
.gen__catcombo-item {
  display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid #f5f5f5;
  align-items: stretch;
}
.gen__catcombo-img {
  width: 110px; height: 110px; background: #f5f5f5; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.gen__catcombo-img-inner {
  color: #ccc; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.gen__catcombo-img-inner svg { width: 32px; height: 32px; }
.gen__catcombo-fav {
  position: absolute; bottom: 8px; left: 8px; color: #bbb;
  display: flex; align-items: center; justify-content: center;
}
.gen__catcombo-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 2px 0;
}
.gen__catcombo-name {
  font-size: 13px; color: var(--text-main); font-weight: 500; line-height: 1.4;
}
.gen__catcombo-price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.gen__catcombo-price { font-size: 14px; color: var(--text-main); }
.gen__catcombo-price strong { font-size: 20px; font-weight: 800; }
.gen__catcombo-price del { font-size: 11px; color: #bbb; margin-left: 4px; }
.gen__catcombo-cart {
  width: 32px; height: 32px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.gen__catcombo-cart svg { width: 16px; height: 16px; }
.gen__catcombo-cart--badge::after {
  content: ''; position: absolute; top: -1px; right: -1px;
  width: 10px; height: 10px; background: #e34d59; border-radius: 50%;
  border: 2px solid #fff;
}

/* ── Category Combo Phone Preview (ccpv) ── */
.phone-comp-preview--catcombo { min-height: 400px; }
.ccpv { display: flex; gap: 0; height: 100%; }
.ccpv__tabs {
  width: 56px; flex-shrink: 0; background: #f8f8f8; border-radius: 6px 0 0 6px;
  padding: 6px 0; overflow-y: auto;
}
.ccpv__tab {
  font-size: 8px; color: #666; padding: 6px 4px; text-align: center;
  line-height: 1.3; word-break: break-word; cursor: pointer;
  border-left: 2px solid transparent;
}
.ccpv__tab--active {
  color: #e87040; font-weight: 600; background: #fff;
  border-left-color: #e87040;
}
.ccpv__content {
  flex: 1; overflow-y: auto; padding: 4px; background: #fff;
  border-radius: 0 6px 6px 0;
}
.ccpv__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.ccpv__card {
  background: #fff; border-radius: 6px; overflow: hidden;
}
.ccpv__card-img {
  width: 100%; aspect-ratio: 1/1; background: #f5f5f5; position: relative;
  overflow: hidden;
}
.ccpv__card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ccpv__badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.45); color: #fff; font-size: 7px; padding: 2px 6px;
  border-radius: 8px; white-space: nowrap;
}
.ccpv__fav {
  position: absolute; top: 4px; right: 4px;
}
.ccpv__card-name {
  font-size: 8px; color: #333; padding: 3px 4px 0; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.ccpv__card-price {
  padding: 2px 4px 4px; display: flex; align-items: center; gap: 2px;
}
.ccpv__price-now {
  font-size: 8px; font-weight: 700; color: #333;
}
.ccpv__price-orig {
  font-size: 7px; color: #bbb; text-decoration: line-through;
}
.ccpv__price-vip {
  display: flex; align-items: center;
}
.ccpv__more {
  text-align: center; font-size: 8px; color: #ccc; padding: 10px 0 6px;
}

/* ==========================================
   Text Tab Components (文本)
   ========================================== */

/* 富文本 */
.txt__richtext {
  padding: 20px; background: #f8f8f8; border-radius: 8px;
}
.txt__richtext-title {
  font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 10px;
}
.txt__richtext-body {
  font-size: 13px; color: var(--text-body); line-height: 1.7;
}

/* 标题 */
.txt__heading {
  display: flex; align-items: center; justify-content: space-between;
}
.txt__heading-left {
  display: flex; align-items: center; gap: 8px;
}
.txt__heading-bar {
  width: 3px; height: 16px; background: var(--primary); border-radius: 2px;
}
.txt__heading-title {
  font-size: 15px; font-weight: 800; color: var(--text-main); letter-spacing: .5px;
}
.txt__heading-btn {
  padding: 4px 14px; border: 1px solid #ddd; border-radius: 14px;
  font-size: 11px; color: var(--text-body);
}
.txt__heading-sub {
  font-size: 12px; color: var(--text-hint); margin-top: 4px; padding-left: 11px;
}

/* ==========================================
   Video Tab Components (视频)
   ========================================== */
.vid__banner {
  width: 100%; height: 220px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #2a1a4a 0%, #3a2a5a 40%, #4a2a6a 70%, #5a3a7a 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.vid__overlay {
  text-align: center; color: #fff; z-index: 1;
}
.vid__title {
  font-size: 22px; font-weight: 700; margin-bottom: 4px;
}
.vid__desc {
  font-size: 12px; opacity: .75; margin-bottom: 16px;
}
.vid__play {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  backdrop-filter: blur(4px); cursor: pointer;
}
.vid__play:hover { background: rgba(255,255,255,.3); }

/* ==========================================
   Spacer Tab Components (模块间距)
   ========================================== */
.spc__spacer {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 20px 40px;
}
.spc__line {
  width: 100%; height: 1px; background: #ddd;
}
.spc__indicator {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 8px 0;
}
.spc__arrow { display: flex; align-items: center; justify-content: center; }
.spc__dashed {
  width: 1px; height: 24px; border-left: 1px dashed #ccc;
}
.spc__label {
  font-size: 14px; font-weight: 600; color: #bbb; padding: 6px 0; letter-spacing: 1px;
}

/* ==========================================
   Page: Order List
   ========================================== */
.order-page { max-width: 100%; }
.order-page__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.order-page__title { font-size: 20px; font-weight: 600; }
.order-page__header-actions { display: flex; gap: 8px; align-items: center; }

/* Order Tabs */
.order-page__tabs {
  display: flex; gap: 0; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden; width: fit-content;
}
.order-tab {
  padding: 6px 16px; font-size: 13px; cursor: pointer; background: #fff;
  border: none; border-right: 1px solid var(--border); color: var(--text-body);
  transition: all .15s; white-space: nowrap;
}
.order-tab:last-child { border-right: none; }
.order-tab:hover { background: var(--primary-hover); }
.order-tab--active {
  background: var(--primary); color: #fff;
}
.order-tab--active:hover { background: var(--primary); }

/* Filters */
.order-page__filters { margin-bottom: 0; }
.order-page__search-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.order-page__search {
  display: flex; align-items: center; gap: 8px; flex: 1;
  padding: 0 12px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); background: #fff; transition: border-color .2s;
}
.order-page__search:focus-within { border-color: var(--primary); }
.order-page__search-input {
  border: none; outline: none; font-size: 13px; flex: 1; height: 100%;
  background: transparent;
}
.order-page__filter-dropdowns { display: flex; gap: 8px; }
.order-page__dropdown {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 0 12px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); background: #fff; cursor: pointer;
  font-size: 13px; color: var(--text-body); transition: border-color .2s;
  user-select: none;
}
.order-page__dropdown:hover { border-color: var(--primary); }
.order-page__dropdown-label { white-space: nowrap; }
.order-page__dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 120px; margin-top: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 100; display: none;
  overflow: hidden;
}
.order-page__dropdown-menu--open { display: block; }
.order-page__dropdown-item {
  padding: 8px 14px; font-size: 13px; cursor: pointer; transition: background .15s;
}
.order-page__dropdown-item:hover { background: var(--primary-hover); }
.order-page__dropdown-item--active { color: var(--primary); font-weight: 500; background: var(--primary-light); }

/* Toolbar icons */
.order-page__toolbar-icons { display: flex; gap: 4px; margin-left: 4px; }
.order-page__tool-btn {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; color: var(--text-body);
}
.order-page__tool-btn:hover { border-color: var(--primary); color: var(--primary); }
.order-page__tool-btn--active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Bulk bar */
.order-page__bulk-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 0; margin-bottom: 8px;
}
.order-page__bulk-bar--empty { opacity: .5; }
.order-page__bulk-count {
  font-size: 12px; color: var(--primary); background: var(--primary-light);
  padding: 2px 10px; border-radius: 10px;
}
.order-page__bulk-clear { color: var(--text-hint); }

/* Order Table */
.order-page__table-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  overflow-x: auto;
}
.order-table { width: 100%; border-collapse: collapse; min-width: 1200px; }
.order-table thead { background: #fafbfc; }
.order-table th {
  text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 600;
  color: var(--text-hint); border-bottom: 1px solid var(--border);
  white-space: nowrap; position: sticky; top: 0; background: #fafbfc;
}
.order-table__th--check { width: 40px; text-align: center; }
.order-table__th--check input { cursor: pointer; }
.order-table__th--sortable { cursor: pointer; user-select: none; }
.order-table__th--sortable:hover { color: var(--primary); }
.order-table td {
  padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; white-space: nowrap;
}
.order-table__row:hover td { background: #fafbfc; }
.order-table__row--selected td { background: var(--primary-light); }
.order-table__id { color: var(--primary); font-weight: 500; }
.order-table__product-cell {
  display: flex; align-items: center; gap: 8px; min-width: 180px;
}
.order-table__product-img {
  width: 36px; height: 36px; background: #f5f5f5; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.order-table__product-img svg { width: 16px; height: 16px; }
.order-table__product-info { min-width: 0; }
.order-table__product-name {
  font-size: 12px; color: var(--text-main); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}
.order-table__product-qty { font-size: 11px; color: var(--text-hint); }
.order-table__date { color: var(--text-body); font-size: 12px; }
.order-table__total { font-weight: 600; }
.order-table__logistics { font-size: 12px; color: var(--text-body); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.order-table__time { font-size: 12px; color: var(--text-body); }
.order-table__actions-cell { white-space: nowrap; }
.order-table__empty { text-align: center; padding: 60px 0 !important; }

/* Order Status badges */
.order-status {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
}
.order-status--orange { background: #fff7e6; color: #fa8c16; }
.order-status--blue { background: #e6f7ff; color: #1890ff; }
.order-status--green { background: #f6ffed; color: #52c41a; }
.order-status--gray { background: #f5f5f5; color: #999; }
.order-status--red { background: #fff1f0; color: #ff4d4f; }
.order-status--paid { background: #f6ffed; color: #52c41a; }
.order-status--refunded { background: #f5f5f5; color: #999; }
.action-link--primary { color: var(--primary) !important; font-weight: 500; }

/* ==========================================
   Order Drawer (right slide-in panel)
   ========================================== */
.od-drawer-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0); transition: background 0.3s;
  pointer-events: none;
}
.od-drawer-overlay--open {
  background: rgba(0,0,0,0.3); pointer-events: auto;
}
.od-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 90vw; background: #fff;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.od-drawer-overlay--open .od-drawer {
  transform: translateX(0);
}
.od-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f5;
}
.od-drawer__title { font-size: 16px; font-weight: 600; color: var(--text-main); margin: 0; }
.od-drawer__close {
  width: 32px; height: 32px; border: none; background: transparent;
  border-radius: 50%; font-size: 20px; color: #999; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.od-drawer__close:hover { background: #f5f5f5; color: #333; }
.od-drawer__body { padding: 24px; flex: 1; overflow-y: auto; }
/* 取货码 */
.od-pickup-code {
  margin-top: 20px;
  padding: 16px;
  background: #f8f9ff;
  border-radius: 10px;
  border: 1.5px dashed #d0d5ff;
  text-align: center;
}
.od-pickup-code__label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.od-pickup-code__value {
  font-size: 32px;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 8px;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
}

.od-drawer__actions {
  display: flex; gap: 10px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid #f0f0f5;
}
.btn--danger-outline {
  border: 1px solid #ff4d4f; color: #ff4d4f; background: #fff;
  padding: 8px 20px; border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: all 0.15s;
}
.btn--danger-outline:hover { background: #fff1f0; }

/* Pipeline */
.od-pipeline {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 0 28px; position: relative;
}
.od-pipeline__node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 1; flex: 0 0 auto;
}
.od-pipeline__dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #ddd; background: #fff;
  transition: all 0.3s;
}
.od-pipeline__label {
  font-size: 11px; color: #999; white-space: nowrap;
}
.od-pipeline__node--done .od-pipeline__dot {
  border-color: var(--primary); background: var(--primary);
}
.od-pipeline__node--done .od-pipeline__label { color: var(--primary); }
.od-pipeline__node--active .od-pipeline__dot {
  border-color: var(--primary); background: var(--primary);
  box-shadow: 0 0 0 4px rgba(74,127,247,0.2);
  animation: pipelinePulse 2s infinite;
}
.od-pipeline__node--active .od-pipeline__label { color: var(--primary); font-weight: 600; }
.od-pipeline__node--gray .od-pipeline__dot { border-color: #ddd; background: #f5f5f5; }
@keyframes pipelinePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,127,247,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(74,127,247,0.1); }
}

.od-pipeline__line {
  flex: 1; height: 2px; background: #eee;
  align-self: flex-start; margin: 0 -4px;
  margin-top: 7px;
  border-radius: 1px;
  transition: background 0.3s;
}
.od-pipeline__line--done {
  background: var(--primary);
}

/* Terminal state (rejected/cancelled) */
.od-pipeline__terminal {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #fff1f0; border-radius: 8px;
  margin-bottom: 8px;
}
.od-pipeline__terminal-icon { color: #ff4d4f; font-size: 16px; font-weight: 700; }
.od-pipeline__terminal-text { font-size: 13px; color: #ff4d4f; font-weight: 500; }
.od-pipeline__terminal-reason { font-size: 12px; color: #999; margin-left: auto; }

/* Order Info */
.od-info { display: flex; flex-direction: column; gap: 14px; }
.od-info__row { display: flex; justify-content: space-between; align-items: center; }
.od-info__label { font-size: 13px; color: var(--text-hint); }
.od-info__value { font-size: 13px; color: var(--text-main); }
.od-info__value--bold { font-weight: 600; font-size: 15px; }

/* Empty state */
.order-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 0;
}
.order-empty__icon { opacity: .6; }
.order-empty__text { font-size: 14px; color: var(--text-hint); }

/* Pagination */
.order-page__pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 13px;
}
.order-page__pagination-info { color: var(--text-hint); font-size: 12px; }
.order-page__pagination-btns { display: flex; gap: 4px; }
.order-page__pagination-btn--disabled { opacity: .4; pointer-events: none; }

/* Order Detail Modal */
.order-detail__section { margin-bottom: 20px; }
.order-detail__section h4 {
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}
.order-detail__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.order-detail__item { display: flex; flex-direction: column; gap: 2px; }
.order-detail__label { font-size: 12px; color: var(--text-hint); }
.order-detail__value { font-size: 13px; color: var(--text-main); }
.order-detail__product {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: #fafbfc; border-radius: 8px;
}
.order-detail__product-img {
  width: 48px; height: 48px; background: #f0f0f0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.order-detail__product-info { flex: 1; min-width: 0; }
.order-detail__product-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.order-detail__product-meta { font-size: 12px; color: var(--text-hint); }
.order-detail__product-total { font-size: 16px; font-weight: 700; color: var(--danger); white-space: nowrap; }

/* ==========================================
   Page: Product List (Categories)
   ========================================== */
.product-page { max-width: 800px; margin: 0 auto; }
.product-page__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.product-page__title { font-size: 20px; font-weight: 600; }
.product-page__header-actions { display: flex; gap: 8px; align-items: center; }
.product-page__categories { display: flex; flex-direction: column; gap: 12px; }

/* Category Cards */
.product-category-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border);
  cursor: pointer; transition: all .2s;
}
.product-category-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(74,127,247,.08); }
.product-category-card--disabled { opacity: .5; cursor: not-allowed; }
.product-category-card--disabled:hover { border-color: var(--border); box-shadow: none; }
.product-category-card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.product-category-card__icon--physical { background: #eef3ff; }
.product-category-card__icon--virtual { background: #eef3ff; }
.product-category-card__icon--card { background: #eef3ff; }
.product-category-card__icon--booking { background: #eef3ff; }
.product-category-card__content { flex: 1; min-width: 0; }
.product-category-card__name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.product-category-card__desc { font-size: 13px; color: var(--text-hint); }
.product-category-card__arrow { flex-shrink: 0; }

/* ==========================================
   Page: Product Form (Add/Edit)
   ========================================== */
.product-form-page { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h) - 48px); }
.product-form-page__header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.product-form-page__header h2 { font-size: 18px; font-weight: 600; }
.product-form-page__back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px; background: transparent;
  border: none; cursor: pointer; transition: background .15s;
}
.product-form-page__back:hover { background: #f0f0f0; }
.product-form-page__body { display: flex; gap: 24px; flex: 1; align-items: flex-start; }
.product-form-page__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.product-form-page__sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.product-form-page__footer {
  display: flex; justify-content: flex-end; gap: 12px; padding: 16px 0;
  margin-top: 24px; border-top: 1px solid var(--border);
}

/* Form Cards */
.product-form__card {
  background: var(--bg-card); border-radius: 12px; padding: 20px 24px;
  border: 1px solid var(--border);
}
.product-form__card h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 4px;
}
.product-form__required { color: var(--danger); }
.product-form__card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.product-form__card-header h3 { margin-bottom: 0; }
.product-form__card-header-actions { display: flex; gap: 12px; }
.product-form__link { font-size: 13px; color: var(--primary); cursor: pointer; }
.product-form__link:hover { text-decoration: underline; }

/* Type Tabs */
.product-form__type-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.product-form__type-tab {
  flex: 1; padding: 12px 16px; cursor: pointer; transition: all .15s;
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  align-items: flex-start; gap: 2px; background: #fff;
}
.product-form__type-tab:last-child { border-right: none; }
.product-form__type-tab:hover { background: var(--primary-hover); }
.product-form__type-tab--active {
  background: var(--primary-light); border-color: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}
.product-form__type-tab-icon { margin-bottom: 2px; display: flex; }
.product-form__type-tab-name { font-size: 14px; font-weight: 600; }
.product-form__type-tab-desc { font-size: 11px; color: var(--text-hint); }
.product-form__type-tab--active .product-form__type-tab-desc { color: var(--primary); opacity: .7; }

/* Inputs */
.product-form__input {
  height: 36px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); font-size: 13px; transition: border-color .2s;
  width: 100%;
}
.product-form__input:focus { border-color: var(--primary); outline: none; }
.product-form__input--full { width: 100%; }
.product-form__input--sm { width: 120px; }
.product-form__input-group {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: var(--radius-btn); overflow: hidden; transition: border-color .2s;
}
.product-form__input-group:focus-within { border-color: var(--primary); }
.product-form__input-group .product-form__input { border: none; }
.product-form__input-prefix {
  padding: 0 8px; font-size: 12px; color: var(--text-hint);
  background: #fafbfc; border-right: 1px solid var(--border);
  height: 36px; display: flex; align-items: center; flex-shrink: 0;
}

/* Selects */
.product-form__select {
  height: 36px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); font-size: 13px; background: #fff;
  cursor: pointer; width: 100%; appearance: auto;
}
.product-form__select:focus { border-color: var(--primary); outline: none; }
.product-form__select--sm { width: 200px; }
.product-form__select--suffix {
  border: none; border-left: 1px solid var(--border); border-radius: 0;
  width: auto; min-width: 70px; height: 36px; background: #fafbfc;
}

/* Rows */
.product-form__row { display: flex; gap: 16px; margin-bottom: 12px; }
.product-form__row--3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.product-form__field { flex: 1; min-width: 0; }
.product-form__field label { display: block; font-size: 13px; color: var(--text-main); margin-bottom: 6px; font-weight: 500; }
.product-form__field--mb { margin-bottom: 16px; }
.product-form__static-value {
  height: 36px; display: flex; align-items: center; font-size: 13px;
  color: var(--text-hint); padding: 0 2px;
}
.product-form__hint { font-size: 12px; color: var(--text-hint); margin-bottom: 8px; }

/* Checkbox & Radio */
.product-form__checkbox {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  cursor: pointer; user-select: none; margin-bottom: 8px;
}
.product-form__checkbox input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.product-form__checkbox--inline { margin-bottom: 0; margin-left: 12px; }
.product-form__radio {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  cursor: pointer; user-select: none; margin-bottom: 8px;
}
.product-form__radio input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.product-form__radio-row { display: flex; gap: 24px; margin-bottom: 12px; }
.product-form__radio-col { display: flex; flex-direction: column; gap: 4px; }

/* Textarea */
.product-form__textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-btn); font-size: 13px; resize: vertical;
  font-family: inherit; transition: border-color .2s; line-height: 1.5;
}
.product-form__textarea:focus { border-color: var(--primary); outline: none; }
.product-form__textarea-hint { font-size: 11px; color: var(--text-hint); margin-top: 4px; }
.product-form__textarea-counter { font-size: 11px; color: var(--text-hint); margin-top: 4px; text-align: right; }

/* Upload Area */
.product-form__upload-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; border: 1px dashed var(--border); border-radius: 8px;
  background: #fafbfc; gap: 8px;
}
.product-form__upload-btn {
  padding: 8px 24px; background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-btn); font-size: 13px; cursor: pointer;
  transition: background .2s;
}
.product-form__upload-btn:hover { background: #3a6fe6; }
.product-form__upload-hint { font-size: 12px; color: var(--text-hint); }

/* Inventory Row */
.product-form__inventory-row { display: flex; align-items: center; gap: 4px; }
.product-form__inventory-btns { display: flex; flex-direction: column; gap: 0; }
.product-form__inventory-btn {
  width: 24px; height: 18px; border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .15s;
}
.product-form__inventory-btn:first-child { border-radius: 4px 4px 0 0; }
.product-form__inventory-btn:last-child { border-radius: 0 0 4px 4px; border-top: none; }
.product-form__inventory-btn:hover { border-color: var(--primary); color: var(--primary); }

/* SEO */
.product-form__seo-hint { font-size: 13px; color: var(--text-hint); }

/* Rich Editor */
.product-form__editor { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.product-form__editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 0; padding: 8px 10px;
  border-bottom: 1px solid var(--border-light); background: #fafbfc;
}
.product-form__editor-toolbar-group {
  display: flex; align-items: center; gap: 2px;
  padding: 0 8px; border-right: 1px solid var(--border-light);
}
.product-form__editor-toolbar-group:last-child { border-right: none; }
.product-form__editor-btn {
  width: 28px; height: 28px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 4px; font-size: 13px; color: var(--text-body);
  transition: all .15s;
}
.product-form__editor-btn:hover { background: #eee; color: var(--text-main); }
.product-form__editor-sep {
  font-size: 12px; color: var(--text-hint); padding: 0 6px; cursor: pointer;
  white-space: nowrap;
}
.product-form__editor-sep:hover { color: var(--primary); }
.product-form__editor-divider { width: 1px; height: 16px; background: var(--border-light); margin: 0 4px; }
.product-form__editor-body {
  min-height: 200px; padding: 16px; font-size: 13px; line-height: 1.6;
  outline: none;
}
.product-form__editor-placeholder-text { color: var(--text-hint); font-size: 14px; margin-bottom: 8px; }

/* Sidebar */
.product-form__sidebar-section {
  background: var(--bg-card); border-radius: 12px; padding: 16px 20px;
  border: 1px solid var(--border); margin-bottom: 0;
}
.product-form__sidebar-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.product-form__sidebar-row {
  display: flex; align-items: center; justify-content: space-between;
}
.product-form__sidebar-label-sm { font-size: 13px; color: var(--text-body); display: flex; align-items: center; gap: 4px; }

/* Toggle Switch */
.product-form__toggle {
  position: relative; display: inline-flex; width: 40px; height: 22px; cursor: pointer;
}
.product-form__toggle input { opacity: 0; width: 0; height: 0; }
.product-form__toggle-slider {
  position: absolute; inset: 0; background: #ccc; border-radius: 22px;
  transition: .3s;
}
.product-form__toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 2px; bottom: 2px; background: white; border-radius: 50%;
  transition: .3s;
}
.product-form__toggle input:checked + .product-form__toggle-slider { background: var(--primary); }
.product-form__toggle input:checked + .product-form__toggle-slider::before { transform: translateX(18px); }
.product-form__toggle--sm { width: 34px; height: 18px; }
.product-form__toggle--sm .product-form__toggle-slider::before { height: 14px; width: 14px; }
.product-form__toggle--sm input:checked + .product-form__toggle-slider::before { transform: translateX(16px); }
.product-form__toggle-row { display: flex; align-items: center; justify-content: flex-end; }

/* Sidebar Cards */
.product-form__sidebar-card {
  background: var(--bg-card); border-radius: 12px; padding: 16px 20px;
  border: 1px solid var(--border);
}
.product-form__sidebar-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.product-form__sidebar-field { margin-bottom: 12px; }
.product-form__sidebar-field:last-child { margin-bottom: 0; }
.product-form__sidebar-field label { display: block; font-size: 13px; color: var(--text-body); margin-bottom: 4px; }
.product-form__sidebar-field-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;
}
.product-form__sidebar-field-header label { margin-bottom: 0; }
.product-form__sidebar-manage { font-size: 12px; color: var(--primary); cursor: pointer; }
.product-form__sidebar-manage:hover { text-decoration: underline; }

/* Delivery */
.product-form__sidebar-delivery { }
.product-form__sidebar-delivery-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; cursor: pointer;
}
.product-form__sidebar-delivery-item:hover { color: var(--primary); }
.product-form__sidebar-delivery-item span { font-size: 13px; }
.product-form__sidebar-delivery-hint { font-size: 11px; color: var(--text-hint); }

/* ==========================================
   Page: Product Groups
   ========================================== */
.product-groups-page { max-width: 100%; }
.product-groups-page__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.product-groups-page__title { font-size: 20px; font-weight: 600; }
.product-groups-page__header-actions { display: flex; gap: 8px; align-items: center; }

.product-groups-page__body {
  background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border);
  overflow: hidden;
}
.product-groups-page__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.product-groups-page__search {
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  height: 32px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; transition: border-color .2s; width: 240px;
}
.product-groups-page__search:focus-within { border-color: var(--primary); }
.product-groups-page__search-input {
  border: none; outline: none; font-size: 13px; flex: 1; height: 100%;
  background: transparent;
}
.product-groups-page__toolbar-right { display: flex; align-items: center; gap: 4px; }
.product-groups-page__filter-btn {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; color: var(--text-body);
}
.product-groups-page__filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.product-groups-page__table-wrap { overflow-x: auto; }

/* Product Groups Table */
.product-groups-table { width: 100%; border-collapse: collapse; }
.product-groups-table thead { background: #fafbfc; }
.product-groups-table th {
  text-align: left; padding: 10px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-hint); border-bottom: 1px solid var(--border);
  white-space: nowrap; user-select: none;
}
.product-groups-table__th--sortable { cursor: pointer; }
.product-groups-table__th--sortable:hover { color: var(--primary); }
.product-groups-table__sort-icon { margin-left: 4px; font-size: 11px; color: var(--primary); }
.product-groups-table td {
  padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.product-groups-table__row:hover td { background: #fafbfc; }
.product-groups-table__empty { text-align: center; padding: 0 !important; }

/* Name cell with thumbnail */
.product-groups-table__name-cell {
  display: flex; align-items: center; gap: 12px; min-width: 200px;
}
.product-groups-table__thumb {
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
}
.product-groups-table__thumb--placeholder {
  background: #f5f5f5; display: flex; align-items: center; justify-content: center;
}
.product-groups-table__name-info { min-width: 0; }
.product-groups-table__name { font-size: 13px; font-weight: 500; color: var(--text-main); }
.product-groups-table__desc {
  font-size: 11px; color: var(--text-hint); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
.product-groups-table__link { color: var(--primary); font-size: 12px; }
.product-groups-table__date { font-size: 12px; color: var(--text-body); white-space: nowrap; }
.product-groups-table__actions-cell { white-space: nowrap; }

/* Empty state */
.product-groups-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 0;
}
.product-groups-empty__icon { margin-bottom: 16px; opacity: .7; }
.product-groups-empty__text { font-size: 13px; color: var(--text-hint); }
.product-groups-empty__link { color: var(--primary); cursor: pointer; }
.product-groups-empty__link:hover { text-decoration: underline; }

/* Create/Edit Modal Form */
.product-groups-modal__form { display: flex; flex-direction: column; gap: 16px; }
.product-groups-modal__field { display: flex; flex-direction: column; gap: 6px; }
.product-groups-modal__field label {
  font-size: 13px; font-weight: 500; color: var(--text-main);
}
.product-groups-modal__field-hint {
  font-size: 11px; color: var(--text-hint); text-align: right;
}
.product-groups-modal__upload {
  width: 100px; height: 100px; border: 1px dashed var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; transition: border-color .2s;
  background: #fafbfc;
}
.product-groups-modal__upload:hover { border-color: var(--primary); }
.product-groups-modal__upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #c4cdd5; font-size: 11px;
}
.product-groups-modal__upload-preview { position: relative; width: 100%; height: 100%; }
.product-groups-modal__upload-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-groups-modal__upload-remove {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none;
  font-size: 14px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; line-height: 1;
}
.product-groups-modal__upload-remove:hover { background: rgba(0,0,0,.7); }

/* ── Create / Edit Product Group Page ── */
.pg-create-page { max-width: 100%; }
.pg-create-page__header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 24px;
}
.pg-create-page__back {
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
  transition: background .15s;
}
.pg-create-page__back:hover { background: var(--border-light, #f0f0f0); }
.pg-create-page__title { font-size: 20px; font-weight: 600; }
.pg-create-page__body {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start;
}
.pg-create-page__main { display: flex; flex-direction: column; gap: 16px; }
.pg-create-page__sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.pg-create-page__footer {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border, #e7e7e7);
}

/* Card */
.pg-create-card {
  background: var(--bg-card, #fff); border-radius: var(--radius-card, 12px);
  border: 1px solid var(--border, #e7e7e7); padding: 24px;
}
.pg-create-card__section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.pg-create-card__field { margin-bottom: 20px; }
.pg-create-card__field:last-child { margin-bottom: 0; }
.pg-create-card__label { font-size: 14px; font-weight: 600; color: var(--text-main, #333); margin-bottom: 8px; display: block; }
.pg-create-card__input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border, #ddd); border-radius: 8px;
  font-size: 14px; outline: none; box-sizing: border-box; background: #fff;
  transition: border-color .15s;
}
.pg-create-card__input:focus { border-color: var(--primary, #4a7ff7); }
.pg-create-card__input::placeholder { color: #ccc; }

/* Rich text editor */
.pg-create-card__editor {
  border: 1px solid var(--border, #ddd); border-radius: 8px; overflow: hidden;
}
.pg-create-card__toolbar {
  background: #fafbfc; border-bottom: 1px solid var(--border, #e7e7e7);
  padding: 6px 8px;
}
.pg-create-card__toolbar-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 2px;
}
.pg-create-card__toolbar-row:last-child { margin-bottom: 0; }
.pg-create-card__tb-btn {
  width: 28px; height: 28px; border: none; background: none; border-radius: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #555; transition: background .15s;
}
.pg-create-card__tb-btn:hover { background: #e8e8e8; }
.pg-create-card__tb-select {
  height: 28px; border: none; background: none; font-size: 13px; color: #555;
  cursor: pointer; padding: 0 4px; outline: none;
}
.pg-create-card__tb-divider {
  width: 1px; height: 20px; background: #ddd; margin: 0 4px;
}
.pg-create-card__editor-body {
  min-height: 220px; padding: 16px; font-size: 14px; line-height: 1.6;
  outline: none; background: #fff; color: var(--text-main, #333);
}
.pg-create-card__editor-body:empty::before {
  content: attr(data-placeholder); color: #ccc;
}

/* Radio group */
.pg-create-card__radio {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 0;
  cursor: pointer; border-bottom: 1px solid #f5f5f5;
}
.pg-create-card__radio:last-of-type { border-bottom: none; padding-bottom: 0; }
.pg-create-card__radio input[type="radio"] {
  margin-top: 3px; accent-color: var(--primary, #4a7ff7); flex-shrink: 0;
  width: 16px; height: 16px;
}
.pg-create-card__radio-content { flex: 1; }
.pg-create-card__radio-label { font-size: 14px; font-weight: 500; color: var(--text-main, #333); }
.pg-create-card__radio-desc { font-size: 13px; color: #999; margin-top: 4px; line-height: 1.5; }
.pg-create-card__radio-link {
  font-size: 13px; color: var(--primary, #4a7ff7); text-decoration: none; margin-top: 4px; display: inline-block;
}
.pg-create-card__radio-link:hover { text-decoration: underline; }

/* SEO section */
.pg-create-card__seo-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.pg-create-card__seo-link {
  font-size: 13px; color: var(--primary, #4a7ff7); text-decoration: none;
}
.pg-create-card__seo-link:hover { text-decoration: underline; }
.pg-create-card__seo-desc { font-size: 13px; color: #999; line-height: 1.5; }

/* Upload area */
.pg-create-card__upload {
  border: 2px dashed #ddd; border-radius: 8px; min-height: 160px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s; overflow: hidden;
}
.pg-create-card__upload:hover { border-color: var(--primary, #4a7ff7); }
.pg-create-card__upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px;
}
.pg-create-card__upload-icon { color: #c4cdd5; }
.pg-create-card__upload-btn { pointer-events: none; }
.pg-create-card__upload-hint { font-size: 12px; color: #999; }
.pg-create-card__upload-preview { position: relative; width: 100%; height: 100%; }
.pg-create-card__upload-preview img {
  width: 100%; height: 160px; object-fit: cover; display: block;
}
.pg-create-card__upload-remove {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none;
  font-size: 16px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; line-height: 1;
}
.pg-create-card__upload-remove:hover { background: rgba(0,0,0,.7); }

/* Toggle switch */
.pg-create-card__toggle-row {
  display: flex; align-items: center; justify-content: space-between;
}
.pg-create-card__toggle-label {
  font-size: 14px; font-weight: 500; color: var(--text-main, #333);
  display: flex; align-items: center;
}
.pg-create-card__switch {
  position: relative; display: inline-block; width: 44px; height: 24px;
}
.pg-create-card__switch input { opacity: 0; width: 0; height: 0; }
.pg-create-card__switch-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 24px; transition: background .2s;
}
.pg-create-card__switch-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.pg-create-card__switch input:checked + .pg-create-card__switch-slider {
  background: var(--primary, #4a7ff7);
}
.pg-create-card__switch input:checked + .pg-create-card__switch-slider::before {
  transform: translateX(20px);
}

/* ==========================================
   Page: Discount
   ========================================== */
.discount-page { max-width: 100%; }

/* Top tabs row */
.discount-page__top-tabs {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.discount-page__top-tab-list { display: flex; gap: 24px; }
.discount-page__top-tab {
  font-size: 20px; font-weight: 600; color: var(--text-hint); cursor: pointer;
  padding-bottom: 6px; border-bottom: 3px solid transparent; transition: all .2s;
}
.discount-page__top-tab--active { color: var(--text-main); border-bottom-color: var(--primary); }
.discount-page__top-tab:hover { color: var(--text-main); }

/* Stats Cards */
.discount-page__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border);
  margin-bottom: 16px; overflow: hidden;
}
.discount-page__stat-card {
  padding: 20px 24px; border-right: 1px solid var(--border-light);
}
.discount-page__stat-card:last-child { border-right: none; }
.discount-page__stat-label { font-size: 12px; color: var(--text-hint); margin-bottom: 8px; }
.discount-page__stat-value { font-size: 20px; font-weight: 600; color: var(--text-main); }

/* Quick Actions Panel */
.discount-page__quick-panel {
  background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border);
  padding: 20px 24px; margin-bottom: 16px;
}
.discount-page__quick-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.discount-page__quick-title { font-size: 14px; font-weight: 600; }
.discount-page__quick-remove { font-size: 13px; color: var(--primary); cursor: pointer; }
.discount-page__quick-remove:hover { text-decoration: underline; }
.discount-page__quick-actions { display: flex; gap: 12px; }
.discount-page__quick-action {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: #fafbfc; border-radius: 8px; cursor: pointer; transition: background .15s;
  min-width: 160px;
}
.discount-page__quick-action:hover { background: var(--primary-hover); }
.discount-page__quick-icon {
  width: 40px; height: 40px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.discount-page__quick-action span { font-size: 13px; font-weight: 500; }

/* Table Section */
.discount-page__table-section {
  background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border);
  overflow: hidden;
}

/* Tabs */
.discount-page__tabs {
  display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--border-light);
}
.discount-page__tab {
  font-size: 13px; color: var(--text-hint); padding: 12px 0; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.discount-page__tab--active { color: var(--text-main); font-weight: 500; border-bottom-color: var(--primary); }
.discount-page__tab:hover { color: var(--text-main); }

/* Toolbar */
.discount-page__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.discount-page__search {
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  height: 32px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; transition: border-color .2s; width: 280px;
}
.discount-page__search:focus-within { border-color: var(--primary); }
.discount-page__search-input {
  border: none; outline: none; font-size: 13px; flex: 1; height: 100%; background: transparent;
}
.discount-page__toolbar-right { display: flex; align-items: center; gap: 8px; }
.discount-page__icon-btn {
  display: flex; align-items: center; gap: 4px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-btn); background: #fff;
  font-size: 12px; color: var(--text-body); cursor: pointer; transition: all .15s;
}
.discount-page__icon-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Table */
.discount-page__table-wrap { overflow-x: auto; }
.discount-table { width: 100%; border-collapse: collapse; }
.discount-table thead { background: #fafbfc; }
.discount-table th {
  text-align: left; padding: 10px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-hint); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.discount-table td {
  padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.discount-table__row:hover td { background: #fafbfc; }
.discount-table__empty { text-align: center; padding: 0 !important; }
.discount-table__code { font-weight: 500; color: var(--text-main); }
.discount-table__status {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500;
}
.discount-table__status--active { background: #e8f5e9; color: #2e7d32; }
.discount-table__status--pending { background: #fff3e0; color: #e65100; }
.discount-table__status--ended { background: #f5f5f5; color: #999; }
.discount-table__date { font-size: 12px; color: var(--text-body); white-space: nowrap; }
.discount-table__actions-cell { white-space: nowrap; }

/* Empty state */
.discount-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 0;
}
.discount-empty__icon { margin-bottom: 16px; opacity: .7; }
.discount-empty__text { font-size: 13px; color: var(--text-hint); }

/* Type Selection Modal */
.dc-type-option {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  cursor: pointer; transition: background .15s; border-bottom: 1px solid var(--border-light);
}
.dc-type-option:last-child { border-bottom: none; }
.dc-type-option:hover { background: #fafbfc; }
.dc-type-option__icon {
  width: 48px; height: 48px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.dc-type-option__info { flex: 1; min-width: 0; }
.dc-type-option__label { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.dc-type-option__desc { font-size: 12px; color: var(--text-hint); line-height: 1.5; }
.dc-type-option__arrow { flex-shrink: 0; }

/* ── Create Discount Form ── */
.dc-create-page { max-width: 100%; }
.dc-create-page__header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 24px;
}
.dc-create-page__back {
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
  transition: background .15s;
}
.dc-create-page__back:hover { background: var(--border-light); }
.dc-create-page__title { font-size: 20px; font-weight: 600; }
.dc-create-page__body {
  display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start;
}
.dc-create-page__main { display: flex; flex-direction: column; gap: 16px; }
.dc-create-page__sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.dc-create-page__footer {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* Form Cards */
.dc-form-card {
  background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border);
  padding: 24px;
}
.dc-form-card__title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.dc-form-card__field { margin-bottom: 16px; }
.dc-form-card__field:last-child { margin-bottom: 0; }
.dc-form-card__label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-main); }
.dc-form-card__radios { display: flex; flex-direction: column; gap: 8px; }
.dc-form-card__input-row { display: flex; gap: 8px; align-items: flex-start; }
.dc-form-card__hint { font-size: 11px; color: var(--text-hint); margin-top: 6px; }
.dc-form-card__hint-text { font-size: 12px; color: var(--text-hint); margin-bottom: 16px; }
.dc-form-card__unit { font-size: 13px; color: var(--text-body); line-height: 32px; }
.dc-form-card__link { font-size: 13px; color: var(--primary); cursor: pointer; display: inline-block; margin-top: 8px; }
.dc-form-card__link:hover { text-decoration: underline; }
.dc-form-card__date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dc-form-card__date-col { display: flex; flex-direction: column; gap: 6px; }

.dc-form-card__inline-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}

.dc-required { color: #e34d59; }

/* Inputs */
.dc-input {
  height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-size: 13px; outline: none; background: #fff; transition: border-color .2s;
}
.dc-input:focus { border-color: var(--primary); }
.dc-input--flex { flex: 1; }
.dc-input--inline { display: inline-block; }
.dc-input:disabled { background: #f8f8f8; color: var(--text-hint); }

.dc-select {
  height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-size: 13px; outline: none; background: #fff; cursor: pointer;
  appearance: auto; width: 100%; max-width: 300px;
}
.dc-select:focus { border-color: var(--primary); }

/* Radio */
.dc-radio {
  display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;
}
.dc-radio input[type="radio"] { margin: 0; accent-color: var(--primary); }

/* Checkbox */
.dc-checkbox {
  display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;
}
.dc-checkbox input[type="checkbox"] { margin: 0; accent-color: var(--primary); }

/* Toggle group */
.dc-toggle-group { display: flex; gap: 0; }
.dc-toggle-btn {
  padding: 6px 16px; font-size: 12px; font-weight: 500; border: 1px solid var(--border);
  background: #fff; cursor: pointer; transition: all .15s; color: var(--text-body);
}
.dc-toggle-btn:first-child { border-radius: var(--radius-btn) 0 0 var(--radius-btn); }
.dc-toggle-btn:last-child { border-radius: 0 var(--radius-btn) var(--radius-btn) 0; border-left: none; }
.dc-toggle-btn--active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Switch */
.dc-switch-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.dc-switch {
  width: 36px; height: 20px; border-radius: 10px; background: #ddd; position: relative;
  display: inline-block; cursor: pointer; transition: background .2s;
}
.dc-switch--on { background: var(--primary); }
.dc-switch__track { display: block; width: 100%; height: 100%; }
.dc-switch__thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.dc-switch--on .dc-switch__thumb { left: 18px; }

/* Summary Sidebar Cards */
.dc-summary-card {
  background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border);
  padding: 20px;
}
.dc-summary-card__title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.dc-summary-card__hint { font-size: 12px; color: var(--text-hint); margin-bottom: 12px; }
.dc-summary-card__section { margin-bottom: 12px; }
.dc-summary-card__section:last-child { margin-bottom: 0; }
.dc-summary-card__label { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.dc-summary-card__list {
  list-style: disc; margin: 0; padding-left: 18px; font-size: 12px; color: var(--text-body);
  line-height: 1.8;
}
.dc-summary-card__sub { font-size: 11px; color: var(--text-hint); margin-top: 6px; }

/* ==========================================
   Page: Product List (Table View)
   ========================================== */
.product-list-page { max-width: 100%; }

/* Page Header (outside card) */
.product-list-page__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.product-list-page__title {
  font-size: 20px; font-weight: 700; color: var(--text-main); margin: 0;
}
.product-list-page__header-actions {
  display: flex; align-items: center; gap: 8px;
}

/* Body card */
.product-list-page__body {
  background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border);
  overflow: hidden;
}

/* Tab bar (inside card) */
.product-list-page__tab-bar {
  display: flex; gap: 0; padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
}
.product-list-page__tab {
  font-size: 14px; font-weight: 500; color: var(--text-hint); cursor: pointer;
  padding: 12px 4px; margin-right: 20px;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.product-list-page__tab--active {
  color: var(--text-main); font-weight: 600; border-bottom-color: var(--text-main);
}
.product-list-page__tab:hover:not(.product-list-page__tab--active) {
  color: var(--text-body);
}

/* Toolbar */
.product-list-page__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.product-list-page__search {
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  height: 32px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; transition: border-color .2s; width: 320px;
}
.product-list-page__search:focus-within { border-color: var(--primary); }
.product-list-page__search-input {
  border: none; outline: none; font-size: 13px; flex: 1; height: 100%; background: transparent;
}
.product-list-page__toolbar-right { display: flex; align-items: center; gap: 6px; }

/* Toolbar dropdown buttons (供应商, 标签) */
.pl-toolbar__dropdown-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-body);
}
.pl-toolbar__dropdown-btn svg { flex-shrink: 0; }
.pl-toolbar__dropdown-btn--active {
  border-color: var(--primary); color: var(--primary);
}

/* Toolbar inline dropdown menu */
.pl-toolbar-dropdown-menu {
  min-width: 140px; max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 4px 0;
  animation: fadeIn .15s ease;
}
.pl-toolbar-dropdown-menu::-webkit-scrollbar { width: 4px; }
.pl-toolbar-dropdown-menu::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.pl-toolbar-dropdown-menu__item {
  padding: 8px 16px; font-size: 13px; cursor: pointer; transition: background .1s;
  color: var(--text-body); white-space: nowrap;
}
.pl-toolbar-dropdown-menu__item:hover { background: var(--primary-hover); }
.pl-toolbar-dropdown-menu__item--active { color: var(--primary); font-weight: 500; background: var(--primary-light); }
.pl-toolbar-dropdown-menu__empty { padding: 12px 16px; font-size: 12px; color: var(--text-hint); text-align: center; }

/* Product More Menu */
.pl-more-menu__item {
  padding: 9px 16px; font-size: 13px; cursor: pointer; transition: background .1s;
  color: var(--text-body); white-space: nowrap;
}
.pl-more-menu__item:hover { background: #f5f5f5; }
.pl-more-menu__item--danger { color: #e34d59; }
.pl-more-menu__item--danger:hover { background: #fff0f0; }
.pl-more-menu__divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

/* Product Preview Popup */
.pl-preview-popup {
  animation: fadeIn .2s ease;
  pointer-events: none;
}

/* View toggle group */
.pl-toolbar__view-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-btn);
  overflow: hidden; margin-left: 4px;
}
.pl-toolbar__view-toggle .btn--icon {
  border: none; border-radius: 0; background: #fff; color: var(--text-hint);
  width: 32px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.pl-toolbar__view-toggle .btn--icon + .btn--icon {
  border-left: 1px solid var(--border);
}
.pl-toolbar__view-btn--active {
  background: var(--primary-light) !important; color: var(--primary) !important;
}

/* Icon-only button */
.btn--icon {
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: unset;
}

/* Table */
.product-list-page__table-wrap { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; min-width: 1060px; }
.pl-table thead { background: #fafbfc; }
.pl-table th {
  text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 600;
  color: var(--text-hint); border-bottom: 1px solid var(--border);
  white-space: nowrap; user-select: none;
}
.pl-table__th--sortable { cursor: pointer; }
.pl-table__th--sortable:hover { color: var(--primary); }
.pl-table__th--sales {
  display: flex; align-items: center; gap: 2px;
}
.pl-table__th-inner {
  display: inline-flex; align-items: center; gap: 2px;
}
.pl-table__th-dropdown {
  display: inline-flex; align-items: center; cursor: pointer; padding: 2px;
  border-radius: 3px; margin-left: 2px;
}
.pl-table__th-dropdown:hover { background: var(--primary-hover); }
.pl-table td {
  padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; white-space: nowrap;
}
.pl-table__row:hover td { background: #fafbfc; }
.pl-table__row--selected td { background: var(--primary-light); }
.pl-table__product-cell {
  display: flex; align-items: center; gap: 10px; min-width: 200px;
}
.pl-table__product-name {
  font-size: 13px; font-weight: 500; color: var(--text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.pl-table__num-cell { font-variant-numeric: tabular-nums; }
.pl-table__category-cell {
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-table__actions-cell { white-space: nowrap; }
.pl-table__actions-cell .action-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 4px; margin-right: 2px;
  color: var(--text-body); transition: all .15s; cursor: pointer;
}
.pl-table__actions-cell .action-link:hover {
  color: var(--primary); background: var(--primary-hover);
}
.pl-table__empty { text-align: center; padding: 0 !important; }

/* ==========================================
   Product Import Modal
   ========================================== */
.product-import-modal { max-height: 85vh; overflow-y: auto; }
.product-import-modal__body { padding: 0 24px 20px; }
.product-import-modal__hint {
  font-size: 14px; color: var(--text-main); margin-bottom: 20px;
  padding: 14px 16px; background: var(--primary-light); border-radius: 6px;
  line-height: 1.6;
}
.product-import-modal__template-link {
  color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer;
}
.product-import-modal__template-link:hover { text-decoration: none; }

/* Dropzone */
.product-import-modal__dropzone {
  border: 1px dashed var(--border); border-radius: 10px; padding: 40px 24px;
  background: #fafbfc; transition: all .2s; margin-bottom: 20px; position: relative;
}
.product-import-modal__dropzone--dragover {
  border-color: var(--primary); background: var(--primary-light);
}
.product-import-modal__dropzone-content {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.product-import-modal__dropzone-icon { opacity: .6; }
.product-import-modal__dropzone-hint {
  font-size: 13px; color: var(--text-hint);
}

/* File info */
.product-import-modal__file-info {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.product-import-modal__file-name {
  flex: 1; font-size: 13px; color: var(--text-main); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-import-modal__file-remove {
  width: 24px; height: 24px; border: none; background: transparent;
  color: var(--text-hint); font-size: 18px; cursor: pointer; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.product-import-modal__file-remove:hover { background: #f0f0f0; color: var(--danger); }

/* Overwrite option */
.product-import-modal__overwrite-label {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px;
  color: var(--text-body); cursor: pointer; line-height: 1.6; user-select: none;
}
.product-import-modal__overwrite-label input[type="checkbox"] {
  margin-top: 4px; width: 16px; height: 16px; accent-color: var(--primary);
  flex-shrink: 0; cursor: pointer;
}

/* Footer */
.product-import-modal__footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border-light);
}
.product-import-modal__footer .btn--primary:disabled {
  opacity: .5; cursor: not-allowed;
}

/* ==========================================
   Product Filter Drawer
   ========================================== */

/* Filter button active state + badge */
.pl-toolbar__filter-active {
  position: relative; border-color: var(--primary) !important; color: var(--primary) !important;
}
.pl-toolbar__filter-badge {
  position: absolute; top: -6px; right: -6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* Drawer */
.pl-filter-drawer {
  width: 360px; height: 100vh; background: var(--bg-card);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  transform: translateX(100%); transition: transform .25s ease;
}
.pl-filter-drawer--open { transform: translateX(0); }

/* Header */
.pl-filter-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; flex-shrink: 0;
}
.pl-filter-drawer__title { font-size: 16px; font-weight: 600; color: var(--text-main); }
.pl-filter-drawer__close {
  width: 28px; height: 28px; border: none; background: transparent; cursor: pointer;
  color: var(--text-hint); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.pl-filter-drawer__close:hover { background: #f0f0f0; color: var(--text-main); }

/* Body */
.pl-filter-drawer__body {
  flex: 1; overflow-y: auto; padding: 0 24px 20px;
}
.pl-filter-drawer__body::-webkit-scrollbar { width: 4px; }
.pl-filter-drawer__body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Section */
.pl-filter-drawer__section {
  margin-bottom: 8px;
}
.pl-filter-drawer__section-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 12px 0 8px; user-select: none;
}
.pl-filter-drawer__section-title {
  font-size: 14px; font-weight: 600; color: var(--text-main);
}
.pl-filter-drawer__section-arrow {
  transition: transform .2s; flex-shrink: 0;
}
.pl-filter-drawer__section--collapsed .pl-filter-drawer__section-arrow {
  transform: rotate(-90deg);
}
.pl-filter-drawer__section--collapsed .pl-filter-drawer__section-body {
  display: none;
}

/* Section body */
.pl-filter-drawer__section-body {
  padding-bottom: 4px;
}

/* Search within section */
.pl-filter-drawer__search { margin-bottom: 8px; }
.pl-filter-drawer__search-input {
  width: 100%; height: 32px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-size: 13px; transition: border-color .2s; background: #fff;
}
.pl-filter-drawer__search-input:focus { border-color: var(--primary); outline: none; }

/* Options (radio list) */
.pl-filter-drawer__options {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 180px; overflow-y: auto; margin-bottom: 4px;
}
.pl-filter-drawer__options::-webkit-scrollbar { width: 3px; }
.pl-filter-drawer__options::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

/* Radio item */
.pl-filter__radio {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 2px; font-size: 13px; color: var(--text-body);
  cursor: pointer; border-radius: 4px; transition: background .1s;
}
.pl-filter__radio:hover { background: #fafbfc; }
.pl-filter__radio input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
  margin: 0; flex-shrink: 0;
}
.pl-filter__radio span { flex: 1; min-width: 0; }

/* Empty hint */
.pl-filter-drawer__empty-hint {
  font-size: 12px; color: var(--text-hint); padding: 8px 2px;
}

/* Clear link */
.pl-filter-drawer__clear {
  display: inline-block; font-size: 12px; color: var(--primary);
  cursor: pointer; padding: 2px 0; margin-top: 2px;
}
.pl-filter-drawer__clear:hover { text-decoration: underline; }

/* Custom inventory range */
.pl-filter-drawer__custom-range {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 4px;
}
.pl-filter-drawer__range-input {
  flex: 1; height: 32px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-size: 13px; background: #fff; outline: none;
  transition: border-color .2s;
}
.pl-filter-drawer__range-input:focus { border-color: var(--primary); }
.pl-filter-drawer__range-sep {
  color: var(--text-hint); font-size: 13px; flex-shrink: 0;
}

/* Footer */
.pl-filter-drawer__footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border-light); flex-shrink: 0;
}

/* =========================================
   Product Group Preview (inside phone)
   ========================================= */
.pg-preview { padding: 2px 0; }
.pg-preview__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; padding: 0 2px;
}
.pg-preview__tab {
  font-size: 10px; color: #666; padding: 3px 10px; border-radius: 12px; background: #f0f0f0;
}
.pg-preview__tab--active { background: var(--primary, #4a7ff7); color: #fff; }
.pg-preview__tab-right { display: flex; align-items: center; }

/* Grid (shared) */
.pg-preview__grid { display: flex; flex-direction: column; gap: 6px; }
.pg-preview__row { display: flex; gap: 6px; }
.pg-preview__card { flex: 1; position: relative; min-width: 0; }
.pg-preview__wish { position: absolute; top: 4px; right: 4px; z-index: 1; opacity: 0.6; }
.pg-preview__img {
  background: #f0f0f0; border-radius: 4px; height: 72px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
  overflow: hidden; position: relative;
}
.pg-preview__img-placeholder { display: flex; align-items: center; justify-content: center; }
.pg-preview__info { padding: 0 2px; }
.pg-preview__name {
  font-size: 9px; color: #333; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg-preview__price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.pg-preview__price { font-size: 10px; font-weight: 600; color: #1a1a1a; }
.pg-preview__currency { font-size: 8px; color: #999; font-weight: 400; margin-right: 1px; }
.pg-preview__cart { display: flex; align-items: center; cursor: pointer; }

/* Discount badge */
.pg-preview__discount {
  position: absolute; top: 4px; left: 4px; z-index: 1;
  background: #ff4d4f; color: #fff; font-size: 7px; font-weight: 600;
  padding: 1px 4px; border-radius: 3px; line-height: 1.3;
}

/* Review & Sales */
.pg-preview__review {
  font-size: 7px; color: #f5a623; margin-bottom: 1px; line-height: 1.4;
}
.pg-preview__sales {
  font-size: 7px; color: #999; margin-bottom: 1px; line-height: 1.4;
}

/* Big image mode */
.pg-preview__grid--big { gap: 8px; }
.pg-preview__big-card {
  position: relative; border-radius: 6px; overflow: hidden;
  background: #fff; border: 1px solid #f0f0f0;
}
.pg-preview__big-card .pg-preview__img {
  border-radius: 6px 6px 0 0; margin-bottom: 0;
}
.pg-preview__big-card .pg-preview__info {
  padding: 6px 8px 8px;
}
.pg-preview__big-card .pg-preview__name {
  font-size: 10px; margin-bottom: 3px;
}
.pg-preview__big-card .pg-preview__price {
  font-size: 12px;
}
.pg-preview__big-card .pg-preview__wish {
  top: 6px; right: 6px;
}
.pg-preview__big-card .pg-preview__discount {
  top: 6px; left: 6px;
}

/* List mode */
.pg-preview__grid--list { gap: 0; }
.pg-preview__list-item {
  display: flex; gap: 8px; padding: 8px 0; position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.pg-preview__list-item:last-child { border-bottom: none; }
.pg-preview__list-img {
  flex-shrink: 0; background: #f0f0f0; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.pg-preview__list-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
}
.pg-preview__list-info .pg-preview__name {
  font-size: 10px; margin-bottom: 3px; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pg-preview__list-info .pg-preview__price {
  font-size: 11px;
}
.pg-preview__list-wish {
  position: absolute; top: 8px; right: 0; opacity: 0.6;
}

/* =========================================
   Product Group Properties Panel
   ========================================= */
.pg-props {
  display: flex; flex-direction: column; flex: 1; overflow: hidden;
}
.pg-props__header {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 16px; border-bottom: 1px solid #eee;
  position: relative; flex-shrink: 0;
}
.pg-props__header-title {
  font-size: 14px; font-weight: 500; color: #1a1a1a;
}
.pg-props__header-menu {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.pg-props__header-menu:hover { background: #f5f5f5; }

.pg-props__body {
  padding: 20px 16px; overflow-y: auto; flex: 1;
}
.pg-props__field { margin-bottom: 20px; }
.pg-props__label {
  display: block; font-size: 13px; color: #333; margin-bottom: 8px; font-weight: 400;
}
.pg-props__input {
  width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid #dcdee1; border-radius: 6px;
  font-size: 13px; color: #333; background: #fff;
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.pg-props__input:focus { border-color: var(--primary, #4a7ff7); }
.pg-props__select {
  width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid #dcdee1; border-radius: 6px;
  font-size: 13px; color: #333; background: #fff;
  outline: none; cursor: pointer;
  appearance: auto; box-sizing: border-box;
}
.pg-props__select:focus { border-color: var(--primary, #4a7ff7); }

/* Group selection box */
.pg-props__group-box {
  background: #f5f6f8; border-radius: 8px;
  padding: 28px 20px; display: flex;
  align-items: center; justify-content: center;
}
.pg-props__group-btn {
  padding: 8px 24px; border-radius: 6px;
  background: var(--primary, #4a7ff7); color: #fff;
  border: none; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.pg-props__group-btn:hover { background: #3a6fe6; }

/* Selected group card in sidebar */
.pg-props__group-selected {
  background: #fff; border: 1px solid #e4e7ed; border-radius: 8px;
  padding: 14px 16px;
}
.pg-props__group-selected-name {
  font-size: 14px; font-weight: 500; color: #333;
  margin-bottom: 12px; word-break: break-all;
}
.pg-props__group-selected-actions {
  display: flex; gap: 12px;
}
.pg-props__group-selected-btn {
  padding: 5px 16px; border-radius: 4px;
  background: #fff; border: 1px solid #dcdee1;
  font-size: 13px; color: #333; cursor: pointer;
  transition: all 0.15s;
}
.pg-props__group-selected-btn:hover { border-color: #999; }
.pg-props__group-selected-btn--danger { color: #e34d59; border-color: #e34d59; }
.pg-props__group-selected-btn--danger:hover { background: #fef0f0; }

/* Select Group Panel (slide-in from right) */
.select-group-overlay {
  display: flex; justify-content: flex-end !important;
}
.select-group-panel {
  width: 320px; height: 100vh; background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  animation: slideInRight 0.25s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.select-group-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; flex-shrink: 0;
}
.select-group-panel__title {
  font-size: 16px; font-weight: 600; color: #333;
}
.select-group-panel__close {
  background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background 0.15s;
}
.select-group-panel__close:hover { background: #f5f5f5; }
.select-group-panel__search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 20px 8px; padding: 8px 12px;
  border: 1px solid #e4e7ed; border-radius: 6px;
  background: #fff; flex-shrink: 0;
}
.select-group-panel__search:focus-within { border-color: var(--primary, #4a7ff7); }
.select-group-panel__search-input {
  border: none; background: none; outline: none;
  flex: 1; font-size: 13px; color: #333;
}
.select-group-panel__add {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; cursor: pointer;
  color: var(--primary, #4a7ff7); font-size: 13px; font-weight: 500;
  transition: background 0.15s; flex-shrink: 0;
}
.select-group-panel__add:hover { background: #f9fbff; }
.select-group-panel__list {
  flex: 1; overflow-y: auto; padding: 0;
}
.select-group-panel__empty {
  padding: 60px 20px; text-align: center; color: #999; font-size: 14px;
}
.select-group-panel__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer;
  transition: background 0.15s;
}
.select-group-panel__item:hover { background: #f9fbff; }
.select-group-panel__item--active { background: #f0f5ff; }
.select-group-panel__item-thumb {
  width: 36px; height: 36px; border-radius: 4px;
  overflow: hidden; background: #f5f5f5; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #eee;
}
.select-group-panel__item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.select-group-panel__item-name {
  flex: 1; font-size: 13px; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.select-group-panel__item-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #d0d0d0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.select-group-panel__item-radio--checked {
  border-color: var(--primary, #4a7ff7);
}
.select-group-panel__item-radio-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary, #4a7ff7);
}
.select-group-panel__footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0;
}
.select-group-panel__footer .btn--sm[disabled] {
  opacity: 0.5; cursor: not-allowed;
}

/* ── Vertical-tabs phone preview layout ── */
.pg-vtabs {
  padding: 8px; background: #fff; border-radius: 6px;
}
.pg-vtabs__title {
  font-size: 12px; font-weight: 700; color: #222;
  padding: 4px 0 8px; letter-spacing: 0.5px;
}
.pg-vtabs__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pg-vtabs__card {
  background: #f9f5ed; border-radius: 6px; overflow: hidden; position: relative;
}
.pg-vtabs__card .pg-preview__img {
  border-radius: 6px 6px 0 0;
}
.pg-vtabs__card .pg-preview__info {
  padding: 6px 8px 8px;
}
.pg-vtabs__card .pg-preview__name {
  font-size: 8px; line-height: 1.3; margin-bottom: 3px;
}
.pg-vtabs__card .pg-preview__price {
  font-size: 9px;
}
.pg-vtabs__card .pg-preview__wish {
  top: 4px; right: 4px;
}
.pg-vtabs__viewall {
  display: flex; justify-content: center; padding: 10px 0 4px;
}
.pg-vtabs__viewall-btn {
  font-size: 10px; color: #333; background: #f0ebe0;
  padding: 4px 20px; border-radius: 12px; font-weight: 500;
}

/* ── Featured-Collection Layout Picker ── */
.fc-layout-picker {
  padding: 0 16px 16px;
}
.fc-layout-picker__header {
  display: flex; align-items: center; gap: 8px; padding: 12px 0;
}
.fc-layout-picker__back {
  background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.fc-layout-picker__back:hover { background: #f0f0f0; }
.fc-layout-picker__title {
  font-size: 15px; font-weight: 600; color: #333;
}
.fc-layout-picker__desc {
  background: #f9f9f9; border-radius: 6px;
  padding: 10px 14px; margin-bottom: 16px;
  font-size: 12px; color: #666; line-height: 1.6;
}
.fc-layout-picker__desc p { margin: 0; }
.fc-layout-picker__options {
  display: flex; flex-direction: column; gap: 20px;
}
.fc-layout-picker__option {
  cursor: pointer; border: 2px solid transparent;
  border-radius: 10px; overflow: hidden; transition: all 0.2s;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.fc-layout-picker__option:hover {
  border-color: var(--primary, #4a7ff7);
  box-shadow: 0 2px 12px rgba(74,127,247,0.15);
}
.fc-layout-picker__option-label {
  font-size: 11px; font-weight: 700; color: #222;
  padding: 12px 14px 6px; letter-spacing: 0.5px;
}
.fc-layout-picker__option-preview {
  padding: 0 14px 14px;
}

/* Default layout preview (list style) */
.fc-layout-picker__option-preview--default .fc-lp__row {
  display: flex; gap: 10px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid #f0f0f0;
}
.fc-layout-picker__option-preview--default .fc-lp__row:last-of-type {
  border-bottom: none;
}
.fc-lp__img-placeholder {
  width: 48px; height: 48px; background: #f0f0f0; border-radius: 4px; flex-shrink: 0;
}
.fc-lp__info { flex: 1; min-width: 0; }
.fc-lp__name { font-size: 10px; color: #333; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-lp__sold { font-size: 8px; color: #999; margin-bottom: 2px; }
.fc-lp__price { font-size: 11px; font-weight: 600; color: #333; }
.fc-lp__viewall {
  display: flex; justify-content: center; padding: 8px 0 2px;
}
.fc-lp__viewall {
  font-size: 10px; color: #333; background: #f0ebe0;
  padding: 4px 20px; border-radius: 12px; display: inline-block;
  margin: 8px auto 0; text-align: center;
}

/* Vertical-tabs layout preview (grid style) */
.fc-layout-picker__option-preview--vtabs .fc-lp__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.fc-lp__grid-card {
  background: #f9f5ed; border-radius: 6px; overflow: hidden;
}
.fc-lp__grid-img {
  width: 100%; height: 56px; background: #e8e3d8;
}
.fc-lp__grid-name {
  font-size: 8px; color: #333; padding: 5px 6px 2px;
  line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fc-lp__grid-price {
  font-size: 10px; font-weight: 600; color: #333; padding: 0 6px 6px;
}

/* Add Product button (designated mode) */
.pg-props__add-product-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--primary, #4a7ff7); font-size: 13px; font-weight: 500;
  padding: 6px 0; transition: opacity 0.2s;
}
.pg-props__add-product-btn:hover { opacity: 0.7; }

/* Designated products thumbnail grid */
.pg-props__designated-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 10px;
}
.pg-props__designated-thumb {
  position: relative; aspect-ratio: 1/1; border-radius: 6px;
  overflow: hidden; background: #f5f5f5; cursor: pointer;
  border: 1px solid #eee;
}
.pg-props__designated-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pg-props__designated-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.pg-props__designated-thumb-remove {
  position: absolute; top: -1px; right: -1px; width: 16px; height: 16px;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 11px; line-height: 16px;
  text-align: center; border-radius: 0 0 0 6px; cursor: pointer;
  opacity: 0; transition: opacity 0.15s;
}
.pg-props__designated-thumb:hover .pg-props__designated-thumb-remove { opacity: 1; }

/* Select Product Modal */
.select-product-modal { max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
.select-product-modal .modal__header { flex-shrink: 0; }
.select-product-modal__empty {
  padding: 48px 24px; text-align: center; color: #666; font-size: 15px;
}
.select-product-modal__toolbar {
  display: flex; gap: 10px; padding: 12px 24px; align-items: center; flex-shrink: 0;
}
.select-product-modal__search {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: #f5f7fa; border: 1px solid #e4e7ed; border-radius: 6px; padding: 7px 12px;
}
.select-product-modal__search input {
  border: none; background: none; outline: none; flex: 1; font-size: 13px; color: #333;
}
.select-product-modal__filter {
  padding: 7px 12px; border: 1px solid #e4e7ed; border-radius: 6px;
  font-size: 13px; color: #666; background: #fff; cursor: pointer;
}
.select-product-modal__table-wrap {
  flex: 1; overflow-y: auto; padding: 0 24px;
}
.select-product-modal__table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.select-product-modal__table th {
  padding: 10px 8px; border-bottom: 1px solid #eee; color: #999; font-weight: 500;
  text-align: left; position: sticky; top: 0; background: #fff; z-index: 1;
}
.select-product-modal__table td {
  padding: 10px 8px; border-bottom: 1px solid #f5f5f5;
}
.select-product-modal__row:hover { background: #f9fbff; }
.select-product-modal__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; border-top: 1px solid #f0f0f0; flex-shrink: 0;
}
.select-product-modal__footer-left { display: flex; gap: 16px; }
.select-product-modal__footer-center {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666;
}
.select-product-modal__link {
  font-size: 13px; color: var(--primary, #4a7ff7); text-decoration: none;
}
.select-product-modal__link:hover { text-decoration: underline; }
.sp-page-btn {
  width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 12px; color: #666;
  display: flex; align-items: center; justify-content: center;
}
.sp-page-btn:disabled { opacity: 0.4; cursor: default; }
.sp-page-input {
  width: 40px; height: 28px; border: 1px solid #ddd; border-radius: 4px;
  text-align: center; font-size: 13px;
}
.sp-page-input::-webkit-inner-spin-button,
.sp-page-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sp-page-input { -moz-appearance: textfield; }
.select-product-modal__actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-top: 1px solid #eee; flex-shrink: 0; background: #fafafa;
}

/* Slider row */
.pg-props__slider-row {
  display: flex; align-items: center; gap: 12px;
}
.pg-props__slider {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: #e0e0e0; border-radius: 4px; outline: none;
  cursor: pointer;
}
.pg-props__slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
}
.pg-props__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary, #4a7ff7); border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  margin-top: -6px; cursor: pointer;
}
.pg-props__slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary, #4a7ff7); border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); cursor: pointer;
}
.pg-props__slider::-moz-range-track {
  height: 4px; border-radius: 4px; background: #e0e0e0;
}
.pg-props__slider-val {
  min-width: 32px; height: 28px; line-height: 28px;
  text-align: center; font-size: 13px; color: #333;
  border: 1px solid #dcdee1; border-radius: 4px;
  background: #fff; flex-shrink: 0;
}

/* Checkboxes */
.pg-props__checks { display: flex; flex-direction: column; gap: 14px; }
.pg-props__check {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #333; cursor: pointer;
  user-select: none;
}
.pg-props__check input { display: none; }
.pg-props__check-mark {
  width: 18px; height: 18px; border: 1.5px solid #d0d0d0;
  border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.pg-props__check input:checked ~ .pg-props__check-mark {
  background: var(--primary, #4a7ff7); border-color: var(--primary, #4a7ff7);
}
.pg-props__check input:checked ~ .pg-props__check-mark::after {
  content: ''; display: block;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); margin-top: -2px;
}
.pg-props__check-info {
  margin-left: -2px; flex-shrink: 0; opacity: 0.5;
}

/* Tooltip popup */
.pg-props__tooltip-popup {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 12px 16px; font-size: 13px; color: #333; line-height: 1.5;
  max-width: 240px; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 9999;
}

/* Footer props panel */
.footer-props { display: flex; flex-direction: column; height: 100%; }
.footer-props__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.footer-props__header-title { font-size: 15px; font-weight: 600; }
.footer-props__body { flex: 1; overflow-y: auto; padding: 0; }
.footer-props__section-label { font-size: 13px; color: #666; padding: 16px 20px 8px; }
.footer-props__content-list { padding: 0 20px; }
.footer-props__content-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 14px; cursor: pointer;
}
.footer-props__content-item:last-child { border-bottom: none; }
.footer-props__content-icon { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.footer-props__content-name { flex: 1; }
.footer-props__add-content {
  display: flex; align-items: center; gap: 8px; padding: 12px 20px;
  font-size: 14px; color: var(--primary, #4a7ff7); cursor: pointer; border-top: 1px solid #f0f0f0;
}
.footer-props__add-content:hover { background: #f9fbff; }
.footer-props__add-content svg { flex-shrink: 0; }

/* Footer sub-panel (版权信息 / 自定义菜单) */
.footer-sub-panel { display: flex; flex-direction: column; height: 100%; }
.footer-sub-panel__header {
  display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; gap: 10px;
}
.footer-sub-panel__back { cursor: pointer; display: flex; align-items: center; }
.footer-sub-panel__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.footer-sub-panel__field { margin-bottom: 16px; }
.footer-sub-panel__label { font-size: 13px; color: #333; margin-bottom: 6px; display: block; font-weight: 500; }
.footer-sub-panel__input {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; outline: none; box-sizing: border-box;
}
.footer-sub-panel__input:focus { border-color: var(--primary, #4a7ff7); }
.footer-sub-panel__image-box {
  width: 100%; aspect-ratio: 16/9; background: #f5f5f5; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.footer-sub-panel__image-box img {
  width: 100%; height: 100%; object-fit: contain;
}
.footer-sub-panel__image-btn {
  padding: 8px 20px; background: var(--primary, #4a7ff7); color: #fff;
  border: none; border-radius: 6px; font-size: 13px; cursor: pointer;
}
.footer-sub-panel__slider-row {
  display: flex; align-items: center; gap: 10px;
}
.footer-sub-panel__slider {
  flex: 1; accent-color: var(--primary, #4a7ff7);
}
.footer-sub-panel__slider-val {
  width: 42px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px;
  text-align: center; font-size: 13px;
}
.footer-sub-panel__slider-unit { font-size: 13px; color: #999; }
.footer-sub-panel__color-row {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-sub-panel__color-swatch {
  width: 40px; height: 26px; border-radius: 4px; border: 1px solid #ddd;
  cursor: pointer; position: relative;
}
.footer-sub-panel__check {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; cursor: pointer; font-size: 13px;
}
.footer-sub-panel__check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary, #4a7ff7); margin-top: 1px; flex-shrink: 0;
}
.footer-sub-panel__hint {
  background: #f0f4ff; border-radius: 6px; padding: 10px 12px;
  font-size: 12px; color: var(--primary, #4a7ff7); line-height: 1.5; margin-top: 8px;
}
.footer-sub-panel__delete {
  display: flex; align-items: center; gap: 6px; color: var(--primary, #4a7ff7);
  font-size: 13px; cursor: pointer; padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 8px;
}
.footer-sub-panel__menu-items { margin-bottom: 12px; }
.footer-sub-panel__menu-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 14px; cursor: pointer;
}
.footer-sub-panel__menu-drag {
  cursor: grab; color: #ccc; display: flex; flex-direction: column; gap: 2px;
}
.footer-sub-panel__menu-drag::before, .footer-sub-panel__menu-drag::after {
  content: ''; display: block; width: 8px; height: 2px; background: #ccc; border-radius: 1px;
}
.footer-sub-panel__menu-icon { flex-shrink: 0; }
.footer-sub-panel__menu-name { flex: 1; }

/* ── Category Combo Props ── */
.catcombo-props { display: flex; flex-direction: column; height: 100%; }
.catcombo-props__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
}
.catcombo-props__header-title { font-size: 14px; font-weight: 600; color: #333; }
.catcombo-props__header-menu { background: none; border: none; cursor: pointer; padding: 4px; }
.catcombo-props__tabs {
  display: flex; border-bottom: 1px solid #f0f0f0; padding: 0 20px;
}
.catcombo-props__tab {
  padding: 10px 16px; font-size: 13px; color: #999; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.catcombo-props__tab--active {
  color: #333; font-weight: 600; border-bottom-color: #333;
}
.catcombo-props__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.catcombo-props__hint {
  font-size: 12px; color: #999; line-height: 1.6; margin-bottom: 18px;
}
.catcombo-props__field { margin-bottom: 18px; }
.catcombo-props__label { font-size: 13px; color: #333; margin-bottom: 6px; display: block; font-weight: 500; }
.catcombo-props__select {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; outline: none; background: #fff; cursor: pointer;
  appearance: auto;
}
.catcombo-props__select:focus { border-color: var(--primary, #4a7ff7); }
.catcombo-props__group-list { margin-bottom: 8px; }
.catcombo-props__group-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 14px; cursor: pointer;
}
.catcombo-props__group-item:hover { background: #f9fbff; }
.catcombo-props__group-drag { cursor: grab; color: #ccc; display: flex; align-items: center; }
.catcombo-props__group-icon { flex-shrink: 0; display: flex; }
.catcombo-props__group-name { flex: 1; color: #333; }
.catcombo-props__add-content {
  display: flex; align-items: center; gap: 6px; padding: 10px 0;
  font-size: 13px; cursor: pointer; user-select: none;
}
.catcombo-props__add-content:hover { opacity: 0.8; }

/* Category Combo slider in props */
.catcombo-props__slider-row {
  display: flex; align-items: center; gap: 8px;
}
.catcombo-props__slider { flex: 1; accent-color: var(--primary, #4a7ff7); }
.catcombo-props__slider-val {
  width: 28px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px;
  text-align: center; font-size: 13px; background: #fff;
}
.catcombo-props__info-box {
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  background: #f0f5ff; border-radius: 8px; font-size: 12px; color: #555;
  line-height: 1.5; margin-bottom: 16px;
}
.catcombo-props__info-box strong { color: var(--primary, #4a7ff7); font-weight: 600; }

/* ── Category Combo Sub-Panel (Group detail) ── */
.catcombo-sub-panel { display: flex; flex-direction: column; height: 100%; }
.catcombo-sub-panel__header {
  display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; gap: 10px;
}
.catcombo-sub-panel__back { cursor: pointer; display: flex; align-items: center; }
.catcombo-sub-panel__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.catcombo-sub-panel__field { margin-bottom: 18px; }
.catcombo-sub-panel__label { font-size: 13px; color: #333; margin-bottom: 6px; display: block; font-weight: 500; }
.catcombo-sub-panel__input {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; outline: none; box-sizing: border-box;
}
.catcombo-sub-panel__input:focus { border-color: var(--primary, #4a7ff7); }
.catcombo-sub-panel__sublist { margin-bottom: 8px; }
.catcombo-sub-panel__subitem {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 14px;
}
.catcombo-sub-panel__subitem-drag { cursor: grab; color: #ccc; display: flex; align-items: center; }
.catcombo-sub-panel__subitem-icon { flex-shrink: 0; display: flex; }
.catcombo-sub-panel__subitem-name { flex: 1; color: #333; }
.catcombo-sub-panel__add {
  display: flex; align-items: center; gap: 6px; padding: 10px 0;
  font-size: 13px; cursor: pointer; user-select: none;
}
.catcombo-sub-panel__add:hover { opacity: 0.8; }
.catcombo-sub-panel__divider {
  height: 1px; background: #f0f0f0; margin: 16px 0;
}
.catcombo-sub-panel__slider-row {
  display: flex; align-items: center; gap: 8px;
}
.catcombo-sub-panel__slider { flex: 1; accent-color: var(--primary, #4a7ff7); }
.catcombo-sub-panel__slider-val {
  width: 36px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px;
  text-align: center; font-size: 13px;
}
.catcombo-sub-panel__slider-unit { font-size: 13px; color: #999; }
.catcombo-sub-panel__delete {
  display: flex; align-items: center; gap: 6px; color: var(--primary, #4a7ff7);
  font-size: 13px; cursor: pointer; padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 8px;
}
.catcombo-sub-panel__delete:hover { opacity: 0.8; }

/* ── Product Combo Props ── */
.combo-props { display: flex; flex-direction: column; height: 100%; }
.combo-props__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
}
.combo-props__header-title { font-size: 14px; font-weight: 600; color: #333; }
.combo-props__header-menu { background: none; border: none; cursor: pointer; padding: 4px; }
.combo-props__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.combo-props__field { margin-bottom: 18px; }
.combo-props__label { font-size: 13px; color: #333; margin-bottom: 6px; display: block; font-weight: 500; }
.combo-props__select {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; outline: none; background: #fff; cursor: pointer;
  appearance: auto;
}
.combo-props__select:focus { border-color: var(--primary, #4a7ff7); }
.combo-props__content-list { margin-bottom: 8px; }
.combo-props__content-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 14px; cursor: pointer;
}
.combo-props__content-item:hover { background: #f9fbff; }
.combo-props__content-drag { cursor: grab; color: #ccc; display: flex; align-items: center; }
.combo-props__content-icon { flex-shrink: 0; display: flex; }
.combo-props__content-name { flex: 1; color: #333; }
.combo-props__add-content {
  display: flex; align-items: center; gap: 6px; padding: 10px 0;
  font-size: 13px; cursor: pointer; user-select: none;
}
.combo-props__add-content:hover { opacity: 0.8; }
.combo-props__add-dropdown {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 4px 0; margin-top: 4px;
}
.combo-props__add-option {
  padding: 10px 16px; font-size: 13px; cursor: pointer; color: #333;
}
.combo-props__add-option:hover { background: #f5f7ff; color: var(--primary, #4a7ff7); }
.combo-props__color-row {
  display: flex; align-items: center; justify-content: space-between;
}
.combo-props__color-swatch {
  width: 40px; height: 26px; border-radius: 4px; border: 1px solid #ddd;
  cursor: pointer; position: relative;
}
.combo-props__checks { margin-top: 8px; }
.combo-props__check {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  cursor: pointer; font-size: 13px; color: #333;
}
.combo-props__check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary, #4a7ff7); margin: 0; flex-shrink: 0;
}

/* ── Combo Sub-Panel (Image / Product detail) ── */
.combo-sub-panel { display: flex; flex-direction: column; height: 100%; }
.combo-sub-panel__header {
  display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; gap: 10px;
}
.combo-sub-panel__back { cursor: pointer; display: flex; align-items: center; }
.combo-sub-panel__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.combo-sub-panel__field { margin-bottom: 18px; }
.combo-sub-panel__label { font-size: 13px; color: #333; margin-bottom: 6px; display: block; font-weight: 500; }
.combo-sub-panel__select {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; outline: none; background: #fff; cursor: pointer;
}
.combo-sub-panel__select:focus { border-color: var(--primary, #4a7ff7); }
.combo-sub-panel__input {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 13px; outline: none; box-sizing: border-box;
}
.combo-sub-panel__input:focus { border-color: var(--primary, #4a7ff7); }
.combo-sub-panel__toolbar {
  display: flex; gap: 4px; padding: 6px 8px; border: 1px solid #ddd;
  border-bottom: none; border-radius: 6px 6px 0 0; background: #fafafa;
}
.combo-sub-panel__tb-btn {
  background: none; border: none; padding: 4px 8px; cursor: pointer;
  font-size: 13px; color: #333; border-radius: 3px;
}
.combo-sub-panel__tb-btn:hover { background: #eee; }
.combo-sub-panel__textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 0 0 6px 6px;
  font-size: 13px; outline: none; box-sizing: border-box; resize: vertical; font-family: inherit;
  min-height: 60px;
}
.combo-sub-panel__textarea:focus { border-color: var(--primary, #4a7ff7); }
.combo-sub-panel__slider-row {
  display: flex; align-items: center; gap: 8px;
}
.combo-sub-panel__slider { flex: 1; accent-color: var(--primary, #4a7ff7); }
.combo-sub-panel__slider-val {
  width: 36px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px;
  text-align: center; font-size: 13px;
}
.combo-sub-panel__slider-unit { font-size: 13px; color: #999; }
.combo-sub-panel__color-row {
  display: flex; align-items: center; justify-content: space-between;
}
.combo-sub-panel__color-swatch {
  width: 40px; height: 26px; border-radius: 4px; border: 1px solid #ddd;
  cursor: pointer; position: relative;
}
.combo-sub-panel__hint-text { font-size: 12px; color: #999; margin-top: 4px; }
.combo-sub-panel__product-box {
  width: 100%; aspect-ratio: 4/3; background: #f5f5f5; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  margin-bottom: 16px;
}
.combo-sub-panel__product-selected { width: 100%; height: 100%; }
.combo-sub-panel__product-btn {
  padding: 10px 24px; background: var(--primary, #4a7ff7); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 500;
}
.combo-sub-panel__product-btn:hover { opacity: 0.9; }
.combo-sub-panel__delete {
  display: flex; align-items: center; gap: 6px; color: var(--primary, #4a7ff7);
  font-size: 13px; cursor: pointer; padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 8px;
}
.combo-sub-panel__delete:hover { opacity: 0.8; }

/* Color picker popup */
.color-picker-popup {
  position: fixed; z-index: 10000; background: #fff; border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18); padding: 16px; width: 260px;
}
.color-picker-popup__gradient {
  width: 100%; height: 150px; border-radius: 6px; position: relative; cursor: crosshair; margin-bottom: 10px;
}
.color-picker-popup__gradient-cursor {
  width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%;
  position: absolute; transform: translate(-50%,-50%); box-shadow: 0 0 2px rgba(0,0,0,.4);
  pointer-events: none;
}
.color-picker-popup__hue {
  width: 100%; height: 12px; border-radius: 6px; cursor: pointer; margin-bottom: 6px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.color-picker-popup__alpha {
  width: 100%; height: 12px; border-radius: 6px; cursor: pointer; margin-bottom: 10px;
  background: linear-gradient(to right, transparent, var(--cp-color, #000)),
    repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 0 0 / 8px 8px;
}
.color-picker-popup__values {
  display: flex; gap: 4px; margin-bottom: 10px;
}
.color-picker-popup__val-input {
  width: 1px; flex: 1; padding: 4px; border: 1px solid #ddd; border-radius: 4px;
  text-align: center; font-size: 11px;
}
.color-picker-popup__val-label {
  text-align: center; font-size: 10px; color: #999; margin-top: 2px;
}
.color-picker-popup__presets {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.color-picker-popup__preset {
  width: 22px; height: 22px; border-radius: 4px; cursor: pointer; border: 1px solid #e0e0e0;
}
.color-picker-popup__saved {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #999; padding-top: 8px; border-top: 1px solid #f0f0f0;
}
.color-picker-popup__save-btn {
  width: 22px; height: 22px; border-radius: 4px; border: 1px dashed #ccc;
  display: flex; align-items: center; justify-content: center; cursor: pointer; background: none;
}

/* ============================================
   Onboarding Wizard
   ============================================ */
.onboarding {
  position: fixed; inset: 0; z-index: 9999;
  background: #f7f8fa;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.onboarding--hidden {
  opacity: 0; pointer-events: none; transform: scale(1.02);
}

/* -- Top Header with Logo -- */
.ob-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px 0 48px;
  flex-shrink: 0;
}
.ob-logo {
  display: flex; align-items: center; gap: 10px;
}
.ob-logo__icon {
  width: auto; height: 34px;
}
.ob-logo__text {
  font-family: 'Audiowide', sans-serif;
  font-size: 22px; font-weight: 400;
  color: #0B1D3A;
  letter-spacing: 2px;
}

/* -- Center Wrapper -- */
.ob-center {
  flex: 1; display: flex; flex-direction: column;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  min-height: 0; /* allow flex shrink */
}

/* -- Progress Bar -- */
.ob-progress-wrapper {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 24px; flex-shrink: 0;
}
.ob-progress__step-info {
  font-size: 13px; color: var(--text-hint);
  margin-bottom: 8px;
}
.ob-progress {
  display: flex; gap: 8px;
  width: 100%;
  flex-shrink: 0;
}
.ob-progress__segment {
  flex: 1; height: 4px; border-radius: 2px;
  background: #e8ecf0;
  transition: background 0.4s ease;
  cursor: pointer;
}
.ob-progress__segment--active {
  background: var(--primary);
}
.ob-progress__segment--done {
  background: var(--primary);
}

/* -- Slide Container -- */
.ob-slides {
  flex: 1; position: relative; overflow: hidden;
}
.ob-slide {
  position: absolute; inset: 0;
  padding: 40px 60px 32px 60px;
  overflow-y: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  will-change: transform, opacity;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ob-slide::-webkit-scrollbar { display: none; }
.ob-slide--active {
  transform: translateX(0); opacity: 1;
}
.ob-slide--left {
  transform: translateX(-100%); opacity: 0; pointer-events: none;
}
.ob-slide--right {
  transform: translateX(100%); opacity: 0; pointer-events: none;
}

/* -- Step Header -- */
.ob-step__header {
  margin-bottom: 40px;
}
.ob-step__title {
  font-size: 28px; font-weight: 700; color: var(--text-main);
  margin-bottom: 8px; line-height: 1.3;
}
.ob-step__title span {
  color: var(--primary);
}
.ob-step__subtitle {
  font-size: 14px; color: var(--text-hint); line-height: 1.5;
}

/* -- Form Elements -- */
.ob-form {
  max-width: 100%;
}
.ob-form__row {
  display: flex; gap: 24px; margin-bottom: 28px;
}
.ob-form__field {
  flex: 1; min-width: 0;
}
.ob-form__label {
  display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--text-main);
  margin-bottom: 8px;
}
.ob-form__label .ob-required {
  color: var(--danger); margin-right: 4px;
}
.ob-form__counter {
  margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-hint);
  background: #f0f2f5; border-radius: 8px; padding: 1px 8px;
}
.ob-form__hint {
  font-size: 12px; color: var(--text-hint); margin-top: 6px;
}
.ob-form__input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #dcdfe6; border-radius: 8px;
  font-size: 14px; color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ob-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,127,247,0.1);
}
.ob-form__input::placeholder {
  color: var(--text-light);
}
.ob-form__input--error {
  border-color: var(--danger);
}
.ob-form__error {
  font-size: 12px; color: var(--danger); margin-top: 4px;
}
.ob-form__select {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #dcdfe6; border-radius: 8px;
  font-size: 14px; color: var(--text-main);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ob-form__select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,127,247,0.1);
}
.ob-form__select:invalid,
.ob-form__select.ob-placeholder {
  color: #bbb;
}
.ob-form__select option {
  color: var(--text-main);
}
.ob-form__select option[disabled] {
  color: #bbb;
}

/* -- Upload Area -- */
.ob-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed #dcdfe6; border-radius: 12px;
  padding: 16px 24px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 100px; gap: 4px;
}
.ob-upload:hover {
  border-color: var(--primary); background: rgba(74,127,247,0.03);
}
.ob-upload__icon {
  width: 28px; height: 28px;
  color: var(--text-light);
}
.ob-upload__icon svg { width: 100%; height: 100%; }
.ob-upload__text {
  font-size: 13px; color: var(--text-hint); text-align: center;
}
.ob-upload__text strong {
  color: var(--primary);
}
.ob-upload--small {
  height: 120px; min-height: 120px; max-height: 120px; padding: 16px;
  box-sizing: border-box; overflow: hidden;
}
.ob-upload--inline {
  flex-direction: row; gap: 12px;
  min-height: 60px; padding: 12px 16px;
}
.ob-upload__preview {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.ob-upload__thumb {
  width: 80px; height: 80px; border-radius: 8px;
  object-fit: cover; border: 1px solid #e7e7e7;
}
/* Upload preview states */
.ob-upload__preview-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.ob-upload__thumb-lg {
  max-width: 100%; max-height: 100px; border-radius: 8px; object-fit: contain;
}
.ob-upload__thumb-wrap {
  position: relative; display: inline-block;
}
.ob-upload__remove {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: none; color: #fff; border: none;
  font-size: 0; line-height: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: transform 0.15s;
}
.ob-upload__remove svg { width: 22px; height: 22px; }
.ob-upload__remove:hover { transform: scale(1.15); }
.ob-upload__remove--sm {
  width: 18px; height: 18px; top: -4px; right: -4px;
}
.ob-upload__remove--sm svg { width: 18px; height: 18px; }
.ob-upload__add-more {
  width: 80px; height: 80px; border-radius: 8px;
  border: 2px dashed #dcdfe6; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #999; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ob-upload__add-more:hover {
  border-color: var(--primary); color: var(--primary);
}
.ob-upload__file-info {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.ob-upload__file-name {
  font-size: 13px; color: var(--text-main); flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ob-upload__preview {
  display: flex; gap: 8px; flex-wrap: wrap; width: 100%;
  align-items: flex-start;
}
/* AI Upload Hint below each upload area */
.ob-upload__hint {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 12px; color: var(--primary); line-height: 1.4;
  opacity: 0.85;
}
.ob-upload__hint svg { flex-shrink: 0; stroke: var(--primary); }
/* Inline AI hint inside upload box */
.ob-upload__inline-hint {
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px; font-size: 11px; color: #7F8693; line-height: 1.4;
}
.ob-upload__inline-hint svg { flex-shrink: 0; width: 12px; height: 12px; }
/* AI Upload Banner (top-level callout) */
.ob-upload-ai-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #eef3ff 0%, #f0eaff 100%);
  border: 1px solid rgba(74,127,247,0.18);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.ob-upload-ai-banner__icon {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #7c5cfc 100%);
  border-radius: 8px; color: #fff;
}
.ob-upload-ai-banner__icon svg { stroke: #fff; }
.ob-upload-ai-banner__text {
  font-size: 13px; color: #333; line-height: 1.5;
}
.ob-upload-ai-banner__text strong {
  color: var(--primary); font-weight: 600;
}

/* -- Card Select (for industry, style, etc.) -- */
.ob-cards {
  display: grid; gap: 20px;
}
.ob-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ob-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ob-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
.ob-cards--cols-5 { grid-template-columns: repeat(5, 1fr); }
.ob-cards--cols-6 { grid-template-columns: repeat(6, 1fr); }
.ob-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px; border-radius: 12px;
  border: 2px solid #e8ecf0; cursor: pointer;
  transition: all 0.2s; text-align: center;
  background: #fff;
}
.ob-card:hover {
  border-color: #c4d0ff; background: #fafbff;
}
.ob-card--selected {
  border-color: var(--primary); background: #f0f4ff;
  box-shadow: 0 0 0 3px rgba(74,127,247,0.12);
}
.ob-card__icon {
  font-size: 32px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
}
.ob-card__icon svg {
  width: 40px; height: 40px;
}
.ob-card__label {
  font-size: 14px; font-weight: 500; color: var(--text-main);
}
.ob-card__desc {
  font-size: 12px; color: var(--text-hint); margin-top: 4px;
}

/* -- Industry Cards (new style with image + title + desc) -- */
.ob-industry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ob-industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  background: #fff;
  overflow: hidden;
}
.ob-industry-card:hover {
  border-color: #c4d0ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.ob-industry-card--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,127,247,0.15), 0 8px 24px rgba(74,127,247,0.08);
}
.ob-industry-card__img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  padding: 0 24px;
  box-sizing: border-box;
}
.ob-industry-card__img img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.ob-industry-card:hover .ob-industry-card__img img {
  transform: scale(1.03);
}
.ob-industry-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 16px;
  padding: 0 16px;
}
.ob-industry-card__desc {
  font-size: 13px;
  color: var(--text-hint);
  margin-top: 6px;
  padding: 0 16px 18px;
  line-height: 1.5;
}

/* -- Color Scheme Capsules (multi-color pills) -- */
.ob-capsules {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.ob-capsule {
  display: flex; width: 80px; height: 36px; border-radius: 18px;
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ob-capsule:hover {
  transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.ob-capsule--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,127,247,0.2);
}
.ob-capsule__seg {
  flex: 1; min-width: 0;
}

/* -- Toggle Switches -- */
.ob-toggle-group {
  display: flex; flex-direction: column; gap: 12px;
}
.ob-toggle-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid #e8ecf0; background: #fff;
  transition: all 0.2s;
}
.ob-toggle-item:hover {
  border-color: #d0d6e0;
}
.ob-toggle-item--on {
  border-color: var(--primary); background: #f8faff;
}
.ob-toggle-item__left {
  display: flex; align-items: center; gap: 12px;
}
.ob-toggle-item__emoji {
  font-size: 22px;
}
.ob-toggle-item__info {
  display: flex; flex-direction: column;
}
.ob-toggle-item__name {
  font-size: 14px; font-weight: 500; color: var(--text-main);
}
.ob-toggle-item__desc {
  font-size: 12px; color: var(--text-hint); margin-top: 2px;
}
.ob-switch {
  position: relative; width: 44px; height: 24px;
  background: #dcdfe6; border-radius: 12px;
  cursor: pointer; transition: background 0.3s;
  flex-shrink: 0;
}
.ob-switch--on {
  background: var(--primary);
}
.ob-switch__knob {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.ob-switch--on .ob-switch__knob {
  transform: translateX(20px);
}

/* Locked toggle (e.g. Home — always on, non-clickable) */
.ob-toggle-item--locked {
  opacity: 0.6; cursor: not-allowed; pointer-events: none;
}
.ob-switch--locked {
  background: var(--primary); opacity: 0.5;
}

/* SVG icon in toggle items */
.ob-toggle-item__icon {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: #666; flex-shrink: 0;
}
.ob-toggle-item__icon svg { width: 24px; height: 24px; }
.ob-toggle-item--on .ob-toggle-item__icon { color: var(--primary); }

/* -- Step 3 Layout (left toggles + right phone preview) -- */
.ob-step3-layout {
  display: flex; gap: 40px; align-items: flex-start;
}
.ob-step3-layout__left {
  flex: 1; min-width: 0;
}
.ob-step3-layout__right {
  flex-shrink: 0; position: sticky; top: 0;
}

/* Onboarding Phone Preview */
.ob-phone-preview { width: 240px; }
.ob-phone-preview__frame {
  width: 240px; height: 520px; background: #fff; border-radius: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; overflow: hidden;
  position: relative;
}
.ob-phone-preview__notch {
  display: none;
}
.ob-phone-preview__content {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px;
  -webkit-overflow-scrolling: touch;
}
.ob-phone-preview__content::-webkit-scrollbar { width: 0; display: none; }
/* Full-bleed pages — remove content padding */
.ob-phone-preview__content:has(.beauty-cat-page),
.ob-phone-preview__content:has(.food-cat-page),
.ob-phone-preview__content:has(.bcat-vertical),
.ob-phone-preview__content:has(.bcat-horizontal),
.ob-phone-preview__content:has(.beauty-profile-page),
.ob-phone-preview__content:has(.food-profile-page),
.ob-phone-preview__content:has(.pgpv-detail-page),
.ob-phone-preview__content:has(.food-cart-page) {
  padding: 0;
}
.ob-phone-preview__tabbar {
  display: flex; align-items: center; flex-shrink: 0;
  padding: 4px 0 6px; border-top: 1px solid #f0f0f0; background: #fff;
}
.ob-phone-preview__tabbar .phone-tabbar__item {
  font-size: 8px; gap: 1px;
}
.ob-phone-preview__tabbar .phone-tabbar__icon {
  width: 17px; height: 17px;
}
.ob-phone-preview__tabbar .phone-tabbar__icon svg {
  width: 15px; height: 15px;
}

/* Phone nav grid */
.phone-nav-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 10px; padding: 8px 0;
}
.phone-nav-grid__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.phone-nav-grid__icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f0ff, #d0e0ff);
}
.phone-nav-grid__icon svg { flex-shrink: 0; }
.phone-nav-grid__label {
  font-size: 9px; color: #666; white-space: nowrap;
}

/* Phone biz card */
.phone-biz-card {
  background: #fff; border-radius: 8px; padding: 8px;
  border: 1px solid #f0f0f0; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.phone-biz-card__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.phone-biz-card__title {
  font-size: 11px; font-weight: 600; color: var(--text-main);
}
.phone-biz-card__more {
  font-size: 9px; color: var(--primary); cursor: pointer;
}
.phone-biz-card__content {
  display: flex; gap: 6px;
}
.phone-biz-card__item {
  flex: 1; height: 50px; background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border-radius: 6px; overflow: hidden;
}
.phone-biz-card__item--img {
  background: none;
}
.phone-biz-card__item--img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
}

/* -- Image Ratio / Layout Toggle -- */
.ob-pill-group {
  display: flex; gap: 0; border: 1px solid #dcdfe6; border-radius: 8px; overflow: hidden;
}
.ob-pill {
  flex: 1; padding: 8px 16px; text-align: center;
  font-size: 13px; color: var(--text-body); cursor: pointer;
  border-right: 1px solid #dcdfe6; background: #fff;
  transition: all 0.2s;
}
.ob-pill:last-child { border-right: none; }
.ob-pill:hover { background: #edf1f7; }
.ob-pill--active {
  background: var(--primary); color: #fff;
}
.ob-pill--active:hover {
  background: #5a8cf8;
}

/* -- Component Cards (Step 4) -- */
.ob-comp-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ob-comp-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 10px;
  border: 2px solid #e8ecf0; cursor: pointer;
  background: #fff; transition: all 0.2s;
}
.ob-comp-card:hover {
  border-color: #c4d0ff;
}
.ob-comp-card--selected {
  border-color: var(--primary); background: #f0f4ff;
}
.ob-comp-card__check {
  width: 20px; height: 20px; border-radius: 4px;
  border: 2px solid #dcdfe6; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.ob-comp-card--selected .ob-comp-card__check {
  background: var(--primary); border-color: var(--primary);
  color: #fff;
}
.ob-comp-card__info {
  flex: 1; min-width: 0;
}
.ob-comp-card__name {
  font-size: 14px; font-weight: 500; color: var(--text-main);
}
.ob-comp-card__type {
  font-size: 12px; color: var(--text-hint); margin-top: 2px;
}

/* -- Nav Buttons -- */
.ob-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 32px 0;
  flex-shrink: 0;
  border-top: 1px solid #e8ecf0;
}
.ob-nav__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  transition: all 0.2s; cursor: pointer; border: none;
}
.ob-nav__btn--prev {
  background: #f5f7fa; color: var(--text-body);
}
.ob-nav__btn--prev:hover {
  background: #eef0f5;
}
.ob-nav__btn--next {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(74,127,247,0.3);
}
.ob-nav__btn--next:hover {
  background: #3a6fe6;
  box-shadow: 0 4px 12px rgba(74,127,247,0.4);
}
.ob-nav__btn--next:disabled {
  background: #c4d0ff; cursor: not-allowed;
  box-shadow: none;
}
.ob-arrow-animate {
  display: inline-block;
  animation: arrowSlideRight 1.2s ease-in-out infinite;
}
@keyframes arrowSlideRight {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.6; }
}
.ob-nav__btn--skip {
  background: transparent; color: var(--text-hint);
  padding: 10px 16px;
}
.ob-nav__btn--skip:hover {
  color: var(--text-body);
}
.ob-nav__step-info {
  font-size: 13px; color: var(--text-hint);
}

/* -- Import Method Cards (Step 5) -- */
.ob-import-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ob-import-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px; border-radius: 12px;
  border: 2px solid #e8ecf0; cursor: pointer;
  transition: all 0.2s; text-align: center;
}
.ob-import-card:hover {
  border-color: #c4d0ff; background: #fafbff;
}
.ob-import-card--selected {
  border-color: var(--primary); background: #f0f4ff;
}
.ob-import-card__icon {
  font-size: 36px; margin-bottom: 10px;
}
.ob-import-card__name {
  font-size: 14px; font-weight: 500; color: var(--text-main);
}

/* -- Preview (Step 7) -- */
.ob-preview {
  display: flex; gap: 40px; align-items: flex-start;
}
.ob-preview__phone {
  display: none; /* deprecated — use ob-phone-preview--lg instead */
}
/* Phone preview for step 7 — same size as step 2/3/3.5 (240×520) */
.ob-phone-preview--lg { width: 240px; }
.ob-phone-preview--lg .ob-phone-preview__frame {
  width: 240px; height: 520px;
}
.ob-phone-preview--lg .ob-phone-preview__content {
  padding: 0; position: relative; overflow: hidden;
}
.ob-phone-preview--lg .ob-phone-preview__tabbar .phone-tabbar__item {
  cursor: pointer;
}
.ob-preview__phone-header {
  display: none; /* deprecated */
}
.ob-preview__phone-notch {
  display: none; /* deprecated */
}
.ob-preview__phone-body {
  display: none; /* deprecated */
}
/* Tab pages container — inside ob-phone-preview__content */
.ob-preview-tab-pages {
  width: 100%; height: 100%;
  position: relative;
}
.ob-preview-tab-page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  background: #f5f6f7;
  padding: 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ob-preview-tab-page::-webkit-scrollbar { width: 0; display: none; }
/* Industry-specific tab page backgrounds */
.ob-phone-preview__frame--beauty .ob-preview-tab-page { background: #f5ede3; }
.ob-phone-preview__frame--food .ob-preview-tab-page { background: #fdf5f0; }
.ob-preview-tab-page--active {
  opacity: 1; pointer-events: auto;
}
/* Home tab keeps padding for its generic content */
.ob-preview-tab-page[data-preview-tab="home"] { padding: 8px; }
/* Food home has its own layout — no extra padding */
.ob-phone-preview__frame--food .ob-preview-tab-page[data-preview-tab="home"] { padding: 0; }
/* Booking tab content inside step 7 preview */
.ob-preview-tab-page:has(.beauty-booking-tab),
.ob-preview-tab-page:has(.food-booking-tab) {
  padding: 0; overflow: hidden;
}
.beauty-booking-tab, .food-booking-tab {
  width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
}
.beauty-booking-tab::-webkit-scrollbar,
.food-booking-tab::-webkit-scrollbar { width: 0; display: none; }
/* Placeholder for unimplemented tab pages */
.ob-preview-tab-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; min-height: 200px; color: #ccc; gap: 12px;
}
.ob-preview-tab-placeholder__icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  opacity: 0.3;
}
.ob-preview-tab-placeholder__icon svg { width: 40px; height: 40px; }
.ob-preview-tab-placeholder__text {
  font-size: 15px; font-weight: 500; color: #bbb;
}
.ob-preview-tab-placeholder__hint {
  font-size: 12px; color: #ddd;
}

/* ═══════ Category Preview — Horizontal & Vertical layouts ═══════ */
.bcat-horizontal, .bcat-vertical {
  display: flex; flex-direction: column; min-height: 100%; background: #fff;
}
.bcat-horizontal--beauty, .bcat-vertical--beauty { background: #f9f4ee; }
.bcat-title {
  padding: 10px 8px 4px; font-size: 12px; font-weight: 700; color: #5a3e1b;
  flex-shrink: 0;
}
.bcat-vertical__body { display: flex; flex: 1; min-height: 0; }
.bcat-horizontal__header {
  display: flex; flex-direction: column; border-bottom: 1px solid #e8ddd0;
  flex-shrink: 0;
}
.bcat-horizontal__header .bcat-horizontal__tabs {
  border-bottom: none; padding: 0 6px;
}
.bcat-horizontal__header .bcat-sort-bar {
  border-bottom: none; padding: 2px 6px 4px;
}
.bcat-horizontal__tabs {
  display: flex; align-items: center; gap: 0; padding: 0 6px;
  border-bottom: 1px solid #eee; overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.bcat-horizontal--beauty .bcat-horizontal__tabs { border-bottom-color: #e8ddd0; }
.bcat-horizontal__tabs::-webkit-scrollbar { display: none; }
.bcat-horizontal__tab {
  padding: 8px 8px 6px; font-size: 9px; white-space: nowrap; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.bcat-horizontal__tab--active { border-bottom-color: currentColor; }

.bcat-vertical__sidebar {
  width: 44px; flex-shrink: 0; display: flex; flex-direction: column;
  padding: 0; overflow-y: auto; scrollbar-width: none;
}
.bcat-vertical__sidebar::-webkit-scrollbar { display: none; }
.bcat-vertical__item {
  padding: 10px 4px; font-size: 7px; cursor: pointer;
  border-left: 3px solid transparent; text-align: center; word-break: break-all;
}
.bcat-vertical__item--active { border-left-width: 3px; }
.bcat-vertical__main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; }
.bcat-vertical__main::-webkit-scrollbar { display: none; }
.bcat-vertical__topbar {
  display: flex; align-items: center; padding: 0 4px;
  border-bottom: 1px solid #e8ddd0; flex-shrink: 0;
}
.bcat-vertical__topbar .bcat-horizontal__tabs--inline {
  flex: 1; border-bottom: none; padding: 0; gap: 0;
}
.bcat-vertical__topbar .bcat-sort-bar {
  border-bottom: none; padding: 4px 0; flex-shrink: 0;
}

.bcat-sort-bar {
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 4px;
  border-bottom: 1px solid #f0f0f0; justify-content: flex-end; flex-shrink: 0;
}
.bcat-sort-bar--beauty { border-bottom-color: #e8ddd0; }
.bcat-sort-bar__item { font-size: 8px; color: #8b7355; cursor: pointer; }
.bcat-sort-bar__item--active { color: #5a3e1b; font-weight: 600; }

.bcat-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px; gap: 8px;
}
.bcat-empty__text { font-size: 11px; color: #aaa; }

/* Product grid for category */
.bcat-product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px;
}
.bcat-product-card { background: #fff; border-radius: 6px; overflow: hidden; }
.bcat-vertical--beauty .bcat-product-card,
.bcat-horizontal--beauty .bcat-product-card { background: #fdf8f2; }
.bcat-product-card__img { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.bcat-product-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcat-product-card__name {
  font-size: 7px; font-weight: 500; padding: 3px 4px 1px; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bcat-product-card__prices {
  display: flex; align-items: baseline; gap: 3px; padding: 0 4px;
}
.bcat-product-card__price { font-size: 9px; font-weight: 700; color: #c4893b; }
.bcat-product-card__orig { font-size: 6px; color: #999; text-decoration: line-through; }
.bcat-product-card__member { font-size: 6px; color: #8b7355; padding: 1px 4px 4px; }

/* ═══════ Beauty Category Tab ═══════ */
.beauty-cat-page {
  display: flex; min-height: 100%; background: #f9f4ee;
}
.beauty-cat-page__sidebar {
  width: 44px; flex-shrink: 0; background: #f0e8dc;
  padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.beauty-cat-page__sidebar-item {
  writing-mode: horizontal-tb;
  font-size: 7px; color: #8b7355; padding: 6px 4px;
  border-radius: 4px; cursor: pointer; text-align: center;
}
.beauty-cat-page__sidebar-item--active {
  background: #f9f4ee; color: #5a3e1b; font-weight: 700;
}
.beauty-cat-page__main {
  flex: 1; min-width: 0; padding: 0; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.beauty-cat-page__main::-webkit-scrollbar { display: none; }
.beauty-cat-page__filters {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 6px; position: sticky; top: 0; background: #f9f4ee; z-index: 1;
}
.beauty-cat-page__filter {
  font-size: 7px; color: #5a3e1b; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.beauty-cat-page__filter--active {
  font-weight: 700; color: #3a2a1a;
}
.beauty-cat-page__filter--muted {
  color: #bba88a;
}
.beauty-cat-page__filter-grid {
  margin-left: auto; color: #8b7355; display: flex; align-items: center;
}
.beauty-cat-page__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 0 6px 12px;
}
.beauty-cat-card {
  background: #fff; border-radius: 8px; overflow: hidden;
}
.beauty-cat-card__img {
  width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  background: #e8ddd0;
}
.beauty-cat-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.beauty-cat-card__fav {
  position: absolute; top: 6px; right: 6px;
  background: rgba(255,255,255,0.85); border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #999; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.beauty-cat-card__name {
  font-size: 7px; font-weight: 500; color: #3a2a1a;
  padding: 5px 6px 0; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.beauty-cat-card__prices {
  padding: 2px 6px 0; display: flex; align-items: baseline; gap: 4px;
}
.beauty-cat-card__price {
  font-size: 10px; font-weight: 700; color: #8b6914;
}
.beauty-cat-card__orig {
  font-size: 7px; color: #bbb; text-decoration: line-through;
}
.beauty-cat-card__member {
  font-size: 7px; color: #bba88a; padding: 1px 6px 6px;
}
.beauty-cat-page__nomore {
  grid-column: 1 / -1; text-align: center;
  font-size: 7px; color: #ccc; padding: 8px 0;
}

/* ═══════ Beauty Profile Tab ═══════ */
.beauty-profile-page {
  background: #f9f4ee; min-height: 100%;
}
.beauty-profile-page__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 14px 16px; background: #f9f4ee;
}
.beauty-profile-page__welcome { flex: 1; }
.beauty-profile-page__hi {
  font-size: 8px; color: #8b7355; margin-bottom: 2px;
}
.beauty-profile-page__login {
  font-size: 14px; font-weight: 800; color: #2a1a0a;
  letter-spacing: -0.3px;
}
.beauty-profile-page__arrow {
  font-size: 16px; color: #bba88a;
}
.beauty-profile-page__member-bar {
  display: flex; align-items: center; gap: 6px;
  margin: 0 10px 10px; padding: 10px 12px;
  background: #f0e8dc; border-radius: 10px;
}
.beauty-profile-page__member-icon {
  font-size: 12px;
}
.beauty-profile-page__member-text {
  flex: 1; font-size: 7px; color: #5a3e1b; font-weight: 500;
}
.beauty-profile-page__member-arrow {
  font-size: 12px; color: #bba88a;
}
.beauty-profile-page__menu {
  background: #f9f4ee; margin: 0 10px; border-radius: 10px;
  overflow: hidden;
}
.beauty-profile-page__menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-bottom: 1px solid #f0e8dc;
}
.beauty-profile-page__menu-item:last-child {
  border-bottom: none;
}
.beauty-profile-page__menu-icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: #5a3e1b; flex-shrink: 0;
}
.beauty-profile-page__menu-icon svg {
  width: 16px; height: 16px;
}
.beauty-profile-page__menu-label {
  flex: 1; font-size: 8px; font-weight: 500; color: #3a2a1a;
}
.beauty-profile-page__menu-arrow {
  font-size: 12px; color: #ccc;
}

/* ═══════ Food/Retail Category Tab ═══════ */
.food-cat-page {
  display: flex; flex-direction: column; min-height: 100%; background: #fdf5f0;
}
.food-cat-page__title {
  font-size: 14px; font-weight: 800; color: #1a1a1a;
  padding: 16px 12px 8px; letter-spacing: -0.3px;
}
.food-cat-page__body {
  display: flex; flex: 1; min-height: 0;
}
.food-cat-page__sidebar {
  width: 56px; flex-shrink: 0; background: #f5ede3;
  padding: 8px 0; display: flex; flex-direction: column; align-items: stretch;
  gap: 2px;
}
.food-cat-page__sidebar-item {
  font-size: 6px; color: #666; padding: 8px 4px;
  text-align: center; cursor: pointer;
  font-weight: 500; line-height: 1.3;
}
.food-cat-page__sidebar-item--active {
  background: #fff; color: #c0392b; font-weight: 700;
}
.food-cat-page__main {
  flex: 1; min-width: 0; padding: 0 6px; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none; background: #fdf5f0;
}
.food-cat-page__main::-webkit-scrollbar { display: none; }
.food-cat-page__filters {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 2px 6px; position: sticky; top: 0; background: #fdf5f0; z-index: 1;
}
.food-cat-page__filter {
  font-size: 7px; color: #1a1a1a; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.food-cat-page__filter--active {
  font-weight: 700; color: #1a1a1a;
}
.food-cat-page__filter--muted {
  color: #bbb;
}
.food-cat-page__filter-grid {
  margin-left: auto; color: #666; display: flex; align-items: center;
}
.food-cat-page__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding-bottom: 12px;
}
.food-cat-card {
  background: #fff; border-radius: 6px; overflow: hidden;
}
.food-cat-card__img {
  width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  background: #fafafa;
}
.food-cat-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.food-cat-card__fav {
  position: absolute; top: 6px; right: 6px;
  color: #ccc; font-size: 12px;
}
.food-cat-card__name {
  font-size: 7px; font-weight: 700; color: #1a1a1a;
  padding: 5px 4px 0; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.food-cat-card__prices {
  padding: 3px 4px 6px; display: flex; align-items: center; gap: 4px;
}
.food-cat-card__price {
  font-size: 10px; font-weight: 800; color: #1a1a1a;
}
.food-cat-card__orig {
  font-size: 7px; color: #bbb; text-decoration: line-through;
}
.food-cat-card__cart-btn {
  margin-left: auto;
  width: 18px; height: 18px; border-radius: 4px;
  background: #c0392b; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.food-cat-card__cart-btn svg {
  width: 10px; height: 10px;
}
.food-cat-page__nomore {
  grid-column: 1 / -1; text-align: center;
  font-size: 7px; color: #ccc; padding: 8px 0;
}

/* ═══════ Virtual Product Category Tab ═══════ */
.virtual-cat-page {
  display: flex; flex-direction: column; height: 100%; background: #fff;
}
.virtual-cat-page__title {
  font-size: 14px; font-weight: 800; color: #1a1a1a;
  padding: 16px 12px 8px; letter-spacing: -0.3px;
}
.virtual-cat-page__body {
  display: flex; flex: 1; min-height: 0;
}
.virtual-cat-page__sidebar {
  width: 48px; flex-shrink: 0; background: #f5f6fa;
  padding: 8px 0; display: flex; flex-direction: column; align-items: stretch;
  border-right: 1px solid #eeeff5;
}
.virtual-cat-page__sidebar-item {
  font-size: 6px; color: #888; padding: 8px 4px;
  text-align: center; cursor: pointer;
  border-left: 2px solid transparent;
  font-weight: 500; line-height: 1.3;
}
.virtual-cat-page__sidebar-item--active {
  background: #fff; color: #4a5aef; font-weight: 700;
  border-left-color: #4a5aef;
}
.virtual-cat-page__main {
  flex: 1; min-width: 0; padding: 0 6px; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.virtual-cat-page__main::-webkit-scrollbar { display: none; }
.virtual-cat-page__filters {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0 6px; position: sticky; top: 0; background: #fff; z-index: 1;
}
.virtual-cat-page__filter {
  font-size: 7px; color: #1a1a1a; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.virtual-cat-page__filter--active {
  font-weight: 700; color: #1a1a1a;
}
.virtual-cat-page__filter--muted {
  color: #bbb;
}
.virtual-cat-page__filter-grid {
  margin-left: auto; color: #666; display: flex; align-items: center;
}
.virtual-cat-page__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding-bottom: 12px;
}
.virtual-cat-card {
  background: #fff; border-radius: 6px; overflow: hidden;
}
.virtual-cat-card__img {
  width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  background: #f5f6fa;
}
.virtual-cat-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.virtual-cat-card__fav {
  position: absolute; top: 6px; right: 6px;
  color: #ccc; font-size: 12px;
}
.virtual-cat-card__name {
  font-size: 7px; font-weight: 700; color: #1a1a1a;
  padding: 5px 4px 0; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.virtual-cat-card__prices {
  padding: 3px 4px 6px; display: flex; align-items: center; gap: 4px;
}
.virtual-cat-card__price {
  font-size: 10px; font-weight: 800; color: #1a1a1a;
}
.virtual-cat-card__orig {
  font-size: 7px; color: #bbb; text-decoration: line-through;
}
.virtual-cat-card__cart-btn {
  margin-left: auto;
  width: 18px; height: 18px; border-radius: 4px;
  background: #4a5aef; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.virtual-cat-card__cart-btn svg {
  width: 10px; height: 10px;
}
.virtual-cat-page__nomore {
  grid-column: 1 / -1; text-align: center;
  font-size: 7px; color: #ccc; padding: 8px 0;
}

/* ═══════ Food/Retail Cart Tab ═══════ */
.food-cart-page {
  display: flex; flex-direction: column; height: 100%; background: #fff;
  overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.food-cart-page::-webkit-scrollbar { display: none; }
.food-cart-page__title {
  font-size: 13px; font-weight: 700; color: #1a1a1a;
  padding: 14px 14px 0; text-align: center; letter-spacing: -0.3px;
}
.food-cart-page__empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 14px 20px; background: #fdf5f0; margin: 10px 0 0;
}
.food-cart-page__empty-illust { margin-bottom: 8px; }
.food-cart-page__empty-text { font-size: 9px; color: #999; margin-bottom: 10px; }
.food-cart-page__empty-btn {
  background: #e8531e; color: #fff; font-size: 8px; font-weight: 600;
  padding: 6px 20px; border-radius: 16px; cursor: pointer; letter-spacing: 0.3px;
}
.food-cart-page__recommend { padding: 16px 10px 12px; }
.food-cart-page__recommend-title {
  font-size: 11px; font-weight: 700; color: #1a1a1a;
  margin-bottom: 10px; letter-spacing: -0.2px;
}
.food-cart-page__recommend-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 12px;
}
.food-cart-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.food-cart-card__img {
  width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: #fdf5f0;
}
.food-cart-card__img img { width: 100%; height: 100%; object-fit: cover; }
.food-cart-card__fav { position: absolute; top: 6px; right: 6px; color: #c0c4d0; font-size: 11px; }
.food-cart-card__name {
  font-size: 7px; font-weight: 500; color: #1a1a1a;
  padding: 6px 6px 0; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid #f0f1f5;
}
.food-cart-card__prices { padding: 4px 6px 8px; display: flex; align-items: center; gap: 4px; }
.food-cart-card__price { font-size: 10px; font-weight: 800; color: #1a1a1a; }
.food-cart-card__cart-btn {
  margin-left: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: #e8531e; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.food-cart-card__cart-btn svg { width: 10px; height: 10px; }

/* ═══════ Food/Retail Profile Tab ═══════ */
.food-profile-page {
  background: #fff; min-height: 100%;
}
.food-profile-page__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 14px 14px;
}
.food-profile-page__welcome { flex: 1; }
.food-profile-page__hi {
  font-size: 8px; color: #999; margin-bottom: 2px;
}
.food-profile-page__login {
  font-size: 14px; font-weight: 800; color: #1a1a1a;
  letter-spacing: -0.3px;
}
.food-profile-page__arrow {
  font-size: 16px; color: #ccc;
}
.food-profile-page__divider {
  height: 1px; background: #f0f0f0; margin: 0 14px;
}
.food-profile-page__menu {
  padding: 6px 0;
}
.food-profile-page__menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; border-bottom: 1px solid #f5f5f5;
}
.food-profile-page__menu-item:last-child {
  border-bottom: none;
}
.food-profile-page__menu-icon {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: #333; flex-shrink: 0;
}
.food-profile-page__menu-icon svg {
  width: 18px; height: 18px;
}
.food-profile-page__menu-label {
  flex: 1; font-size: 9px; font-weight: 500; color: #1a1a1a;
}
.food-profile-page__menu-arrow {
  font-size: 14px; color: #ccc;
}

/* ═══════ Virtual Product Cart Tab ═══════ */
.virtual-cart-page {
  display: flex; flex-direction: column; height: 100%; background: #fff;
  overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.virtual-cart-page::-webkit-scrollbar { display: none; }
.virtual-cart-page__title {
  font-size: 13px; font-weight: 700; color: #1a1a2e;
  padding: 14px 14px 0; text-align: center;
  letter-spacing: -0.3px;
}
.virtual-cart-page__empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 14px 20px; background: #f5f6fa;
  margin: 10px 0 0;
}
.virtual-cart-page__empty-illust {
  margin-bottom: 8px;
}
.virtual-cart-page__empty-text {
  font-size: 9px; color: #999; margin-bottom: 10px;
}
.virtual-cart-page__empty-btn {
  background: #4a5aef; color: #fff; font-size: 8px; font-weight: 600;
  padding: 6px 20px; border-radius: 16px; cursor: pointer;
  letter-spacing: 0.3px;
}
.virtual-cart-page__recommend {
  padding: 16px 10px 12px;
}
.virtual-cart-page__recommend-title {
  font-size: 11px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 10px; letter-spacing: -0.2px;
}
.virtual-cart-page__recommend-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding-bottom: 12px;
}
.virtual-cart-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.virtual-cart-card__img {
  width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  background: #f5f6fa;
}
.virtual-cart-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.virtual-cart-card__fav {
  position: absolute; top: 6px; right: 6px;
  color: #c0c4d0; font-size: 11px;
}
.virtual-cart-card__name {
  font-size: 7px; font-weight: 500; color: #1a1a2e;
  padding: 6px 6px 0; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid #f0f1f5;
}
.virtual-cart-card__prices {
  padding: 4px 6px 8px; display: flex; align-items: center; gap: 4px;
}
.virtual-cart-card__price {
  font-size: 10px; font-weight: 800; color: #1a1a2e;
}
.virtual-cart-card__cart-btn {
  margin-left: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: #4a5aef; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.virtual-cart-card__cart-btn svg {
  width: 10px; height: 10px;
}

/* ═══════ Virtual Product Profile Tab ═══════ */
.virtual-profile-page {
  background: #f7f8fc; min-height: 100%;
}
.virtual-profile-page__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 16px; background: #fff;
}
.virtual-profile-page__welcome { flex: 1; }
.virtual-profile-page__hi {
  font-size: 8px; color: #8b90a7; margin-bottom: 2px;
}
.virtual-profile-page__login {
  font-size: 14px; font-weight: 800; color: #1a1a2e;
  letter-spacing: -0.3px;
}
.virtual-profile-page__arrow {
  font-size: 16px; color: #c0c4d0;
}
.virtual-profile-page__menu {
  background: #fff; margin-top: 8px; padding: 4px 0;
}
.virtual-profile-page__menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid #f0f1f5;
}
.virtual-profile-page__menu-item:last-child {
  border-bottom: none;
}
.virtual-profile-page__menu-icon {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: #3b4168; flex-shrink: 0;
}
.virtual-profile-page__menu-icon svg {
  width: 20px; height: 20px;
}
.virtual-profile-page__menu-label {
  flex: 1; font-size: 9px; font-weight: 500; color: #1a1a2e;
}
.virtual-profile-page__menu-arrow {
  font-size: 14px; color: #c0c4d0;
}

.ob-preview__checklist {
  flex: 1; min-width: 0;
}
.ob-preview__checklist h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--text-main);
}
.ob-checklist-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.ob-checklist-item__icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px;
}
.ob-checklist-item__icon--done {
  background: #e8f7ef; color: #2dca73;
}
.ob-checklist-item__icon--pending {
  background: #fff3e0; color: #ff9500;
}

/* Step-by-step indicator for todo items */
.ob-checklist-item--step {
  position: relative; border-bottom: none; padding: 8px 0;
}
.ob-checklist-step-indicator {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
  position: relative;
}
.ob-checklist-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #ff9500, #ffb347);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.25);
  position: relative; z-index: 1;
}
.ob-checklist-step-line {
  width: 2px; flex: 1; min-height: 28px;
  background: linear-gradient(to bottom, #ffcb7a, #ffe4b8);
  margin-top: 4px;
}
.ob-checklist-item--step .ob-checklist-item__text {
  padding-top: 3px;
}
.ob-checklist-item__text {
  font-size: 14px; color: var(--text-main); line-height: 1.5;
}
.ob-checklist-item__text small {
  display: block; color: var(--text-hint); font-size: 12px; margin-top: 2px;
}

/* Staggered bottom-up fade-in animation for checklist items */
@keyframes obChecklistFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ob-checklist-fadein {
  opacity: 0;
  animation: obChecklistFadeIn 0.45s ease forwards;
}

/* -- Step Style Preview (Step 2) -- */
.ob-style-preview {
  display: flex; gap: 12px;
}
.ob-style-card {
  flex: 1; max-width: 200px; border-radius: 12px; overflow: hidden;
  border: 2px solid #e8ecf0; cursor: pointer;
  transition: all 0.2s;
}
.ob-style-card:hover {
  border-color: #c4d0ff;
}
.ob-style-card--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74,127,247,0.15);
}
.ob-style-card__preview {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 12px; gap: 0;
}
.ob-style-card__imgs {
  display: flex; flex-direction: column; gap: 6px; width: 100%;
}
/* Default (unselected) = gray */
.ob-style-card__img-placeholder {
  width: 100%; height: 36px; background: #e5e5e5; display: flex;
  align-items: center; justify-content: center;
}
.ob-style-card__img-placeholder svg { opacity: 0.5; }
.ob-style-card__btn {
  width: 100%; height: 10px; background: #ccc; margin-top: 8px;
}
/* Selected = blue */
.ob-style-card--selected .ob-style-card__img-placeholder {
  background: #d8e2f8;
}
.ob-style-card--selected .ob-style-card__img-placeholder svg { opacity: 0.8; }
.ob-style-card--selected .ob-style-card__btn {
  background: #4a7ff7;
}
.ob-style-card__label {
  padding: 8px; text-align: center; font-size: 13px; font-weight: 500;
  border-top: 1px solid #f0f0f0;
}

/* -- Section Divider -- */
.ob-section {
  margin-bottom: 32px;
}
.ob-section__title {
  font-size: 16px; font-weight: 600; color: var(--text-main);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.ob-section__title .ob-section__badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  background: #f0f4ff; color: var(--primary); border-radius: 4px;
  font-size: 11px; font-weight: 500;
}

/* -- Discount toggles (Step 6) -- */
.ob-discount-types {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ob-discount-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px; border-radius: 12px;
  border: 2px solid #e8ecf0; cursor: pointer;
  transition: all 0.2s; text-align: center;
}
.ob-discount-card:hover { border-color: #c4d0ff; background: #fafbff; }
.ob-discount-card--selected { border-color: var(--primary); background: #f0f4ff; }
.ob-discount-card__icon { font-size: 32px; margin-bottom: 8px; }
.ob-discount-card__name { font-size: 14px; font-weight: 500; }
.ob-discount-card__desc { font-size: 12px; color: var(--text-hint); margin-top: 4px; }

/* -- Booking Configuration Step (Beauty) -- */
.ob-booking__cat-tabs {
  display: flex; gap: 16px; margin-bottom: 16px;
}
.ob-booking__cat-tab {
  font-size: 14px; color: var(--text-sub); cursor: pointer;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: all 0.2s; font-weight: 500;
}
.ob-booking__cat-tab--active {
  color: #5a3e1b; border-bottom-color: #5a3e1b; font-weight: 600;
}
.ob-booking__service-list {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.ob-booking__service-card {
  flex: 0 0 140px; border-radius: 10px; overflow: hidden;
  border: 2px solid #e8ecf0; cursor: pointer; position: relative;
  transition: all 0.2s; background: #fff;
}
.ob-booking__service-card:hover { border-color: #c8a96e; }
.ob-booking__service-card--selected { border-color: #5a3e1b; }
.ob-booking__service-img {
  width: 100%; height: 100px; background-size: cover; background-position: center;
}
.ob-booking__service-name {
  font-size: 12px; font-weight: 500; padding: 6px 8px 2px; color: var(--text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ob-booking__service-price {
  font-size: 13px; font-weight: 700; color: #5a3e1b; padding: 0 8px;
}
.ob-booking__service-member {
  font-size: 11px; color: var(--text-hint); padding: 0 8px 8px;
}
.ob-booking__service-check {
  position: absolute; bottom: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #5a3e1b; color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.ob-booking__meta-row {
  display: flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 12px; color: var(--text-sub);
}
.ob-booking__meta-link {
  margin-left: auto; color: #5a3e1b; cursor: pointer;
}
.ob-booking__pills {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ob-booking__pill {
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  border: 1.5px solid #e0d6c8; background: #fff; color: #5a3e1b;
  cursor: pointer; transition: all 0.2s;
}
.ob-booking__pill:hover { border-color: #c8a96e; }
.ob-booking__pill--active {
  background: #5a3e1b; color: #fff; border-color: #5a3e1b;
}
.ob-booking__calendar { margin-top: 8px; }
.ob-booking__cal-header {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.ob-booking__cal-day, .ob-booking__cal-more {
  flex: 1; text-align: center; padding: 6px 4px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; color: var(--text-main);
  line-height: 1.3;
}
.ob-booking__cal-day small, .ob-booking__cal-more small {
  font-size: 11px; color: var(--text-hint); font-weight: 400;
}
.ob-booking__cal-day--active {
  background: #f5ede3; color: #5a3e1b;
}
.ob-booking__cal-day--active small { color: #5a3e1b; }
.ob-booking__time-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.ob-booking__time-slot {
  text-align: center; padding: 8px 4px; border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
  color: var(--text-main); background: #f9f7f4;
}
.ob-booking__time-slot:hover { background: #f0ece6; }
.ob-booking__time-slot--active {
  background: #5a3e1b; color: #fff; font-weight: 600;
}

/* Booking phone preview (bkp) — faithful to design */
.bkp-scroll { overflow-y: auto; padding: 0 !important; }
/* In booking preview, float notch over content so banner reaches top */
.ob-phone-preview__frame:has(.bkp-scroll) .ob-phone-preview__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 5;
}
.bkp { padding: 14px 12px 8px; }

/* Shop Location Card */
.bkp-location {
  background: #fff; border-radius: 0 0 16px 16px;
  overflow: hidden; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.bkp-location__banner {
  width: 100%; height: 100px;
}
.bkp-location__body {
  padding: 10px 12px 12px;
}
.bkp-location__name {
  font-size: 12px; font-weight: 700; color: #222;
  margin-bottom: 8px; line-height: 1.3;
}
.bkp-location__row {
  display: flex; align-items: flex-start; gap: 8px;
}
.bkp-location__addr {
  flex: 1; display: flex; align-items: flex-start; gap: 4px;
  min-width: 0;
}
.bkp-location__pin {
  width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px;
}
.bkp-location__addr-text {
  font-size: 7.5px; color: #777; line-height: 1.4;
}
.bkp-location__actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.bkp-location__action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; cursor: default;
}
.bkp-location__action-btn svg {
  width: 12px; height: 12px;
}
.bkp-location__action-btn--circle {
  width: 28px; height: 28px;
  border-radius: 50%; background: #f5f0ea;
}
.bkp-location__action-btn--circle svg {
  width: 13px; height: 13px;
}

/* Section header */
.bkp-section-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.bkp-section-header--inline { margin-top: 12px; }
.bkp-section-bar {
  width: 3px; height: 12px; background: #5a3e1b; border-radius: 2px; flex-shrink: 0;
}
.bkp-section-title {
  font-size: 11px; font-weight: 700; color: #222; flex: 1;
}
.bkp-section-more {
  font-size: 8px; color: #999; flex-shrink: 0;
}
.bkp-chevron { font-weight: 600; }

/* Category tabs */
.bkp-cat-tabs { display: flex; gap: 14px; margin-bottom: 10px; }
.bkp-cat {
  font-size: 9px; color: #999; padding-bottom: 3px;
  border-bottom: 1.5px solid transparent; cursor: default;
}
.bkp-cat--active {
  color: #222; font-weight: 600; border-bottom-color: #5a3e1b;
}

/* Service cards horizontal scroll */
.bkp-cards {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none;
}
.bkp-cards::-webkit-scrollbar { display: none; }
.bkp-card {
  flex: 0 0 105px; border-radius: 10px; overflow: hidden;
  border: 1.5px solid #eee; background: #fff; position: relative;
}
.bkp-card--selected { border-color: #5a3e1b; }
.bkp-card__img {
  width: 100%; height: 72px;
}
.bkp-card__body { padding: 5px 7px 6px; }
.bkp-card__name {
  font-size: 8px; font-weight: 600; color: #222;
  line-height: 1.3; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bkp-card__price {
  font-size: 10px; font-weight: 800; color: #5a3e1b;
}
.bkp-card__member {
  font-size: 7px; color: #999; margin-top: 1px;
}
.bkp-member-badge { font-size: 8px; }
.bkp-card__check {
  position: absolute; bottom: 6px; right: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #5a3e1b; display: flex; align-items: center; justify-content: center;
}

/* Meta row */
.bkp-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 8px; color: #999; margin: 6px 0 0;
}
.bkp-meta__left { display: flex; align-items: center; gap: 3px; }
.bkp-meta__right { color: #999; }

/* Divider */
.bkp-divider {
  height: 1px; background: #eee; margin: 10px 0;
}
.bkp-spacer { height: 10px; }

/* Label */
.bkp-label {
  font-size: 10px; font-weight: 700; color: #222; margin-bottom: 6px;
}

/* Pills */
.bkp-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.bkp-pill {
  padding: 4px 12px; border-radius: 14px; font-size: 8px;
  border: 1px solid #e0d6c8; color: #5a3e1b; background: #fff;
  cursor: default;
}
.bkp-pill--active {
  background: #5a3e1b; color: #fff; border-color: #5a3e1b;
}

/* Calendar row */
.bkp-cal-row {
  display: flex; gap: 4px; margin-bottom: 8px;
}
.bkp-cal-day, .bkp-cal-more {
  flex: 1; text-align: center; padding: 5px 2px 4px;
  border-radius: 8px; cursor: default; line-height: 1.2;
}
.bkp-cal-day strong, .bkp-cal-more svg {
  display: block; font-size: 10px; font-weight: 600; color: #222;
  margin-bottom: 2px;
}
.bkp-cal-day small, .bkp-cal-more small {
  font-size: 7px; color: #999; font-weight: 400; display: block;
}
.bkp-cal-day--active {
  background: #f5ede3;
}
.bkp-cal-day--active strong, .bkp-cal-day--active small { color: #5a3e1b; }
.bkp-cal-more { color: #666; }
.bkp-cal-more svg { margin: 0 auto 2px; }

/* Time grid */
.bkp-time-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
}
.bkp-time {
  text-align: center; padding: 5px 2px; border-radius: 8px;
  font-size: 8px; background: #f9f7f4; color: #333;
  cursor: default; font-weight: 500;
}
.bkp-time--active {
  background: #5a3e1b; color: #fff; font-weight: 700;
}

/* Footer (sticky) */
.bkp-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #f5ede3;
  border-top: 1px solid #e8e0d4;
  position: sticky; bottom: 0;
}
.bkp-footer__date {
  font-size: 9px; color: #5a3e1b; font-weight: 500;
}
.bkp-footer__btn {
  padding: 5px 14px; border-radius: 6px;
  background: #333; color: #fff; font-size: 9px; font-weight: 600;
}

/* ========================================
   Food Booking phone preview (fbkp)
   ======================================== */
.fbkp-scroll { overflow-y: auto; padding: 0 !important; }
.ob-phone-preview__frame:has(.fbkp-scroll) .ob-phone-preview__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 5;
}
.fbkp { padding: 14px 12px 8px; }

/* VIP Banner */
.fbkp-vip {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #a0522d 0%, #c87533 40%, #d4903a 100%);
  padding: 16px 14px 14px; min-height: 110px;
}
.fbkp-vip__bg {
  position: relative; z-index: 1;
}
.fbkp-vip__icon {
  font-size: 36px; margin-bottom: 4px;
}
.fbkp-vip__title {
  font-size: 18px; font-weight: 800; color: #fff;
  font-style: italic; letter-spacing: 0.5px;
}
.fbkp-vip__subtitle {
  font-size: 13px; color: rgba(255,255,255,0.85);
  line-height: 1.3; margin-top: 2px;
}
.fbkp-vip__cards {
  position: absolute; top: 10px; right: -10px;
  display: flex; gap: 6px; transform: rotate(-15deg);
}
.fbkp-vip__card {
  width: 50px; height: 32px; border-radius: 4px;
  background: linear-gradient(135deg, #222, #444);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.fbkp-vip__card:first-child {
  transform: translateY(4px);
}

/* Store info card */
.fbkp-store {
  background: #fff; margin: 0; padding: 14px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.fbkp-store__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.fbkp-store__name {
  font-size: 12px; font-weight: 700; color: #222;
}
.fbkp-store__more {
  font-size: 8px; color: #999;
}
.fbkp-store__row {
  display: flex; align-items: flex-start; gap: 8px;
}
.fbkp-store__addr {
  flex: 1; display: flex; align-items: flex-start; gap: 4px; min-width: 0;
}
.fbkp-store__pin {
  width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px;
}
.fbkp-store__addr-text {
  font-size: 7.5px; color: #777; line-height: 1.4;
}
.fbkp-store__actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.fbkp-store__action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; cursor: default;
}
.fbkp-store__action-btn svg {
  width: 12px; height: 12px;
}
.fbkp-store__action-btn--circle {
  width: 28px; height: 28px;
  border-radius: 50%; background: #fff3eb;
}
.fbkp-store__action-btn--circle svg {
  width: 13px; height: 13px;
}

/* Section */
.fbkp-section {
  margin-bottom: 14px;
}
.fbkp-section-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.fbkp-section-header--inline { margin-top: 4px; }
.fbkp-section-bar {
  width: 3px; height: 12px; background: #c87533; border-radius: 2px; flex-shrink: 0;
}
.fbkp-section-title {
  font-size: 11px; font-weight: 700; color: #222; flex: 1;
}
.fbkp-section-more {
  font-size: 8px; color: #c87533; flex-shrink: 0;
}

/* Table cards horizontal scroll */
.fbkp-cards {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none;
}
.fbkp-cards::-webkit-scrollbar { display: none; }
.fbkp-card {
  flex: 0 0 105px; border-radius: 10px; overflow: hidden;
  border: 1.5px solid #eee; background: #fff; position: relative;
}
.fbkp-card--selected { border-color: #c87533; }
.fbkp-card__img {
  width: 100%; height: 72px;
}
.fbkp-card__body { padding: 5px 7px 6px; }
.fbkp-card__name {
  font-size: 8px; font-weight: 600; color: #222;
  line-height: 1.3; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fbkp-card__price {
  font-size: 10px; font-weight: 800; color: #c87533;
}
.fbkp-card__member {
  font-size: 7px; color: #999; margin-top: 1px;
}
.fbkp-member-badge { font-size: 8px; }
.fbkp-card__check {
  position: absolute; bottom: 6px; right: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #c87533; display: flex; align-items: center; justify-content: center;
}

/* Meta row */
.fbkp-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 8px; color: #999; margin: 6px 0 0;
}
.fbkp-meta__left { display: flex; align-items: center; gap: 3px; }
.fbkp-meta__right { color: #999; }

/* Calendar row */
.fbkp-cal-row {
  display: flex; gap: 4px; margin-bottom: 8px;
}
.fbkp-cal-day, .fbkp-cal-more {
  flex: 1; text-align: center; padding: 5px 2px 4px;
  border-radius: 8px; cursor: default; line-height: 1.2;
}
.fbkp-cal-day strong, .fbkp-cal-more svg {
  display: block; font-size: 10px; font-weight: 600; color: #222;
  margin-bottom: 2px;
}
.fbkp-cal-day small, .fbkp-cal-more small {
  font-size: 7px; color: #999; font-weight: 400; display: block;
}
.fbkp-cal-day--active {
  background: #fff3eb;
}
.fbkp-cal-day--active strong, .fbkp-cal-day--active small { color: #c87533; }
.fbkp-cal-more { color: #666; }
.fbkp-cal-more svg { margin: 0 auto 2px; }

/* Time grid */
.fbkp-time-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
}
.fbkp-time {
  text-align: center; padding: 5px 2px; border-radius: 8px;
  font-size: 8px; background: #faf7f4; color: #333;
  cursor: default; font-weight: 500;
}
.fbkp-time--active {
  background: #c87533; color: #fff; font-weight: 700;
}
.fbkp-time-hint {
  text-align: center; font-size: 7px; color: #bbb;
  margin-top: 6px; letter-spacing: 0.5px;
}

/* Brand */
.fbkp-brand {
  text-align: center; font-size: 10px; font-weight: 700;
  color: #222; padding: 12px 0 8px;
  font-style: italic; letter-spacing: 1px;
}

/* Footer */
.fbkp-footer {
  display: flex; justify-content: center; align-items: center;
  padding: 10px 14px; background: #fff;
  border-top: 1px solid #eee;
  position: sticky; bottom: 0;
}
.fbkp-footer__next-btn {
  width: 100%; padding: 10px 0; border: none; border-radius: 20px;
  background: #e74c3c; color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; letter-spacing: 1px;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
  .ob-topbar { padding: 16px 24px 0; }
  .ob-center { max-width: 100%; padding: 0 32px; }
  .ob-comp-cards { grid-template-columns: repeat(2, 1fr); }
  .ob-import-cards { grid-template-columns: repeat(2, 1fr); }
}

/* -- Animations -- */
@keyframes ob-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.ob-animate-in {
  opacity: 0;
  animation: ob-fade-in 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.ob-animate-in:nth-child(1) { animation-delay: 0s; }
.ob-animate-in:nth-child(2) { animation-delay: 0.08s; }
.ob-animate-in:nth-child(3) { animation-delay: 0.16s; }
.ob-animate-in:nth-child(4) { animation-delay: 0.24s; }
.ob-animate-in:nth-child(5) { animation-delay: 0.32s; }
.ob-animate-in:nth-child(6) { animation-delay: 0.4s; }
.ob-animate-in:nth-child(7) { animation-delay: 0.48s; }
.ob-animate-in:nth-child(8) { animation-delay: 0.56s; }

/* ==========================================
   AI Building Transition Overlay
   ========================================== */
.ob-ai-building-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ob-ai-building-overlay--visible { opacity: 1; }
.ob-ai-building-overlay--exit { opacity: 0; pointer-events: none; }

.ob-ai-building {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; max-width: 380px; width: 100%;
  padding: 40px 32px;
}

/* Brain icon with pulse ring */
.ob-ai-building__brain {
  position: relative; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  animation: ob-ai-build-float 3s ease-in-out infinite;
}
.ob-ai-building__brain svg {
  position: relative; z-index: 1;
  animation: ob-ai-build-hammer 1s ease-in-out infinite;
  transform-origin: 45% 85%;
}
.ob-ai-building__pulse-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,174,0,0.35);
  animation: ob-ai-build-pulse 2s ease-in-out infinite;
}

.ob-ai-building__title {
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #4A7FF7, #00CCFF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-top: 4px;
}

.ob-ai-building__step-label {
  font-size: 14px; color: #6b7280;
  min-height: 20px;
  transition: opacity 0.3s;
}

/* Progress bar */
.ob-ai-building__bar-wrap {
  width: 100%; display: flex; align-items: center; gap: 12px;
  margin-top: 8px;
}
.ob-ai-building__bar-track {
  flex: 1; height: 8px; background: #e8ecf0; border-radius: 4px;
  overflow: hidden; position: relative;
}
.ob-ai-building__bar-fill {
  height: 100%; width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #4A7FF7, #00CCFF, #4A7FF7);
  background-size: 200% 100%;
  animation: ob-ai-build-shimmer 2s linear infinite;
  transition: width 0.1s linear;
  position: relative;
}
.ob-ai-building__bar-fill::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
  border-radius: 0 4px 4px 0;
}
.ob-ai-building__bar-pct {
  font-size: 13px; font-weight: 600; color: #4A7FF7;
  min-width: 36px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Step list */
.ob-ai-building__steps {
  display: flex; flex-direction: column; gap: 24px;
  width: 100%; margin-top: 16px;
}
.ob-ai-building__step-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #c4cdd5;
  transition: color 0.3s, transform 0.3s;
  position: relative;
  padding-left: 4px;
}
.ob-ai-building__step-item::before {
  display: none;
}
.ob-ai-building__step-item:last-child::before { display: none; }
.ob-ai-building__step-item--active::before,
.ob-ai-building__step-item--done::before {
  background: #2dca73;
}
.ob-ai-building__step-item--active {
  color: #4A7FF7; font-weight: 500;
  transform: translateX(4px);
}
.ob-ai-building__step-item--done {
  color: #2dca73;
}
.ob-ai-building__step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e0e4ea; flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.ob-ai-building__step-item--active .ob-ai-building__step-dot {
  background: #4A7FF7;
  box-shadow: 0 0 0 4px rgba(74,127,247,0.2);
}
.ob-ai-building__step-item--done .ob-ai-building__step-dot {
  background: #2dca73;
}

@keyframes ob-ai-build-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ob-ai-build-hammer {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-30deg); }
  45% { transform: rotate(8deg); }
  55% { transform: rotate(5deg); }
  65% { transform: rotate(-20deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
@keyframes ob-ai-build-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0; }
}
@keyframes ob-ai-build-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================
   AI Recognition Step
   ========================================== */
.ob-ai-recognition {
  max-width: 780px; margin: 0 auto; padding: 40px 0;
}
.ob-ai-thinking {
  text-align: center;
}
.ob-ai-thinking__icon {
  position: relative; width: 180px; height: 180px; margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center;
}
.ob-ai-thinking__brain {
  position: relative; z-index: 2;
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #e8f4ff 0%, #f0f6ff 40%, #eef0ff 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(59,130,246,0.25), 0 0 60px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  animation: ob-brain-float 3s ease-in-out infinite, ob-brain-shimmer 4s ease-in-out infinite;
}
/* Glow backdrop */
.ob-ai-thinking__glow {
  position: absolute; inset: -20px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.05) 40%, transparent 70%);
  animation: ob-glow-breathe 3s ease-in-out infinite;
}
/* Multiple pulse rings with stagger */
.ob-ai-thinking__pulse {
  position: absolute; border-radius: 50%; z-index: 1;
  border: 1.5px solid rgba(59,130,246,0.3);
  animation: ob-pulse-ring 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.ob-ai-thinking__pulse--1 {
  inset: 8px;
  animation-delay: 0s;
  border-color: rgba(59,130,246,0.35);
}
.ob-ai-thinking__pulse--2 {
  inset: -4px;
  animation-delay: 0.8s;
  border-color: rgba(96,165,250,0.25);
}
.ob-ai-thinking__pulse--3 {
  inset: -18px;
  animation-delay: 1.6s;
  border-color: rgba(147,197,253,0.18);
}
/* Orbiting particles container */
.ob-ai-thinking__orbit {
  position: absolute; inset: -10px; z-index: 3;
  animation: ob-orbit-spin 8s linear infinite;
}
.ob-ai-thinking__particle {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 0 8px rgba(59,130,246,0.6), 0 0 16px rgba(59,130,246,0.3);
}
.ob-ai-thinking__particle--1 {
  width: 6px; height: 6px;
  top: 0; left: 50%; transform: translateX(-50%);
  animation: ob-particle-glow 2s ease-in-out infinite;
}
.ob-ai-thinking__particle--2 {
  width: 4px; height: 4px;
  bottom: 10%; right: 5%;
  animation: ob-particle-glow 2s ease-in-out 0.7s infinite;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
}
.ob-ai-thinking__particle--3 {
  width: 5px; height: 5px;
  bottom: 10%; left: 5%;
  animation: ob-particle-glow 2s ease-in-out 1.4s infinite;
  background: linear-gradient(135deg, #a5b4fc, #818cf8);
}

/* Keyframes for cool effects */
@keyframes ob-pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.1; }
  100% { transform: scale(1.3); opacity: 0; }
}
@keyframes ob-brain-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes ob-brain-shimmer {
  0%, 100% { box-shadow: 0 0 30px rgba(59,130,246,0.25), 0 0 60px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.6); }
  50% { box-shadow: 0 0 40px rgba(59,130,246,0.35), 0 0 80px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.8); }
}
@keyframes ob-glow-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}
@keyframes ob-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ob-particle-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.ob-ai-thinking__title {
  font-size: 20px; font-weight: 600; color: var(--text-main); margin-bottom: 4px;
}
.ob-ai-thinking__subtitle {
  font-size: 14px; color: var(--text-hint); margin-bottom: 40px;
}

/* AI Steps (timeline) */
.ob-ai-steps {
  text-align: left; max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.ob-ai-step {
  display: flex; gap: 16px; padding: 80px 0;
  opacity: 0.3; 
  transform: translateY(4px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.ob-ai-step::before {
  content: ''; position: absolute; left: 9px; top: 104px; bottom: -80px;
  width: 2px; background: #e0e0e0;
  transform: scaleY(0); transform-origin: top;
  transition: background 0.5s ease, transform 0s;
}
.ob-ai-step:last-child::before { display: none; }
.ob-ai-step--active {
  opacity: 1;
  transform: translateY(0);
}
.ob-ai-step--active::before {
  background: #e0e0e0;
  transform: scaleY(1);
  animation: ob-line-extend 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.ob-ai-step--done {
  opacity: 1;
  transform: translateY(0);
}
.ob-ai-step--done::before {
  background: #2dca73;
  transform: scaleY(1);
  animation: none;
}
@keyframes ob-line-extend {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.ob-ai-step__icon {
  flex-shrink: 0; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ob-ai-step--done .ob-ai-step__icon {
  transform: scale(1);
}
.ob-ai-step__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ccc; 
  transition: background 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease;
}
.ob-ai-step--active .ob-ai-step__dot {
  background: #ccc;
  transform: scale(1.1);
  animation: ob-dot-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes ob-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180,180,180,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(180,180,180,0); }
}
.ob-ai-step__content {
  flex: 1; min-width: 0;
}
.ob-ai-step__title {
  font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 6px;
  transition: color 0.4s ease;
}
.ob-ai-step--done .ob-ai-step__title {
  color: var(--text-body);
}
.ob-ai-step__bubble {
  display: inline-block; background: none; color: var(--text-body);
  padding: 6px 0; border-radius: 0;
  font-size: 13px; line-height: 1.5;
  opacity: 0; transform: translateY(8px);
  animation: ob-step-appear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.ob-ai-step__bubble span {
  border-right: 2px solid var(--primary);
  animation: ob-cursor-blink 0.6s step-end infinite;
  padding-right: 2px;
}
.ob-ai-step__bubble span.ob-typing-done {
  border-right-color: transparent;
  animation: none;
}
@keyframes ob-cursor-blink {
  0%, 100% { border-right-color: var(--primary); }
  50% { border-right-color: transparent; }
}
.ob-ai-step__result {
  font-size: 13px; color: var(--text-hint); line-height: 1.5;
  opacity: 0; transform: translateY(6px);
  animation: ob-step-result-appear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}
@keyframes ob-step-appear {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ob-step-result-appear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Check icon pop-in animation */
.ob-ai-step--done .ob-ai-step__icon svg {
  animation: ob-check-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes ob-check-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* AI Results form */
.ob-ai-results__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f0faf4; color: #2dca73;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  margin-bottom: 28px; border: 1px solid #d4f0e0;
}
.ob-ai-product-list {
  display: flex; flex-direction: column; gap: 12px;
}
.ob-ai-product-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; background: #f9fafb; border-radius: 10px;
  border: 1px solid #f0f0f5; transition: all 0.2s;
}
.ob-ai-product-row:hover {
  background: #f5f7ff; border-color: #e0e7ff;
}
.ob-ai-product-row__idx {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ob-ai-product-row__img {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: #eee;
}
.ob-ai-product-row__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.ob-ai-product-row__info {
  flex: 1; min-width: 0;
}
.ob-ai-product-row__name {
  font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 4px;
}
.ob-ai-product-row__desc {
  font-size: 12px; color: var(--text-hint); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ob-ai-product-row__price {
  flex-shrink: 0; margin-left: auto; padding-left: 16px;
  font-size: 18px; font-weight: 700; color: #ff4d4f;
  white-space: nowrap; letter-spacing: -0.5px;
}
.ob-ai-product-row__currency {
  font-size: 13px; font-weight: 600; margin-right: 2px;
}

/* Scattered product image grid */
.ob-ai-scatter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 20px 10px 30px;
  min-height: 140px;
}

.ob-ai-scatter-card {
  width: 100px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0px), var(--ty, 0px)) scale(1);
  animation: ob-scatter-float 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  cursor: default;
  flex-shrink: 0;
  will-change: transform, box-shadow;
  transition: box-shadow 0.6s ease;
}

.ob-ai-scatter-card:nth-child(odd) {
  animation-name: ob-scatter-float;
}
.ob-ai-scatter-card:nth-child(even) {
  animation-name: ob-scatter-float-alt;
}

.ob-ai-scatter-card:hover {
  animation: ob-scatter-zoom-in 1.2s ease forwards !important;
  box-shadow: 0 20px 50px rgba(74,127,247,0.25), 0 8px 20px rgba(0,0,0,0.12);
  z-index: 10;
}

@keyframes ob-scatter-zoom-in {
  0% { transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0px), var(--ty, 0px)) scale(1); }
  100% { transform: rotate(0deg) translate(0, -16px) scale(1.35); }
}

.ob-ai-scatter-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.ob-ai-scatter-card__name {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes ob-scatter-float {
  0%, 100% {
    transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0px), var(--ty, 0px));
  }
  50% {
    transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0px), calc(var(--ty, 0px) - 8px));
  }
}

@keyframes ob-scatter-float-alt {
  0%, 100% {
    transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0px), var(--ty, 0px));
  }
  50% {
    transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0px), calc(var(--ty, 0px) + 6px));
  }
}

/* ── Template Selection Step ── */
.ob-section__hint {
  font-size: 13px; color: #888; margin-top: 4px; margin-bottom: 16px; line-height: 1.5;
}
.ob-tpl-grid {
  display: flex; justify-content: flex-start; gap: 24px;
  margin-top: 120px; align-items: flex-start;
}
.ob-tpl-card {
  position: relative;
  background: transparent; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex: 1; min-width: 0;
  transform: translateY(0);
}
.ob-tpl-card:hover {
  transform: translateY(-4px);
}
.ob-tpl-card--selected {
  transform: translateY(-40px);
}
.ob-tpl-card--selected:hover {
  transform: translateY(-42px);
}
.ob-tpl-card__header {
  text-align: center; margin-bottom: 12px;
}
.ob-tpl-card__preview {
  position: relative;
  max-width: 240px; margin: 0 auto;
}
/* Reuse step 3's ob-phone-preview inside template cards — no extra wrapper needed */
.ob-tpl-card__preview .ob-phone-preview--tpl {
  width: 100%;
  transition: all 0.25s ease;
}
.ob-tpl-card__preview .ob-phone-preview__frame {
  width: 100%; height: 520px;
}
.ob-tpl-card:hover .ob-phone-preview__frame {
  box-shadow: 0 12px 48px rgba(0,0,0,0.16), 0 0 0 1px rgba(74,127,247,0.15);
}
.ob-tpl-card--selected .ob-phone-preview__frame,
.ob-tpl-card--selected:hover .ob-phone-preview__frame {
  box-shadow: 0 8px 40px rgba(74,127,247,0.25), 0 0 0 2px var(--primary, #4a7ff7);
}
.ob-tpl-card__name {
  font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px;
}
.ob-tpl-card__recommend-wrap {
  text-align: center; margin-bottom: 6px;
}
.ob-tpl-card__recommend {
  display: inline-block;
  padding: 3px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #ff8c42, #f5634a);
  color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px; white-space: nowrap;
  animation: ob-recommend-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 2px 8px rgba(245, 99, 74, 0.3);
}
@keyframes ob-recommend-pop {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
.ob-tpl-card__desc {
  font-size: 12px; color: #888; line-height: 1.4;
}
.ob-tpl-card__check {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary, #4a7ff7); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(74,127,247,0.3);
  animation: ob-check-pop 0.3s ease;
}
@keyframes ob-check-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Template Frameless Preview ── */
.ob-tpl-preview {
  width: 100%; aspect-ratio: 9 / 19.5;
  display: flex; flex-direction: column;
  font-size: 11px; background: #fff;
  overflow: hidden;
}
.ob-tpl-preview--beauty {
  background: #f5ede3;
}
.ob-tpl-preview--food {
  background: #fdf5f0;
}
.ob-tpl-preview__scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ob-tpl-preview__scroll::-webkit-scrollbar { display: none; }

/* Search */
.ob-tpl-preview__search {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 12px; padding: 8px 12px;
  background: #f0f0f0; border-radius: 16px;
  color: #999; font-size: 11px;
}
.ob-tpl-preview__search--food {
  background: #eee; border-radius: 20px;
}

/* Banner */
.ob-tpl-preview__banner {
  height: 110px; margin: 6px 12px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #e8f0ff, #c5d8ff);
}
.ob-tpl-preview__banner--virtual {
  background: none;
}
.ob-tpl-preview__banner--beauty {
  height: 120px; background: linear-gradient(135deg, #f5e6d0 0%, #d4a96e 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.ob-tpl-preview__banner--food {
  height: 115px; background: linear-gradient(135deg, #f5e0d0, #e8c0a0);
  display: flex; align-items: center; justify-content: center;
}

/* Beauty specific */
.ob-tpl-preview__beauty-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px 4px; color: #5a3e1b; font-weight: 700; font-size: 14px;
}
.ob-tpl-preview__beauty-search { font-size: 15px; }
.ob-tpl-preview__beauty-overlay {
  text-align: center; color: #fff; padding: 12px;
}
.ob-tpl-preview__beauty-title {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.ob-tpl-preview__beauty-btn {
  margin-top: 8px; display: inline-block; padding: 5px 14px;
  background: rgba(255,255,255,0.3); border-radius: 14px;
  font-size: 10px; font-weight: 600; backdrop-filter: blur(4px);
}

/* Nav grid (shared: virtual + beauty) */
.ob-tpl-preview__nav-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin: 8px 12px; padding: 8px; background: #fff; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ob-tpl-preview__nav-grid--beauty {
  background: rgba(255,255,255,0.6);
}
.ob-tpl-preview__nav-item {
  text-align: center; padding: 6px 2px;
}
.ob-tpl-preview__nav-icon {
  width: 32px; height: 32px; margin: 0 auto 4px;
  background: #f0f4ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.ob-tpl-preview__nav-icon--beauty {
  background: rgba(200,169,110,0.15);
}
.ob-tpl-preview__nav-item span {
  font-size: 9px; color: #666;
}

/* Product section (shared: virtual + beauty) */
.ob-tpl-preview__section {
  padding: 8px 12px;
}
.ob-tpl-preview__section-title {
  font-size: 12px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px;
}
.ob-tpl-preview__product-row {
  display: flex; gap: 8px; margin-bottom: 6px;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ob-tpl-preview__product-img {
  width: 54px; height: 54px; flex-shrink: 0; overflow: hidden;
}
.ob-tpl-preview__product-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.ob-tpl-preview__product-info {
  padding: 6px 6px 6px 0; display: flex; flex-direction: column; justify-content: center;
}
.ob-tpl-preview__product-name {
  font-size: 11px; font-weight: 600; color: #1a1a1a; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px;
}
.ob-tpl-preview__product-price {
  font-size: 12px; font-weight: 700; color: #e8531e; margin-top: 3px;
}

/* Food specific - 每日炸鸡 style */
.ob-food__search {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 10px; padding: 8px 14px;
  background: #f58d42; border-radius: 20px;
  color: #fff; font-size: 11px;
}
.ob-food__search svg { stroke: #fff; opacity: 0.8; }
.ob-food__search span { opacity: 0.9; }

.ob-food__banner {
  position: relative; margin: 0 10px; border-radius: 10px; overflow: hidden;
  height: 130px;
}
.ob-food__banner > img {
  width: 100%; height: 100%; object-fit: cover;
}
.ob-food__banner-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(180,80,30,0.55), rgba(200,100,40,0.4));
}
.ob-food__banner-badge {
  position: absolute; top: 8px; left: 8px;
  background: #e8531e; color: #fff; font-size: 8px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.ob-food__banner-badge-right {
  position: absolute; top: 8px; right: 8px;
  color: #fff; font-size: 7px; text-align: center; line-height: 1.3;
  opacity: 0.85;
}
.ob-food__banner-promo {
  text-align: center; padding: 8px;
}
.ob-food__banner-promo-title {
  color: #fff; font-size: 13px; font-weight: 800; line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  background: rgba(180,70,20,0.7); border-radius: 8px; padding: 6px 12px;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.ob-food__banner-dots {
  position: absolute; bottom: 6px; right: 10px;
  display: flex; gap: 3px;
}
.ob-food__dot {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.4);
}
.ob-food__dot--active {
  background: #e8531e; width: 12px; border-radius: 3px;
}

/* Action cards */
.ob-food__actions {
  display: flex; gap: 8px; margin: 10px 10px;
}
.ob-food__action-card {
  flex: 1; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06); text-align: center;
}
.ob-food__action-img {
  width: 100%; height: 60px; object-fit: cover;
}
.ob-food__action-label {
  font-size: 9px; font-weight: 600; color: #333; padding: 6px 4px;
}

/* Nav icons */
.ob-food__nav {
  display: flex; justify-content: space-around;
  margin: 8px 10px; padding: 8px 4px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ob-food__nav-item {
  text-align: center; flex: 1;
}
.ob-food__nav-icon {
  width: 32px; height: 32px; margin: 0 auto 3px;
  background: #fff3eb; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.ob-food__nav-item span {
  font-size: 7px; color: #666; line-height: 1.2;
}

/* Section */
.ob-food__section {
  padding: 8px 10px;
}
.ob-food__section-title {
  font-size: 12px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px;
}

/* Product grid (horizontal scroll or grid) */
.ob-food__product-grid {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.ob-food__product-grid::-webkit-scrollbar { display: none; }

.ob-food__product-card {
  min-width: 110px; max-width: 110px;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.ob-food__product-thumb {
  position: relative; height: 90px; overflow: hidden;
}
.ob-food__product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.ob-food__product-fav {
  position: absolute; top: 4px; right: 4px;
  font-size: 12px; color: #999; background: rgba(255,255,255,0.8);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ob-food__product-body {
  padding: 5px 6px 6px;
}
.ob-food__product-name {
  font-size: 9px; font-weight: 600; color: #1a1a1a; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ob-food__product-tag {
  display: inline-block; font-size: 7px; color: #e8531e; background: #fff3eb;
  padding: 1px 4px; border-radius: 3px; margin-top: 2px; font-weight: 600;
}
.ob-food__product-meta {
  font-size: 7px; color: #999; margin-top: 2px;
}
.ob-food__product-price-row {
  margin-top: 3px;
}
.ob-food__product-price {
  font-size: 11px; font-weight: 800; color: #1a1a1a;
}
.ob-food__product-vip {
  font-size: 8px; color: #999; margin-top: 1px;
}

/* Group buying card */
.ob-food__group-card {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px; padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
}
.ob-food__group-badge {
  position: absolute; top: 0; left: 0;
  background: #e8531e; color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 6px; border-radius: 10px 0 8px 0; line-height: 1.1;
  text-align: center;
}
.ob-food__group-badge small { font-size: 7px; }
.ob-food__group-img {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0;
}
.ob-food__group-info {
  flex: 1; min-width: 0;
}
.ob-food__group-name {
  font-size: 9px; font-weight: 600; color: #1a1a1a; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ob-food__group-people {
  font-size: 8px; color: #e8531e; margin-top: 2px; font-weight: 500;
}
.ob-food__group-price-row {
  margin-top: 2px; display: flex; align-items: baseline; gap: 4px;
}
.ob-food__group-price {
  font-size: 11px; font-weight: 800; color: #1a1a1a;
}
.ob-food__group-old-price {
  font-size: 8px; color: #999; text-decoration: line-through;
}
.ob-food__group-add {
  width: 24px; height: 24px; border-radius: 50%;
  background: #1a1a1a; color: #fff; font-size: 16px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Food tabbar with cart badge */
.ob-tpl-preview__tabbar--food {
  background: #fff;
}
.ob-tpl-preview__tab--cart {
  position: relative;
}
.ob-tpl-preview__tab--cart i {
  position: absolute; top: -4px; right: -8px;
  background: #e8531e; color: #fff; font-size: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700;
}

/* Tabbar */
.ob-tpl-preview__tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 6px 8px; border-top: 1px solid #eee; background: #fff;
  flex-shrink: 0;
}
.ob-tpl-preview__tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 8px; color: #999; text-align: center; line-height: 1;
}
.ob-tpl-preview__tab svg {
  width: 16px; height: 16px;
}
.ob-tpl-preview__tab--active {
  color: var(--primary, #4a7ff7); font-weight: 600;
}
.ob-tpl-preview__tab em {
  font-style: normal;
}

/* ══════════════════════════════════════════════════════
   Staff Module Styles
   ══════════════════════════════════════════════════════ */

/* ── Booking Settings ── */
.bks-layout { display: flex; gap: 32px; margin-top: 16px; }
.bks-form { flex: 1; min-width: 280px; max-width: 380px; }
.bks-preview {
  flex: 1; min-width: 300px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 14px; padding: 22px 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
}
.bks-field { margin-bottom: 20px; }
.bks-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #1e293b; letter-spacing: -0.01em; }
.bks-hint { display: block; font-size: 11px; color: #94a3b8; margin-top: 5px; line-height: 1.4; }
.bks-select { max-width: 160px; font-weight: 500; }
.bks-inline { display: flex; align-items: center; gap: 8px; }
.bks-num { width: 80px; font-weight: 500; }
.bks-unit { font-size: 13px; color: #64748b; font-weight: 500; }

/* Preview header with highlighted params */
.bks-preview__title {
  font-weight: 700; font-size: 13px; color: #334155;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bks-preview__title-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #4a7ff7 0%, #6366f1 100%);
  color: #fff; white-space: nowrap;
}

/* Time period groups */
.bks-preview__group { margin-bottom: 14px; }
.bks-preview__group-label {
  font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #333;
}
.bks-preview__group-range { font-weight: 400; color: #999; }

/* Time slot chips - plain grey */
.bks-preview__slots { display: flex; flex-wrap: wrap; gap: 6px; }
.bks-preview__slot {
  display: inline-block; padding: 5px 11px; border-radius: 6px;
  font-size: 11px; font-family: monospace;
  font-weight: 500;
  background: #f3f4f6; border: 1px solid #e5e7eb; color: #333;
}

/* Total count badge */
.bks-preview__total {
  margin-top: 14px; font-size: 12px; color: #64748b; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.bks-preview__total-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px; padding: 0 8px;
  background: linear-gradient(135deg, #4a7ff7, #6366f1);
  color: #fff; border-radius: 12px; font-size: 11px; font-weight: 700;
}

@media (max-width: 768px) {
  .bks-layout { flex-direction: column; }
  .bks-form { max-width: 100%; }
}

/* ── Therapists ── */
.tp-status { font-size: 12px; white-space: nowrap; }
.tp-status--active { color: #27ae60; }
.tp-status--on-leave { color: #f39c12; }
.tp-status--disabled { color: #999; }

/* Icon buttons & actions cell */
.tp-actions-cell { white-space: nowrap; }
.tp-actions-cell .tp-icon-btn,
.tp-actions-cell .tp-switch { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.tp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: #4a7ff7; cursor: pointer; transition: all 0.2s; }
.tp-icon-btn:hover { background: #eef2ff; color: #2563eb; }
.tp-icon-btn--danger { color: #e74c3c; }
.tp-icon-btn--danger:hover { background: #fef2f2; color: #c0392b; }

/* Toggle switch */
.tp-switch { position: relative; display: inline-block; width: 36px; height: 20px; vertical-align: middle; }
.tp-switch input { opacity: 0; width: 0; height: 0; }
.tp-switch__slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 20px; transition: 0.3s; }
.tp-switch__slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: 0.3s; }
.tp-switch input:checked + .tp-switch__slider { background: #4a7ff7; }
.tp-switch input:checked + .tp-switch__slider::before { transform: translateX(16px); }

.tp-avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tp-avatar-placeholder { font-size: 20px; display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; background: #f0f0f0; border-radius: 50%; }

.tp-avatar-upload { display: flex; align-items: center; }
.tp-avatar-hover-wrap { position: relative; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; }
.tp-avatar-preview { width: 56px; height: 56px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #eee; transition: filter 0.2s; }
.tp-avatar-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.tp-avatar-hover-wrap:hover .tp-avatar-preview { filter: blur(1px); }
.tp-avatar-hover-wrap:hover .tp-avatar-overlay { opacity: 1; }
.tp-avatar-file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border-radius: 50%; }
.tp-avatar-img-lg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tp-avatar-placeholder-lg { font-size: 28px; }

/* Multi-select dropdown */
.tp-multiselect { position: relative; }
.tp-multiselect__trigger { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 13px; background: #fff; transition: border-color 0.2s; }
.tp-multiselect__trigger:hover { border-color: #aaa; }
.tp-multiselect__placeholder { color: #666; }
.tp-multiselect__arrow { color: #999; font-size: 12px; }
.tp-multiselect__dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 100; background: #fff; border: 1px solid #ddd; border-radius: 6px; margin-top: 4px; max-height: 200px; overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.tp-multiselect__option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; transition: background 0.15s; }
.tp-multiselect__option:hover { background: #f5f7ff; }
.tp-multiselect__option input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.tp-multiselect__option span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-multiselect__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tp-tag { display: inline-block; padding: 2px 8px; background: #eef2ff; color: #4a7ff7; border-radius: 4px; font-size: 11px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Scheduling settings gear button ── */
.sch-settings-btn { display: inline-flex; align-items: center; gap: 6px; }
.bks-modal-desc { font-size: 13px; color: #64748b; margin: 0 0 20px; line-height: 1.5; }
.bks-modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 20px; padding: 20px;
  background: #f8fafc; border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.bks-modal-grid .bks-field { margin-bottom: 0; }
.bks-modal-grid .bks-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; margin-bottom: 8px; }
.bks-modal-grid .input-text { border-radius: 8px; border: 1.5px solid #e2e8f0; transition: all 0.2s ease; }
.bks-modal-grid .input-text:focus { border-color: #4a7ff7; box-shadow: 0 0 0 3px rgba(74, 127, 247, 0.1); }

/* Enhanced Booking Modal */
.bks-modal-enhanced { border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.08); }
.bks-modal-header { padding: 24px 28px 0 !important; }
.bks-modal-header__left { display: flex; align-items: center; gap: 10px; }
.bks-modal-header__icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #666; flex-shrink: 0;
}
.bks-modal-enhanced .sm-modal__title { font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
.bks-modal-enhanced .sm-modal__body { padding: 20px 28px !important; }
.bks-modal-enhanced .sm-modal__footer {
  padding: 18px 28px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: #fafbfc; border-radius: 0 0 18px 18px;
}
.bks-modal-enhanced .sm-modal__footer .btn--primary {
  background: linear-gradient(135deg, #4a7ff7 0%, #6366f1 100%);
  border: none; box-shadow: 0 4px 14px rgba(74, 127, 247, 0.35);
  font-weight: 600; padding: 8px 24px; border-radius: 10px;
  transition: all 0.2s ease;
}
.bks-modal-enhanced .sm-modal__footer .btn--primary:hover {
  box-shadow: 0 6px 20px rgba(74, 127, 247, 0.45); transform: translateY(-1px);
}
.bks-modal-enhanced .sm-modal__footer .btn--sm:not(.btn--primary) {
  border-radius: 10px; padding: 8px 20px; font-weight: 500;
}

/* ── Scheduling Tabs ── */
.sch-tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.sch-tab { padding: 10px 20px; font-size: 13px; font-weight: 500; color: #666; background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.sch-tab:hover { color: #333; }
.sch-tab--active { color: var(--primary, #4a7ff7); border-bottom-color: var(--primary, #4a7ff7); font-weight: 600; }

/* ── Template Cards ── */
.tpl-card { border: 1px solid #eee; border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; background: #fff; transition: box-shadow 0.2s; }
.tpl-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tpl-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tpl-card__icon { font-size: 18px; }
.tpl-card__name { font-weight: 600; font-size: 14px; flex: 1; }
.tpl-card__actions { display: flex; gap: 10px; }
.tpl-card__schedule { font-size: 12px; color: #555; margin-bottom: 4px; font-family: monospace; }
.tpl-card__assigned { font-size: 11px; color: #999; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tpl-card__assignee { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 12px; background: #eef2ff; color: #4a7ff7; font-size: 11px; font-weight: 600; }
.tpl-card__assignee--empty { background: #f3f4f6; color: #bbb; font-weight: 400; }

/* Week grid view */
.tpl-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0; max-width: 560px; }
.tpl-week__cell { border-radius: 8px; padding: 8px 4px; text-align: center; border: 1px solid #eee; transition: all 0.15s; }
.tpl-week__cell--on { background: #eef2ff; border-color: #d6e0ff; }
.tpl-week__cell--off { background: #fafafa; }
.tpl-week__day { font-size: 11px; font-weight: 600; color: #666; margin-bottom: 4px; }
.tpl-week__day--weekend { color: #e67e22; }
.tpl-week__cell--on .tpl-week__time { font-size: 11px; color: #4a7ff7; font-weight: 600; line-height: 1.4; font-family: monospace; }
.tpl-week__cell--off .tpl-week__time { font-size: 11px; color: #bbb; font-weight: 500; padding-top: 8px; }

/* ── Template Edit Modal Grid ── */
.tpl-range-hint { margin-top: 14px; padding: 8px 12px; background: #f0f5ff; border: 1px solid #dbe6ff; border-radius: 8px; font-size: 12px; color: #4a7ff7; }
.tpl-schedule-label {
  font-size: 13px; font-weight: 600; color: #555; margin-top: 16px; margin-bottom: 8px;
}
.tpl-schedule-hint {
  font-size: 11px; color: #aaa; margin-top: 8px;
}
.tpl-schedule--grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 4px;
}
.tpl-day-chip {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 0; border-radius: 10px; cursor: pointer; transition: all 0.2s;
  background: #f5f5f7; border: 1.5px solid #e8e8ec;
}
.tpl-day-chip:hover { background: #eef0f5; border-color: #d0d3dc; }
.tpl-day-chip--weekend { background: #faf5f5; border-color: #f0e0e0; }
.tpl-day-chip--weekend:hover { background: #f5eaea; }
.tpl-day-chip input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.tpl-day-chip:has(input:checked) {
  background: #eef2ff; border-color: #818cf8; box-shadow: 0 1px 4px rgba(99,102,241,0.12);
}
.tpl-day-chip:has(input:checked) .tpl-day-chip__text { color: #4f46e5; font-weight: 600; }
.tpl-day-chip--weekend:has(input:checked) {
  background: #fef3e8; border-color: #f59e0b; box-shadow: 0 1px 4px rgba(245,158,11,0.12);
}
.tpl-day-chip--weekend:has(input:checked) .tpl-day-chip__text { color: #d97706; }
.tpl-day-chip__text {
  font-size: 13px; font-weight: 500; color: #888; transition: color 0.2s;
}

/* ── Overrides Layout ── */
.ovr-layout { display: flex; gap: 32px; align-items: flex-start; }
.ovr-calendar { flex: 0 0 300px; width: 300px; border: 1px solid #eee; border-radius: 12px; padding: 16px; }
.ovr-list { flex: 1; min-width: 0; padding-top: 16px; }

.ovr-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ovr-month-label { font-weight: 600; font-size: 15px; }
.ovr-nav-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #e5e5e5; background: #fff; color: #666; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.ovr-nav-btn:hover { background: #f5f5f5; color: #333; }

.ovr-cal__weekrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.ovr-cal__weekday { text-align: center; font-size: 11px; font-weight: 600; color: #999; }
.ovr-cal__weekday--weekend { color: #e67e22; }
.ovr-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ovr-cal__empty { aspect-ratio: 1; }
.ovr-cal__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 8px; cursor: pointer; position: relative; transition: all 0.15s; color: #333; }
.ovr-cal__day:hover { background: #f0f4ff; }
.ovr-cal__day--has { font-weight: 600; }
.ovr-cal__day--has::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #e67e22; }
.ovr-cal__day--selected { background: #4a7ff7; color: #fff; font-weight: 600; }
.ovr-cal__day--selected:hover { background: #2563eb; }
.ovr-cal__day--selected.ovr-cal__day--has::after { background: #fff; }
.ovr-cal__hint { font-size: 11px; color: #aaa; text-align: center; margin-top: 12px; line-height: 1.5; }
.ovr-clear-filter { font-size: 12px; color: #4a7ff7; text-align: center; margin-top: 12px; cursor: pointer; }
.ovr-clear-filter:hover { text-decoration: underline; }

.ovr-list__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ovr-list__title { margin: 0; font-size: 15px; font-weight: 600; }
.ovr-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px; }
.ovr-item__info { flex: 1; min-width: 0; }
.ovr-item__name { font-size: 13px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 8px; }
.ovr-item__tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.ovr-item__tag--off { background: #fef2f2; color: #e74c3c; }
.ovr-item__tag--custom { background: #eef2ff; color: #4a7ff7; }
.ovr-item__date { font-size: 12px; color: #999; margin-top: 4px; }
.ovr-empty { font-size: 13px; color: #aaa; text-align: center; padding: 32px 0; border: 1px dashed #eee; border-radius: 10px; }

@media (max-width: 768px) {
  .ovr-layout { flex-direction: column; }
  .ovr-calendar { width: 100%; flex-basis: auto; }
}

/* ============================================
   Payment Settings Page
   ============================================ */
.pay-settings { max-width: 720px; }

/* Info banner */
.pay-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f0f7ff; border: 1px solid #d6e8ff; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 24px; color: #1a73e8; font-size: 13px; line-height: 1.6;
}

/* Section */
.pay-section { margin-bottom: 28px; }
.pay-section__title {
  font-size: 14px; font-weight: 600; color: var(--text-main);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.pay-section__body { display: flex; flex-direction: column; gap: 18px; }

/* Field */
.pay-field { display: flex; flex-direction: column; gap: 6px; }
.pay-field__label { font-size: 13px; font-weight: 500; color: var(--text-main); }
.pay-field__required { color: #e74c3c; margin-right: 2px; }
.pay-field__input-wrap { position: relative; display: flex; align-items: center; }
.pay-field__input-wrap--textarea { align-items: flex-start; }
.pay-field__toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.pay-field__input-wrap--textarea .pay-field__toggle {
  top: 8px; transform: none;
}
.pay-field__hint { font-size: 12px; color: var(--text-hint); line-height: 1.5; }

/* Input */
.pay-input {
  width: 100%; height: 34px; padding: 0 36px 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-size: 13px; transition: border-color .2s; box-sizing: border-box;
}
.pay-input:focus { border-color: var(--primary); outline: none; }
.pay-input--textarea {
  height: auto; min-height: 80px; padding: 8px 12px; resize: vertical;
  line-height: 1.5; font-size: 12px;
}
.pay-input--mono { font-family: 'SF Mono', 'Monaco', 'Consolas', monospace; }
.pay-input--masked { -webkit-text-security: disc; }

/* Switch */
.pay-switch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
}
.pay-switch input { display: none; }
.pay-switch__slider {
  width: 38px; height: 20px; border-radius: 20px; background: #ccc;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.pay-switch__slider::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.pay-switch input:checked + .pay-switch__slider { background: var(--primary); }
.pay-switch input:checked + .pay-switch__slider::after { transform: translateX(18px); }
.pay-switch__label { font-size: 13px; color: var(--text-main); font-weight: 500; }

/* Actions */
.pay-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* Help links */
.pay-help { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.pay-help__title { font-size: 12px; color: var(--text-hint); margin-bottom: 8px; }
.pay-help__link {
  display: block; font-size: 13px; color: var(--primary); text-decoration: none;
  padding: 4px 0; transition: opacity .15s;
}
.pay-help__link:hover { opacity: 0.8; text-decoration: underline; }
