:root {
  --primary: #6D28D9;
  --primary-light: #F8F5FF;
  --primary-dark: #5B21B6;
  --accent: #C026D3;
  --success: #10B981;
  --text: #333;
  --text-muted: #999;
  --border: #e5e5e5;
  --bg: #F8F5FF;
  --bg-white: #FFFFFF;
}

/* ===== INLINE SVG ICONS ===== */
.si {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary); }

/* ===== HEADER ===== */
.site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(109,40,217,.10);
  box-shadow: 0 8px 24px rgba(109,40,217,.08);
  backdrop-filter: saturate(160%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 16px;
  gap: 14px;
}
.site-logo {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  text-decoration: none;
}
.site-logo-img {
  width: 40px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.site-logo-text {
  color: var(--primary);
  letter-spacing: 0;
}
.site-logo .badge-logo {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 6px;
}
.site-nav > a {
  padding: 0 16px;
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #4b4458;
  border-radius: 999px;
  transition: color .2s, background .2s, box-shadow .2s;
}
.site-nav > a:hover,
.site-nav > a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.site-nav > a.active {
  box-shadow: inset 0 0 0 1px rgba(109,40,217,.14);
}
.nav-msg-link { position: relative; }
.nav-msg-badge {
  position: absolute;
  top: 8px;
  right: -4px;
  background: #f33;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 4px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
}
.header-search {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  margin-right: 6px;
  box-shadow: 0 6px 18px rgba(109,40,217,.08);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.header-search:focus-within {
  border-color: rgba(109,40,217,.38);
  box-shadow: 0 8px 24px rgba(109,40,217,.14);
  background: #fff;
}
.header-search input {
  border: none;
  background: transparent;
  padding: 8px 10px 8px 16px;
  font-size: 14px;
  outline: none;
  width: 100%;
  color: #332a44;
}
.header-search button {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #8f879d;
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
}
.header-search button:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.header-auth { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.btn-login {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 4px;
  padding: 5px 16px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn-login:hover { background: var(--primary-light); }
.btn-reg {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 16px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn-reg:hover { background: var(--primary-dark); }

/* ===== NOTICE BAR ===== */
.notice-bar {
  background: #fff9e6;
  border-bottom: 1px solid #ffe58f;
  padding: 7px 0;
}
.notice-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  color: #7a6000;
  font-size: 13px;
}

/* ===== PAGE WRAPPER ===== */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== CITY FILTER BAR ===== */
.city-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: visible;
  flex-wrap: nowrap;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 12px 0 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.city-filter-bar::-webkit-scrollbar { display: none; }
.city-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  margin: 12px 0 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(109,40,217,.06);
}
.city-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(109,40,217,.08);
}
.city-panel-row:last-child { border-bottom: none; }
.city-region-label {
  flex-shrink: 0;
  width: 52px;
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--primary-light);
}
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
}
.city-filter-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: #5b5366;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, background .15s, box-shadow .15s;
}
.city-filter-pill:hover,
.city-filter-pill.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(109,40,217,.14);
}
.city-more-btn {
  display: none;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(109,40,217,.18);
  transition: transform .15s, box-shadow .15s;
}
.city-more-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(109,40,217,.24);
}
.city-more-btn[hidden] { display: none !important; }
.city-collapsed-hidden { display: none !important; }

/* ===== FILTER SECTION ===== */
.filter-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 12px 0 0;
  overflow: hidden;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.filter-row:last-child { border-bottom: none; }
.filter-label {
  color: #666;
  font-size: 13px;
  min-width: 36px;
  flex-shrink: 0;
}
.filter-pill {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 13px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  display: inline-block;
}
.filter-pill:hover, .filter-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.filter-pill.more {
  border-style: dashed;
  color: var(--primary);
  border-color: var(--primary-dark);
}

/* ===== SORT TABS ===== */
.sort-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #fff;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
}
.sort-tab {
  padding: 10px 20px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color .15s;
}
.sort-tab:hover { color: var(--primary); text-decoration: none; }
.sort-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.home-filter-shell {
  margin-top: 12px;
}
.home-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(109,40,217,.06);
}
.home-filter-field {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: auto;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #6a6078;
  font-size: 12px;
  font-weight: 800;
}
.home-filter-field > span {
  display: none;
}
.home-filter-field--sort {
  margin-right: auto;
}
.home-filter-field select,
.home-mobile-sort-form select {
  min-width: 136px;
  font-size: 13px;
  font-weight: 800;
}
.home-filter-field select {
  max-width: 178px;
}
.home-filter-reset {
  flex-shrink: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(109,40,217,.16);
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.home-filter-reset:hover {
  background: var(--primary-light);
  text-decoration: none;
}
.home-filter-mobile-top {
  display: none;
}
.home-filter-overlay {
  display: none;
}
.home-filter-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 0 0 24px;
}
.main-content { flex: 1; min-width: 0; }
.main-sidebar { flex: 0 0 260px; width: 260px; padding-top: 0; }

/* ===== LIST GRID ===== */
.city-extra { display: none; }
.list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: none;
  background: none;
  border-top: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 14px;
}
.list-card {
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 350px;
  min-width: 0;
  margin: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  border: 1px solid rgba(109,40,217,.10);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(42,29,69,.08);
}
.list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(109,40,217,.24);
  box-shadow: 0 14px 30px rgba(42,29,69,.13);
  text-decoration: none;
  color: inherit;
}
.list-card-img-wrap {
  flex: 0 0 250px;
  height: 250px;
  background: #f2eefb;
  overflow: hidden;
}
.list-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f2eefb;
}
.list-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 11px 12px;
}
.list-card-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #2d2638;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.list-card:hover .list-card-title { color: var(--primary); }
.list-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 50px;
  margin-top: 8px;
  overflow: hidden;
}
.list-card-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  color: #746b80;
  font-size: 12px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--primary-light);
}
.list-card-meta .si {
  color: var(--primary);
  font-size: 11px;
}
.home-list-meta {
  display: grid;
  gap: 6px;
  max-height: none;
  margin-top: auto;
}
.home-list-meta-row {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.home-list-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-list-meta .meta-location,
.home-list-meta .meta-category,
.home-list-meta .meta-price {
  flex: 1 1 auto;
}
.home-list-meta .meta-time,
.home-list-meta .meta-vip,
.home-list-meta .meta-public {
  flex: 0 0 auto;
}
.home-list-meta .meta-vip {
  color: #6D28D9;
  background: rgba(109,40,217,.09);
}
.home-list-meta .meta-vip .si {
  color: var(--primary);
}
.home-list-meta .meta-public {
  color: #047857;
  background: rgba(16,185,129,.10);
}
.home-list-meta .meta-public .si {
  color: var(--success);
}
.home-list-meta .meta-price {
  color: #9a3412;
  background: rgba(251,146,60,.12);
}
.home-list-meta .meta-price .si {
  color: #f97316;
}
.meta-price-symbol {
  color: #f97316;
  font-size: 13px;
  line-height: 1;
}
.merchant-post-grid {
  align-items: stretch;
}
.merchant-post-card {
  position: relative;
  cursor: default;
  height: 418px;
}
.merchant-post-image-link {
  position: relative;
  display: block;
  text-decoration: none;
}
.merchant-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(32,18,51,.18);
}
.merchant-status-badge.is-active { background: #10B981; }
.merchant-status-badge.is-pending { background: #f59e0b; }
.merchant-status-badge.is-rejected { background: #ef4444; }
.merchant-post-title {
  display: block;
  text-decoration: none;
}
.merchant-post-meta {
  margin-top: 9px;
}
.merchant-post-owner-row span {
  color: #6D28D9;
  background: rgba(109,40,217,.08);
  font-weight: 800;
}
.merchant-reject-note {
  max-height: 42px;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(239,68,68,.18);
  border-radius: 8px;
  padding: 7px 9px;
  color: #dc2626;
  background: #fff5f5;
  font-size: 12px;
  line-height: 1.45;
}
.merchant-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.merchant-card-actions .btn-sm-gray,
.merchant-card-actions .btn-sm-pink,
.merchant-card-actions .btn-sm-danger {
  width: 100%;
}
.badge-merchant {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.badge-featured {
  display: inline-block;
  background: #ff9500;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.badge-pinned {
  display: inline-block;
  background: #10B981;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ===== PAGINATION ===== */
.pagination-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 0 0 4px 4px;
}
.home-service-grid + .pagination-wrap {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  border-radius: 4px;
}
.page-btn {
  border: 1px solid var(--border);
  color: #555;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  text-decoration: none;
  transition: all .15s;
  display: inline-block;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.page-ellipsis {
  min-width: 26px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9a92a8;
  font-weight: 800;
}

/* ===== SIDEBAR ===== */
.main-sidebar {
  position: sticky;
  top: 74px;
}
.sidebar-box {
  background: #fff;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(78,47,130,.10);
}
.sidebar-box-title {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  color: #2f273d;
  border-bottom: 1px solid rgba(109,40,217,.10);
  background: linear-gradient(135deg, #fff, var(--primary-light));
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-box-title .si {
  color: var(--primary);
  font-size: 18px;
}
.sidebar-box-body { padding: 16px 18px; }
.sidebar-tip-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #5e5669;
  line-height: 1.6;
}
.sidebar-tip-list li {
  display: flex;
  gap: 9px;
}
.sidebar-tip-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}
.sidebar-action-row {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
}
.sidebar-mini-btn {
  flex: 1;
  text-align: center;
  border: 1px solid rgba(109,40,217,.16);
  border-radius: 8px;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4f465c;
  background: #fff;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}
.sidebar-mini-btn:hover {
  color: var(--primary);
  border-color: rgba(109,40,217,.36);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
}
.nearby-item {
  font-size: 13px;
  color: #544a60;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(109,40,217,.10);
  text-decoration: none;
  transition: color .16s, background .16s, border-color .16s, transform .16s;
}
.nearby-item:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(109,40,217,.28);
  transform: translateY(-1px);
}
.nearby-dot {
  width: 6px; height: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== DETAIL PAGE ===== */
.detail-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
}
.detail-media-section {
  background: #fff;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(78,47,130,.08);
}
.detail-media-header {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(109,40,217,.10);
  background: linear-gradient(135deg, #fff, var(--primary-light));
  font-size: 15px;
  font-weight: 800;
  color: #2f273d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-media-header .si {
  color: var(--primary);
}
.detail-recommend-section {
  background: #fff;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(78,47,130,.08);
}
.detail-recommend-header {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(109,40,217,.10);
  background: linear-gradient(135deg, #fff, var(--primary-light));
  font-size: 15px;
  font-weight: 800;
  color: #2f273d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-recommend-header .si {
  color: var(--primary);
}
.detail-recommend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}
.detail-recommend-list--sidebar {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
}
.detail-recommend-card {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(109,40,217,.10);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.detail-recommend-card:hover {
  transform: translateY(-1px);
  border-color: rgba(109,40,217,.28);
  box-shadow: 0 10px 22px rgba(78,47,130,.10);
  color: inherit;
  text-decoration: none;
}
.detail-recommend-card img {
  width: 104px;
  height: 82px;
  flex: 0 0 104px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--primary-light);
}
.detail-recommend-card--sidebar {
  padding: 8px;
  gap: 8px;
}
.detail-recommend-card--sidebar img {
  width: 72px;
  height: 58px;
  flex-basis: 72px;
}
.detail-recommend-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.detail-recommend-title {
  min-width: 0;
  color: #2d2638;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-recommend-card:hover .detail-recommend-title {
  color: var(--primary);
}
.detail-recommend-meta,
.detail-recommend-foot {
  min-width: 0;
  color: #7b7287;
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-recommend-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-recommend-meta .si,
.detail-recommend-foot .si {
  color: var(--primary);
  flex: 0 0 auto;
}
.detail-recommend-foot {
  justify-content: space-between;
  gap: 8px;
}
.detail-recommend-foot span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.detail-desc-video-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}
.detail-desc-video-row--compact {
  align-items: start;
}
.detail-desc-video-row .detail-desc-section,
.detail-desc-video-row .detail-media-section {
  margin-bottom: 0;
  height: 100%;
}
.detail-desc-video-row--compact .detail-desc-section,
.detail-desc-video-row--compact .detail-media-section {
  height: auto;
}
.detail-media-combo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 14px;
  padding: 16px 18px;
  align-items: start;
}
.detail-media-panel {
  min-width: 0;
}
.detail-media-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #3d334d;
}
.detail-media-subtitle .si {
  color: var(--primary);
}
.detail-images {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.detail-media-section > .detail-images {
  padding: 16px 18px;
}
.detail-images img {
  height: 240px;
  width: auto;
  max-width: 360px;
  border-radius: 8px;
  object-fit: contain;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--primary-light);
  border: 1px solid rgba(109,40,217,.10);
}
.detail-videos {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.detail-videos::-webkit-scrollbar {
  height: 6px;
}
.detail-videos::-webkit-scrollbar-thumb {
  background: rgba(109,40,217,.22);
  border-radius: 999px;
}
.detail-video-inline-section .detail-videos {
  padding: 16px 18px;
}
.detail-video-inline-section--empty .detail-videos {
  padding: 14px 18px;
}
.detail-video-card {
  width: 100%;
  min-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(109,40,217,.16), rgba(248,245,255,.92) 58%),
    var(--primary-light);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(109,40,217,.10);
  scroll-snap-align: start;
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.detail-video-card.has-poster {
  background-image:
    linear-gradient(rgba(20,14,32,.16), rgba(20,14,32,.16)),
    var(--video-poster);
}
.detail-video-card.is-playing {
  background: #111;
}
.detail-videos video {
  display: block;
  width: 100%;
  max-height: 300px;
  background: #111;
  transition: opacity .16s ease;
}
.detail-video-card.has-poster:not(.is-playing) video {
  opacity: 0;
}
.detail-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0,0,0,.20), rgba(0,0,0,.03) 54%);
  cursor: pointer;
  transition: opacity .18s ease, visibility .18s ease;
}
.detail-video-play span {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  background: rgba(109,40,217,.92);
  color: #fff;
  box-shadow: 0 16px 42px rgba(47,26,87,.32);
}
.detail-video-play .si {
  width: 30px;
  height: 30px;
}
.detail-video-card.is-playing .detail-video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.detail-video-empty {
  width: 100%;
  flex: 0 0 100%;
  min-height: 180px;
  border: 1px dashed rgba(109,40,217,.22);
  border-radius: 8px;
  background: var(--primary-light);
  color: #8c8399;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-video-inline-section--empty .detail-video-empty {
  min-height: 96px;
}
.detail-image-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20,16,28,.82);
}
.detail-image-preview.active {
  display: flex;
}
.detail-image-preview img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.detail-image-preview-nav {
  position: fixed;
  top: 50%;
  z-index: 1001;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  font-size: 42px;
  line-height: 42px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.detail-image-preview-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}
.detail-image-preview-prev {
  left: 22px;
  padding-right: 3px;
}
.detail-image-preview-next {
  right: 22px;
  padding-left: 3px;
}
.detail-image-preview-count {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-width: 64px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #3d334d;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.detail-image-preview-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #2f2938;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.4;
}
.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0;
}
.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.detail-info-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.detail-info-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.detail-info-row:last-child { border-bottom: none; }
.detail-info-label {
  flex: 0 0 96px;
  padding: 9px 14px;
  background: #fafafa;
  color: #666;
  font-size: 13px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.detail-info-value {
  flex: 1;
  padding: 9px 14px;
  font-size: 13px;
  color: #333;
}
.detail-video-jump-btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(109,40,217,.18);
}
.detail-video-jump-btn:hover {
  filter: brightness(1.04);
}
.detail-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}
.detail-type-badge.is-member {
  color: #6D28D9;
  background: rgba(109,40,217,.09);
}
.detail-type-badge.is-public {
  color: #047857;
  background: rgba(16,185,129,.10);
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}
.btn-collect,
.btn-report,
.btn-edit-service {
  border: 1px solid var(--border);
  background: #fff;
  color: #666;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all .15s;
}
.btn-collect:hover,
.btn-report:hover,
.btn-edit-service:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.btn-edit-service {
  border-color: rgba(109,40,217,.28);
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}
.btn-collect--active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ===== CHAT SECTION on DETAIL ===== */
.chat-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.chat-section-header {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #fafafa;
}
.chat-section-body { padding: 16px 20px; }
.btn-chat-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn-chat-now:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-login-to-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 4px;
  padding: 10px 32px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.btn-login-to-chat:hover { background: var(--primary-light); text-decoration: none; }
.chat-section-tip {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}
.detail-desc-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.detail-desc-header {
  padding: 10px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-desc-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
}
.contact-section {
  background: #fff;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(78,47,130,.08);
}
.contact-section-header {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(109,40,217,.10);
  background: linear-gradient(135deg, #fff, var(--primary-light));
  font-size: 15px;
  font-weight: 800;
  color: #2f273d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-section-header .si {
  color: var(--primary);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding: 16px 18px;
}
.contact-card {
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 8px;
  padding: 13px 16px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.contact-card-full {
  grid-column: 1 / -1;
  align-items: flex-start;
}
.contact-label {
  font-size: 12px;
  color: #8c8399;
  flex: 0 0 auto;
  min-width: 52px;
}
.contact-value {
  display: inline-flex;
  max-width: 100%;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
  min-width: 0;
}
.contact-value:hover {
  color: var(--accent);
}
.contact-value-multiline {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.contact-empty {
  color: #aaa;
  font-size: 14px;
}
.contact-locked {
  padding: 22px 18px;
  text-align: center;
  background: linear-gradient(135deg, #fff, var(--primary-light));
}
.contact-locked-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #2f273d;
  font-size: 16px;
  font-weight: 800;
}
.contact-locked-title .si {
  color: var(--primary);
}
.contact-locked-text {
  margin-top: 8px;
  color: #8c8399;
  font-size: 13px;
  line-height: 1.7;
}
.contact-locked-btn {
  display: inline-block;
  width: auto;
  margin-top: 14px;
  padding: 9px 22px;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20,16,28,.62);
}
.report-modal.active {
  display: flex;
}
.report-modal-panel {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.report-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(109,40,217,.10);
  background: var(--primary-light);
}
.report-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #2f273d;
}
.report-modal-title .si {
  color: var(--primary);
}
.report-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #6b6474;
  font-size: 22px;
  cursor: pointer;
}
.report-modal-body {
  padding: 18px;
}
.report-label {
  display: block;
  margin-bottom: 6px;
  color: #5f566d;
  font-size: 13px;
  font-weight: 700;
}
.report-tip {
  margin-top: 8px;
  color: #999;
  font-size: 12px;
}
.report-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
}
.report-modal-actions button {
  min-width: 88px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.report-modal-actions .report-submit-btn {
  width: auto;
  flex: 0 0 auto;
  min-width: 120px;
  padding: 0 18px;
}

/* ===== VIP PAGE ===== */
.vip-page {
  padding: 24px 0 46px;
}
.vip-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}
.vip-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  color: var(--primary);
  background: rgba(109,40,217,.08);
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.vip-head h1 {
  margin: 0;
  color: #21162f;
  font-size: 32px;
  line-height: 1.25;
}
.vip-head p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #7c7388;
  font-size: 15px;
  line-height: 1.7;
}
.vip-status-card {
  min-width: 250px;
  padding: 20px;
  border: 1px solid rgba(109,40,217,.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,245,255,.96)),
    radial-gradient(circle at top right, rgba(192,38,211,.12), transparent 40%);
  box-shadow: 0 12px 30px rgba(78,47,130,.10);
}
.vip-status-title {
  color: #8c8399;
  font-size: 12px;
  font-weight: 700;
}
.vip-status-value {
  margin-top: 8px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}
.vip-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, #fbfaff 58%, rgba(16,185,129,.08));
  box-shadow: 0 10px 26px rgba(78,47,130,.07);
}
.vip-hero-copy {
  display: grid;
  gap: 7px;
  color: #2f273d;
  font-size: 18px;
  line-height: 1.5;
}
.vip-hero-label {
  width: fit-content;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}
.vip-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.vip-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(16,185,129,.18);
  border-radius: 999px;
  background: rgba(16,185,129,.08);
  color: #047857;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.vip-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 8px;
  background: rgba(16,185,129,.08);
  color: #047857;
  font-size: 13px;
}
.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.vip-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248,245,255,.52), rgba(255,255,255,0) 118px),
    #fff;
  box-shadow: 0 14px 32px rgba(78,47,130,.08);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.vip-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(109,40,217,.32);
  box-shadow: 0 16px 38px rgba(78,47,130,.13);
}
.vip-plan-card.is-recommended {
  border-color: rgba(109,40,217,.46);
  box-shadow: 0 18px 42px rgba(109,40,217,.16);
}
.vip-plan-card.is-value {
  border-color: rgba(16,185,129,.42);
  box-shadow: 0 18px 42px rgba(16,185,129,.13);
  background:
    linear-gradient(180deg, rgba(16,185,129,.08), rgba(255,255,255,0) 126px),
    #fff;
}
.vip-recommend-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  width: 120px;
  padding: 5px 0;
  transform: rotate(35deg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.vip-value-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  width: 120px;
  padding: 5px 0;
  transform: rotate(35deg);
  background: linear-gradient(135deg, #10B981, #C026D3);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 18px rgba(16,185,129,.18);
}
.vip-plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.vip-plan-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(109,40,217,.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.vip-plan-name {
  color: #2f273d;
  font-size: 21px;
  font-weight: 900;
}
.vip-plan-cycle {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.vip-plan-price {
  margin-top: 18px;
  color: var(--primary);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}
.vip-plan-price span {
  margin-right: 2px;
  font-size: 18px;
}
.vip-plan-desc {
  min-height: 22px;
  margin-top: 10px;
  color: #6f647d;
  font-size: 13px;
  line-height: 1.5;
}
.vip-benefits {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.vip-benefit-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(109,40,217,.09);
  border-radius: 8px;
  background: rgba(248,245,255,.62);
  color: #4f465d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}
.vip-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 12px;
}
.vip-benefit-icon .si {
  display: none;
}
.vip-benefit-icon::before {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.vip-plan-btn {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 7px;
  box-shadow: 0 10px 20px rgba(109,40,217,.18);
}
.vip-plan-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.vip-confirm-page {
  padding: 24px 0 46px;
}
.vip-confirm-head {
  margin-bottom: 18px;
}
.vip-confirm-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #6b6179;
  font-size: 13px;
  font-weight: 800;
}
.vip-confirm-head h1 {
  margin: 0;
  color: #21162f;
  font-size: 30px;
  line-height: 1.25;
}
.vip-confirm-head p {
  max-width: 640px;
  margin: 10px 0 0;
  color: #7c7388;
  font-size: 15px;
  line-height: 1.7;
}
.vip-confirm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.vip-confirm-main,
.vip-confirm-card {
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(78,47,130,.09);
}
.vip-confirm-main {
  display: grid;
  gap: 0;
  overflow: hidden;
}
.vip-confirm-section {
  padding: 22px;
  border-bottom: 1px solid rgba(109,40,217,.10);
}
.vip-confirm-section:last-child {
  border-bottom: none;
}
.vip-confirm-section-title {
  margin-bottom: 14px;
  color: #2f273d;
  font-size: 16px;
  font-weight: 900;
}
.vip-confirm-lines {
  display: grid;
  gap: 10px;
}
.vip-confirm-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--primary-light);
}
.vip-confirm-lines span {
  color: #7c7388;
  font-size: 13px;
  font-weight: 700;
}
.vip-confirm-lines strong {
  color: #2f273d;
  font-size: 14px;
  text-align: right;
  word-break: break-all;
}
.vip-confirm-benefits {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(109,40,217,.10);
}
.vip-confirm-card {
  position: sticky;
  top: 76px;
  padding: 22px;
}
.vip-confirm-card-label {
  color: #8c8399;
  font-size: 13px;
  font-weight: 800;
}
.vip-confirm-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}
.vip-confirm-price {
  color: var(--primary);
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  min-width: 0;
}
.vip-confirm-price span {
  margin-right: 2px;
  font-size: 20px;
}
.vip-confirm-alipay {
  width: 112px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}
.vip-confirm-pay-btn {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 7px;
  box-shadow: 0 10px 20px rgba(109,40,217,.18);
}
.vip-confirm-note {
  margin-top: 14px;
  color: #8c8399;
  font-size: 12px;
  line-height: 1.6;
}

/* ===== AUTH PAGES ===== */
.auth-wrap {
  min-height: calc(100vh - 51px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
}
.auth-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #222;
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--primary); }
.form-select, select.form-input {
  width: 100%;
  font-size: 14px;
}
select.form-input:focus { border-color: var(--primary); }
select:not([multiple]) {
  min-height: 40px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 999px;
  padding: 0 38px 0 14px;
  outline: none;
  color: #332a44;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%236D28D9' d='M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301 192 288 192H32c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 9px 14px;
  box-shadow: 0 6px 18px rgba(109,40,217,.08);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s, color .2s;
}
select:not([multiple]):hover,
select:not([multiple]):focus {
  border-color: rgba(109,40,217,.32);
  background-color: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(109,40,217,.14);
}
select:not([multiple]):disabled {
  color: #9a92a6;
  background-color: #f7f4fb;
  cursor: not-allowed;
  box-shadow: none;
}
select:not([multiple]) option {
  color: #332a44;
  background: #fff;
  font-weight: 600;
}
.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-select {
  position: relative;
  display: inline-block;
  min-width: 110px;
  vertical-align: middle;
  font-size: 14px;
}
.custom-select.open {
  z-index: 8000;
}
.custom-select--form {
  display: block;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 999px;
  padding: 0 13px 0 14px;
  background: #fff;
  color: #332a44;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(109,40,217,.08);
  transition: border-color .2s, box-shadow .2s, background .2s, color .2s;
}
.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: rgba(109,40,217,.32);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(109,40,217,.14);
}
.custom-select-trigger-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
}
.custom-select-arrow {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9d94aa;
  transition: transform .18s, border-color .18s;
}
.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  border-top-color: var(--primary);
}
.custom-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: max(100%, 168px);
  width: max-content;
  max-width: min(320px, 88vw);
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(109,40,217,.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(44,29,72,.18);
  z-index: 7000;
}
.custom-select.open .custom-select-menu {
  display: block;
}
.custom-select-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: #332a44;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background .15s, color .15s, transform .15s;
}
.custom-select-option::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: rgba(109,40,217,.08);
  box-shadow: inset 0 0 0 1px rgba(109,40,217,.08);
}
.custom-select-option.is-selected::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(109,40,217,.20);
}
.custom-select-option:hover,
.custom-select-option.is-selected {
  background: var(--primary-light);
  color: var(--primary);
}
.custom-select-option:hover {
  transform: translateX(1px);
}
.custom-select-option.is-disabled {
  color: #aaa;
  cursor: not-allowed;
  background: transparent;
  transform: none;
}
.custom-select-option.is-disabled::before {
  background: #eee;
  box-shadow: none;
}
.home-filter-field .custom-select {
  min-width: 136px;
  max-width: 178px;
}
.home-filter-field .custom-select-trigger,
.home-mobile-sort-form .custom-select-trigger {
  min-height: 38px;
}
.home-mobile-sort-form .custom-select {
  width: 100%;
}
.home-filter-field select,
.home-mobile-sort-form select {
  height: 38px;
  min-height: 38px;
}
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled,
.btn-submit:disabled:hover {
  cursor: not-allowed;
  color: #9b93a8;
  background: #eee8f7;
  box-shadow: none;
}
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: #999; }
.auth-footer a { color: var(--primary); }
.switch-control {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-control span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #ddd;
  cursor: pointer;
  transition: background .2s;
}
.switch-control span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s;
}
.switch-control input:checked + span {
  background: var(--primary);
}
.switch-control input:checked + span::before {
  transform: translateX(22px);
}
.crawl-draft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.crawl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(78,47,130,.08);
}
.crawl-card-media {
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary-light);
  padding: 8px;
}
.crawl-media-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  color: #6b6178;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.crawl-media-head span:first-child {
  color: #352a46;
}
.crawl-media-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  height: 158px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.crawl-media-thumb {
  position: relative;
  flex: 0 0 118px;
  width: 118px;
  height: 150px;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}
.crawl-media-thumb-image {
  cursor: grab;
}
.crawl-media-thumb-image:active {
  cursor: grabbing;
}
.crawl-media-thumb-image.is-dragging {
  opacity: .58;
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(109,40,217,.18);
}
.crawl-media-thumb img,
.crawl-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.crawl-cover-badge,
.crawl-drag-badge {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}
.crawl-cover-badge {
  left: 5px;
  top: 5px;
  padding: 3px 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 16px rgba(109,40,217,.20);
}
.crawl-drag-badge {
  left: 50%;
  bottom: 6px;
  min-width: 66px;
  padding: 4px 8px;
  border: 0;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(109,40,217,.82);
  box-shadow: 0 8px 16px rgba(109,40,217,.18);
  cursor: pointer;
  pointer-events: auto;
}
.crawl-delete-media-btn {
  position: absolute;
  z-index: 3;
  right: 5px;
  top: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(239,68,68,.9);
  box-shadow: 0 8px 16px rgba(239,68,68,.22);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: .92;
  transition: opacity .16s ease, transform .16s ease;
}
.crawl-media-thumb-image:hover .crawl-delete-media-btn {
  opacity: 1;
}
.crawl-delete-media-btn:hover {
  transform: scale(1.06);
}
.crawl-media-thumb-image:hover .crawl-drag-badge,
.crawl-media-thumb-image.is-cover .crawl-cover-badge {
  display: inline-flex;
}
.crawl-media-thumb-image.is-cover .crawl-drag-badge {
  display: none;
}
.crawl-media-thumb-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,28,0) 48%, rgba(20,16,28,.34));
  pointer-events: none;
}
.crawl-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(44,29,72,.28);
  transition: transform .16s, background .16s, color .16s;
}
.crawl-media-play .si {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}
.crawl-media-thumb-video:hover .crawl-media-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.crawl-media-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 11px;
}
.crawl-card-empty {
  color: #aaa;
  font-size: 13px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crawl-card-body {
  min-width: 0;
}
.crawl-status-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.crawl-city-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  scrollbar-width: none;
}
.crawl-city-tabs::-webkit-scrollbar {
  display: none;
}
.crawl-filter-label {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}
.crawl-city-tabs .city-filter-pill {
  flex: 0 0 auto;
}
.crawl-city-filter {
  margin: 0;
}
.crawl-city-filter select {
  width: auto;
  min-width: 128px;
  height: 36px;
  padding: 0 34px 0 14px;
  border-color: rgba(109,40,217,.16);
  border-radius: 999px;
  background-color: #fff;
  color: #2b2338;
  font-size: 14px;
  font-weight: 900;
}
.crawl-bulk-extract-btn {
  margin-left: auto;
  min-height: 32px;
  font-weight: 800;
}
.crawl-bulk-extract-btn:disabled {
  opacity: .62;
  cursor: not-allowed;
}
.tg-channel-create-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(180px, .9fr) minmax(160px, .8fr) auto;
  gap: 10px;
  align-items: end;
}
.tg-city-picker {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248,245,255,.84), rgba(255,255,255,.96));
}
.tg-city-picker-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #7b7288;
  font-size: 13px;
  font-weight: 800;
}
.tg-city-picker-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}
.tg-city-picker-head strong {
  color: #2b2338;
  font-size: 14px;
}
.tg-city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tg-city-option {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 999px;
  background: #fff;
  color: #51485f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.tg-city-option:hover,
.tg-city-option.active {
  color: var(--primary);
  border-color: rgba(109,40,217,.36);
  background: #fff;
  box-shadow: 0 8px 18px rgba(109,40,217,.12);
}
.tg-city-option.active {
  background: var(--primary-light);
}
.crawl-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.crawl-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.crawl-enrich-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.crawl-enrich-status.is-done {
  color: #047857;
  background: rgba(16,185,129,.12);
}
.crawl-enrich-status.is-running {
  color: #b45309;
  background: rgba(245,158,11,.14);
}
.crawl-enrich-status.is-pending {
  color: var(--primary);
  background: var(--primary-light);
}
.crawl-enrich-status.is-failed {
  color: #dc2626;
  background: rgba(239,68,68,.10);
}
.crawl-enrich-error {
  margin-top: 8px;
  border: 1px solid rgba(239,68,68,.16);
  border-radius: 8px;
  padding: 8px 10px;
  color: #b91c1c;
  background: #fff5f5;
  font-size: 12px;
  line-height: 1.5;
}
.crawl-source {
  font-weight: 700;
  color: #2f2938;
}
.crawl-raw-text {
  max-height: 74px;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--primary-light);
  color: #4b4458;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.crawl-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.crawl-review-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.crawl-field-wide {
  grid-column: 1 / -1;
}
.crawl-content-input {
  resize: vertical;
  margin-top: 8px;
  min-height: 156px;
}
.crawl-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.media-preview {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20,16,28,.76);
}
.media-preview.active {
  display: flex;
}
.media-preview-inner {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
}
.media-preview-inner img,
.media-preview-inner video {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  background: #000;
}
.media-preview-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #2f2938;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.alert-error {
  background: #fff0f0;
  border: 1px solid #ffc0c0;
  color: #c00;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-success {
  background: #f0fff4;
  border: 1px solid #b7eb8f;
  color: #135200;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.role-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.role-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  font-size: 13px;
  cursor: pointer;
  background: #fafafa;
  color: #666;
  border: none;
  border-right: 1px solid var(--border);
  transition: all .15s;
}
.role-tab:last-child { border-right: none; }
.role-tab.active { background: var(--primary); color: #fff; }

/* ===== CHAT ROOM ===== */
.chat-room-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 51px);
  background: #f0f0f0;
}
.chat-room-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-back-btn { color: #555; font-size: 18px; text-decoration: none; }
.chat-back-btn:hover { color: var(--primary); }
.chat-room-name { font-size: 15px; font-weight: 600; flex: 1; color: #222; }
.chat-room-sub { font-size: 12px; color: #999; }
.chat-warning {
  background: #fff9e6;
  border-bottom: 1px solid #ffe58f;
  padding: 6px 16px;
  font-size: 12px;
  color: #886600;
  flex-shrink: 0;
}
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.message-row.message-mine { flex-direction: row-reverse; }
.msg-avatar img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.message-bubble-wrap {
  max-width: 65%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.message-mine .message-bubble-wrap { align-items: flex-end; }
.msg-sender-name { font-size: 11px; color: #aaa; }
.message-bubble {
  background: #fff;
  border-radius: 12px 12px 12px 2px;
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.message-mine .message-bubble {
  background: var(--primary);
  color: #fff;
  border-radius: 12px 12px 2px 12px;
}
.msg-time { font-size: 11px; color: #bbb; padding: 0 4px; }
.chat-input-wrap {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  flex-shrink: 0;
}
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.4;
}
.chat-textarea:focus { border-color: var(--primary); }
.btn-send {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 14px;
  cursor: pointer;
}
.btn-send:hover { background: var(--primary-dark); }
.btn-send:disabled { opacity: .7; cursor: not-allowed; }
.send-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}
.chat-input-hint { font-size: 11px; color: #ccc; margin-top: 4px; text-align: right; }
.chat-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.chat-tool-btn {
  background: none;
  border: none;
  font-size: 20px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
}
.chat-tool-btn:hover { background: #f0f0f0; }
.emoji-panel {
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.emoji-item {
  font-size: 22px;
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  line-height: 1;
  transition: background .1s;
}
.emoji-item:hover { background: #f0f0f0; }
.chat-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 6px;
  display: block;
  cursor: zoom-in;
  object-fit: cover;
}
.chat-map {
  width: 220px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 640px) {
  .chat-map { width: 180px; height: 130px; }
}
.chat-error {
  background: #fff0f0;
  border: 1px solid #ffc0c0;
  color: #c00;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  margin-bottom: 6px;
  display: none;
}

/* ===== HEADER USER DROPDOWN ===== */
.header-user-dropdown {
  position: relative;
  margin-left: auto;
}
.header-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  background: #fff;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 999px;
  padding: 4px 13px 4px 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #332a44;
  transition: all .2s;
  position: relative;
  box-shadow: 0 6px 18px rgba(109,40,217,.08);
}
.header-user-trigger:hover {
  border-color: rgba(109,40,217,.32);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(109,40,217,.14);
}
.header-uname { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-dropdown-arrow { font-size: 10px; color: #aaa; margin-left: -2px; }
.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.msg-badge {
  position: absolute;
  top: 2px;
  left: 18px;
  width: 9px;
  height: 9px;
  background: #f33;
  border-radius: 50%;
  border: 2px solid #fff;
  pointer-events: none;
}
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 168px;
  z-index: 500;
  overflow: hidden;
  padding: 4px 0;
}
.header-user-dropdown.open .user-dropdown-menu { display: block; }
.udm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}
.udm-item:hover { background: var(--primary-light); color: var(--primary); }
.udm-item .si { flex-shrink: 0; }
.udm-badge {
  margin-left: auto;
  background: #f33;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
}
.udm-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.udm-danger { color: #e55 !important; }
.udm-danger:hover { background: #fff5f5 !important; }

/* ===== CHAT LIST HEADER ===== */
.chat-list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.chat-list-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== CHAT LIST ===== */
.chat-list-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.chat-list-item:last-child { border-bottom: none; }
.chat-list-item:hover { background: #fafafa; }
.chat-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
}
.chat-list-info { flex: 1; min-width: 0; }
.chat-list-name { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 3px; }
.chat-list-last { font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-time { font-size: 11px; color: #bbb; flex-shrink: 0; }

/* ===== HEADER ADMIN DROPDOWN ===== */
.site-nav-dd {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
}
.site-nav-dd-trigger {
  padding: 0 16px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #4b4458;
  border-radius: 999px;
  transition: color .2s, background .2s, box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav-dd-trigger:hover,
.site-nav-dd-trigger.active,
.site-nav-dd.open .site-nav-dd-trigger {
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px rgba(109,40,217,.14);
}
.site-nav-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(70,36,130,.16);
  min-width: 152px;
  z-index: 500;
  padding: 6px;
  overflow: hidden;
}
.site-nav-dd.open .site-nav-dd-menu { display: block; }
.site-nav-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #3f354f;
  border-radius: 6px;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.site-nav-dd-item:hover { background: var(--primary-light); color: var(--primary); }

/* ===== INFO PAGES + FOOTER ===== */
.info-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 54px;
}
.info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.info-hero-text,
.info-hero-card,
.info-action-card,
.info-faq,
.info-panel,
.info-steps,
.info-notes {
  background: #fff;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(109,40,217,.08);
}
.info-hero-text {
  padding: 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
  margin-bottom: 14px;
}
.info-hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
  color: #21162f;
  letter-spacing: 0;
}
.info-hero p,
.info-panel p {
  margin: 0;
  color: #756a85;
  line-height: 1.8;
}
.info-hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
}
.info-card-label {
  font-size: 13px;
  color: #8d829d;
  font-weight: 700;
}
.info-contact-link,
.info-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(109,40,217,.20);
}
.info-contact-link:hover,
.info-primary-btn:hover {
  color: #fff;
  filter: brightness(1.04);
}
.info-muted { color: #999; }
.info-stack {
  display: grid;
  gap: 10px;
  color: #4c4358;
  line-height: 1.6;
}
.info-stack span {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--primary-light);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.info-action-card {
  padding: 22px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.info-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(109,40,217,.28);
  box-shadow: 0 18px 42px rgba(109,40,217,.13);
}
.info-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.info-action-card h2,
.info-step h2 {
  margin: 0 0 8px;
  color: #241a34;
  font-size: 18px;
}
.info-action-card p,
.info-faq-item p,
.info-step p {
  margin: 0;
  color: #756a85;
  line-height: 1.75;
}
.info-faq,
.info-panel,
.info-steps,
.info-notes {
  padding: 22px;
  margin-bottom: 18px;
}
.info-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #21162f;
  margin-bottom: 14px;
}
.info-faq-item {
  padding: 16px 0;
  border-top: 1px solid rgba(109,40,217,.10);
}
.info-faq-item:first-of-type { border-top: 0; padding-top: 0; }
.info-faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #342743;
}
.info-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.info-city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.info-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fbf9ff;
  border: 1px solid rgba(109,40,217,.10);
}
.info-city-card strong { color: #261a38; }
.info-city-card span { color: #8d829d; font-size: 13px; }
.info-empty {
  padding: 36px;
  text-align: center;
  border-radius: 8px;
  color: #998faa;
  background: #fbf9ff;
}
.info-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.info-step {
  display: flex;
  gap: 12px;
}
.info-step b {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-notes {
  display: grid;
  gap: 10px;
}
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #665a75;
  line-height: 1.7;
}
.info-note .si { color: var(--primary); margin-top: 3px; }
.archive-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 16px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.18);
  color: #047857;
  font-weight: 800;
  font-size: 13px;
}
.archive-city-card {
  min-height: 76px;
}
.archive-city-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.archive-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(109,40,217,.18);
}
.archive-download-btn:hover {
  color: #fff;
  filter: brightness(1.04);
}
.tg-city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tg-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(109,40,217,.14);
  background: #fbf9ff;
  color: #332742;
}
.tg-city-pill strong {
  color: inherit;
}
.tg-city-pill span {
  color: #8d829d;
  font-size: 13px;
}
.tg-city-pill.active {
  color: var(--primary);
  border-color: rgba(109,40,217,.34);
  background: var(--primary-light);
  box-shadow: 0 10px 20px rgba(109,40,217,.10);
}
.tg-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tg-group-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(109,40,217,.12);
  background: linear-gradient(135deg, #fff, #fbf8ff);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.tg-group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(109,40,217,.28);
  box-shadow: 0 14px 30px rgba(78,47,130,.10);
}
.tg-group-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.tg-group-card span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.tg-group-card strong {
  color: #2b203a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-group-card em {
  color: #8d829d;
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-group-card b {
  color: var(--primary);
  font-size: 13px;
}
.tg-locked {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 38px 18px;
  text-align: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at top, rgba(109,40,217,.10), transparent 48%),
    #fbf9ff;
}
.tg-locked > div {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 10px 24px rgba(109,40,217,.12);
}
.tg-locked strong {
  color: #21162f;
  font-size: 20px;
}
.tg-locked p {
  max-width: 440px;
}
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(109,40,217,.12);
  margin-top: 28px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 18px;
}
.site-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}
.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
}
.site-footer-logo-img {
  width: 34px;
  height: 28px;
  object-fit: contain;
}
.site-footer-brand p {
  margin: 10px 0 0;
  color: #82778f;
  line-height: 1.7;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #594d68;
  background: var(--primary-light);
  font-weight: 700;
}
.site-footer-links a:hover {
  color: var(--primary);
}
.site-footer-contact {
  padding: 14px;
  border-radius: 8px;
  background: #fbf9ff;
  border: 1px solid rgba(109,40,217,.10);
}
.site-footer-contact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #665a75;
  font-weight: 800;
  margin-bottom: 8px;
}
.site-footer-contact a {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(109,40,217,.10);
  color: #9a8faa;
  font-size: 13px;
}

/* ===== ADMIN BREADCRUMB ===== */
.admin-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 8px 0;
}
.admin-breadcrumb-cur {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  background: #fff;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.admin-breadcrumb-back:hover { color: var(--primary); border-color: var(--primary); }

/* ===== ADMIN / MERCHANT ===== */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
.merchant-form-wrap {
  max-width: 1200px;
}
.merchant-dashboard-wrap {
  max-width: 1200px;
}
.admin-wrap-wide {
  max-width: 1440px;
}
.admin-page-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}
.admin-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.admin-nav a {
  padding: 10px 20px;
  font-size: 14px;
  color: #555;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}
.stat-num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: #999; margin-top: 4px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.data-table th {
  background: #fafafa;
  padding: 10px 14px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }
.admin-service-cover {
  position: relative;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f5ff;
  border: 1px solid rgba(109,40,217,.12);
  box-shadow: 0 6px 14px rgba(42,29,69,.08);
  vertical-align: middle;
}
.admin-service-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.admin-service-cover-empty {
  color: rgba(109,40,217,.45);
  font-size: 20px;
}
.admin-service-cover-id {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #6D28D9;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(42,29,69,.12);
}
.btn-sm-pink {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.btn-sm-gray {
  background: #f5f5f5;
  color: #555;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.btn-sm-danger {
  background: #fff;
  color: #f00;
  border: 1px solid #ffc0c0;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 220px;
}
.admin-inline-actions a,
.admin-inline-actions button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.admin-action-menu {
  position: relative;
  display: inline-block;
}
.admin-action-trigger {
  min-width: 82px;
  height: 30px;
  border: 1px solid rgba(109,40,217,.18);
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.admin-action-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: none;
  min-width: 138px;
  padding: 6px;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(42,29,69,.16);
}
.admin-action-menu.open .admin-action-panel {
  display: grid;
  gap: 6px;
}
.admin-action-panel a,
.admin-action-panel button {
  width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}
.tag-pending { color: #fa8c16; }
.tag-active { color: #10B981; }
.tag-rejected, .tag-banned { color: #f5222d; }

/* ===== ADMIN POLISH ===== */
.site-nav-dd-menu,
.user-dropdown-menu {
  border-color: rgba(109,40,217,.12);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(49,31,80,.18);
}
.site-nav-dd-menu {
  min-width: 178px;
  padding: 8px;
}
.site-nav-dd-item,
.udm-item {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}
.site-nav-dd-item .si,
.udm-item .si {
  width: 18px;
  height: 18px;
  color: #433850;
}
.site-nav-dd-item:hover .si,
.udm-item:hover .si {
  color: var(--primary);
}
.admin-wrap {
  padding-top: 24px;
  padding-bottom: 42px;
}
.admin-wrap::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent), #10B981);
  opacity: .85;
}
.admin-nav {
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(74,45,121,.08);
  overflow: visible;
}
.admin-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #5b5168;
  font-weight: 800;
  text-decoration: none;
}
.admin-nav a .si {
  width: 17px;
  height: 17px;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px rgba(109,40,217,.10);
}
.admin-page-title {
  color: #241930;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}
.stat-grid {
  gap: 14px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(109,40,217,.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
  box-shadow: 0 16px 38px rgba(74,45,121,.08);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.stat-num {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}
.stat-label {
  margin-top: 8px;
  color: #756a84;
  font-weight: 700;
}
.form-card {
  border-color: rgba(109,40,217,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 40px rgba(74,45,121,.08);
}
.page-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #241930;
  font-size: 17px;
  font-weight: 900;
  border-bottom-color: rgba(109,40,217,.10);
}
.page-section-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.data-table {
  border-collapse: separate;
  border-spacing: 0;
  border-color: rgba(109,40,217,.12);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(74,45,121,.07);
}
.data-table th {
  height: 46px;
  background: linear-gradient(180deg, #fbf9ff 0%, #f6f1ff 100%);
  color: #665a74;
  font-size: 12px;
  font-weight: 900;
}
.data-table td {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #352b42;
  border-bottom-color: rgba(109,40,217,.08);
}
.data-table tbody tr:hover td {
  background: #fbf9ff;
}
.data-table code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: #5b21b6;
  background: var(--primary-light);
  font-family: inherit;
  font-weight: 800;
}
.tag-pending,
.tag-active,
.tag-rejected,
.tag-banned {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.tag-pending {
  color: #b45309;
  background: rgba(245,158,11,.14);
}
.tag-active {
  color: #047857;
  background: rgba(16,185,129,.12);
}
.tag-rejected,
.tag-banned {
  color: #dc2626;
  background: rgba(239,68,68,.10);
}
.btn-submit,
.btn-sm-pink,
.btn-sm-gray,
.btn-sm-danger {
  border-radius: 8px;
  font-weight: 900;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn-submit,
.btn-sm-pink {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 22px rgba(109,40,217,.18);
}
.btn-submit:hover,
.btn-sm-pink:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(109,40,217,.24);
}
.btn-sm-pink,
.btn-sm-gray,
.btn-sm-danger {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  text-decoration: none;
}
.btn-sm-gray {
  color: #54495f;
  background: #fff;
  border-color: rgba(109,40,217,.14);
}
.btn-sm-gray:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(109,40,217,.24);
}
.btn-sm-danger {
  color: #dc2626;
  border-color: rgba(239,68,68,.18);
  background: #fff;
}
.btn-sm-danger:hover {
  background: #fff5f5;
  border-color: rgba(239,68,68,.28);
}
.admin-inline-actions {
  min-width: 0;
}
.admin-action-input {
  width: 72px;
  height: 32px;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.admin-action-trigger {
  min-width: 92px;
  height: 34px;
  border-radius: 8px;
  border-color: rgba(109,40,217,.18);
  background: #fff;
  box-shadow: 0 8px 18px rgba(74,45,121,.08);
}
.admin-action-menu.open .admin-action-trigger,
.admin-action-trigger:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.admin-action-panel {
  min-width: 152px;
  padding: 8px;
  border-radius: 8px;
  border-color: rgba(109,40,217,.12);
  box-shadow: 0 18px 42px rgba(49,31,80,.18);
}
.filter-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-color: rgba(109,40,217,.14);
  border-radius: 999px;
  background: #fff;
  color: #554a62;
  font-weight: 900;
}
.filter-pill:hover,
.filter-pill.active {
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px rgba(109,40,217,.12);
}
.empty-state {
  border-color: rgba(109,40,217,.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
  box-shadow: 0 16px 40px rgba(74,45,121,.07);
}
.empty-state .icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== ERROR PAGE ===== */
.error-page {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 72px;
}
.error-card {
  width: min(680px, 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248,245,255,.96), rgba(255,255,255,.98)), #fff;
  box-shadow: 0 22px 70px rgba(74,45,121,.14);
  padding: 54px 38px 34px;
}
.error-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.error-mark {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(109,40,217,.12);
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.error-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 36px rgba(109,40,217,.28);
}
.error-icon .si {
  width: 34px;
  height: 34px;
}
.error-card h1 {
  margin: 0;
  color: #251b35;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 900;
}
.error-card p {
  max-width: 440px;
  margin: 12px auto 0;
  color: #756a84;
  font-size: 15px;
  line-height: 1.8;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.error-primary-btn,
.error-secondary-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.error-primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(109,40,217,.25);
}
.error-primary-btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.error-secondary-btn {
  border: 1px solid rgba(109,40,217,.18);
  background: #fff;
  color: var(--primary);
}
.error-secondary-btn:hover {
  background: var(--primary-light);
}
.error-hints {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b0a7bd;
  font-size: 13px;
}
.error-hints a {
  color: #6d5c7d;
  text-decoration: none;
}
.error-hints a:hover {
  color: var(--primary);
}
.error-hints span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(109,40,217,.28);
}
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.page-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #aaa;
}
.home-empty-state {
  min-height: 320px;
  margin-top: 18px;
  padding: 44px 20px;
  border-color: rgba(109, 40, 217, .12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% -18%, rgba(192, 38, 211, .16), transparent 42%),
    linear-gradient(180deg, #fff 0%, #f8f5ff 100%);
  box-shadow: 0 18px 44px rgba(109, 40, 217, .08);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.home-empty-visual {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(109, 40, 217, .07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(109, 40, 217, .14);
}
.home-empty-icon .si {
  width: 26px;
  height: 26px;
}
.home-empty-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  color: #251a38;
}
.home-empty-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.home-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.home-empty-actions a {
  min-width: 132px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.home-empty-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px rgba(109, 40, 217, .18);
}
.home-empty-secondary {
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(109, 40, 217, .2);
}

/* ===== PROFILE PAGE ===== */
.profile-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}
.profile-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(248,245,255,.98), rgba(255,255,255,.98)),
    #fff;
  box-shadow: 0 18px 54px rgba(74,45,121,.12);
  padding: 22px;
}
.profile-hero-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-avatar-lg {
  width: 86px;
  height: 86px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 42px;
  box-shadow: 0 14px 34px rgba(109,40,217,.22);
}
.profile-identity {
  min-width: 0;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.profile-name-row h1 {
  margin: 0;
  min-width: 0;
  color: #21192f;
  font-size: 26px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-role-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--primary);
  background: rgba(109,40,217,.10);
  font-size: 12px;
  font-weight: 800;
}
.profile-subtitle {
  margin-top: 5px;
  color: #8e849d;
  font-size: 13px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.profile-primary-action,
.profile-link-action,
.profile-panel-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.profile-primary-action,
.profile-panel-action {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 22px rgba(109,40,217,.18);
}
.profile-link-action {
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(109,40,217,.14);
}
.profile-primary-action:hover,
.profile-link-action:hover,
.profile-panel-action:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.profile-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  border: 1px solid rgba(109,40,217,.10);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}
.profile-stat-card span {
  color: #8e849d;
  font-size: 12px;
  font-weight: 700;
}
.profile-stat-card strong {
  margin-top: 4px;
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
}
.profile-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.profile-section-hd {
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-panel {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(109,40,217,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 36px rgba(74,45,121,.08);
}
.profile-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(109,40,217,.10);
  background: linear-gradient(180deg, #fff, #fbf9ff);
}
.profile-panel-hd h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #21192f;
  font-size: 18px;
  line-height: 1.3;
}
.profile-panel-hd h2 .si {
  color: var(--primary);
}
.profile-panel-hd p {
  margin: 3px 0 0;
  color: #9a91a7;
  font-size: 12px;
}
.profile-post-list {
  display: grid;
}
.profile-post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px 92px 156px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(109,40,217,.08);
}
.profile-post-item:last-child {
  border-bottom: 0;
}
.profile-post-item:hover {
  background: #fcfaff;
}
.profile-post-title {
  min-width: 0;
  color: #2d2638;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.profile-post-title:hover {
  color: var(--primary);
  text-decoration: none;
}
.profile-post-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-post-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  color: #746b80;
  background: var(--primary-light);
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-post-meta .si {
  color: var(--primary);
}
.profile-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}
.profile-status-active {
  color: #047857;
  background: rgba(16,185,129,.12);
}
.profile-status-pending {
  color: #b45309;
  background: rgba(245,158,11,.14);
}
.profile-status-rejected {
  color: #dc2626;
  background: rgba(239,68,68,.12);
}
.profile-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.profile-mini-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: #655a76;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.profile-mini-btn:hover {
  color: var(--primary);
  border-color: rgba(109,40,217,.28);
  background: var(--primary-light);
  text-decoration: none;
}
.profile-mini-danger {
  color: #ef4444;
  border-color: rgba(239,68,68,.22);
}
.profile-mini-danger:hover {
  color: #dc2626;
  border-color: rgba(239,68,68,.34);
  background: #fff5f5;
}
.profile-order-list {
  display: grid;
}
.profile-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 210px 92px 104px;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(109,40,217,.08);
}
.profile-order-item:last-child {
  border-bottom: 0;
}
.profile-order-item:hover {
  background: #fcfaff;
}
.profile-order-main {
  min-width: 0;
}
.profile-order-title {
  color: #2d2638;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}
.profile-order-no {
  margin-top: 4px;
  color: #9a91a7;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-order-price {
  color: #6D28D9;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.profile-order-time {
  display: grid;
  gap: 4px;
  color: #8c8399;
  font-size: 12px;
  line-height: 1.35;
}
.profile-order-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.profile-order-status.is-paid {
  color: #047857;
  background: rgba(16,185,129,.12);
}
.profile-order-status.is-pending {
  color: #b45309;
  background: rgba(245,158,11,.14);
}
.profile-order-status.is-closed {
  color: #6b7280;
  background: #f3f4f6;
}
.profile-order-actions {
  display: flex;
  justify-content: flex-end;
}
.profile-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
}
.profile-fav-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(109,40,217,.10);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(42,29,69,.07);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.profile-fav-card:hover {
  transform: translateY(-2px);
  border-color: rgba(109,40,217,.24);
  box-shadow: 0 14px 30px rgba(42,29,69,.12);
  text-decoration: none;
}
.profile-fav-img {
  position: relative;
  min-height: 112px;
  background: #f2eefb;
}
.profile-fav-img img,
.profile-fav-fallback {
  width: 100%;
  height: 100%;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}
.profile-fav-fallback {
  display: none;
  color: rgba(109,40,217,.38);
  background: var(--primary-light);
}
.profile-fav-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px;
}
.profile-fav-title {
  color: #2d2638;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-fav-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.profile-fav-tags span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 7px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 16px;
  color: #9a91a7;
}
.profile-empty-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-light);
}
.profile-empty h3 {
  margin: 0;
  color: #655a76;
  font-size: 16px;
}
.profile-empty a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.profile-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: none;
  border-radius: 8px;
  background: #2d2638;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(42,29,69,.18);
}
.profile-toast.show {
  display: block;
}
.password-panel {
  max-width: 760px;
  margin: 22px auto 0;
}
.password-form-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 28px 32px 34px;
}
.password-form {
  display: grid;
  gap: 18px;
}
.password-form .form-group {
  margin-bottom: 0;
}
.password-form .form-label {
  margin-bottom: 8px;
  color: #4f465d;
  font-size: 14px;
  font-weight: 800;
}
.password-form .form-input {
  min-height: 46px;
  border-radius: 8px;
  padding: 10px 14px;
  border-color: rgba(109,40,217,.16);
  background: #fff;
}
.password-form .form-input:focus {
  border-color: rgba(109,40,217,.62);
  box-shadow: 0 0 0 4px rgba(109,40,217,.08);
}
.password-submit-btn {
  width: auto;
  justify-self: start;
  min-width: 180px;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 30px;
  box-shadow: 0 12px 24px rgba(109,40,217,.18);
}

/* ===== MOBILE MENU (Drawer) ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
  padding: 6px;
  border-radius: 4px;
  margin-right: 4px;
  flex-shrink: 0;
}
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
  opacity: 0;
  transition: opacity .25s;
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 78vw;
  max-width: 300px;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit !important;
}
.drawer-logo-img {
  width: 38px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.drawer-logo-text {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}
.drawer-logo-char {
  font-size: 42px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -1px;
}
.drawer-logo .badge-logo {
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 2px;
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 6px;
  font-size: 22px;
  line-height: 1;
  margin-left: auto;
}
.drawer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.drawer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-username {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.drawer-role-tag {
  font-size: 11px;
  color: #fff;
  background: var(--primary);
  border-radius: 3px;
  padding: 1px 6px;
  margin-top: 2px;
  display: inline-block;
}
.drawer-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 14px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(109,40,217,.14);
  border-radius: 999px;
  background: var(--primary-light);
}
.drawer-search input {
  min-width: 0;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #2f273d;
  font-size: 14px;
}
.drawer-search button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.drawer-section {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-section-title {
  font-size: 11px;
  color: #aaa;
  padding: 6px 20px 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.drawer-section-toggle {
  width: calc(100% - 24px);
  margin: 4px 12px;
  min-height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: pointer;
}
.drawer-section-arrow {
  transition: transform .18s;
}
.drawer-section-toggle.open .drawer-section-arrow {
  transform: rotate(180deg);
}
.drawer-collapsible {
  display: none;
}
.drawer-collapsible.open {
  display: block;
}
.drawer-city-groups {
  padding: 4px 14px 8px;
}
.drawer-city-group {
  padding: 9px 0;
  border-top: 1px solid #f3effa;
}
.drawer-city-group:first-child {
  border-top: none;
}
.drawer-city-group-name {
  margin-bottom: 7px;
  color: #8a8198;
  font-size: 12px;
  font-weight: 700;
}
.drawer-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.drawer-city-links-flat {
  padding: 6px 14px 10px;
}
.drawer-city-links a {
  min-height: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-light);
  color: #5f566d;
  font-size: 12px;
  gap: 0;
}
.drawer-city-links a:hover,
.drawer-city-links a:active {
  color: var(--primary);
  background: #efe7ff;
}
.mobile-nav a {
  padding: 13px 20px;
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.mobile-nav a .si { flex-shrink: 0; }
.mobile-nav a:hover, .mobile-nav a:active { color: var(--primary); background: #F8F5FF; }
.mobile-nav a.danger { color: #e55; }
.mobile-nav a.danger:hover { background: #fff5f5; }
.mobile-nav .drawer-city-links a {
  min-height: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-light);
  color: #5f566d;
  font-size: 12px;
  gap: 0;
}
.mobile-nav .drawer-city-links a:hover,
.mobile-nav .drawer-city-links a:active {
  color: var(--primary);
  background: #efe7ff;
}

/* ===== IMAGE UPLOAD ===== */
.img-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.img-preview-card {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.img-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-preview-cover-badge,
.img-preview-cover-btn {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 14px rgba(109,40,217,.28);
}
.img-preview-cover-badge {
  display: none;
}
.img-preview-cover-btn {
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.img-preview-card:hover .img-preview-cover-btn,
.img-preview-card:focus-within .img-preview-cover-btn {
  opacity: 1;
  transform: translateY(0);
}
.img-preview-card.is-cover .img-preview-cover-badge {
  display: inline-flex;
  align-items: center;
}
.img-preview-card.is-cover .img-preview-cover-btn {
  display: none;
}
.video-preview-card {
  position: relative;
  width: 160px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #111;
}
.video-preview-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.video-preview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  pointer-events: none;
}
.video-preview-play .si {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.img-preview-del {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.img-upload-add {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s;
}
.img-upload-add:hover { border-color: var(--primary); }
.video-upload-add {
  width: 160px;
}
.img-uploading {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-upload-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ADMIN / MERCHANT FORM GRIDS ===== */
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.form-grid-cat {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto auto;
  gap: 10px;
}

/* ===== WECHAT-LIKE CHAT APP LAYOUT ===== */
.chat-app {
  display: flex;
  height: calc(100vh - 51px);
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* --- Sidebar (left panel) --- */
.chat-app-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-app-sb-hd {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-app-sb-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.sound-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--primary);
  display: flex;
  align-items: center;
  transition: background .15s;
}
.sound-toggle-btn:hover { background: var(--primary-light); }
.chat-app-sb-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.chat-app-sb-empty {
  padding: 60px 16px;
  text-align: center;
}

/* --- Room list items (cri = chat-room-item) --- */
.cri {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
  border-bottom: 1px solid #f7f7f7;
  position: relative;
}
.cri:hover { background: #f9f9f9; color: var(--text); }
.cri--active { background: var(--primary-light); }
.cri--active:hover { background: var(--primary-light); }

.cri__avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.cri__body {
  flex: 1;
  min-width: 0;
}
.cri__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}
.cri__name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cri__service {
  color: #aaa;
  font-weight: 400;
  font-size: 12px;
}
.cri__time {
  font-size: 11px;
  color: #bbb;
  flex-shrink: 0;
  white-space: nowrap;
}
.cri__btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.cri__preview {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cri__preview em { font-style: normal; color: #ccc; }
/* 第N次咨询特色 */
.consult-rank-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #fa8c16;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 10px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 18px;
  white-space: nowrap;
}

.cri__avatar--img {
  background: #eee;
  padding: 0;
  overflow: hidden;
}
.cri__avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cri__badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.cri__badge--hidden { display: none; }

/* --- Main panel (right) --- */
.chat-app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f9f9f9;
}
.chat-app-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  padding: 32px;
}

/* --- Back button (mobile only, hidden on desktop) --- */
.chat-back-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  padding: 4px 8px 4px 0;
  margin-right: 4px;
}

/* --- Context menu --- */
.chat-ctx-menu {
  position: fixed;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  padding: 4px 0;
  min-width: 140px;
  z-index: 9000;
  overflow: hidden;
}
.chat-ctx-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .1s;
}
.chat-ctx-item:hover { background: var(--bg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-card { height: 378px; }
  .merchant-post-card { height: 408px; }
  .list-card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
@media (max-width: 992px) {
  .main-sidebar { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-head,
  .vip-hero-panel { flex-direction: column; }
  .vip-hero-points { justify-content: flex-start; }
  .vip-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-confirm-grid { grid-template-columns: 1fr; }
  .vip-confirm-card { position: static; }
  .detail-desc-video-row { grid-template-columns: 1fr; }
  .detail-media-combo-grid { grid-template-columns: 1fr; }
  .detail-recommend-list { grid-template-columns: 1fr; }
  .detail-images img { height: 160px; }
  .detail-image-preview {
    padding: 12px;
  }
  .detail-image-preview img {
    max-width: 94vw;
    max-height: 82vh;
  }
  .detail-image-preview-nav {
    width: 42px;
    height: 42px;
    font-size: 36px;
    line-height: 36px;
    background: rgba(255,255,255,.86);
  }
  .detail-image-preview-prev {
    left: 10px;
  }
  .detail-image-preview-next {
    right: 10px;
  }
  .detail-image-preview-count {
    bottom: 12px;
  }
  .detail-videos video { max-height: 360px; }
  .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-card { height: 346px; }
  .merchant-post-card { height: 388px; }
  .list-card-img-wrap {
    flex-basis: 224px;
    height: 224px;
  }
  .form-grid-cat { grid-template-columns: 1fr 1fr; }
  .crawl-draft-list { grid-template-columns: 1fr; }
  .crawl-review-grid,
  .crawl-review-grid-compact { grid-template-columns: 1fr 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-post-item {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
  }
  .profile-post-meta {
    grid-column: 1 / -1;
    order: 3;
  }
  .profile-post-status {
    justify-self: end;
  }
  .profile-post-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 4;
  }
  .profile-order-item {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
  }
  .profile-order-time {
    grid-column: 1 / -1;
    order: 3;
  }
  .profile-order-status-wrap {
    justify-self: end;
  }
  .profile-order-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 4;
  }
  .tg-channel-create-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tg-channel-create-grid .btn-submit {
    width: 100% !important;
  }
}
@media (max-width: 900px) {
  .site-header .inner {
    gap: 10px;
    padding: 0 12px;
    max-width: 100%;
  }
  .site-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; }
  .home-filter-bar--desktop { display: none; }
  .home-filter-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(109,40,217,.12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(109,40,217,.06);
  }
  .home-mobile-sort-form {
    flex: 1;
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 999px;
    background: transparent;
  }
  .home-mobile-sort-form select {
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    font-size: 14px;
  }
  .home-mobile-filter-btn {
    flex: 0 0 auto;
    height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
  }
  .home-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(23,18,32,.48);
  }
  .home-filter-overlay.active { display: flex; }
  .home-filter-panel {
    width: 100%;
    max-height: 86vh;
    overflow: auto;
    padding: 18px 14px 86px;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -18px 44px rgba(22,16,36,.22);
  }
  .city-panel-row { align-items: flex-start; gap: 8px; padding: 9px; }
  .city-region-label { width: 44px; }
  .city-links {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
  }
  .city-links--primary {
    max-height: 64px;
    overflow: hidden;
  }
  .city-links--primary.expanded {
    max-height: none;
  }
  .city-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 1px;
  }
}
@media (max-width: 768px) {
  .site-header .inner {
    gap: 10px;
    padding: 0 12px;
  }
  .site-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; }
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-filter-bar--desktop { display: none; }
  .home-filter-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(109,40,217,.12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(109,40,217,.06);
  }
  .home-mobile-sort-form {
    flex: 1;
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 999px;
    background: transparent;
  }
  .home-mobile-sort-form select {
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    font-size: 14px;
  }
  .home-mobile-filter-btn {
    flex: 0 0 auto;
    height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
  }
  .home-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(23,18,32,.48);
  }
  .home-filter-overlay.active { display: flex; }
  .home-filter-panel {
    width: 100%;
    max-height: 86vh;
    overflow: auto;
    padding: 18px 14px 86px;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -18px 44px rgba(22,16,36,.22);
  }
}
@media (max-width: 640px) {
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }
  .merchant-post-card {
    height: auto;
  }
  .merchant-post-meta {
    gap: 5px;
  }
  .merchant-post-owner-row {
    display: none;
  }
  .merchant-status-badge {
    top: 4px;
    right: 4px;
    min-height: 24px;
    border-radius: 7px;
    padding: 0 8px;
    font-size: 11px;
  }
  .merchant-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 8px;
  }
  .merchant-card-actions .btn-sm-gray,
  .merchant-card-actions .btn-sm-pink,
  .merchant-card-actions .btn-sm-danger {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
  .img-preview-cover-btn {
    opacity: 1;
    transform: none;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .crawl-review-grid,
  .crawl-review-grid-compact { grid-template-columns: 1fr; }
  .vip-page { padding: 16px 0 32px; }
  .vip-head h1 { font-size: 24px; }
  .vip-head p { font-size: 14px; }
  .vip-status-card { min-width: 0; }
  .vip-hero-panel { padding: 15px; }
  .vip-hero-copy { font-size: 15px; }
  .vip-hero-points { gap: 6px; }
  .vip-hero-points span { height: 30px; font-size: 12px; }
  .vip-plan-grid { grid-template-columns: 1fr; }
  .vip-plan-card { min-height: 0; padding: 18px; }
  .vip-plan-price { font-size: 30px; }
  .vip-confirm-page { padding: 16px 0 32px; }
  .vip-confirm-head h1 { font-size: 24px; }
  .vip-confirm-head p { font-size: 14px; }
  .vip-confirm-section,
  .vip-confirm-card { padding: 16px; }
  .vip-confirm-lines { gap: 7px; }
  .vip-confirm-lines div {
    min-height: 0;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .vip-confirm-lines span {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
  }
  .vip-confirm-lines strong {
    min-width: 0;
    flex: 1;
    text-align: right;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
  }
  .vip-confirm-price { font-size: 34px; }
  .site-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; }
  .page-wrap { padding: 0 8px; }
  .profile-page {
    width: calc(100% - 18px);
    padding-top: 14px;
  }
  .profile-hero {
    padding: 15px;
    border-radius: 10px;
  }
  .profile-hero-main {
    align-items: flex-start;
    gap: 12px;
  }
  .profile-avatar-lg {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }
  .profile-name-row h1 {
    font-size: 21px;
  }
  .profile-actions {
    margin-top: 10px;
  }
  .profile-primary-action,
  .profile-link-action,
  .profile-panel-action {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }
  .profile-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .profile-stat-card {
    min-height: 70px;
    padding: 10px;
  }
  .profile-stat-card strong {
    font-size: 22px;
  }
  .profile-panel {
    border-radius: 10px;
  }
  .profile-panel-hd {
    align-items: flex-start;
    padding: 14px;
  }
  .profile-panel-hd h2 {
    font-size: 16px;
  }
  .password-panel {
    width: calc(100% - 24px);
    margin-top: 14px;
  }
  .password-panel .profile-panel-hd {
    gap: 10px;
    padding: 16px 18px;
  }
  .password-form-wrap {
    max-width: none;
    padding: 22px 18px 24px;
  }
  .password-submit-btn {
    width: 100%;
    min-width: 0;
  }
  .profile-post-item {
    padding: 13px 14px;
  }
  .profile-post-actions {
    flex-wrap: wrap;
  }
  .profile-order-item {
    padding: 13px 14px;
  }
  .profile-fav-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .sort-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .sort-tab { padding: 10px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .city-panel-row { align-items: flex-start; gap: 8px; padding: 9px; }
  .city-region-label { width: 44px; }
  .city-links {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
  }
  .city-links--primary { max-height: 64px; }
  .city-links--primary.expanded {
    max-height: none;
  }
  .city-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 1px;
  }
  .city-filter-pill { padding: 5px 10px; font-size: 12px; }
  .filter-row { gap: 6px; padding: 8px 10px; }
  .filter-pill { padding: 3px 10px; font-size: 12px; }
  .detail-recommend-list {
    gap: 10px;
    padding: 12px;
  }
  .detail-recommend-card {
    padding: 8px;
  }
  .detail-recommend-card img {
    width: 88px;
    height: 70px;
    flex-basis: 88px;
  }
  .detail-recommend-title {
    font-size: 13px;
  }
  .home-filter-bar--desktop { display: none; }
  .home-filter-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(109,40,217,.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(109,40,217,.06);
  }
  .home-mobile-sort-form {
    flex: 1;
    min-width: 0;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 999px;
    background: transparent;
  }
  .home-mobile-sort-form select {
    width: 100%;
    min-width: 0;
    height: 38px;
    min-height: 38px;
    font-size: 13px;
  }
  .home-mobile-filter-btn {
    flex: 0 0 auto;
    height: 38px;
    border: 1px solid rgba(109,40,217,.22);
    border-radius: 999px;
    padding: 0 15px;
    color: var(--primary);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .home-mobile-filter-btn.has-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 22px rgba(109,40,217,.22);
  }
  .home-filter-count {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 5px;
    color: var(--primary);
    background: rgba(255,255,255,.94);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }
  .home-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(23,18,32,.48);
  }
  .home-filter-overlay.active { display: flex; }
  .home-filter-panel {
    width: 100%;
    max-height: 86vh;
    overflow: auto;
    padding: 18px 14px 86px;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -18px 44px rgba(22,16,36,.22);
  }
  .home-filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .home-filter-panel-head strong {
    color: #251b35;
    font-size: 18px;
    font-weight: 900;
  }
  .home-filter-panel-head button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
  }
  .home-filter-group {
    padding: 14px 0;
    border-top: 1px solid rgba(109,40,217,.08);
  }
  .home-filter-group-title {
    margin-bottom: 10px;
    color: #241a33;
    font-size: 15px;
    font-weight: 900;
  }
  .home-filter-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .home-filter-chip {
    min-width: 0;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 8px;
    background: #f7f5fb;
    color: #3b3249;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .home-filter-chip.active {
    color: var(--primary);
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1px rgba(109,40,217,.22);
  }
  .home-filter-panel-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(109,40,217,.10);
    background: #fff;
  }
  .home-filter-panel-actions a,
  .home-filter-panel-actions button {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
  }
  .home-filter-panel-actions a {
    border-radius: 10px 0 0 10px;
    color: var(--primary);
    background: #fff;
  }
  .home-filter-panel-actions button {
    border-radius: 0 10px 10px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
  }
  .list-card { height: auto; margin-bottom: 8px; border-radius: 7px; }
  .list-card-img-wrap {
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .list-card-img { width: 100%; height: 100%; min-height: 0; }
  .list-card-body {
    flex: 0 0 auto;
    padding: 8px 8px 9px;
  }
  .list-card-title {
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .home-list-meta { margin-top: 7px; }
  .list-card-meta { gap: 5px; margin-top: 7px; }
  .list-card-meta span { font-size: 11px; padding: 4px 6px; }
  .home-list-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
  }
  .home-list-meta-row {
    display: contents;
  }
  .home-list-meta .meta-location {
    order: 1;
    grid-column: 1 / -1;
    width: 100%;
  }
  .home-list-meta .meta-time {
    order: 2;
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .home-list-meta .meta-price {
    order: 3;
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }
  .home-list-meta .meta-category {
    order: 4;
    grid-column: 1;
    width: 100%;
  }
  .home-list-meta .meta-vip,
  .home-list-meta .meta-public {
    order: 5;
    grid-column: 2;
    width: 100%;
  }
  .home-empty-state {
    min-height: 260px;
    margin-top: 12px;
    padding: 34px 14px;
    border-radius: 12px;
  }
  .home-empty-visual {
    width: 74px;
    height: 74px;
  }
  .home-empty-icon {
    width: 50px;
    height: 50px;
  }
  .home-empty-copy h2 {
    font-size: 19px;
  }
  .home-empty-copy p {
    font-size: 13px;
  }
  .home-empty-actions {
    width: 100%;
  }
  .home-empty-actions a {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .error-page {
    min-height: calc(100vh - 74px);
    padding: 32px 10px 48px;
  }
  .error-card {
    border-radius: 12px;
    padding: 46px 18px 26px;
  }
  .error-mark {
    top: 14px;
    right: 16px;
    font-size: 52px;
  }
  .error-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }
  .error-card h1 { font-size: 24px; }
  .error-actions { flex-direction: column; }
  .error-primary-btn,
  .error-secondary-btn { width: 100%; }

  /* Chat app mobile: single-column panel toggle */
  .chat-app { position: relative; overflow: hidden; }
  .chat-app-sidebar {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 1;
    display: flex;
  }
  .chat-app-main {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 1;
  }
  .chat-app.room-open .chat-app-sidebar { display: none; }
  .chat-app.room-open .chat-app-main { display: flex; }
  .chat-back-mobile { display: inline-flex; }

  /* Chat room mobile */
  .chat-input-wrap { padding: 6px 10px 8px; }
  .chat-toolbar { padding: 4px 0 3px; gap: 0; }
  .chat-tool-btn { font-size: 17px; padding: 4px 10px; }
  .chat-input-row { gap: 6px; }
  .chat-textarea { font-size: 15px; padding: 8px 10px; }
  .btn-send { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
  .emoji-panel { max-height: 140px; }
  .emoji-item { font-size: 20px; }

  /* Admin / Merchant mobile */
  .admin-wrap { padding: 12px 10px 28px; }
  .admin-wrap::before { margin-bottom: 12px; }
  /* admin-nav: override base overflow:hidden so horizontal scroll works */
  .admin-nav { overflow: auto hidden; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 8px; padding: 6px; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { padding: 0 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; min-height: 38px; display: flex; align-items: center; gap: 5px; }
  .admin-page-title { font-size: 21px; }
  .form-card { padding: 14px 12px; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .form-grid-cat { grid-template-columns: 1fr 1fr; }
  .tg-channel-create-grid { grid-template-columns: 1fr; }
  .tg-city-picker { padding: 10px; }
  .tg-city-option { min-height: 32px; padding: 0 11px; font-size: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-num { font-size: 22px; }
  /* 表格：强制不换行 + 父容器横向滚动 */
  .data-table { min-width: 520px; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  /* 让标题列可以适当截断，避免单列过宽 */
  .data-table td:nth-child(2) { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  /* Profile mobile */
  .profile-card { padding: 16px; gap: 12px; }
  .profile-avatar { width: 48px; height: 48px; font-size: 22px; }
  .col-hide-mobile { display: none; }

  .info-page { padding: 16px 10px 34px; }
  .info-hero,
  .info-grid,
  .info-steps,
  .site-footer-main {
    grid-template-columns: 1fr;
  }
  .info-hero-text {
    min-height: auto;
    padding: 22px 18px;
  }
  .info-hero h1 { font-size: 25px; }
  .info-hero-card,
  .info-action-card,
  .info-faq,
  .info-panel,
  .info-steps,
  .info-notes { padding: 16px; }
  .info-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .info-primary-btn { width: 100%; }
  .info-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-city-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .archive-status {
    align-items: flex-start;
    border-radius: 8px;
    line-height: 1.5;
  }
  .archive-city-card {
    align-items: stretch;
  }
  .archive-download-btn {
    width: 100%;
  }
  .tg-group-grid {
    grid-template-columns: 1fr;
  }
  .tg-group-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 12px;
  }
  .site-footer-inner { padding: 22px 12px 16px; }
  .site-footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .home-service-grid .list-card {
    position: relative;
  }
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .list-card-img-wrap {
    aspect-ratio: 1 / 1;
  }
  .list-card-body {
    padding: 8px 8px 9px;
  }
  .list-card-title {
    font-size: 13px;
  }
  .list-card-meta span {
    font-size: 11px;
    padding: 4px 7px;
  }
  .home-list-meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .home-list-meta .meta-location { order: 1; }
  .home-list-meta .meta-time { order: 2; }
  .home-list-meta .meta-price { order: 3; }
  .home-list-meta .meta-category { order: 4; }
  .home-list-meta .meta-vip,
  .home-list-meta .meta-public { order: 5; }
  .home-list-meta .meta-location,
  .home-list-meta .meta-price {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
  }
  .home-list-meta .meta-category {
    grid-column: 1;
    width: 100%;
    justify-content: flex-start;
  }
  .home-list-meta .meta-vip,
  .home-list-meta .meta-public {
    grid-column: 2;
    width: 100%;
    justify-content: flex-start;
  }
}

/* ===== HOME HORIZONTAL LIST EXPERIMENT ===== */
.home-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-service-grid .list-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  min-height: 188px;
  height: auto;
  padding: 12px;
  border-radius: 8px;
  border-color: rgba(109,40,217,.16);
  box-shadow: 0 8px 20px rgba(42,29,69,.06);
}
.home-service-grid .list-card-img-wrap {
  flex: 0 0 130px;
  width: 154px;
  height: 154px;
  border-radius: 7px;
  background: #f5f0ff;
}
.home-service-grid .list-card-body {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  padding: 6px 2px 6px 12px;
  display: flex;
  flex-direction: column;
}
.home-service-grid .list-card-title {
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  display: block;
  color: #2b2436;
}
.home-service-grid .home-list-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  max-height: none;
  margin-top: auto;
}
.home-service-grid .home-list-meta-row {
  display: grid;
  gap: 8px;
}
.home-service-grid .home-list-meta-row.meta-row-full {
  grid-template-columns: minmax(0, 1fr);
}
.home-service-grid .home-list-meta-row.meta-row-pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.home-service-grid .home-list-meta span {
  min-height: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: #7d728b;
  font-size: 12px;
  line-height: 1.25;
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  grid-column: auto;
  order: 0;
}
.home-service-grid .home-list-meta .si {
  color: var(--primary);
  font-size: 14px;
}
.home-service-grid .home-list-meta .meta-price {
  color: #9a3412;
  background: rgba(251,146,60,.12);
}
.home-service-grid .home-list-meta .meta-video {
  color: #6D28D9;
  background: rgba(109,40,217,.09);
}
.home-service-grid .home-list-meta .meta-video.no-video {
  color: #8b8296;
  background: rgba(139,130,150,.10);
}
.home-service-grid .home-list-meta .meta-video .si {
  color: var(--accent);
}
.home-service-grid .home-list-meta .meta-video.no-video .si {
  color: #9b92a8;
}
.home-service-grid .home-list-meta .meta-time {
  position: static;
  width: auto;
  max-width: none;
  min-height: 0;
  grid-column: auto;
  order: 0;
  border: 0;
  box-shadow: none;
  color: #7d728b;
  backdrop-filter: none;
  font-size: 12px;
  font-weight: 400;
}
.home-service-grid .home-list-meta .meta-time .si {
  display: inline-block;
}

@media (max-width: 1280px) {
  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-service-grid .list-card {
    min-height: 176px;
    padding: 10px;
  }
  .home-service-grid .list-card-img-wrap {
    flex-basis: 128px;
    width: 128px;
    height: 148px;
  }
  .home-service-grid .list-card-body {
    flex: 1 1 auto;
    padding: 3px 4px 3px 12px;
  }
  .home-service-grid .home-list-meta {
    gap: 5px;
  }
  .home-service-grid .home-list-meta-row {
    gap: 5px;
  }
  .home-service-grid .home-list-meta span {
    padding: 4px 7px;
  }
  .home-service-grid .list-card-title,
  .home-service-grid .home-list-meta span,
  .home-service-grid .home-list-meta .meta-time,
  .home-service-grid .home-list-meta .si {
    font-size: 12px;
  }
}
@media (max-width: 640px) {
  .home-service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-service-grid .list-card {
    min-height: 166px;
  }
  .home-service-grid .list-card-img-wrap {
    flex-basis: 126px;
    width: 126px;
    height: 142px;
  }
}
