:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --panel: #ffffff;
  --panel-2: #eef3f5;
  --line: #d5dfe5;
  --text: #202d36;
  --muted: #647581;
  --orange: #e96f17;
  --orange-2: #b64d08;
  --green: #15865a;
  --danger: #bd3a3a;
  --teal: #187874;
  --teal-soft: #e8f5f3;
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(151, 111, 39, .16), transparent 28%),
    radial-gradient(circle at 88% 42%, rgba(112, 79, 27, .1), transparent 24%),
    repeating-linear-gradient(125deg, rgba(167, 125, 48, .035) 0 1px, transparent 1px 34px),
    linear-gradient(155deg, #252525 0%, #151515 52%, #090909 100%);
  background-attachment: fixed;
  color: var(--text);
}

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

button {
  border: 0;
  cursor: pointer;
}

.shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 14px 14px 86px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f1e9;
  background: transparent;
  padding: 0;
  text-align: left;
}

.brand small {
  display: block;
  color: #b6aa91;
  margin-top: 2px;
}

.brand-avatar {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #111111;
}

.logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 34px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0;
  background: #ffffff;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.hero {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
}

.eyebrow {
  color: var(--orange-2);
  font-size: 12px;
  margin: 0 0 8px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.12; margin-bottom: 12px; letter-spacing: 0; overflow-wrap: anywhere; }
h2 { font-size: 20px; margin-bottom: 12px; letter-spacing: 0; }
h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.65; }

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

.hero-panel span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--teal-soft);
  color: #285b5d;
  font-size: 12px;
  text-align: center;
}

.trust-panel {
  border: 1px solid var(--line);
  background: #ffffff;
}

.trust-panel p {
  margin: 0;
  padding-left: 11px;
  border-left: 3px solid var(--orange);
  font-size: 13px;
}

.section { margin-top: 18px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h1, .section-head h2, .section-head h3 { margin: 0; }
.section-head span { color: var(--muted); font-size: 13px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  border: 1px solid #e5e2dd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(49, 44, 38, .07);
}

.product.selected {
  border-color: #e9a51e;
  box-shadow: 0 0 0 2px rgba(233,165,30,.2), 0 7px 18px rgba(49, 44, 38, .08);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.12 / 1;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #eeeae5;
  background: #f1f1f1;
  color: var(--orange-2);
  font-size: 12px;
  text-align: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hot {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: #d96b35;
  font-size: 11px;
  font-weight: 800;
}

.product-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 11px 12px;
}

.product-category {
  overflow: hidden;
  color: #a2784e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product p {
  display: -webkit-box;
  min-height: 36px;
  margin: 0;
  overflow: hidden;
  color: #68727a;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.product-price {
  color: #d84b26;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.product-sales {
  min-width: 0;
  overflow: hidden;
  color: #8a8f91;
  font-size: 11px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sales del {
  margin-right: 4px;
  color: #a8abad;
  font-weight: 400;
}

.panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
}

.chosen {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f7f9fa;
  border-radius: var(--radius);
}
.chosen p { margin: 4px 0 0; font-size: 13px; }
.price { color: var(--orange); font-weight: 900; white-space: nowrap; }

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.chip {
  min-height: 44px;
  padding: 9px 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fa;
}
.chip.selected { border-color: var(--orange); color: var(--orange-2); background: #fff5ec; }

label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: #354550;
  font-size: 14px;
}

input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); }

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

.summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.summary span, .summary strong { display: flex; justify-content: space-between; }
.summary strong { color: var(--orange-2); font-size: 18px; }

.primary, .secondary, .ghost, .danger, .mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text);
}
.primary { background: var(--orange); color: #ffffff; font-weight: 900; }
.secondary { border: 1px solid var(--line); background: #edf2f5; }
.ghost { border: 1px solid var(--line); background: transparent; }
.danger { background: #fff1f1; border: 1px solid #e8aaaa; color: #a52f2f; }
.mini { min-height: 32px; padding: 6px 8px; background: #edf2f5; border: 1px solid var(--line); font-size: 12px; }
.tiny { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.wide { width: 100%; }
button:disabled { opacity: .55; cursor: wait; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.fineprint, .warn, .ok, .empty { font-size: 13px; }
.warn { color: #945600; }
.ok { color: var(--green); }
.empty { color: var(--muted); }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 520px);
  padding: 8px max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

/* Club-style customer surface */
.club-header { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 10px; align-items: center; margin-bottom: 12px; }
.search-box { display: flex; align-items: center; gap: 9px; min-width: 0; height: 48px; padding: 0 15px; margin: 0; border: 1px solid #e3e7e9; border-radius: 26px; background: #ffffff; color: #75828a; box-shadow: 0 5px 18px rgba(52, 64, 72, .05); }
.search-box input { min-height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
.search-box input:focus { border: 0; }
.round-action { display: grid; place-items: center; width: 52px; height: 48px; border: 1px solid #e3e7e9; border-radius: 50%; color: #5f6b73; background: #ffffff; box-shadow: 0 5px 18px rgba(52, 64, 72, .05); }
.round-action .icon { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.guarantee-poster {
  display: block;
  width: 100%;
  aspect-ratio: 911 / 640;
  overflow: hidden;
  border: 1px solid rgba(187, 142, 54, .46);
  border-radius: 8px;
  background: #0b0b0b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34), 0 0 0 1px rgba(193, 144, 53, .1);
}
.guarantee-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-section > .section-head h2 { color: #f5f2eb; }
.catalog-section > .section-head span { color: #b9ad97; }
.catalog-section { margin-top: 18px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.activity-card { min-height: 94px; padding: 17px 14px; border: 1px solid #eadfd2; border-radius: 10px; color: #ffffff; text-align: left; box-shadow: 0 8px 18px rgba(56, 53, 46, .08); }
.activity-card strong, .activity-card span { display: block; }
.activity-card strong { margin-bottom: 8px; font-size: 18px; }
.activity-card span { font-size: 12px; opacity: .9; }
.home-promos .activity-card { display: grid; grid-template-columns: 30px 1fr; align-content: center; column-gap: 8px; min-height: 82px; color: #3b464c; background: #ffffff; }
.home-promos .activity-card strong, .home-promos .activity-card span:not(.promo-icon) { grid-column: 2; }
.home-promos .activity-card strong { margin-bottom: 3px; }
.home-promos .activity-card span:not(.promo-icon) { color: #8b9295; }
.home-promos .promo-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #d96b35; background: #fff1e6; }
.home-promos .promo-icon .icon { width: 18px; height: 18px; }
.notice-ticker { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; margin: 12px 0; border: 1px solid #ebe8e2; border-radius: 24px; background: #ffffff; overflow: hidden; }
.notice-ticker > span { color: #9b7856; }
.notice-ticker > div { display: flex; align-items: baseline; gap: 12px; min-width: 0; white-space: nowrap; overflow: hidden; }
.notice-ticker strong { color: #8d6947; flex: 0 0 auto; }
.notice-ticker div > span { color: #78838a; overflow: hidden; text-overflow: ellipsis; }
.club-page-head { padding: 8px 4px 16px; }
.club-page-head h1 { margin-bottom: 6px; font-size: 28px; }
.club-page-head p { margin-bottom: 0; }
.club-segmented { margin: 0 0 18px; border-radius: 14px; background: rgba(255, 255, 255, .72); padding: 5px; }
.club-segmented button { min-height: 46px; border-radius: 11px; color: #758088; font-size: 16px; }
.club-segmented button.active { background: #202124; color: #ffffff; }
.category-groups { display: grid; gap: 14px; }
.category-group { padding: 18px 16px; border: 1px solid #ece9e4; border-radius: 16px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(49, 58, 64, .04); }
.category-group h2 { font-size: 22px; }
.category-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding-top: 14px; border-top: 1px solid #eeeae5; }
.category-product { display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 0 3px; color: var(--text); background: transparent; text-align: center; }
.category-product-image { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border: 1px solid #d4c8ba; border-radius: 18px; background: #f1f1f1; color: #aa7c51; }
.category-product-image img { width: 100%; height: 100%; object-fit: cover; }
.category-product strong, .category-product small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-product strong { font-size: 14px; }
.category-product small { color: #9a6c3f; }
.ranking-list { display: grid; gap: 12px; }
.ranking-item { display: grid; grid-template-columns: 24px 68px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 12px; border: 1px solid #ece9e4; border-radius: 14px; background: rgba(255, 255, 255, .92); }
.rank-number { color: #a77746; font-size: 18px; font-weight: 900; text-align: center; }
.ranking-image { display: grid; place-items: center; width: 68px; height: 68px; overflow: hidden; border-radius: 50%; background: #f1f1f1; color: #a77746; }
.ranking-image img { width: 100%; height: 100%; object-fit: cover; }
.ranking-main { display: grid; gap: 5px; min-width: 0; }
.ranking-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-main small { color: var(--muted); font-size: 11px; }
.rank-bar { height: 9px; overflow: hidden; border-radius: 9px; background: #e8e9e9; }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: #e9a51e; }
.ranking-actions { display: grid; gap: 7px; width: 88px; }
.ranking-actions button { width: 100%; padding-left: 4px; padding-right: 4px; }
.message-panel { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid #ece9e4; border-radius: 16px; background: rgba(255,255,255,.9); }
.message-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 82px; padding: 10px 2px; border-bottom: 1px solid #eeeae5; }
.message-card:last-child { border-bottom: 0; }
.message-card > div { min-width: 0; }
.message-card strong { display: block; }
.message-card p { margin: 4px 0 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.message-card time, .message-card > small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.message-avatar { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 13px; color: #ffffff; background: #6e7882; }
.message-avatar .social-avatar { width: 100%; height: 100%; border-radius: 0; }
.message-avatar-service { color: #d96b2b; background: #fff0df; }
.message-avatar-system { background: #1d2125; }
.message-empty { padding: 24px 0; text-align: center; }
.profile-guest { max-width: 420px; padding: 54px 24px; margin: 28px auto 0; border: 1px solid #ece9e4; border-radius: 18px; background: rgba(255,255,255,.9); text-align: center; }
.profile-guest .wide + .wide { margin-top: 10px; }
.profile-avatar { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 12px; border: 3px solid #ffffff; border-radius: 24px; color: #ad7746; background: #f4e3c6; box-shadow: 0 4px 15px rgba(69, 55, 36, .12); }
.profile-avatar .icon { width: 36px; height: 36px; }
.profile-avatar-image { overflow: hidden; }
.profile-avatar-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero { display: grid; grid-template-columns: 82px minmax(0, 1fr) 42px; gap: 14px; align-items: center; padding: 18px 4px 20px; }
.profile-hero .profile-avatar { margin: 0; }
.profile-hero h1 { margin: 0 0 3px; font-size: 24px; }
.profile-hero p { margin: 0; font-size: 12px; }
.profile-settings { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 20px 10px; border: 1px solid #ece9e4; border-radius: 18px; background: rgba(255,255,255,.9); }
.profile-stats div { display: grid; justify-items: center; gap: 5px; border-right: 1px solid #eeeae5; }
.profile-stats div:last-child { border-right: 0; }
.profile-stats strong { font-size: 24px; }
.profile-stats span { color: var(--muted); font-size: 12px; }
.profile-entry { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 15px 4px; margin-top: 14px; color: var(--text); border: 1px solid #ece9e4; border-radius: 15px; background: #ffffff; text-align: left; }
.entry-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #aa7848; background: #fff0d5; }
.profile-entry strong, .profile-entry small { display: block; }
.profile-entry small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.chat-page { display: grid; gap: 12px; min-height: calc(100vh - 110px); padding-bottom: 16px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.chat-head div { display: grid; gap: 2px; }
.chat-head small { color: var(--muted); font-size: 12px; }
.chat-messages { display: grid; align-content: start; gap: 12px; padding: 12px 2px; }
.chat-row { display: flex; align-items: flex-start; gap: 8px; max-width: 92%; }
.chat-row.from-user { justify-self: end; flex-direction: row-reverse; }
.chat-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; color: #fff; background: #e6a03b; }
.from-user .chat-avatar { background: #4bbf84; }
.chat-bubble { padding: 10px 12px; border-radius: 6px 12px 12px 12px; color: var(--text); background: #fff; box-shadow: 0 3px 14px rgba(40,48,52,.07); line-height: 1.55; }
.from-user .chat-bubble { border-radius: 12px 6px 12px 12px; background: #e7f8ee; }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; }
.chat-quick button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: #fff; }
.chat-composer { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.chat-composer input { flex: 1; min-width: 0; border: 0; outline: 0; }
.chat-composer button { width: 42px; min-height: 40px; padding: 0; }
.onboarding-panel { margin-top: 14px; }
.onboarding-qr { display: grid; justify-items: center; gap: 10px; padding: 18px 14px 20px; border: 1px solid #ead7b5; border-radius: 8px; background: #fffaf0; text-align: center; }
.onboarding-qr img { display: block; width: min(100%, 430px); height: auto; border-radius: 6px; }
.onboarding-qr strong { color: #6d4a2a; }
.onboarding-qr p { max-width: 280px; color: var(--muted); }
.qr-placeholder { display: grid; justify-items: center; gap: 10px; min-height: 280px; place-content: center; border: 1px dashed #e3c28d; border-radius: 8px; background: #fffaf0; text-align: center; }
.qr-placeholder .icon { width: 72px; height: 72px; color: #c8892a; }
.qr-placeholder p { max-width: 260px; color: var(--muted); }
.profile-entry.team-entry { margin: 0 0 14px; border-color: #f0d6a8; background: #fffaf0; }
.profile-entry.team-entry .icon:first-child { color: #c47b16; }
.entry-arrow { color: #a0a5a9; font-size: 28px; }
.profile-tools { padding: 18px 14px; margin-top: 14px; border: 1px solid #ece9e4; border-radius: 16px; background: rgba(255,255,255,.9); }
.profile-tools h2 { font-size: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
.tool-grid button { display: grid; justify-items: center; gap: 7px; color: #626a70; background: transparent; font-size: 12px; }
.tool-grid button .icon { width: 26px; height: 26px; }
.modal-backdrop.announcement-backdrop { align-items: center; justify-items: center; padding: 16px; animation: announcement-backdrop-in .18s ease-out both; }
.announcement-modal { position: relative; width: min(100%, 500px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px 22px 20px; border-radius: 24px; background: #ffffff; box-shadow: 0 20px 70px rgba(25, 31, 35, .25); transform-origin: center; animation: announcement-pop-in .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes announcement-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes announcement-pop-in {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop.announcement-backdrop,
  .announcement-modal { animation-duration: .01ms; }
}
.announcement-title { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 16px; color: #555d62; }
.announcement-title small { display: block; color: #a17b55; text-align: center; }
.announcement-title h2 { margin: 3px 0 0; }
.announcement-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #ffffff; background: #b66a39; font-size: 21px; font-weight: 900; }
.announcement-modal h1 { margin-bottom: 10px; font-size: 25px; text-align: center; }
.announcement-modal p { font-size: 13px; }
.announcement-list { display: grid; gap: 10px; padding-left: 20px; margin: 14px 0; color: #4c565c; font-size: 14px; line-height: 1.55; }
.announcement-list li::marker { color: #c07940; font-weight: 800; }
.announcement-notice { padding: 11px 12px; margin-bottom: 16px; border-left: 3px solid #c07940; color: #8a603c; background: #fff7e7; font-size: 13px; line-height: 1.55; }

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 50px;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
}
.bottom-nav button.active { color: var(--orange-2); background: #fff1e6; }
.bottom-nav span { font-size: 12px; }

.order-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.order-title small, .kv dt, table small { display: block; color: var(--muted); font-size: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(233,111,23,.42);
  border-radius: 999px;
  color: var(--orange-2);
  background: #fff3e9;
  white-space: nowrap;
  font-size: 12px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.timeline span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.timeline span.done {
  border-color: rgba(21,134,90,.45);
  color: #0c6845;
  background: #e9f7f0;
}

.kv {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px 10px;
  margin: 0 0 12px;
}
.kv dd { margin: 0; color: #25343e; }
.review-form, .review-box, .notice {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fa;
}
.stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stars button { min-height: 40px; border-radius: 6px; background: #fff2e7; color: var(--orange-2); }

.contact-panel h1 { margin-bottom: 10px; }
.contact-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}
.contact-line span { color: var(--muted); }

.admin { display: grid; gap: 14px; }
.admin > p.ok {
  position: fixed;
  z-index: 120;
  top: 20px;
  left: 50%;
  min-width: 180px;
  max-width: calc(100% - 28px);
  padding: 12px 18px;
  margin: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #28765f;
  box-shadow: 0 12px 32px rgba(28, 55, 48, .24);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  transform: translateX(-50%);
  animation: admin-success-pop .24s ease-out;
}
.admin > p.ok::before { content: "\2713"; margin-right: 7px; }
@keyframes admin-success-pop {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stats div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.stats span { color: var(--muted); font-size: 12px; }
.stats strong { display: block; margin-top: 6px; font-size: 20px; color: var(--orange-2); }

.tabs, .toolbar, .split {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.admin-search { min-width: 240px; }
.tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fa;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button.active { color: var(--orange-2); border-color: var(--orange); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--panel);
}
th, td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
th { color: var(--muted); background: #f1f5f7; position: sticky; top: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-input { width: 66px; min-height: 34px; padding: 6px; display: inline-block; }
.assignment-box { display: grid; gap: 6px; min-width: 180px; }
.assignment-row { display: grid; grid-template-columns: 18px minmax(70px, 1fr) 54px 14px; gap: 5px; align-items: center; color: var(--text); }
.assignment-row input[type="checkbox"] { width: 16px; min-height: 16px; }
.assignment-row .mini-input { width: 54px; min-height: 30px; padding: 4px; }
.loading-screen { min-height: 160px; display: grid; place-items: center; }

.admin-form, .admin-list { display: grid; gap: 12px; }
.edit-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.switch {
  display: flex;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.switch input { width: 18px; min-height: 18px; }

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 44%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #ffffff;
}
.account-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-banner {
  padding: 9px 11px;
  margin-bottom: 12px;
  border-left: 3px solid var(--orange);
  color: #81420e;
  background: #fff3e8;
  font-size: 12px;
  line-height: 1.5;
}
.announcement { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-left: 3px solid var(--orange); background: #fff4eb; color: #354650; font-size: 13px; }
.announcement strong { flex: 0 0 auto; color: var(--orange-2); }
.category-strip { display: flex; gap: 9px; overflow-x: auto; padding: 1px 1px 11px; scrollbar-width: none; }
.category-strip button { flex: 0 0 auto; min-height: 40px; padding: 7px 16px; border: 1px solid #eee9e1; border-radius: 999px; color: #8b8f91; background: #ffffff; font-size: 13px; box-shadow: 0 3px 10px rgba(49, 44, 38, .04); }
.category-strip button.active { border-color: #202124; color: #ffffff; background: #202124; box-shadow: 0 5px 12px rgba(32, 33, 36, .16); }
.home-banner { position: relative; width: 100%; aspect-ratio: 3 / 1; max-height: 260px; min-height: 118px; margin-bottom: 12px; overflow: hidden; border: 1px solid #cbd8dd; border-radius: 6px; background: #eef3f5; }
.home-banner-image img { width: 100%; height: 100%; object-fit: cover; }
.home-banner-brand { display: flex; align-items: center; padding: 20px clamp(20px, 5vw, 54px); background-color: #f8fbfb; background-image: linear-gradient(rgba(24,120,116,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(24,120,116,.08) 1px, transparent 1px); background-size: 28px 28px; }
.home-banner-brand::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--orange); }
.home-banner-brand::after { content: ""; position: absolute; right: 7%; bottom: 22%; width: 32%; height: 2px; background: var(--orange); box-shadow: 0 -28px 0 rgba(24,120,116,.35), 0 28px 0 rgba(24,120,116,.35); }
.banner-copy { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
.banner-copy strong { color: var(--orange); font-size: 42px; line-height: 1; }
.banner-copy span { color: #27434a; font-size: 18px; font-weight: 800; }
.banner-copy small { grid-column: 1 / -1; margin-top: 10px; color: #58717a; font-size: 12px; }
.banner-signal { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); color: rgba(24,120,116,.1); font-size: 116px; line-height: 1; font-weight: 900; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.quick-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 6px; color: #31525a; background: var(--teal-soft); font-size: 13px; }
.share-strip { margin-top: 12px; }
.share-strip button { min-height: 46px; }
.hot-tag { display: inline-flex; margin-right: 6px; padding: 2px 5px; border-radius: 3px; color: #ffffff; background: var(--orange); font-size: 10px; font-weight: 800; vertical-align: 2px; }
.product small del { margin-left: 4px; color: #718898; font-weight: 400; }
.product-detail-page { width: min(100%, 720px); margin: 0 auto; }
.product-detail-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 2px 0 14px; }
.product-detail-nav > div { min-width: 0; text-align: center; }
.product-detail-nav small { display: block; color: var(--muted); }
.product-detail-nav h1 { margin: 2px 0 0; font-size: 25px; }
.product-detail-hero { display: grid; place-items: center; width: min(100%, 620px); aspect-ratio: 1 / 1; margin: 0 auto 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #eef3f5; color: var(--orange-2); }
.product-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.product-summary-panel { padding: 18px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.product-summary-panel h2 { margin: 3px 0 0; font-size: 24px; }
.product-summary-panel .section-head > span { color: #987044; }
.product-summary-panel > p { margin: 12px 0; font-size: 15px; }
.detail-price { display: flex; align-items: baseline; gap: 9px; }
.detail-price strong { color: var(--orange); font-size: 26px; }
.detail-price del { color: var(--muted); }
.detail-notice { padding: 11px 12px; margin-bottom: 12px; border-left: 3px solid var(--orange); background: #fff7ef; }
.detail-notice p { margin: 5px 0 0; font-size: 13px; }
.product-guarantees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 15px 10px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.product-guarantees span { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; color: #8a6747; font-size: 13px; text-align: center; }
.product-guarantees .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.product-description { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; }
.product-description-title { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.product-description-title .icon { color: var(--orange); }
.product-description-title h2 { margin: 0; }
.product-custom-notice { padding: 12px; margin-bottom: 14px; border-left: 3px solid var(--orange); background: #fff7ef; color: var(--text); }
.product-description ol { margin: 0; padding-left: 22px; color: #435c6c; }
.product-description li { padding-left: 3px; margin-bottom: 10px; line-height: 1.7; }
.detail-refund { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.detail-refund p { margin: 6px 0 0; }
.product-action-spacer { height: 86px; }
.product-action-bar { position: fixed; z-index: 35; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; width: min(100%, 720px); padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(32,45,54,.1); }
.product-action-bar .primary { min-height: 52px; font-size: 18px; }
.product-contact-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text); background: transparent; font-size: 12px; }
.product-contact-button .icon { width: 22px; height: 22px; }
.terms-check { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 8px; }
.terms-check input { width: 18px; min-height: 18px; margin: 1px 0 0; }
.checkout-page-head { display: flex; align-items: center; gap: 14px; max-width: 720px; margin: 4px auto 12px; }
.checkout-page-head > div { min-width: 0; }
.checkout-page-head small { display: block; margin-bottom: 3px; color: var(--muted); }
.checkout-page-head h1 { margin: 0; font-size: 26px; }
.checkout-page-head .secondary { flex: 0 0 auto; }
.checkout-page { margin-top: 0; }
.checkout-rules { max-width: 720px; margin-left: auto; margin-right: auto; }
.lookup-form { margin-top: 0; max-width: 620px; }
.payment-proof-preview { display: block; width: min(100%, 260px); max-height: 260px; object-fit: contain; margin: 10px auto; border: 1px solid var(--line); border-radius: 6px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proof-grid .payment-proof-preview { width: 100%; aspect-ratio: 1; margin: 0; }
.proof-link { display: block; margin-top: 5px; color: var(--orange-2); }
.stats-wide { grid-template-columns: repeat(6, 1fr); }
.signed-in { margin: 4px 0 12px; color: var(--green); font-size: 13px; }
.status-note { padding: 9px 10px; color: #354650; background: #fff7ef; border-left: 3px solid var(--orange); }
.text-button { padding: 0 4px; color: var(--orange-2); background: transparent; text-decoration: underline; }
.order-title strong { overflow-wrap: anywhere; }

.admin-shell { width: min(100%, 1440px); margin: 0 auto; padding: 14px; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-header > div { display: flex; align-items: center; gap: 10px; }
.admin-header small { display: block; margin-top: 3px; color: var(--muted); }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf2f5;
}
.segmented button { min-height: 38px; border-radius: 4px; color: var(--muted); background: transparent; }
.segmented button.active { color: #ffffff; background: var(--orange); font-weight: 800; }
.customer-auth, .account-panel { max-width: 460px; margin: 32px auto 0; }
.account-panel { text-align: center; }
.account-panel .wide + .wide { margin-top: 10px; }
.profile-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange-2); background: #fff5ed; }
.profile-mark .icon { width: 28px; height: 28px; }

.profile-hero { display: flex; align-items: center; gap: 14px; padding: 22px 18px 18px; margin: 12px 0; border-radius: 22px; background: linear-gradient(135deg, #fffaf0, #ffffff); }
.profile-hero h1 { margin: 0; font-size: 23px; }
.profile-hero p { margin: 5px 0 0; color: #7d858b; font-size: 13px; }
.profile-avatar { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; border-radius: 22px; color: #ffffff; background: #e7a933; overflow: hidden; }
.profile-avatar-image img { width: 100%; height: 100%; object-fit: cover; }
.level-badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 8px; color: #85621e; background: #f8df9e; font-size: 11px; vertical-align: middle; }
.customer-role { margin-left: auto; padding: 10px 18px; border-radius: 22px; color: #6d5a2b; background: #fff4cf; font-weight: 700; }
.profile-order-panel, .profile-tools, .profile-balance-grid, .my-order-panel { margin: 12px 0; }
.profile-order-panel { padding: 18px 14px; border-radius: 22px; background: #ffffff; box-shadow: 0 7px 24px rgba(38, 45, 50, .06); }
.profile-order-panel .section-head { margin: 0 4px 12px; }
.profile-order-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.profile-order-grid button { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 6px 2px; color: #545d64; background: transparent; }
.profile-order-grid button:hover { color: #d58b17; }
.profile-order-grid strong { font-size: 15px; }
.profile-order-grid small { font-size: 12px; white-space: nowrap; }
.order-status-icon { display: grid; place-items: center; width: 35px; height: 35px; color: #3d4245; }
.order-status-icon .icon { width: 27px; height: 27px; }
.profile-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.balance-card, .service-card { min-height: 112px; padding: 18px; border-radius: 22px; text-align: left; }
.balance-card { color: #fff2bd; background: #2a2a2a; }
.service-card { color: #855b1b; background: #ffd54d; }
.balance-card small, .service-card small { display: block; margin-bottom: 14px; font-size: 13px; }
.balance-card strong, .service-card strong { font-size: 21px; }
.profile-tools { padding: 18px 14px 14px; border-radius: 22px; background: #ffffff; box-shadow: 0 7px 24px rgba(38, 45, 50, .06); }
.profile-tools h2 { margin: 0 4px 14px; font-size: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
.tool-grid button { display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 0 2px; color: #666d73; background: transparent; }
.tool-grid button:hover { color: #d58b17; }
.tool-grid .icon { width: 27px; height: 27px; }
.tool-grid span { font-size: 12px; white-space: nowrap; }
.profile-version { margin: 18px 0; color: #a2a6aa; text-align: center; font-size: 12px; }
.order-filter-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 10px; }
.order-filter-row button { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #e9e3da; border-radius: 999px; color: #777d80; background: #fff; font-size: 12px; }
.order-filter-row button.active { border-color: #efb62d; color: #7e5c18; background: #fff4c9; }
.my-order-panel { padding: 16px; }
.my-order-list { display: grid; gap: 9px; }
.my-order-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 12px 0; border-top: 1px solid #f0eee9; }
.my-order-item strong, .my-order-item small { display: block; }
.my-order-item small { margin-top: 4px; color: #8a9297; font-size: 12px; }
.my-order-item .tiny { padding: 6px 9px; }

@media (max-width: 420px) {
  .profile-hero { padding-inline: 14px; }
  .profile-avatar { width: 60px; height: 60px; flex-basis: 60px; }
  .profile-hero h1 { font-size: 19px; }
  .customer-role { padding-inline: 13px; }
  .profile-order-grid small { font-size: 11px; }
  .tool-grid { column-gap: 4px; }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  background: rgba(28, 42, 51, .48);
  overflow-y: auto;
}
.payment-modal {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 8px 8px 4px 4px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(31,48,58,.24);
}
.share-card-modal { width: min(100%, 500px); }
.share-card-modal > p { margin-bottom: 10px; }
.share-card-loading { display: grid; place-items: center; gap: 8px; width: min(100%, 390px); aspect-ratio: 3 / 4; margin: 10px auto 16px; border: 1px solid var(--line); background: #f3f6f8; color: var(--muted); }
.share-card-loading strong { color: var(--orange); font-size: 36px; }
.share-card-preview { display: block; width: min(100%, 390px); max-height: 64dvh; aspect-ratio: 3 / 4; margin: 10px auto 16px; object-fit: contain; border: 1px solid var(--line); background: #f3f6f8; }
.share-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-card-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: #f7f9fa; }
.payment-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-right: 48px; margin-bottom: 18px; }
.payment-steps span { padding: 7px 8px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.payment-steps span.active { border-color: var(--orange); color: var(--orange-2); }
.qr-image, .qr-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  width: min(100%, 270px);
  min-height: 220px;
  margin: 14px auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f8;
  color: #1a2730;
  text-align: center;
}
.qr-image img { display: block; width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: contain; }
.qr-image small, .qr-placeholder small { color: #526876; }
.qr-placeholder .icon { width: 56px; height: 56px; color: #8a9aa5; }
.payment-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 11px 12px; border: 1px solid var(--line); background: #f7f9fa; }
.payment-amount strong { color: var(--orange-2); font-size: 26px; }
.reference-box { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); background: #f7f9fa; text-align: center; }
.reference-box > span { color: var(--muted); font-size: 12px; }
.reference-box > strong { overflow-wrap: anywhere; color: var(--orange-2); font-size: 17px; }
.sensitive-settings { padding: 14px 0; margin: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.field-help { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.qr-upload-field { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(116,139,151,.35); }
.qr-upload-field:first-of-type { border-top: 0; }
.qr-upload-field label { min-width: 0; }
.qr-upload-field input[type="file"] { width: 100%; margin-top: 7px; padding: 9px; }
.qr-upload-preview { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 112px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #f7f9fa; text-align: center; }
.qr-upload-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qr-upload-preview .icon { width: 28px; height: 28px; }
.qr-upload-preview span { padding: 4px; font-size: 12px; }
.qr-upload-field > small { grid-column: 1; color: var(--muted); }
@media (max-width: 520px) {
  .qr-upload-field { grid-template-columns: minmax(0, 1fr) 88px; }
  .qr-upload-preview { width: 88px; }
}
.product-reviews { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.product-reviews h3 { margin: 3px 0 0; }
.public-review { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.public-review:first-of-type { border-top: 0; }
.public-review p { margin: 5px 0; font-size: 13px; }
.public-review small { color: var(--muted); }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-meta span { color: var(--orange-2); white-space: nowrap; }
.demo-reviews { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e2a56d; }
.demo-review-notice { margin: 8px 0 4px; padding: 9px 10px; border-left: 3px solid var(--orange); color: #8b4b14; background: #fff5e9; font-size: 12px; line-height: 1.55; }
.demo-review-tag { display: inline-block; margin-left: 6px; padding: 2px 5px; border: 1px solid #e2a56d; border-radius: 3px; color: #9a531a; font-size: 10px; font-style: normal; font-weight: 600; vertical-align: 1px; }
.demo-settings { margin: 14px 0; }
.demo-settings .switch { display: flex; gap: 8px; align-items: center; }
.social-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; color: #ffffff; font-weight: 800; }
.avatar-0 { background: #e96f17; }
.avatar-1 { background: #187874; }
.avatar-2 { background: #5b6f3b; }
.avatar-3 { background: #b14646; }
.avatar-4 { background: #446b8a; }
.avatar-5 { background: #8a5d89; }
.avatar-6 { background: #7a6734; }
.avatar-7 { background: #3e7460; }
.purchase-notice { position: fixed; left: 50%; bottom: 76px; z-index: 80; display: flex; align-items: center; gap: 10px; width: min(360px, calc(100% - 24px)); padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 6px; color: var(--text); background: rgba(255,255,255,.98); box-shadow: 0 10px 30px rgba(31,48,58,.18); transform: translate(-50%, 18px); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.purchase-notice.visible { transform: translate(-50%, 0); opacity: 1; }
.purchase-notice[hidden] { display: none; }
.purchase-notice .social-avatar { width: 34px; height: 34px; }
.purchase-notice div { display: grid; min-width: 0; }
.purchase-notice strong { font-size: 13px; }
.purchase-notice span:not(.social-avatar) { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-order-list { display: none; }
.admin-order-card { padding: 14px; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: var(--radius); background: var(--panel); }
.admin-order-card .order-title strong { display: block; font-size: 14px; }
.admin-order-kv { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; margin: 14px 0; }
.admin-order-kv dt { color: var(--muted); font-size: 12px; }
.admin-order-kv dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.admin-order-kv dd small { display: block; color: var(--muted); }
.assignment-details { padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assignment-details summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.assignment-details .assignment-box { margin-top: 10px; }
.mobile-order-actions { margin-top: 12px; }
.mobile-order-actions button { flex: 1 1 92px; min-height: 40px; }
.product-image-upload { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.product-image-preview { grid-row: 1 / span 2; display: grid; place-items: center; width: 112px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #f3f6f8; }
.product-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-image-upload label { min-width: 0; }
.product-image-upload input[type="file"] { width: 100%; margin-top: 6px; padding: 8px; }
.product-image-upload > small { color: var(--muted); }
.product-admin-toolbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 5px 16px rgba(33,48,56,.08); }
.product-admin-toolbar div { min-width: 0; }
.product-admin-toolbar strong, .product-admin-toolbar small { display: block; }
.product-admin-toolbar small { margin-top: 3px; color: var(--muted); }
.product-admin-toolbar button { flex: 0 0 auto; }
.product-admin-toolbar .product-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.product-number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spec-editor { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); background: #f7f9fa; }
.spec-editor h4 { margin: 0; }
.spec-editor .section-head small { display: block; margin-top: 3px; color: var(--muted); }
.spec-row-list { display: grid; gap: 10px; }
.spec-edit-row { position: relative; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); background: #ffffff; }
.spec-edit-row label { display: grid; gap: 6px; padding-right: 42px; }
.spec-edit-row .icon-button { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 7px; }
.qr-preview { display: block; width: 160px; aspect-ratio: 1; object-fit: contain; padding: 6px; background: #fff; border-radius: 6px; }
.admin-account-table { min-width: 620px; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.4fr .8fr; align-items: end; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout { max-width: 720px; margin-left: auto; margin-right: auto; }
  .hero-panel { grid-template-columns: 1fr; }
  .shell { padding-bottom: 24px; }
  .bottom-nav {
    position: static;
    transform: none;
    width: min(520px, calc(100% - 28px));
    margin: 0 auto 24px;
    border-bottom: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
  }
  h1 { font-size: 42px; }
  .modal-backdrop { align-items: center; }
  .product-detail-page { padding-bottom: 10px; }
}

@media (max-width: 759px) {
  .admin-shell { padding: 10px; }
  .admin-header { align-items: flex-start; }
  .admin-header > div { min-width: 0; }
  .admin-header strong, .admin-header small { overflow-wrap: anywhere; }
  .stats-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { min-width: 0; padding: 10px; }
  .stats strong { font-size: 18px; overflow-wrap: anywhere; }
  .order-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; overflow: visible; }
  .order-toolbar .admin-search { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .order-toolbar button, .order-toolbar select { min-width: 0; }
  .desktop-order-table { display: none; }
  .mobile-order-list { display: grid; gap: 10px; }
  .product-image-upload { grid-template-columns: 88px minmax(0, 1fr); }
  .product-image-preview { width: 88px; }
  .product-edit-card { padding: 12px; }
  .product-admin-toolbar { top: -1px; }
  .product-number-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .shell { padding-left: 10px; padding-right: 10px; }
  .product-guarantees { padding-left: 4px; padding-right: 4px; }
  .product-guarantees span { gap: 3px; font-size: 12px; }
  .product-summary-panel, .product-description { padding: 15px; }
  h1 { font-size: 28px; }
  .coupon-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-line { grid-template-columns: 1fr; align-items: start; padding: 10px 0; }
  .topbar .ghost { padding-left: 8px; padding-right: 8px; }
  .payment-modal { padding: 15px; }
  .qr-image, .qr-placeholder { min-height: 200px; }
  .product-admin-toolbar { align-items: stretch; flex-direction: column; }
  .product-admin-toolbar button { width: 100%; }
  .product-admin-toolbar .product-admin-actions { align-items: stretch; flex-direction: column; }
  .spec-editor { padding: 10px; }
}

@media (min-width: 760px) and (max-width: 900px) {
  .stats-wide { grid-template-columns: repeat(3, 1fr); }
}

/* Product management stays compact on desktop and remains easy to scan on phones. */
.product-admin-list { gap: 14px; }
.product-admin-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f7f9fa;
}
.product-search-field { position: relative; display: block; margin: 0; }
.product-search-field .icon { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.product-search-field input { padding-left: 38px; }
.product-admin-search > small { color: var(--muted); white-space: nowrap; }
.product-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.product-edit-card { display: grid; min-width: 0; padding: 0; overflow: hidden; }
.product-edit-card.is-expanded { grid-column: 1 / -1; border-color: #e8a66d; box-shadow: 0 8px 24px rgba(35, 50, 58, .08); }
.product-card-summary { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 112px; padding: 12px; color: var(--text); background: #ffffff; text-align: left; }
.product-card-summary:hover { background: #fffaf5; }
.product-edit-card.is-expanded .product-card-summary { border-bottom: 1px solid var(--line); background: #fffaf5; }
.product-summary-image { display: grid; place-items: center; width: 84px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; color: var(--orange-2); background: #f2f5f6; }
.product-summary-image img { width: 100%; height: 100%; object-fit: cover; }
.product-summary-copy { display: grid; min-width: 0; gap: 3px; }
.product-summary-copy strong, .product-summary-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-summary-copy strong { font-size: 16px; }
.product-summary-copy small { color: var(--muted); font-size: 12px; }
.product-summary-copy b { margin-top: 3px; color: var(--orange-2); font-size: 15px; }
.product-summary-side { display: grid; align-self: stretch; justify-items: end; align-content: space-between; gap: 8px; }
.product-summary-side em { padding: 3px 6px; border-radius: 4px; font-size: 11px; font-style: normal; }
.product-summary-side em.enabled { color: #276a55; background: #e3f3ec; }
.product-summary-side em.disabled { color: #7b858b; background: #edf0f2; }
.product-edit-label { display: inline-flex; align-items: center; gap: 2px; color: var(--orange-2); font-size: 12px; font-weight: 700; }
.product-edit-label .icon { width: 15px; height: 15px; }
.product-edit-card.is-expanded .product-edit-label .icon { transform: rotate(90deg); }
.product-edit-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px; }
.product-editor-column { display: grid; align-content: start; gap: 9px; min-width: 0; }
.product-edit-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-edit-section-head h3 { margin: 0; }
.product-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 42px; }
.product-card-head h3 { margin: 3px 0 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.product-card-index { color: var(--muted); font-size: 11px; }
.product-basic-fields { display: grid; gap: 0; }
.product-edit-card label { margin: 5px 0; }
.product-edit-card textarea { min-height: 74px; }
.product-edit-card .product-image-upload { margin-bottom: 0; }
.product-number-grid { gap: 8px; }
.product-number-grid input { min-height: 40px; padding: 8px; }
.spec-editor { gap: 8px; padding: 10px; }
.spec-editor .section-head { margin-bottom: 0; }
.spec-editor .section-head h4 { font-size: 15px; }
.spec-editor .section-head small { font-size: 11px; }
.spec-column-head { display: grid; grid-template-columns: minmax(0, 1fr) 100px 36px; gap: 8px; padding: 0 8px; color: var(--muted); font-size: 11px; }
.spec-row-list { gap: 6px; }
.spec-edit-row { grid-template-columns: minmax(0, 1fr) 100px 36px; align-items: center; gap: 8px; padding: 7px 8px; }
.spec-edit-row label { min-width: 0; margin: 0; padding: 0; }
.spec-edit-row input { min-height: 38px; padding: 7px 8px; }
.spec-edit-row .icon-button { position: static; width: 34px; height: 34px; padding: 7px; }
.price-input { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--orange-2); background: #fffaf2; }
.price-input > span { padding-left: 8px; font-weight: 800; }
.price-input input { border: 0; background: transparent; color: var(--orange-2); font-weight: 800; }
.price-input input:focus { border: 0; box-shadow: none; }
.product-card-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.product-card-footer .switch { margin: 0; font-size: 13px; }
.product-card-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 12px; }
.product-card-footer button .icon { width: 16px; height: 16px; }
.product-add-bottom { margin-top: 2px; }
.product-empty { padding: 30px 14px; border: 1px dashed var(--line); color: var(--muted); text-align: center; background: #f7f9fa; }

@media (min-width: 760px) and (max-width: 1099px) {
  .product-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .product-admin-search { grid-template-columns: minmax(0, 1fr) auto; }
  .product-admin-search > small { grid-column: 1 / -1; }
  .product-admin-grid { grid-template-columns: 1fr; }
  .product-edit-body { grid-template-columns: 1fr; padding: 12px; }
}

@media (max-width: 420px) {
  .product-admin-search { grid-template-columns: 1fr; }
  .product-admin-search button { width: 100%; }
  .product-admin-search > small { grid-column: auto; }
  .spec-column-head, .spec-edit-row { grid-template-columns: minmax(0, 1fr) 88px 34px; }
  .product-card-summary { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 9px; min-height: 96px; padding: 10px; }
  .product-summary-image { width: 72px; }
}
