:root {
  --red: #e02e24;
  --ink: #202124;
  --muted: #777;
  --line: #ededed;
  --bg: #f6f6f6;
  --green: #18a058;
  --keyboard-inset: 0px;
  --app-vh: 100vh;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
button, input, textarea { font: inherit; }
button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
}
textarea { min-height: 86px; resize: vertical; }

body.keyboard-open {
  scroll-padding-bottom: 120px;
}

.phone-shell {
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
  padding-bottom: 76px;
}
#app::after {
  content: none;
  position: fixed;
  left: 50%;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) - 11px);
  transform: translateX(-50%);
  width: min(500px, calc(100% - 24px));
  height: 10px;
  z-index: 19;
  pointer-events: none;
  border-radius: 0 0 30px 30px;
  background: rgba(245, 248, 252, .24);
  -webkit-backdrop-filter: blur(34px) saturate(1.18);
  backdrop-filter: blur(34px) saturate(1.18);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.85) 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.85) 58%, transparent 100%);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--red);
  color: #fff;
}
.phone-shell .topbar { display: none; }
.topbar strong { display: block; font-size: 20px; }
.topbar span { display: block; font-size: 12px; opacity: .9; margin-top: 3px; }
.pill { background: #fff; color: var(--red); border-radius: 999px; padding: 8px 12px; }
.page { display: none; padding: 14px; }
.page.active { display: block; }
.search-row { display: block; }
.search-row input {
  display: block;
  min-height: 44px;
  font-size: 16px;
  transform: translateZ(0);
}
.hero {
  margin: 12px 0;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, #e02e24, #ff7a1a);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.hero b { font-size: 22px; }
.hero p { margin: 6px 0 0; font-size: 13px; }
.hero span { white-space: nowrap; font-weight: 700; }
.category-card {
  margin: 10px 0 12px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.category-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button {
  flex: 0 0 auto;
  padding: 0;
  color: #202124;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  line-height: 24px;
}
.category-tabs button.active {
  color: var(--red);
  font-weight: 800;
}
.category-orbits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  row-gap: 16px;
  padding: 12px 0 10px;
}
.orbit-item {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #222;
  border-radius: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}
.orbit-item b {
  max-width: 64px;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.orbit-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  position: relative;
  overflow: visible;
  box-shadow:
    0 5px 10px rgba(0, 0, 0, .16),
    inset 0 2px 3px rgba(255, 255, 255, .45),
    inset 0 -4px 8px rgba(0, 0, 0, .18);
}
.orbit-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  pointer-events: none;
  z-index: 1;
}
.orbit-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 26px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 1;
}
.orbit-icon svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .22));
}
.icon-culture {
  background: radial-gradient(circle at 35% 28%, #ff7a58 0%, #e7351d 44%, #a91410 100%);
}
.icon-activity {
  background: radial-gradient(circle at 35% 28%, #e07cff 0%, #8b38df 45%, #40106f 100%);
}
.icon-stock {
  background: radial-gradient(circle at 35% 28%, #83e584 0%, #18a846 47%, #075c2a 100%);
}
.icon-second {
  background: radial-gradient(circle at 35% 28%, #aeb9c6 0%, #435162 48%, #1f2835 100%);
}
.icon-antique {
  background: radial-gradient(circle at 35% 28%, #d89748 0%, #8d4e18 48%, #4a250b 100%);
}
.icon-appliance {
  background: radial-gradient(circle at 35% 28%, #62c1ff 0%, #0f7bd7 45%, #064b94 100%);
}
.icon-health {
  background: radial-gradient(circle at 35% 28%, #58e3c0 0%, #16a778 45%, #086245 100%);
}
.icon-education {
  background: radial-gradient(circle at 35% 28%, #72a8ff 0%, #2368dc 45%, #0b3d9a 100%);
}
.icon-art {
  background: radial-gradient(circle at 35% 28%, #f58fff 0%, #9b48df 45%, #5120a2 100%);
}
.icon-elderly {
  background: radial-gradient(circle at 35% 28%, #ff8d92 0%, #ee3c57 46%, #aa1633 100%);
}
.orbit-icon .stroke-light {
  stroke: #fff7dd;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.orbit-icon .fill-light {
  fill: #fff4d8;
}
.orbit-icon .fill-white {
  fill: #ffffff;
}
.orbit-icon .fill-gold {
  fill: #ffd879;
}
.orbit-icon .fill-soft {
  fill: rgba(255, 255, 255, .86);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}
.product-card {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eee;
}
.product-info {
  padding: 8px 8px 8px;
  min-height: 96px;
}
.product-info h3 {
  font-size: 14px;
  margin: 0 0 5px;
  line-height: 1.35;
  font-weight: 500;
  color: #1f2937;
}
.product-info p {
  margin: 0 0 9px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
  min-height: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-info > small {
  display: block;
  color: #8b95a5;
  font-size: 12px;
  line-height: 1;
}
.product-bottom {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  margin: 0 0 1px;
}
.product-bottom b {
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}
.product-bottom b span {
  font-size: 12px;
  font-weight: 700;
}
.product-bottom button {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ghost { padding: 8px 9px; font-size: 13px; }
.ghost { width: 100%; margin-top: 8px; color: var(--red); background: #fff4f3; }
.ghost.soft { color: #444; background: #f7f7f7; }
#home.detail-open .search-row,
#home.detail-open .category-card,
#home.detail-open #productGrid {
  display: none;
}
#home.shop-open .search-row,
#home.shop-open .category-card {
  display: none;
}
.shop-landing.hidden {
  display: none;
}
.shop-landing-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 92, 119, .16), transparent 28%),
    linear-gradient(135deg, #fff7f7, #ffffff 52%, #eef6ff);
  box-shadow: 0 12px 28px rgba(29, 41, 57, .08);
}
.shop-landing-card img,
.shop-landing-card span {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(244, 63, 94, .18);
}
.shop-landing-card h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 22px;
  font-weight: 500;
}
.shop-landing-card p {
  margin: 0 0 7px;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}
.shop-landing-card small {
  color: #ff5a1f;
  font-size: 13px;
}
#app.detail-mode .tabbar {
  display: none;
}
#app.shop-mode .tabbar {
  display: none;
}
#app.chat-mode .tabbar {
  display: none;
}

#app.subpage-mode .tabbar {
  display: none;
}

#app.support-mode .tabbar {
  display: none;
}

#app.support-mode #profile {
  min-height: var(--app-vh);
}

#app.support-mode #profileSub {
  min-height: calc(var(--app-vh) - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  box-sizing: border-box;
  overflow-anchor: none;
}

#app.support-mode #profileDetail {
  min-height: 0;
  display: grid;
}

#app.support-mode #profile .support-chat-card {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow-anchor: none;
}

#app.support-mode #profile .support-chat-list {
  min-height: 0;
}
#home.shop-open {
  padding-bottom: 18px;
}
.product-detail {
  display: grid;
  gap: 10px;
  padding-bottom: 98px;
  background: #f5f6f8;
}
.product-detail.hidden {
  display: none;
}
.product-detail-topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 38px 1fr 38px 38px;
  gap: 8px;
  align-items: center;
  padding: 10px 0 8px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
}
.product-detail-topbar button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #111827;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}
.product-detail-topbar div {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 18px;
  color: #9aa3af;
  background: #f1f2f4;
  font-size: 14px;
}
.product-detail-tabs {
  position: sticky;
  top: 54px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 0 8px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eef0f4;
}
.product-detail-tabs span {
  position: relative;
  text-align: center;
  color: #8b95a5;
  font-size: 15px;
  line-height: 30px;
}
.product-detail-tabs .active {
  color: #111827;
  font-weight: 700;
}
.product-detail-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #ff5a1f;
}
.product-detail-gallery {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: #fff;
}
.product-detail-gallery button {
  flex: 0 0 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  scroll-snap-align: start;
}
.product-detail-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f2f3f5;
}
.product-detail-gallery em {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.42);
  font-size: 12px;
  font-style: normal;
}
.product-detail-card {
  padding: 14px;
  background: #fff;
  border: 0;
  border-radius: 0;
}
.product-detail-card h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
}
.product-detail-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  font-weight: 400;
}
.product-detail-card p {
  margin: 0;
  color: #5f6b7a;
  font-size: 14px;
  line-height: 1.6;
}
.product-summary-card {
  border-radius: 0 0 12px 12px;
}
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #ff4d14;
  margin-bottom: 8px;
}
.product-detail-price b {
  font-size: 34px;
  line-height: 1;
}
.product-detail-price span,
.product-detail-price i {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
}
.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.product-title-row strong {
  flex: 1;
  color: #111827;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}
.product-title-row small {
  white-space: nowrap;
}
.product-detail-card small {
  display: block;
  margin-top: 5px;
  color: #8b95a5;
}
.product-detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.product-detail-tags span {
  padding: 5px 9px;
  border-radius: 5px;
  color: #8a5b24;
  background: #fff7e6;
  border: 1px solid #f3dfbd;
  font-size: 12px;
}
.product-service-card {
  display: grid;
  gap: 0;
}
.product-service-card div {
  display: grid;
  grid-template-columns: 46px 1fr 16px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #f0f2f5;
  color: #111827;
}
.product-service-card div:last-child {
  border-bottom: 0;
}
.product-service-card b {
  color: #ff5a1f;
  font-size: 14px;
}
.product-service-card span {
  color: #374151;
  font-size: 14px;
}
.product-service-card i {
  color: #b1b8c4;
  font-style: normal;
  font-size: 22px;
}
.product-shop-card {
  display: grid;
  grid-template-columns: 56px 1fr 74px;
  gap: 12px;
  align-items: center;
}
.product-shop-card .shop-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #d91f2a, #ff8b3d);
  font-size: 24px;
  font-weight: 800;
}
.product-shop-card .shop-logo-img {
  object-fit: cover;
  display: block;
  border: 1px solid #f1f3f6;
  background: #fff;
}
.product-shop-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 400;
}
.product-shop-card p {
  color: #667085;
  font-size: 13px;
}
.product-shop-card button {
  height: 36px;
  padding: 0 10px;
  border-radius: 18px;
  background: #ff6a00;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.product-detail-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}
.product-desc-card {
  padding-left: 0;
  padding-right: 0;
}
.product-desc-card h3,
.product-detail-text {
  padding: 0 14px;
}
.product-detail-media {
  display: grid;
  gap: 0;
  margin-top: 12px;
}
.product-detail-media img,
.product-detail-media video {
  width: 100%;
  border-radius: 0;
  display: block;
}
.product-detail-buybar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 19;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 58px 58px 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -6px 24px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.product-detail-buybar button {
  height: 44px;
  padding: 0 8px;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  font-size: 12px;
}
.product-detail-buybar button span {
  display: block;
  font-size: 20px;
  line-height: 18px;
}
.product-detail-buybar button:nth-last-child(2) {
  color: #fff;
  background: linear-gradient(90deg, #ffb300, #ff8a00);
  border-radius: 22px 0 0 22px;
  font-size: 16px;
  font-weight: 800;
}
.product-detail-buybar button:last-child {
  color: #fff;
  background: linear-gradient(90deg, #ff6a00, #ff2d16);
  border-radius: 0 22px 22px 0;
  font-size: 16px;
  font-weight: 800;
}
.image-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .84);
}
.image-preview.hidden {
  display: none;
}
.image-preview img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
}
.image-preview button {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.18);
  font-size: 28px;
  line-height: 1;
}
.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(500px, calc(100% - 24px));
  --tab-index: 0;
  --tab-count: 4;
  --tab-inset: 10px;
  --drop-pad: 10px;
  --tab-slot: calc((100% - (var(--tab-inset) * 2)) / var(--tab-count));
  --drop-width: calc(var(--tab-slot) - (var(--drop-pad) * 2) + 6px);
  --drop-left: calc(var(--tab-inset) + (var(--tab-slot) * var(--tab-index)) + var(--drop-pad) - 3px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.84) 58%, rgba(255,255,255,.46) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(154, 176, 204, .20),
    0 0 0 2px rgba(255, 255, 255, .34),
    0 18px 30px rgba(255, 255, 255, .58),
    0 14px 28px rgba(190, 204, 222, .30),
    0 4px 14px rgba(18, 24, 38, .05),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(124, 151, 184, .18);
  overflow: hidden;
  z-index: 20;
  box-sizing: border-box;
}
.tabbar::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: var(--drop-left);
  top: 11px;
  width: var(--drop-width);
  height: calc(100% - 22px);
  border-radius: 32px 28px 34px 30px;
  scale: 1 .9;
  transform-origin: center;
  background:
    radial-gradient(circle at 26% 18%, rgba(255,255,255,.98) 0 9px, rgba(255,255,255,.55) 10px, transparent 28px),
    radial-gradient(circle at 72% 82%, rgba(255,255,255,.62), transparent 30px),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,236,242,.92) 58%, rgba(207,215,226,.86));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, .86),
    inset 0 -10px 18px rgba(139, 151, 169, .16),
    0 10px 24px rgba(89, 101, 120, .16);
  transition:
    left 1120ms cubic-bezier(.18, .95, .2, 1),
    border-radius 980ms cubic-bezier(.18, 1.16, .25, 1),
    filter 420ms ease;
  pointer-events: none;
}
.tabbar::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,0) 28%),
    linear-gradient(315deg, rgba(140,164,196,.22), rgba(255,255,255,0) 34%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.42),
    inset 0 10px 18px rgba(255,255,255,.20);
}
.tabbar.is-droplet-moving::before {
  animation: dropletWobble 1040ms cubic-bezier(.18, 1.22, .25, 1);
}
.tabbar button {
  position: relative;
  z-index: 2;
  min-height: 72px;
  background: transparent;
  color: #3b3b3b;
  border-radius: 30px;
  padding: 9px 4px 8px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.tabbar button:focus,
.tabbar button:focus-visible,
.tabbar button:active {
  outline: none;
  box-shadow: none;
}
.tabbar button:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 16px;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, #e8e1dd, transparent);
}
.tabbar button.active {
  color: #111;
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}
.tabbar button.active::after { display: none; }
.tabbar button.active + button::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  width: 1px;
  height: 46px;
  background: transparent;
}
.tab-svg {
  width: 30px;
  height: 30px;
  display: block;
  color: #111;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .08));
  flex: 0 0 auto;
}
.tabbar button.active .tab-svg {
  color: #111;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .08));
}
.tab-svg circle {
  fill: none;
}
.tab-svg .tab-detail {
  stroke-width: 1.75;
  opacity: .9;
}
.tab-img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: none;
  flex: 0 0 auto;
}
.tab-home-img {
  width: 33px;
  height: 33px;
}

@keyframes dropletWobble {
  0% {
    border-radius: 32px 28px 34px 30px;
    scale: 1 .9;
    filter: brightness(1);
  }
  32% {
    border-radius: 38px 24px 30px 36px;
    scale: 1 .82;
    filter: brightness(1.04);
  }
  58% {
    border-radius: 25px 39px 36px 27px;
    scale: 1 .96;
  }
  78% {
    border-radius: 35px 27px 29px 37px;
    scale: 1 .87;
  }
  100% {
    border-radius: 32px 28px 34px 30px;
    scale: 1 .9;
    filter: brightness(1);
  }
}
.panel, .status-card, .profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  margin-bottom: 12px;
}
.panel h2, .section-head h2 { margin: 0 0 12px; font-size: 18px; }
.panel form, .panel { display: grid; gap: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.status-card b { display: block; color: var(--red); margin-bottom: 6px; }
.status-card span, .empty { color: var(--muted); font-size: 14px; }
.profile-card { display: flex; justify-content: flex-start; align-items: center; gap: 12px; }
.profile-card span { color: var(--muted); }
.profile-card h2 { margin: 4px 0 0; }
.profile-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-id img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #eee; flex: 0 0 auto; }
.profile-id h2 { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-btn {
  color: var(--red);
  background: transparent;
  padding: 4px 0 0;
  font-size: 12px;
}
.points { text-align: right; }
.points b { color: var(--red); font-size: 28px; display: block; }
.profile-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.profile-menu button {
  color: #333;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 6px;
}
.profile-detail { min-height: 260px; }
.profile-detail .section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
}
.profile-detail .section-head h2 { margin: 0; text-align: center; }
.back-btn {
  color: #333;
  background: #f4f4f4;
}
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 8px;
  background: #fff4f3;
  margin-bottom: 8px;
}
.balance-card b { color: var(--red); font-size: 30px; }
.line-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.line-card b { font-size: 20px; }
.line-card .plus { color: var(--green); }
.line-card .minus { color: var(--red); }
.line-card span, .line-card small { display: block; }
.line-card small { color: var(--muted); margin-top: 4px; }
.row-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.row-card img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: #eee; }
.row-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.merchant-product-row {
  grid-template-columns: 52px 1fr auto;
}
.merchant-product-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.merchant-product-actions button {
  padding: 7px 9px;
  font-size: 12px;
}
.merchant-product-actions .danger {
  background: #555;
}
.order-row { grid-template-columns: 52px 1fr auto; }
.order-row button { padding: 7px 10px; }
.order-row em { color: var(--muted); font-style: normal; font-size: 13px; }
.review-row p { margin: 6px 0 0; font-size: 13px; color: #444; }
.mini-form {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.profile-edit-form {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-edit-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff4f3;
  margin-bottom: 4px;
}
.profile-edit-preview img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.profile-edit-preview span {
  font-size: 18px;
  font-weight: 800;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.check input { width: auto; }
.address-card {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.address-card span, .address-card small { color: var(--muted); }
.address-card button { justify-self: start; padding: 7px 10px; }

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

.profile-settings-list button {
  min-height: 64px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff;
  color: #101936;
  border: 1px solid rgba(227, 231, 240, .95);
  box-shadow: 0 10px 18px rgba(35, 54, 86, .05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}

.profile-settings-list span {
  display: grid;
  gap: 5px;
}

.profile-settings-list b {
  font-size: 16px;
  font-weight: 500;
}

.profile-settings-list small {
  color: var(--muted);
  font-size: 13px;
}

.profile-settings-list em {
  color: #a5abb8;
  font-style: normal;
  font-size: 22px;
}

#profile {
  padding: 0;
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(180deg, #d90412 0px, #ec2529 310px, #fff2ec 760px, #fff 100%);
}

#profile .treasure-profile {
  position: relative;
  overflow: hidden;
  padding: 0 13px 18px;
}

#profile .profile-hero {
  position: relative;
  height: 165px;
  padding: 34px 5px 0;
  color: #fff;
  overflow: hidden;
}

#profile .profile-hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 68%);
}

#profile .profile-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 35px;
  width: 220px;
  height: 95px;
  border-top: 1px solid rgba(255, 210, 120, .45);
  border-radius: 50%;
  transform: rotate(-15deg);
  opacity: .8;
}

#profile .profile-hero-title {
  position: relative;
  z-index: 2;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(120,0,0,.16);
}

#profile .profile-hero-subtitle {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  opacity: .95;
}

#profile .login-badge {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 3px;
  height: 40px;
  padding: 0 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8ec, #ffe8c8);
  color: #8a4d14;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(112, 0, 0, .18);
}

#profile .diamond {
  width: 16px;
  height: 16px;
  position: relative;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f7c36b, #b76a1e);
  border-radius: 3px;
}

#profile .diamond::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(255,255,255,.55);
}

#profile .treasure-card {
  position: relative;
  margin-top: -18px;
  border-radius: 17px;
  background: linear-gradient(135deg, #fffdf8 0%, #fff3df 100%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 14px 30px rgba(126, 23, 16, .16), inset 0 0 0 1px rgba(255,255,255,.6);
  overflow: hidden;
  padding: 20px 14px 14px;
}

#profile .profile-settings-gear {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5a2a16;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 8px 16px rgba(126, 23, 16, .14), inset 0 1px 0 rgba(255,255,255,.96);
}

#profile .profile-settings-gear svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#profile .treasure-card::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 120px;
  width: 78px;
  height: 58px;
  opacity: .32;
  background:
    radial-gradient(ellipse at center, transparent 37%, #e9b06b 38%, #e9b06b 45%, transparent 46%) 0 0 / 38px 15px repeat-y;
}

#profile .profile-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 105px;
}

#profile .avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

#profile .avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff6a5d, #df111c 70%);
  color: #fff;
  object-fit: cover;
  border: 3px solid #ffe0a7;
  box-shadow: 0 6px 14px rgba(170, 0, 0, .22);
}

#profile .vip-dot {
  position: absolute;
  right: -3px;
  bottom: 6px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff4df, #f2b765);
  color: #9c4d08;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff2df;
  box-shadow: 0 5px 10px rgba(129, 60, 7, .22);
}

#profile .user-info {
  flex: 1;
  min-width: 0;
}

#profile .name-line {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

#profile .username {
  font-size: 26px;
  font-weight: 400;
  color: #202020;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profile .member {
  height: 28px;
  padding: 0 11px;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff3df, #ffe2ba);
  border: 1px solid rgba(209, 131, 45, .25);
  color: #a86118;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#profile .profile-user-id {
  margin-top: 5px;
  color: #8f6f55;
  font-size: 14px;
  line-height: 1.2;
}

#profile .edit {
  margin-top: 13px;
  color: #8b3e16;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  padding: 0;
}

#profile .exchange-bar {
  margin-top: 17px;
  height: 66px;
  border-radius: 13px;
  padding: 0 16px;
  background: linear-gradient(90deg, #3a2b22, #231915);
  color: #ffe2a3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  position: relative;
  z-index: 1;
}

#profile .exchange-left {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 500;
}

#profile .star-coin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff3c9, #d9943d);
  border: 2px solid #8f551e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9b5a16;
  font-size: 20px;
  flex: 0 0 auto;
}

#profile .exchange-btn {
  border: none;
  height: 38px;
  padding: 0 17px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff1d4, #f4bf73);
  color: #6f3a0e;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

#profile .menu-card {
  margin-top: 13px;
  background: rgba(255,255,255,.95);
  border-radius: 15px;
  padding: 14px 10px;
  box-shadow: 0 10px 24px rgba(141, 26, 18, .12);
  border: 1px solid rgba(255,255,255,.85);
}

#profile .treasure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid #f3d7bc;
  gap: 0;
  margin: 0;
}

#profile .grid-item {
  height: 112px;
  background: linear-gradient(180deg, #fffdf8, #fff8ef);
  border-right: 1px solid #f3d7bc;
  border-bottom: 1px solid #f3d7bc;
  border-radius: 0;
  color: #262626;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#profile .grid-item:nth-child(3n) { border-right: none; }
#profile .grid-item:nth-child(n+4) { border-bottom: none; }

#profile .icon {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#profile .profile-menu-svg {
  width: 54px;
  height: 54px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 10px rgba(205, 24, 20, .18));
}

#profile .profile-history-svg {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  object-fit: contain;
  flex: 0 0 54px;
}

#profile .label {
  font-size: 18px;
  color: #262626;
  line-height: 1;
}

#profile .dash {
  width: 12px;
  height: 2px;
  margin-top: 18px;
  background: #d99a58;
  border-radius: 2px;
}

#profile .wallet {
  width: 35px;
  height: 27px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff5d48, #d80a16);
  position: relative;
  box-shadow: 0 5px 10px rgba(200, 0, 0, .18);
}

#profile .wallet::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -4px;
  width: 17px;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: #ffb66b;
}

#profile .wallet::after {
  content: "★";
  position: absolute;
  right: -9px;
  bottom: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff2bf, #e19232);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff1d2;
}

#profile .clipboard {
  width: 32px;
  height: 39px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff684e, #db0d16);
  position: relative;
  box-shadow: 0 5px 10px rgba(200, 0, 0, .18);
}

#profile .clipboard::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 9px;
  width: 14px;
  height: 8px;
  background: #ffbd6d;
  border-radius: 4px 4px 0 0;
}

#profile .clipboard::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 16px;
  height: 14px;
  background:
    linear-gradient(#ffd5bf,#ffd5bf) 0 0/16px 2px no-repeat,
    linear-gradient(#ffd5bf,#ffd5bf) 0 6px/16px 2px no-repeat,
    linear-gradient(#ffd5bf,#ffd5bf) 0 12px/16px 2px no-repeat;
}

#profile .clock {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6149, #d60a16);
  position: relative;
  box-shadow: 0 5px 10px rgba(200, 0, 0, .18);
}

#profile .clock::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 10px;
  width: 3px;
  height: 13px;
  background: #ffd2b2;
  border-radius: 2px;
}

#profile .clock::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 11px;
  height: 3px;
  background: #ffd2b2;
  border-radius: 2px;
}

#profile .chat {
  width: 38px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff684e, #d90b15);
  position: relative;
  box-shadow: 0 5px 10px rgba(200, 0, 0, .18);
}

#profile .chat::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 13px;
  width: 20px;
  height: 5px;
  background:
    radial-gradient(circle, #fff 50%, transparent 52%) 0 0/7px 5px,
    radial-gradient(circle, #fff 50%, transparent 52%) 7px 0/7px 5px,
    radial-gradient(circle, #fff 50%, transparent 52%) 14px 0/7px 5px;
}

#profile .chat::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: -7px;
  border-width: 8px 7px 0 0;
  border-style: solid;
  border-color: #d90b15 transparent transparent transparent;
}

#profile .heart {
  width: 38px;
  height: 34px;
  position: relative;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #ff6a55, #da0c16);
  border-radius: 8px 0 8px 8px;
  box-shadow: 0 5px 10px rgba(200, 0, 0, .18);
}

#profile .heart::before,
#profile .heart::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 34px;
  background: inherit;
  border-radius: 50%;
}

#profile .heart::before { top: -17px; left: 0; }
#profile .heart::after { top: 0; right: -17px; }

#profile .pin {
  width: 35px;
  height: 35px;
  background: linear-gradient(180deg, #ff6049, #d60b16);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  box-shadow: 0 5px 10px rgba(200, 0, 0, .18);
}

#profile .pin::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 12px;
  height: 12px;
  background: #fff8ed;
  border-radius: 50%;
}

#profile .pin::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 10px;
  border-radius: 50%;
  background: rgba(221, 115, 36, .25);
  left: -1px;
  bottom: -13px;
  transform: rotate(45deg);
}

#profile .wallet,
#profile .clipboard,
#profile .clock,
#profile .chat,
#profile .heart,
#profile .pin {
  box-shadow:
    0 10px 18px rgba(207, 28, 24, .2),
    inset 0 2px 4px rgba(255,255,255,.42),
    inset 0 -5px 9px rgba(151, 0, 14, .16);
}

#profile .wallet {
  width: 42px;
  height: 28px;
  border-radius: 8px 10px 8px 8px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.36), transparent 38%),
    linear-gradient(180deg, #ff8a48 0%, #ff3f35 58%, #d50d1b 100%);
}

#profile .wallet::before {
  left: 4px;
  top: -7px;
  width: 35px;
  height: 14px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #ffa25f, #ff5c37);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.45);
  transform: skewY(-4deg);
}

#profile .wallet::after {
  content: "";
  right: -8px;
  bottom: -8px;
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 50% 48%, #fff 0 3px, transparent 4px),
    conic-gradient(from 18deg, transparent 0 10%, #fff 0 20%, transparent 0 30%, #fff 0 40%, transparent 0),
    linear-gradient(180deg, #fff2b9, #eda241);
  border: 2px solid #fff2cf;
  box-shadow: 0 4px 8px rgba(173, 92, 22, .22);
}

#profile .clipboard {
  width: 36px;
  height: 42px;
  border-radius: 9px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.38), transparent 36%),
    linear-gradient(180deg, #fff9e9 0%, #ffe6be 100%);
  border: 4px solid #f0342f;
}

#profile .clipboard::before {
  top: -10px;
  left: 7px;
  width: 18px;
  height: 12px;
  background: linear-gradient(180deg, #ffd68f, #f6a848);
  border-radius: 8px;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.5);
}

#profile .clipboard::after {
  left: 8px;
  top: 13px;
  width: 17px;
  height: 18px;
  background:
    radial-gradient(circle, #ff694b 0 3px, transparent 4px) 0 0/8px 7px no-repeat,
    radial-gradient(circle, #ff694b 0 3px, transparent 4px) 0 8px/8px 7px no-repeat,
    radial-gradient(circle, #ff694b 0 3px, transparent 4px) 0 16px/8px 7px no-repeat,
    linear-gradient(#ff694b,#ff694b) 9px 2px/11px 2px no-repeat,
    linear-gradient(#ff694b,#ff694b) 9px 10px/11px 2px no-repeat,
    linear-gradient(#ff694b,#ff694b) 9px 18px/11px 2px no-repeat;
}

#profile .clock {
  width: 43px;
  height: 43px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.52), transparent 28%),
    linear-gradient(180deg, #ff7960 0%, #ef2528 74%, #c60412 100%);
}

#profile .clock::before {
  left: 21px;
  top: 10px;
  width: 4px;
  height: 15px;
  background: #fff8ee;
}

#profile .clock::after {
  left: 20px;
  top: 22px;
  width: 17px;
  height: 17px;
  background: none;
  border-right: 4px solid #fff8ee;
  border-bottom: 4px solid #fff8ee;
  border-radius: 0 0 12px 0;
  transform: rotate(12deg);
}

#profile .chat {
  width: 40px;
  height: 32px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 86% -2%, #ffd16e 0 7px, transparent 8px),
    linear-gradient(160deg, rgba(255,255,255,.35), transparent 36%),
    linear-gradient(180deg, #ff755b, #dc0b18);
}

#profile .heart {
  width: 38px;
  height: 38px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.45), transparent 28%),
    linear-gradient(135deg, #ff8066, #ef2528 62%, #d50a16);
}

#profile .heart::before,
#profile .heart::after {
  width: 38px;
  height: 38px;
}

#profile .heart::before { top: -19px; left: 0; }
#profile .heart::after { top: 0; right: -19px; }

#profile .pin {
  width: 39px;
  height: 39px;
  background:
    radial-gradient(circle at 33% 24%, rgba(255,255,255,.5), transparent 26%),
    linear-gradient(180deg, #ff765d, #e9101f 76%, #c90512);
}

#profile .pin::before {
  left: 12px;
  top: 12px;
  width: 14px;
  height: 14px;
}

#profile .logout {
  margin-top: 12px;
  width: 100%;
  height: 58px;
  border-radius: 13px;
  border: 2px solid #f4c68b;
  background: linear-gradient(90deg, #f0252d, #b50007);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(175, 0, 0, .18);
}

#profile .logout-icon {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-right: none;
  border-radius: 5px;
  position: relative;
}

#profile .logout-icon::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: #fff;
  right: -9px;
  top: 10px;
}

#profile .logout-icon::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

#profile .support-chat-card {
  display: grid;
  grid-template-rows: auto minmax(260px, 52vh) auto;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(236, 224, 214, .9);
  box-shadow: 0 16px 28px rgba(126, 23, 16, .08);
}

#profile .support-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid #f1e7df;
  background: linear-gradient(180deg, #fffdf8, #fff7ef);
}

#profile .support-chat-head img,
#profile .support-chat-row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #f33;
}

#profile .support-chat-head b {
  display: block;
  color: #151515;
  font-size: 17px;
  font-weight: 500;
}

#profile .support-chat-head span {
  color: #9a8b82;
  font-size: 12px;
}

#profile .support-chat-list {
  padding: 16px 12px;
  overflow: auto;
  background: linear-gradient(180deg, #fff, #fff9f6);
}

#profile .support-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

#profile .support-chat-row.mine {
  flex-direction: row-reverse;
}

#profile .support-bubble {
  max-width: 72%;
  padding: 9px 12px;
  border-radius: 15px;
  color: #202020;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 30, 26, .08);
  line-height: 1.45;
  word-break: break-word;
}

#profile .support-bubble p {
  margin: 0;
}

#profile .support-media-message {
  display: block;
  max-width: 190px;
  max-height: 220px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 6px;
  background: #f5f5f5;
}

#profile .support-bubble p:empty,
#profile .support-media-message:last-child {
  margin-bottom: 0;
}

#profile .support-chat-row.mine .support-bubble {
  color: #fff;
  background: linear-gradient(135deg, #ff9f29, #ff2b1f);
}

#profile .support-chat-form {
  display: grid;
  grid-template-columns: 42px 1fr 74px;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid #f1e7df;
  background: rgba(255,255,255,.95);
  overflow-anchor: none;
}

#profile .support-media-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid #eaded4;
  background: #fff;
  color: #ff6b19;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

#profile .support-media-preview {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff8f2;
  color: #9a5a2b;
  font-size: 12px;
}

#profile .support-media-preview.has-media {
  display: flex;
}

#profile .support-media-preview img,
#profile .support-media-preview video {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
}

#profile .support-chat-form input {
  min-height: 42px;
  border-radius: 13px;
  border: 1px solid #eaded4;
  padding: 0 13px;
}

#profile .support-chat-form button {
  border-radius: 13px;
  background: linear-gradient(135deg, #ff9f29, #ff2b1f);
}

#profile .profile-detail {
  margin: 13px;
}

#merchant {
  min-height: calc(100vh - 76px);
  padding: 48px 22px 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 86%, rgba(104, 160, 255, .18), transparent 17%),
    radial-gradient(circle at 85% 90%, rgba(255, 104, 170, .20), transparent 20%),
    linear-gradient(180deg, #f6f9ff 0%, #eef4ff 45%, #f8fbff 100%);
}

#merchant::before,
#merchant::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

#merchant::before {
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -65px;
  background: radial-gradient(circle, rgba(255, 99, 160, .26), transparent 68%);
  filter: blur(4px);
}

#merchant::after {
  width: 210px;
  height: 210px;
  left: -95px;
  bottom: 50px;
  background: radial-gradient(circle, rgba(105, 160, 255, .22), transparent 66%);
  filter: blur(5px);
}

#merchant .status-card,
#merchant .merchant-form-card,
#merchant #merchantProducts {
  position: relative;
  z-index: 1;
}

#merchant .status-card {
  min-height: 108px;
  border-radius: 24px;
  padding: 23px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 104, 160, .22), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    0 18px 40px rgba(128, 149, 190, .18),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#merchant .merchant-status-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4e67;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 219, 230, .72));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .9),
    0 8px 20px rgba(255, 73, 105, .18);
}

#merchant .merchant-status-icon svg {
  width: 34px;
  height: 34px;
}

#merchant .merchant-status-info {
  min-width: 0;
}

#merchant .merchant-status-info b {
  display: block;
  margin-bottom: 10px;
  color: #f23d4d;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

#merchant .merchant-status-info span {
  display: block;
  color: #222b3f;
  font-size: 14px;
  line-height: 1.4;
}

#merchant .merchant-form-card {
  border-radius: 27px;
  padding: 31px 22px 28px;
  gap: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48));
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow:
    0 22px 52px rgba(113, 136, 185, .18),
    inset 0 1px 1px rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#merchant .merchant-form-card::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 34px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #7597ff, #c7d3ff);
  clip-path: polygon(50% 0%, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0% 50%, 38% 36%);
  opacity: .65;
  filter: drop-shadow(0 5px 8px rgba(112, 147, 255, .25));
}

#merchant .merchant-form-card h2 {
  margin: 0 0 14px;
  color: #101b35;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0;
}

#merchant .merchant-field {
  width: 100%;
  min-height: 68px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow:
    inset 0 0 0 1px rgba(120, 150, 255, .04),
    0 9px 22px rgba(129, 151, 185, .08);
}

#merchant .merchant-field svg {
  width: 22px;
  height: 22px;
  color: #6c8eff;
  margin-right: 15px;
  flex: 0 0 22px;
}

#merchant .merchant-field input,
#merchant .merchant-field textarea {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #101b35;
  font-size: 20px;
}

#merchant .merchant-field input::placeholder,
#merchant .merchant-field textarea::placeholder {
  color: #9ca5b8;
}

#merchant .merchant-textarea {
  min-height: 150px;
  align-items: flex-start;
  padding-top: 22px;
}

#merchant .merchant-textarea textarea {
  min-height: 104px;
}

#merchant .merchant-submit {
  margin-top: 20px;
  width: 100%;
  height: 63px;
  border-radius: 15px;
  background: linear-gradient(90deg, #ff333f 0%, #ff5b86 100%);
  box-shadow:
    0 14px 24px rgba(255, 62, 89, .26),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

#merchant .merchant-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: rgba(255, 255, 255, .45);
}

#merchant .merchant-submit::after {
  content: ">";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 400;
}

#merchant .merchant-submit:active {
  transform: scale(.985);
}

#merchant #productForm > input,
#merchant #productForm > textarea,
#merchant #productForm .product-field input,
#merchant #productForm .product-field textarea,
#merchant #productForm .product-field select {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 15px;
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 9px 22px rgba(129, 151, 185, .08);
}

#merchant #productForm .product-field {
  display: grid;
  gap: 8px;
  width: 100%;
  color: #172342;
  font-size: 15px;
}

#merchant #productForm .product-field span {
  font-weight: 600;
}

#merchant #productForm .product-field input,
#merchant #productForm .product-field textarea,
#merchant #productForm .product-field select {
  width: 100%;
  padding: 0 14px;
  color: #101b35;
  font-size: 15px;
  outline: 0;
}

#merchant #productForm .product-field textarea {
  min-height: 86px;
  padding-top: 13px;
  line-height: 1.55;
}

#merchant #productForm .product-field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #6f7f99 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, #6f7f99 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    rgba(255, 255, 255, .52);
}

#merchant #productForm.merchant-form-card {
  padding: 0 0 18px;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#merchant #productForm.merchant-form-card::before {
  display: none;
}

#merchant #productForm .publish-head {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  min-height: 56px;
  margin-bottom: 8px;
}

#merchant #productForm .publish-head h2 {
  margin: 0;
  text-align: center;
  color: #101b35;
  font-size: 22px;
  font-weight: 800;
}

#merchant #productForm .publish-back,
#merchant #productForm .publish-draft {
  min-height: 34px;
  border-radius: 17px;
  padding: 0 12px;
  color: #18315c;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px rgba(112, 139, 184, .14);
  font-size: 14px;
}

#merchant #productForm .publish-draft {
  justify-self: end;
  color: #235fbd;
  background: transparent;
  box-shadow: none;
}

#merchant #productForm .publish-section {
  display: grid;
  gap: 15px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(225, 233, 246, .92);
  box-shadow: 0 14px 34px rgba(118, 142, 179, .12);
}

#merchant #productForm .publish-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  color: #121d36;
  font-size: 17px;
  font-weight: 800;
}

#merchant #productForm .publish-section h3 i {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff4f5d, #2f83ff);
}

#merchant #productForm .product-field {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: #14203a;
}

#merchant #productForm .product-field > span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

#merchant #productForm .product-field > span i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(78, 129, 211, .13);
}

#merchant #productForm .product-field em {
  color: #ff4b55;
  font-style: normal;
}

#merchant #productForm .icon-red > span i { background: linear-gradient(135deg, #ff6076, #ff9aa8); }
#merchant #productForm .icon-orange > span i { background: linear-gradient(135deg, #ff8d3f, #ffc49b); }
#merchant #productForm .icon-blue > span i { background: linear-gradient(135deg, #2f83ff, #9cc7ff); }
#merchant #productForm .icon-purple > span i { background: linear-gradient(135deg, #8257f5, #c8b2ff); }
#merchant #productForm .icon-yellow > span i { background: linear-gradient(135deg, #ffc23c, #ffe4a2); }
#merchant #productForm .icon-green > span i { background: linear-gradient(135deg, #19c879, #a5edc5); }
#merchant #productForm .icon-cyan > span i { background: linear-gradient(135deg, #23c9d3, #a8eff0); }

#merchant #productForm .field-control,
#merchant #productForm .field-addon,
#merchant #productForm .rich-editor {
  position: relative;
}

#merchant #productForm .product-field input,
#merchant #productForm .product-field textarea,
#merchant #productForm .product-field select {
  min-height: 42px;
  border-radius: 9px;
  border: 1px solid #d9e3f1;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
}

#merchant #productForm .product-field textarea {
  min-height: 86px;
}

#merchant #productForm .field-control small,
#merchant #productForm .rich-editor small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #8b97aa;
  font-size: 12px;
}

#merchant #productForm .service-tag-editor {
  display: grid;
  gap: 10px;
}

#merchant #productForm .service-tag-list {
  display: grid;
  gap: 8px;
}

#merchant #productForm .service-tag-empty {
  min-height: 40px;
  padding: 0 12px;
  border: 1px dashed #d9e3f1;
  border-radius: 10px;
  color: #8b97aa;
  display: flex;
  align-items: center;
  font-size: 13px;
}

#merchant #productForm .service-tag-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

#merchant #productForm .service-tag-row input {
  width: 100%;
}

#merchant #productForm .service-tag-remove,
#merchant #productForm .service-tag-add {
  border: 1px solid #d9e3f1;
  background: #fff;
  color: #2f83ff;
}

#merchant #productForm .service-tag-remove {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 0;
  font-size: 18px;
}

#merchant #productForm .service-tag-add {
  justify-self: start;
  height: 36px;
  border-radius: 18px;
  padding: 0 16px;
  font-size: 14px;
}

#merchant #productForm .field-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
}

#merchant #productForm .field-addon input {
  border-radius: 9px 0 0 9px;
}

#merchant #productForm .field-addon b {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e3f1;
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: #f4f7fb;
  color: #52627b;
  font-size: 14px;
}

#merchant #productForm .product-upload .upload-box {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #9ec9ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: #182744;
  text-align: center;
}

#merchant #productForm .product-upload .upload-box b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f3ff;
  color: #2f83ff;
  font-size: 22px;
}

#merchant #productForm .product-upload .upload-box strong {
  font-size: 15px;
}

#merchant #productForm .product-upload .upload-box small {
  color: #718095;
  font-size: 12px;
}

#merchant #productForm .product-upload input:not([hidden]),
#merchant #productForm .product-upload textarea {
  width: min(420px, calc(100% - 24px));
  min-height: 36px;
  margin-top: 4px;
  background: #f8fbff;
}

#merchant #productForm .limit-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-left: 164px;
  color: #24304a;
  font-size: 14px;
}

#merchant #productForm .limit-choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}

#merchant #productForm .limit-choice input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #2f83ff;
}

#merchant #productForm .rich-editor {
  border: 1px solid #d9e3f1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

#merchant #productForm .editor-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-bottom: 1px solid #e4ebf5;
  color: #59667a;
  font-weight: 700;
  font-size: 14px;
}

#merchant #productForm .editor-toolbar button {
  min-width: 30px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #526071;
  font-size: 13px;
  font-weight: 800;
  padding: 0 5px;
}

#merchant #productForm .editor-toolbar button:active,
#merchant #productForm .editor-toolbar button:hover {
  background: #eef5ff;
  color: #2f83ff;
}

#merchant #productForm .detail-editor {
  min-height: 132px;
  padding: 14px;
  color: #1a263d;
  font-size: 14px;
  line-height: 1.65;
  outline: 0;
}

#merchant #productForm .detail-editor:empty::before {
  content: attr(data-placeholder);
  color: #9aa8bb;
}

#merchant #productForm .detail-editor blockquote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 3px solid #8bbcff;
  color: #536174;
}

#merchant #productForm .rich-editor textarea[hidden] {
  border: 0;
  border-radius: 0;
  min-height: 132px;
  display: none;
}

#merchant #productForm .detail-media-value[hidden],
#merchant #productForm .detail-media-file[hidden],
#merchant #productForm .product-media-file[hidden],
#merchant #productForm .product-image-value[hidden],
#merchant #productForm .product-images-value[hidden],
#merchant #productForm .product-video-value[hidden] {
  display: none;
}

#merchant #productForm .detail-media-list,
#merchant #productForm .upload-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: min(420px, calc(100% - 24px));
}

#merchant #productForm .detail-media-list span,
#merchant #productForm .upload-result span {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  color: #2f69b6;
  background: #eaf4ff;
  font-size: 12px;
}

#merchant #productForm .publish-actions {
  position: sticky;
  bottom: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: .45fr 1fr;
  gap: 14px;
  padding: 14px 8px 0;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0), rgba(246, 250, 255, .9) 40%, rgba(246, 250, 255, .98));
}

#merchant #productForm .save-draft,
#merchant #productForm .merchant-submit {
  height: 48px;
  margin: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
}

#merchant #productForm .save-draft {
  color: #14213b;
  background: #eef3f9;
}

#merchant #productForm .merchant-submit {
  background: linear-gradient(90deg, #3286ff, #3f63f5);
  box-shadow: 0 12px 22px rgba(55, 112, 246, .22);
}

#merchant #productForm .merchant-submit::after,
#merchant #productForm .merchant-submit::before {
  display: none;
}

#merchant #merchantProducts {
  margin-top: 16px;
}

#merchant #merchantProducts h2 {
  color: #101b35;
  font-size: 20px;
}

#merchant .merchant-dashboard {
  position: relative;
  z-index: 1;
}

#merchant .merchant-hero-card,
#merchant .merchant-work-card {
  border: 1px solid rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 40px rgba(116, 137, 176, .16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#merchant .merchant-hero-card {
  position: relative;
  min-height: 145px;
  border-radius: 28px;
  padding: 27px 54px 27px 18px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 187, 202, .42) 0 24px, transparent 25px),
    radial-gradient(circle at 94% 58%, rgba(255, 209, 216, .52), transparent 88px),
    linear-gradient(135deg, rgba(255, 252, 249, .92), rgba(255, 224, 226, .7));
}

#merchant .merchant-shop-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 20%, rgba(255,255,255,.98), transparent 34%),
    linear-gradient(145deg, #ffffff, #ffe7eb);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, .86),
    0 14px 26px rgba(242, 74, 97, .14);
}

#merchant .merchant-storefront-svg {
  width: 66px;
  height: 66px;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(239, 54, 83, .16));
}

#merchant .merchant-shop-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 18px rgba(112, 81, 53, .14);
}

#merchant .merchant-hero-info {
  min-width: 0;
}

#merchant .merchant-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#merchant .merchant-name-line h2 {
  margin: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #101010;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 400;
}

#merchant .merchant-name-line span {
  height: 34px;
  padding: 0 15px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, #f7293f, #ff4d67);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(244, 43, 67, .22);
}

#merchant .merchant-hero-info p {
  margin: 18px 0 0;
  color: #8790a3;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}

#merchant .merchant-account-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8390a6;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#merchant .merchant-hero-info p span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#merchant .merchant-gear {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 29px;
  height: 29px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #344054;
  background: rgba(255, 255, 255, .92);
  box-shadow:
    0 6px 12px rgba(74, 83, 110, .12),
    inset 0 1px 0 rgba(255,255,255,.96);
}

#merchant .merchant-gear svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#merchant .merchant-work-card {
  margin-top: 15px;
  border-radius: 24px;
  padding: 22px 17px 25px;
}

#merchant .merchant-products-card {
  border-radius: 28px;
  padding: 24px 18px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,255,.96));
  box-shadow:
    0 18px 34px rgba(35, 54, 86, .08),
    inset 0 1px 0 rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.9);
}

#merchant .merchant-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

#merchant .merchant-work-card h2,
#merchant .merchant-section-title h2 {
  margin: 0;
  color: #101936;
  font-size: 24px;
  font-weight: 900;
}

#merchant .merchant-products-card .merchant-section-title h2,
#merchant .merchant-work-card > h2 {
  font-size: 22px;
  font-weight: 400;
}

#merchant .merchant-section-title button {
  padding: 0;
  background: transparent;
  color: #747b91;
  font-size: 16px;
}

#merchant .merchant-product-metrics {
  display: grid;
  grid-template-columns: 1.12fr repeat(3, 1fr);
  align-items: stretch;
  gap: 10px;
  min-height: 132px;
}

#merchant .merchant-publish-tile {
  min-width: 0;
  min-height: 132px;
  border-radius: 20px;
  padding: 15px 4px 13px;
  color: #101936;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.55), transparent 22%),
    linear-gradient(135deg, rgba(255, 241, 244, .95), rgba(255, 207, 214, .88));
  border: 1px solid rgba(255, 194, 204, .74);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  box-shadow:
    0 12px 22px rgba(245, 81, 103, .12),
    inset 0 1px 0 rgba(255,255,255,.9);
}

#merchant .merchant-publish-tile span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(180deg, #ff7484, #f32d4a);
  box-shadow:
    0 12px 22px rgba(243, 45, 74, .26),
    inset 0 2px 4px rgba(255,255,255,.48),
    inset 0 -8px 14px rgba(201, 11, 35, .18);
}

#merchant .merchant-publish-tile svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

#merchant .merchant-publish-tile b,
#merchant .merchant-tools b {
  font-size: 16px;
  font-weight: 500;
}

#merchant .merchant-publish-tile b {
  font-size: 14px;
  color: #101936;
}

#merchant .merchant-publish-tile::after {
  content: "快速发布新商品";
  color: #7a849b;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

#merchant .merchant-metric {
  position: relative;
  min-width: 0;
  min-height: 132px;
  border-radius: 18px;
  padding: 13px 3px 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,252,255,.94));
  border: 1px solid rgba(237, 241, 248, .95);
  box-shadow:
    0 12px 22px rgba(31, 55, 91, .06),
    inset 0 1px 0 rgba(255,255,255,.94);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
}

#merchant .merchant-metric:active {
  transform: translateY(1px) scale(.99);
}

#merchant .merchant-metric i {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

#merchant .merchant-metric i::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .26;
}

#merchant .merchant-metric i::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .58;
  box-shadow: 4px 50px 0 currentColor;
}

#merchant .merchant-metric i svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.08));
}

#merchant .merchant-metric i svg path,
#merchant .merchant-metric i svg circle {
  stroke: #fff;
}

#merchant .merchant-metric.green i { color: #60d889; background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.58), transparent 28%), linear-gradient(180deg, #48df7e, #08b652); }
#merchant .merchant-metric.blue i { color: #5da9fb; background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.58), transparent 28%), linear-gradient(180deg, #56adff, #147ff0); }
#merchant .merchant-metric.orange i { color: #ffb66d; background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.58), transparent 28%), linear-gradient(180deg, #ffb55d, #ff8613); }
#merchant .merchant-metric.gray i { color: #a8aec3; background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.58), transparent 28%), linear-gradient(180deg, #7d849d, #4b536e); }

#merchant .merchant-metric span {
  color: #101936;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

#merchant .merchant-metric b {
  font-size: 24px;
  line-height: 1;
  margin-top: 3px;
}

#merchant .merchant-metric.green b { color: #24b54d; }
#merchant .merchant-metric.blue b { color: #168cf0; }
#merchant .merchant-metric.orange b { color: #ff8b16; }
#merchant .merchant-metric.gray b { color: #69728e; }

#merchant .merchant-tools {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

#merchant .merchant-tools button {
  min-width: 0;
  padding: 0;
  color: #101936;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 11px;
}

#merchant .merchant-tools span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

#merchant .merchant-tools svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#merchant .tool-bag {
  color: #f03455;
  background: linear-gradient(180deg, #fff1f4, #ffe7ec);
}

#merchant .tool-order {
  color: #f47a19;
  background: linear-gradient(180deg, #fff4e9, #ffe8d5);
}

#merchant .tool-shop {
  color: #7650de;
  background: linear-gradient(180deg, #f4efff, #ece4ff);
}

#merchant .tool-chart {
  color: #238bf0;
  background: linear-gradient(180deg, #edf7ff, #dff1ff);
}

#merchant .tool-chat {
  color: #18b9a8;
  background: linear-gradient(180deg, #eafbfa, #d8f5f1);
}

#merchant .merchant-sub-panel {
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 24px rgba(31, 55, 91, .08);
}

#merchant .merchant-sub-head {
  display: grid;
  grid-template-columns: 68px 1fr 68px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

#merchant .merchant-sub-head h2 {
  margin: 0 0 12px;
  color: #101936;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

#merchant .merchant-sub-head h2 {
  margin: 0;
}

#merchant .merchant-sub-back {
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  color: #344054;
  background: #f2f5f9;
  font-size: 14px;
}

#merchant #productForm > h2 {
  display: none;
}

#merchant .merchant-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#merchant .merchant-stats-grid div {
  min-height: 86px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid #edf2f8;
}

#merchant .merchant-stats-grid b {
  color: #1588f0;
  font-size: 28px;
  line-height: 1;
}

#merchant .merchant-stats-grid span {
  color: #6f7890;
  font-size: 14px;
}

#merchant .merchant-empty-note {
  margin: 44px 0 6px;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #a4abb9;
  font-size: 17px;
}

#merchant .merchant-box-art {
  position: relative;
  width: 126px;
  height: 92px;
  opacity: .72;
}

#merchant .merchant-box-art::before {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 78px;
  height: 66px;
  background: linear-gradient(135deg, #ffdfe2, #ffc7cf);
  clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%);
}

#merchant .merchant-box-art::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 8px;
  width: 96px;
  height: 47px;
  background:
    linear-gradient(145deg, #fff0f2, #ffd5da 55%, transparent 56%) left / 50% 100% no-repeat,
    linear-gradient(215deg, #fff0f2, #ffd5da 55%, transparent 56%) right / 50% 100% no-repeat;
  filter: drop-shadow(0 8px 10px rgba(249, 118, 134, .14));
}

#merchant .merchant-settings-page {
  position: relative;
  z-index: 1;
}

#merchant .merchant-sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
}

#merchant .merchant-sub-header button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #26324a;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(116, 137, 176, .14);
}

#merchant .merchant-sub-header svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#merchant .merchant-sub-header h2 {
  margin: 0;
  color: #101936;
  font-size: 24px;
  font-weight: 900;
}

#merchant .merchant-settings-card {
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 24px;
  padding: 22px 18px 24px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 40px rgba(116, 137, 176, .16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  gap: 16px;
}

#merchant .merchant-settings-card label {
  display: grid;
  gap: 8px;
  color: #101936;
  font-weight: 800;
}

#merchant .merchant-settings-card input,
#merchant .merchant-settings-card textarea {
  width: 100%;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  background: #fff;
  color: #101936;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

#merchant .merchant-settings-card textarea {
  min-height: 116px;
  resize: vertical;
}

#merchant .merchant-settings-preview {
  min-height: 58px;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7b8498;
  background: linear-gradient(135deg, #fff4f6, #f6fbff);
}

#merchant .merchant-settings-preview b {
  color: #101936;
}

#merchant .store-settings-screen {
  margin: -18px -20px 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(214, 165, 82, .16), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(214, 165, 82, .12), transparent 26%),
    linear-gradient(180deg, #fff6e9 0%, #fffaf2 42%, #fff8ed 100%);
  color: #17120c;
}

#merchant .store-settings-page {
  width: 100%;
  min-height: calc(100vh - 72px);
  position: relative;
  overflow: hidden;
  padding: 18px 14px 110px;
}

#merchant .store-settings-page::before,
#merchant .store-settings-page::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(202, 145, 55, .32);
  border-radius: 50%;
  z-index: 0;
}

#merchant .store-settings-page::before {
  width: 370px;
  height: 370px;
  right: -165px;
  top: 8px;
}

#merchant .store-settings-page::after {
  width: 360px;
  height: 360px;
  left: -245px;
  bottom: -70px;
  opacity: .7;
}

#merchant .store-settings-bg-line {
  position: absolute;
  right: -80px;
  bottom: 110px;
  width: 270px;
  height: 60px;
  border-top: 2px solid rgba(202, 145, 55, .28);
  border-radius: 50%;
  transform: rotate(-8deg);
  z-index: 0;
}

#merchant .store-settings-header {
  position: relative;
  z-index: 1;
  height: 194px;
  padding-top: 6px;
}

#merchant .store-settings-back {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(190, 132, 48, .42);
  background: rgba(255, 255, 255, .66);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(142, 99, 37, .08);
}

#merchant .store-settings-back::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid #5b3516;
  border-bottom: 3px solid #5b3516;
  transform: rotate(45deg);
  margin-left: 5px;
}

#merchant .store-settings-title-area {
  margin-top: 28px;
  padding-left: 22px;
}

#merchant .store-settings-title {
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  color: #4a2d13;
  text-shadow: 0 3px 10px rgba(130, 81, 27, .12);
}

#merchant .store-settings-subtitle {
  margin: 14px 0 0;
  max-width: 235px;
  font-size: 15px;
  color: #8b6a45;
  letter-spacing: .5px;
}

#merchant .store-settings-decor-line {
  margin-top: 22px;
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, rgba(178, 124, 47, .55), transparent);
  position: relative;
}

#merchant .store-settings-decor-line::after {
  content: "*";
  position: absolute;
  right: 38px;
  top: -10px;
  font-size: 13px;
  color: #c8953f;
}

#merchant .store-settings-illustration {
  position: absolute;
  right: 15px;
  top: 28px;
  width: 145px;
  height: 118px;
}

#merchant .store-settings-store {
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 108px;
  height: 88px;
  background: linear-gradient(180deg, #fff7eb, #f6ddba);
  border: 2px solid #d3a155;
  box-shadow: 0 12px 24px rgba(119, 77, 25, .15);
}

#merchant .store-settings-store::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 18px;
  width: 114px;
  height: 20px;
  background: repeating-linear-gradient(90deg, #fff1d4 0 12px, #d9aa5e 12px 24px);
  border: 1px solid #c7954d;
  border-radius: 0 0 12px 12px;
}

#merchant .store-settings-store-top {
  position: absolute;
  left: 4px;
  top: -20px;
  width: 100px;
  height: 24px;
  background: linear-gradient(180deg, #fffdf7, #e7c28b);
  border: 2px solid #d3a155;
}

#merchant .store-settings-door {
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 27px;
  height: 44px;
  background: linear-gradient(180deg, #8b5a28, #4e2c14);
  border-radius: 10px 10px 0 0;
}

#merchant .store-settings-window {
  position: absolute;
  left: 15px;
  bottom: 22px;
  width: 24px;
  height: 23px;
  background: rgba(255, 246, 218, .85);
  border: 2px solid #d3a155;
}

#merchant .store-settings-sign {
  position: absolute;
  right: -18px;
  top: 26px;
  width: 26px;
  height: 39px;
  border-radius: 12px;
  background: #4b2b14;
  border: 2px solid #d3a155;
}

#merchant .store-settings-plant {
  position: absolute;
  right: -26px;
  bottom: 0;
  width: 28px;
  height: 46px;
}

#merchant .store-settings-plant::before,
#merchant .store-settings-plant::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 34px;
  border-radius: 50% 50% 0 50%;
  background: rgba(80, 111, 55, .8);
}

#merchant .store-settings-plant::before {
  left: 2px;
  transform: rotate(-22deg);
}

#merchant .store-settings-plant::after {
  right: 0;
  transform: rotate(24deg);
}

#merchant .store-settings-tree {
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 42px;
  height: 54px;
}

#merchant .store-settings-tree::before {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 8px;
  height: 27px;
  background: #8b5d27;
}

#merchant .store-settings-tree::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 34px;
  height: 34px;
  background: #5e7f35;
  border-radius: 50%;
}

#merchant .store-settings-card {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  padding: 14px 12px 12px;
  border-radius: 25px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow:
    0 22px 45px rgba(121, 83, 33, .15),
    inset 0 1px 0 rgba(255,255,255,.8);
}

#merchant .store-settings-field {
  background: rgba(255, 255, 255, .68);
  border-radius: 15px;
  padding: 10px;
  margin-bottom: 5px;
  box-shadow: 0 4px 14px rgba(130, 95, 48, .055);
}

#merchant .store-settings-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #16120d;
  margin-bottom: 9px;
}

#merchant .store-settings-required {
  color: #e53935;
  margin-left: 2px;
}

#merchant .store-settings-label-icon {
  width: 20px;
  height: 20px;
  color: #bf873a;
  flex: 0 0 20px;
}

#merchant .store-settings-upload {
  height: 76px;
  border-radius: 13px;
  border: 1.5px dashed rgba(196, 139, 56, .68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(218, 166, 82, .06), transparent 48%),
    rgba(255, 253, 248, .65);
  position: relative;
  overflow: hidden;
  cursor: text;
}

#merchant .store-settings-upload input {
  display: none;
}

#merchant .store-settings-upload-icon {
  width: 30px;
  height: 30px;
  color: #c38b3e;
  margin-bottom: 6px;
}

#merchant .store-settings-upload-title {
  font-size: 18px;
  font-weight: 700;
  color: #bb7d25;
}

#merchant .store-settings-upload-tip {
  margin-top: 4px;
  font-size: 12px;
  color: #7e8490;
}

#merchant .store-settings-upload.has-value .store-settings-upload-title {
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#merchant .store-settings-upload.has-value {
  border-style: solid;
  background:
    radial-gradient(circle at 50% 0%, rgba(218, 166, 82, .1), transparent 48%),
    rgba(255, 248, 233, .86);
}

#merchant .store-settings-input,
#merchant .store-settings-textarea {
  width: 100%;
  border: 1px solid rgba(197, 144, 73, .42);
  outline: none;
  border-radius: 9px;
  background: rgba(255,255,255,.76);
  color: #181818;
  font-size: 16px;
  padding: 0 12px;
  box-shadow: inset 0 1px 2px rgba(161, 111, 45, .03);
}

#merchant .store-settings-input {
  height: 42px;
}

#merchant .store-settings-textarea {
  height: 72px;
  padding-top: 12px;
  resize: none;
  line-height: 1.5;
}

#merchant .store-settings-address {
  height: 70px;
}

#merchant .store-settings-input::placeholder,
#merchant .store-settings-textarea::placeholder {
  color: #8d92a0;
}

#merchant .store-settings-save {
  width: 100%;
  height: 58px;
  margin-top: 7px;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #d89727 0%, #efbd63 42%, #b9770d 100%);
  box-shadow:
    0 10px 18px rgba(156, 101, 19, .26),
    inset 0 1px 0 rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#merchant .store-settings-save svg {
  width: 25px;
  height: 25px;
}

@media (max-width: 520px) {
  #merchant .merchant-products-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  #merchant .merchant-product-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-height: 106px;
    align-items: stretch;
  }

  #merchant .merchant-publish-tile {
    min-height: 102px;
    padding: 10px 1px;
    border-radius: 14px;
    gap: 7px;
  }

  #merchant .merchant-publish-tile span,
  #merchant .merchant-metric i {
    width: 38px;
    height: 38px;
  }

  #merchant .merchant-publish-tile svg {
    width: 24px;
    height: 24px;
  }

  #merchant .merchant-metric {
    gap: 5px;
    padding: 7px 1px 5px;
    border-radius: 15px;
  }

  #merchant .merchant-metric i svg {
    width: 21px;
    height: 21px;
  }

  #merchant .merchant-metric.green i,
  #merchant .merchant-metric.blue i,
  #merchant .merchant-metric.orange i,
  #merchant .merchant-metric.gray i {
    box-shadow: 0 0 0 7px currentColor;
  }

  #merchant .merchant-metric.green i { color: rgba(49, 187, 83, .13); }
  #merchant .merchant-metric.blue i { color: rgba(33, 147, 242, .12); }
  #merchant .merchant-metric.orange i { color: rgba(255, 146, 28, .13); }
  #merchant .merchant-metric.gray i { color: rgba(115, 124, 153, .12); }

  #merchant .merchant-metric.green i svg,
  #merchant .merchant-metric.blue i svg,
  #merchant .merchant-metric.orange i svg,
  #merchant .merchant-metric.gray i svg {
    color: #fff;
  }

  #merchant .merchant-metric.green i { background: linear-gradient(180deg, #83df9d, #25b64c); }
  #merchant .merchant-metric.blue i { background: linear-gradient(180deg, #63b9ff, #168cf0); }
  #merchant .merchant-metric.orange i { background: linear-gradient(180deg, #ffbd69, #ff8b16); }
  #merchant .merchant-metric.gray i { background: linear-gradient(180deg, #a3abc4, #68718d); }

  #merchant .merchant-publish-tile b,
  #merchant .merchant-metric span {
    font-size: 13px;
    line-height: 1.15;
    white-space: nowrap;
  }

  #merchant .merchant-metric b {
    font-size: 20px;
  }

  #merchant .merchant-metric:not(:last-child)::after {
    top: 30px;
    height: 66px;
  }
}

@media (max-width: 380px) {
  #merchant .store-settings-title {
    font-size: 31px;
  }

  #merchant .store-settings-subtitle {
    font-size: 14px;
    max-width: 205px;
  }

  #merchant .store-settings-illustration {
    transform: scale(.88);
    right: 4px;
  }

  #merchant .store-settings-card {
    padding: 12px 10px;
  }

  #merchant .store-settings-upload {
    height: 72px;
  }

  #merchant .store-settings-save {
    height: 54px;
  }
}

@media (max-width: 380px) {
  #merchant {
    padding-left: 18px;
    padding-right: 18px;
  }

  #merchant .status-card {
    padding: 20px 18px;
    gap: 14px;
  }

  #merchant .merchant-status-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  #merchant .merchant-status-info b {
    font-size: 21px;
  }

  #merchant .merchant-status-info span {
    font-size: 13px;
  }

  #merchant .merchant-form-card h2 {
    font-size: 27px;
  }

  #merchant .merchant-field input,
  #merchant .merchant-field textarea {
    font-size: 19px;
  }

  #merchant .merchant-hero-card {
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 23px 44px 23px 14px;
  }

  #merchant .merchant-shop-logo {
    width: 78px;
    height: 78px;
  }

  #merchant .merchant-name-line h2 {
    max-width: 112px;
    font-size: 23px;
  }

  #merchant .merchant-name-line span {
    height: 30px;
    padding: 0 11px;
    font-size: 14px;
  }

  #merchant .merchant-product-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 4px;
  }

  #merchant .merchant-publish-tile {
    min-height: 116px;
  }

  #merchant .merchant-metric:not(:last-child)::after {
    display: none;
  }

  #merchant .merchant-tools {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }
}

@media (max-width: 380px) {
  #merchant .merchant-product-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  #merchant .merchant-publish-tile {
    min-height: 96px;
    padding-left: 1px;
    padding-right: 1px;
  }

  #merchant .merchant-publish-tile span,
  #merchant .merchant-metric i {
    width: 34px;
    height: 34px;
  }

  #merchant .merchant-publish-tile svg,
  #merchant .merchant-metric i svg {
    width: 19px;
    height: 19px;
  }

  #merchant .merchant-publish-tile b,
  #merchant .merchant-metric span {
    font-size: 12px;
  }

  #merchant .merchant-metric b {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  #profile .profile-hero-title { font-size: 24px; }
  #profile .profile-main { gap: 13px; }
  #profile .avatar { width: 74px; height: 74px; }
  #profile .username { font-size: 23px; }
  #profile .grid-item { height: 102px; }
  #profile .label { font-size: 16px; }
}
#messages {
  min-height: calc(100vh - 120px);
}
body.keyboard-open #messages.chat-open {
  min-height: var(--app-vh);
  padding-bottom: 0;
}
#messages .section-head {
  align-items: center;
}
.message-search-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #f4f6f9;
  color: #111827;
}
.message-search-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.thread-search-bar {
  margin: -4px 0 8px;
}
.thread-search-bar input {
  height: 42px;
  border: 0;
  border-radius: 21px;
  background: #f4f6f9;
  padding: 0 15px;
}
#messages.chat-open .section-head,
#messages.chat-open .thread-search-bar,
#messages.chat-open #threadList {
  display: none;
}
.thread {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
}
.thread-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  font-weight: 700;
}
.thread-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.thread-main b {
  color: #111827;
  font-size: 16px;
  font-weight: 500;
}
.thread-main em {
  overflow: hidden;
  color: #8b95a5;
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread small {
  align-self: start;
  max-width: 78px;
  color: #a3acba;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}
.chat-panel {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
}
body.keyboard-open #messages.chat-open .chat-panel {
  min-height: calc(var(--app-vh) - 28px);
  height: calc(var(--app-vh) - 28px);
  overflow-anchor: none;
}
.chat-panel.hidden {
  display: none !important;
}
.chat-title {
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px 1fr 42px;
  gap: 8px;
  align-items: center;
  padding: 10px 2px 12px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}
.chat-title button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  color: #111827;
  background: transparent;
  font-size: 25px;
}
.chat-head-main {
  min-width: 0;
}
.chat-title .chat-head-main b {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}
.chat-title .chat-head-main span {
  display: block;
  margin-top: 4px;
  color: #ff6a00;
  font-size: 15px;
  letter-spacing: 1px;
}
.chat-title .chat-head-shop {
  font-size: 24px;
  border-radius: 10px;
}
.chat-title .chat-head-shop svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chat-messages {
  min-height: 520px;
  overflow: auto;
  padding: 14px 8px 18px;
  background: #fff;
}
body.keyboard-open #messages.chat-open .chat-messages {
  min-height: 0;
}
.chat-time-divider {
  width: fit-content;
  margin: 8px auto 8px;
  padding: 3px 10px;
  color: #98a2b3;
  font-size: 13px;
}
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.chat-row.mine {
  flex-direction: row-reverse;
}
.chat-row > img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}
.chat-row em {
  display: block;
  margin: 0 0 3px 2px;
  color: #6b7280;
  font-size: 16px;
  font-style: normal;
}
.chat-row > div {
  max-width: min(78vw, 360px);
}
.bubble {
  width: fit-content;
  max-width: min(78vw, 360px);
  padding: 8px 12px;
  color: #171717;
  background: #fff;
  border-radius: 2px 12px 12px 12px;
  box-shadow: 0 4px 18px rgba(15,23,42,.03);
  font-size: 20px;
  line-height: 1.25;
}
.chat-row.mine .bubble {
  color: #111827;
  background: #ffe6d8;
  border-radius: 12px 2px 12px 12px;
}
.bubble small {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 12px;
}
.chat-row.mine .bubble small {
  color: #9b7b6a;
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 10px;
  padding: 14px 8px max(14px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98);
  border-top: 1px solid #eef1f6;
}
body.keyboard-open #messages.chat-open .chat-form {
  overflow-anchor: none;
}
.chat-form input {
  height: 52px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef1f6;
  font-size: 16px;
}
.chat-form button {
  height: 52px;
  padding: 0;
  border-radius: 26px;
  background: #ff6a00;
  font-size: 16px;
  font-weight: 500;
}

.wide { width: 100%; }
.danger { background: #555; }
.secondary { background: #222; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hidden { display: none !important; }
dialog { border: 0; border-radius: 8px; width: min(92vw, 360px); padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.38); }
.auth-card { padding: 18px; display: grid; gap: 10px; }
.auth-card h2 { margin: 0 0 6px; }

#authDialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  overflow: auto;
  background: linear-gradient(180deg, #fff2bf 0%, #fff8df 45%, #f7c66c 100%);
  box-shadow: none;
}

#authDialog::backdrop {
  background: transparent;
}

.sms-auth-card {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(32px + env(safe-area-inset-bottom));
  gap: 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.92), transparent 12%),
    radial-gradient(circle at 85% 22%, rgba(255,186,50,.42), transparent 16%),
    radial-gradient(circle at 12% 88%, rgba(188,105,13,.32), transparent 18%),
    linear-gradient(160deg, rgba(255,246,204,.82), rgba(255,231,153,.7));
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, .72);
  color: #a5600d;
  border: 1px solid rgba(191, 120, 28, .22);
  font-size: 22px;
}

.auth-hero {
  text-align: center;
  color: #8d4e08;
}

.auth-hero img {
  width: 172px;
  height: 172px;
  object-fit: contain;
  filter: none;
}

.auth-hero h1 {
  margin: -6px 0 2px;
  color: #a56510;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 8px;
  font-weight: 800;
  text-shadow: 0 2px 0 #fff0bb, 0 8px 18px rgba(129, 64, 0, .25);
}

.auth-hero p {
  margin: 0;
  font-size: 18px;
  letter-spacing: 8px;
  color: #8b4a08;
}

.auth-panel {
  border-radius: 28px;
  padding: 24px 22px 22px;
  background: rgba(255, 255, 255, .72);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(193, 122, 31, .18), 0 18px 40px rgba(123, 73, 16, .16);
}

.auth-panel h2 {
  margin: 0;
  text-align: center;
  color: #b06a10;
  font-size: 32px;
  letter-spacing: 5px;
  font-weight: 800;
}

.auth-title-line {
  width: 180px;
  height: 12px;
  margin: 6px auto 20px;
  background: linear-gradient(90deg, transparent, #d18a22 35%, #b06a10 50%, #d18a22 65%, transparent);
  mask: linear-gradient(#000 0 0) center / 100% 2px no-repeat, radial-gradient(circle, #000 3px, transparent 4px) center / 12px 12px no-repeat;
}

.sms-field {
  height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(210, 145, 54, .42);
  box-shadow: inset 0 2px 10px rgba(162, 93, 10, .08), 0 8px 18px rgba(154, 88, 8, .08);
}

.sms-field input {
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 18px;
  color: #4b2a07;
}

.sms-field input::placeholder {
  color: rgba(104, 73, 38, .52);
}

.sms-icon {
  color: #b16c12;
  font-size: 28px;
  display: grid;
  place-items: center;
}

.sms-code-icon {
  width: 24px;
  height: 24px;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  border: 2px solid #b16c12;
  background: rgba(255, 248, 230, .85);
  box-sizing: border-box;
}

.sms-code-icon i {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 8px;
  border-radius: 2px;
  background: #d98a18;
  color: #fff9e8;
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.sms-code-field {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.sms-code-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.45);
  color: #c87808;
  border: 2px solid #d88913;
  font-size: 15px;
  font-weight: 700;
}

.sms-code-btn:disabled {
  opacity: .6;
}

.sms-tip,
.sms-agree {
  margin: 0;
  text-align: center;
  color: #9a5c16;
  font-size: 14px;
}

.sms-tip {
  margin-top: 2px;
}

.sms-login-btn {
  width: 100%;
  height: 60px;
  margin: 22px 0 16px;
  border-radius: 24px;
  color: #633400;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #ffd778 0%, #f9a625 45%, #ce7410 100%);
  border: 2px solid #ffe4a0;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.75), 0 10px 22px rgba(160, 88, 8, .28);
}

.sms-agree {
  line-height: 1.6;
}

@media (max-width: 520px) {
  #authDialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .sms-auth-card {
    min-height: 100dvh;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .auth-hero img {
    width: 128px;
    height: 128px;
  }
  .auth-hero h1 {
    font-size: 42px;
    letter-spacing: 6px;
  }
  .auth-hero p {
    font-size: 14px;
    letter-spacing: 5px;
  }
  .auth-panel {
    padding: 18px 14px;
    border-radius: 22px;
  }
  .auth-panel h2 {
    font-size: 26px;
    letter-spacing: 4px;
  }
  .sms-field {
    height: 52px;
    grid-template-columns: 34px 1fr;
    padding: 0 12px;
    border-radius: 15px;
  }
  .sms-code-field {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .sms-field input {
    font-size: 16px;
  }
  .sms-icon {
    font-size: 24px;
  }
  .sms-code-btn {
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }
  .sms-login-btn {
    height: 54px;
    margin: 18px 0 12px;
    border-radius: 20px;
    font-size: 24px;
  }
}

.admin-body {
  color: #111827;
  background:
    radial-gradient(circle at 88% 0%, rgba(226, 46, 36, .10), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5fb 100%);
}
.admin-login { min-height: 100vh; display: grid; place-items: center; }
.admin-login-card {
  width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  display: grid;
  gap: 12px;
}
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar {
  color: #fff;
  padding: 22px 12px;
  background: linear-gradient(180deg, #141820 0%, #20242d 100%);
  box-shadow: inset -1px 0 rgba(255,255,255,.06);
}
.sidebar-brand {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  margin: 0 6px 22px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}
.sidebar-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}
.sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: #98a4b8;
  font-size: 12px;
}
.sidebar-group {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}
.sidebar-group > span {
  padding: 0 12px 5px;
  color: #7f8ba0;
  font-size: 12px;
}
.sidebar button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  color: #cfd6e4;
  border-radius: 10px;
  margin-bottom: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar button:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.sidebar button.active {
  background: linear-gradient(135deg, #ef3a31, #d91f1f);
  color: #fff;
  box-shadow: 0 12px 24px rgba(226, 46, 36, .24);
}
.admin-main { padding: 26px; overflow: auto; }
.admin-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-title h2 { margin: 0; font-size: 26px; }
.admin-title button {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(226, 46, 36, .18);
}
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 14px; }
.stat, .admin-table, .settings-form {
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}
.stat span { color: var(--muted); }
.stat b { display: block; margin-top: 10px; font-size: 30px; color: var(--red); }
.admin-table { overflow: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; min-width: 780px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #edf1f6; text-align: left; font-size: 14px; }
th { background: #f8fafc; color: #667085; font-size: 13px; font-weight: 600; }
tbody tr:hover { background: #fbfcff; }
td button { margin-right: 6px; padding: 7px 10px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #555;
  background: #f1f1f1;
  font-size: 13px;
  font-weight: 700;
}
.status-badge.approved {
  color: #137333;
  background: #e8f5e9;
}
.status-badge.rejected {
  color: #8a1c1c;
  background: #fdeaea;
}
.settings-form { display: grid; gap: 12px; max-width: 760px; }
.settings-form label { display: grid; gap: 6px; color: var(--muted); }
.settings-form .copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}
.settings-form .copy-field button {
  height: 44px;
  align-self: end;
}
.user-admin-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}
.user-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}
.user-summary div {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.user-summary span {
  display: block;
  color: #7d8798;
  font-size: 13px;
}
.user-summary b {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 24px;
}
.user-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7d8798;
  font-size: 13px;
}
.user-filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  width: max-content;
  padding: 4px;
  border-radius: 13px;
  background: #f3f6fb;
}
.user-filter-tabs button {
  min-height: 34px;
  margin: 0;
  background: transparent;
  color: #202124;
  border: 0;
  border-radius: 10px;
}
.user-filter-tabs button.active {
  background: #fff;
  color: #fff;
  color: #df2d26;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.grant-points-form {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #fff7f6, #f7fbff);
  border: 1px solid #edf1f6;
  border-radius: 14px;
}
.grant-head b {
  display: block;
  color: #111827;
  font-size: 15px;
}
.grant-head span {
  display: block;
  margin-top: 5px;
  color: #7d8798;
  font-size: 12px;
}
.grant-fields {
  display: grid;
  grid-template-columns: 230px 140px minmax(180px, 1fr) 126px;
  gap: 8px;
}
.point-adjust {
  display: grid;
  grid-template-columns: 84px 58px 58px;
  gap: 6px;
}
.point-adjust input,
.grant-points-form input,
.grant-points-form select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}
.point-adjust button {
  height: 38px;
  padding: 0 10px;
}
.settings-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-form .check input {
  width: auto;
}
.support-avatar-setting {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.admin-support-upload {
  min-height: 116px;
  border: 1px dashed #cfd7e6;
  border-radius: 12px;
  background: #fafcff;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
}
.admin-support-upload.has-value {
  border-style: solid;
  background: #fff;
}
.admin-support-preview {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #ef2b2b;
  background: #fff2f2;
  font-size: 24px;
  font-weight: 700;
}
.admin-support-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-support-upload strong {
  color: #101936;
  font-size: 15px;
}
.admin-support-upload small {
  color: #8992a3;
}
.support-body {
  margin: 0;
  background: #f4f6fb;
}
.support-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
}
.support-sidebar {
  background: #fff;
  border-right: 1px solid #e8edf5;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.support-side-head,
.support-panel-head {
  min-height: 70px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8edf5;
}
.support-side-head { justify-content: space-between; }
.support-side-head h1 { margin: 0; font-size: 22px; }
.support-panel-back {
  display: none;
}
.support-side-head button,
.support-reply-form button {
  border-radius: 10px;
  background: #ef2b2b;
}
.support-thread-list { overflow: auto; padding: 8px; }
.support-thread {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: transparent;
  color: #101936;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  position: relative;
}
.support-thread.active,
.support-thread:hover { background: #f0f5ff; }
.support-unread-dot {
  display: none;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef2b2b;
  box-shadow: 0 0 0 3px rgba(239, 43, 43, .12);
}
.support-thread.has-unread .support-unread-dot {
  display: block;
}
.support-thread span { min-width: 0; }
.support-thread b,
.support-panel-head b {
  display: block;
  font-size: 16px;
  color: #101936;
}
.support-thread em,
.support-panel-head span {
  display: block;
  margin-top: 4px;
  color: #7d8798;
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-thread small {
  color: #9aa3b4;
  font-size: 12px;
}
.support-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff7a57, #e81d28);
  font-weight: 700;
}
.support-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.support-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #f8fafc;
}
.support-empty-title { color: #7d8798; }
.support-panel-messages {
  padding: 18px;
  overflow: auto;
}
.support-panel-row {
  display: flex;
  margin-bottom: 10px;
}
.support-panel-row.mine { justify-content: flex-end; }
.support-panel-bubble {
  max-width: min(520px, 72%);
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(20, 36, 58, .06);
}
.support-panel-row.mine .support-panel-bubble {
  color: #fff;
  background: linear-gradient(135deg, #ff9f29, #ff2b1f);
}
.support-panel-bubble p {
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}
.support-panel-media {
  display: block;
  max-width: 240px;
  max-height: 260px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 6px;
  background: #f3f6fb;
}
.support-panel-bubble time {
  display: block;
  margin-top: 4px;
  color: rgba(125, 135, 152, .85);
  font-size: 11px;
}
.support-panel-row.mine time { color: rgba(255,255,255,.72); }
.support-reply-form {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 44px 1fr 88px;
  gap: 10px;
  border-top: 1px solid #e8edf5;
  background: #fff;
}
.support-reply-form input[name="body"] {
  min-height: 42px;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  padding: 0 14px;
}
.support-panel-media-pick {
  width: 44px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  color: #ff6b19;
  background: #fff7ef;
  border: 1px solid #f2d8c2;
  font-size: 24px;
}
.support-panel-media-preview {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: #fff8f2;
  color: #7d8798;
  font-size: 13px;
}
.support-panel-media-preview.has-media {
  display: flex;
}
.support-panel-media-preview img,
.support-panel-media-preview video {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f6fb;
}
.support-panel-media-preview span {
  flex: 1;
}
.support-panel-media-preview button {
  padding: 6px 10px;
  border-radius: 9px;
  background: #eef2f7;
  color: #475467;
  font-size: 12px;
}
.icon-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}
.icon-upload {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}
.icon-preview {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px dashed #ddd;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 12px;
  background: #fff;
}
.icon-preview img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.moderation-list {
  display: grid;
  gap: 14px;
}
.moderation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.moderation-summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
}
.moderation-summary-card .moderation-pair {
  grid-column: 1 / -1;
}
.moderation-summary-card .moderation-last {
  margin: 0;
}
.moderation-open,
.moderation-back {
  justify-self: end;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
}
.moderation-pair {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.moderation-pair > em {
  color: var(--muted);
  font-style: normal;
}
.moderation-person {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.moderation-person b,
.moderation-person span,
.moderation-person small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.moderation-person b {
  font-size: 15px;
}
.moderation-person span,
.moderation-person small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
}
.moderation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff6b63, #d43c6f);
}
.moderation-person.merchant .moderation-avatar {
  background: linear-gradient(135deg, #2f83ff, #31b981);
}
.moderation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moderation-avatar span {
  color: #fff;
  font-weight: 700;
}
.moderation-meta {
  min-width: 120px;
  text-align: right;
}
.moderation-meta b,
.moderation-meta span {
  display: block;
}
.moderation-meta b {
  color: var(--red);
  font-size: 18px;
}
.moderation-meta span {
  margin-top: 4px;
  color: #8b95a1;
  font-size: 12px;
}
.moderation-last {
  margin: 14px 0 10px;
  color: #4b5563;
  background: #f8fafc;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
}
.moderation-chat {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  background: #f6f7f9;
  border-radius: 8px;
}
.moderation-message {
  width: fit-content;
  max-width: min(620px, 82%);
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
.moderation-message.merchant {
  justify-self: end;
  background: #e8f2ff;
}
.moderation-message strong {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}
.moderation-message p {
  margin: 0;
  color: #111827;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.moderation-message time {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 11px;
}
.moderation-detail {
  display: grid;
  gap: 10px;
}
.moderation-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.moderation-detail-head h3 {
  margin: 0;
  font-size: 16px;
}
.moderation-detail-head p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 12px;
}
.moderation-detail-head .moderation-back {
  justify-self: auto;
  background: #f2f3f5;
  color: #202124;
}
.moderation-chat-detail {
  align-content: start;
  max-height: none;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.moderation-chat-detail .moderation-message {
  width: auto;
  max-width: 720px;
  padding: 7px 9px;
  border: 1px solid #eef0f3;
  box-shadow: none;
}
.moderation-chat-detail .moderation-message.merchant {
  justify-self: start;
  background: #f3f8ff;
}
.moderation-chat-detail .moderation-message strong,
.moderation-chat-detail .moderation-message p,
.moderation-chat-detail .moderation-message time {
  display: inline;
  margin: 0;
}
.moderation-chat-detail .moderation-message strong {
  margin-right: 8px;
}
.moderation-chat-detail .moderation-message p {
  margin-right: 8px;
}
.moderation-chat-detail .moderation-message time {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .support-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .support-sidebar {
    border-right: 0;
    border-bottom: 0;
    min-height: 100vh;
  }
  .support-panel {
    display: none;
    min-height: 100vh;
  }
  .support-shell.support-chat-open .support-sidebar {
    display: none;
  }
  .support-shell.support-chat-open .support-panel {
    display: grid;
  }
  .support-panel-back {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: #101936;
    background: #f3f6fb;
    font-size: 28px;
    line-height: 1;
  }
  .support-thread-list {
    padding: 0 18px 18px;
  }
  .support-thread {
    padding: 14px 6px;
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
  }
  .support-thread.active {
    background: transparent;
  }
  .support-reply-form {
    grid-template-columns: 42px 1fr 72px;
    padding: 10px;
  }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #merchant #productForm .publish-head {
    grid-template-columns: 80px 1fr 80px;
  }
  #merchant #productForm .publish-head h2 {
    font-size: 20px;
  }
  #merchant #productForm .publish-back,
  #merchant #productForm .publish-draft {
    padding: 0 9px;
    font-size: 13px;
  }
  #merchant #productForm .publish-section {
    padding: 16px 14px;
    border-radius: 16px;
  }
  #merchant #productForm .product-field {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
  }
  #merchant #productForm .product-field > span {
    gap: 7px;
    font-size: 14px;
  }
  #merchant #productForm .product-field > span i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  #merchant #productForm .service-tag-row {
    grid-template-columns: 78px minmax(0, 1fr) 30px;
    gap: 6px;
  }
  #merchant #productForm .service-tag-remove {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  #merchant #productForm .limit-choice {
    padding-left: 128px;
    gap: 10px;
  }
  #merchant #productForm .editor-toolbar {
    gap: 10px;
    padding: 0 10px;
    overflow: hidden;
  }
  #merchant #productForm .publish-actions {
    grid-template-columns: .52fr 1fr;
  }
  .merchant-product-row {
    grid-template-columns: 48px 1fr;
  }
  .merchant-product-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 12px;
  }
  .sidebar-brand { grid-column: 1 / -1; }
  .sidebar-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
  }
  .sidebar-group > span {
    grid-column: 1 / -1;
  }
  .admin-main { padding: 18px 12px; }
  .stats-grid,
  .user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .user-filter-tabs {
    width: 100%;
  }
  .grant-points-form,
  .grant-fields {
    grid-template-columns: 1fr;
  }
  .moderation-pair {
    grid-template-columns: 1fr;
  }
  .moderation-pair > em {
    display: none;
  }
  .moderation-meta {
    text-align: left;
  }
}

.password-field { grid-template-columns: 42px minmax(0, 1fr); }
.password-icon { font-size: 24px; }

.profile-upload-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(233, 43, 37, .35);
  border-radius: 14px;
  background: rgba(255, 245, 246, .72);
  color: #10203b;
}
.profile-upload-field span { font-weight: 700; }
.profile-upload-field input { display: block; width: 100%; font-size: 13px; }
.profile-upload-field em { font-style: normal; color: #8a94a8; font-size: 12px; }
.profile-password-form input { letter-spacing: 0; }

.profile-detail .section-head {
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}
.profile-round-back {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  color: #7a321f;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 10px 22px rgba(140, 36, 36, .12), inset 0 1px 0 rgba(255,255,255,.9);
}
#profileDetailRefresh { display: none !important; }

.profile-account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(214, 223, 238, .9);
  color: #526079;
  font-size: 14px;
}
.profile-account-line b {
  color: #10203b;
  font-weight: 600;
  word-break: break-all;
}
