:root {
  --navy: #0f1f3d;
  --navy-2: #162d56;
  --red: #8b1a1a;
  --gold: #c9a84c;
  --gold-2: #ead78d;
  --paper: #f4f6fa;
  --text: #17213b;
  --muted: #6b7280;
  --line: #d7ddea;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
}

button, input, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  background: #FFFFFF;
  color: var(--text);
}
textarea { min-height: 78px; resize: vertical; }
a { color: inherit; }

.topbar {
  min-height: 64px;
  padding: 10px 24px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--red);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand-logo,
.brand > img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.brand small { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: nowrap; min-width: 0; }
.main-nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: #fff; }
.main-nav a:nth-of-type(2) { margin-right: auto; }

.search-band {
  background: var(--navy);
  padding: 14px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.search-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 210px 1.2fr 150px;
  gap: 10px;
  align-items: end;
}
.search-inner label span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
}
.search-button { min-height: 42px; background: var(--gold); color: var(--navy); }
.filter-chips {
  max-width: 1180px;
  margin: 10px auto 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.filter-chips label {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.filter-chips input { width: auto; min-height: auto; }

.category-strip {
  background: #0b1830;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  position: sticky;
  top: 64px;
  z-index: 950;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cat-button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.68);
  padding: 13px 16px 11px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
}
.cat-button.active,
.cat-button:hover {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 60px; }
.brand-network {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 34px;
  margin-bottom: 28px;
  border: 1px solid rgba(201,168,76,.28);
  box-shadow: 0 18px 46px rgba(15,31,61,.16);
}
.brand-network-title {
  margin: 0 0 28px;
  text-align: center;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: .06em;
}
.brand-network-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 28px;
  align-items: stretch;
}.brand-network-main > * {
  min-width: 0;
}
.hero-copy {
  min-height: 0;
  border-radius: 14px;
  padding: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-sub { max-width: 720px; color: rgba(255,255,255,.82); font-size: 17px; }
.trust-message {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  max-width: 760px;
}
.trust-message p { margin: 0 0 8px; }
.trust-message p:last-child { margin-bottom: 0; }
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 22px;
}

.hero-actions .button {
  min-height: 44px;
  min-width: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  white-space: nowrap;
}
.network-panel {
  background: rgba(255,255,255,.075);
  color: #fff;
  border-radius: 16px;
  padding: 26px;
  border: 1px solid rgba(201,168,76,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.network-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.25;
  text-align: center;
  letter-spacing: .05em;
}
.network-panel p:not(.panel-kicker) {
  color: rgba(255,255,255,.76);
  margin: 0 0 18px;
}
.panel-kicker { margin: 0 0 6px; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.network-list, .source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.network-list span, .source-grid span, .source-grid li {
  border: 1px solid rgba(201,168,76,.36);
  background: rgba(8,28,57,.52);
  color: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; margin: 0 0 14px; }
h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); }
h3 { margin: 0 0 8px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 900; margin: 0 0 8px; }

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.primary { background: var(--red); color: #fff; }
.button.gold { background: var(--gold); color: var(--navy); }
.button.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.button.ghost.light { color: var(--navy); border-color: var(--line); background: #fff; }
.button.danger { background: #b91c1c; color: #fff; border-color: #991b1b; }
.button.danger:hover, .button.danger:focus-visible { background: #991b1b; }
.link-button { background: transparent; color: rgba(255,255,255,.72); border: 0; cursor: pointer; font-weight: 800; }
.main-nav .link-button { min-height: 44px; padding: 8px 6px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}
.hero-stats {
  margin: 0;
  max-width: none;
}
.stat-card {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(201,168,76,.3);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-card strong { display: block; color: var(--gold); font-size: clamp(28px, 3vw, 38px); line-height: 1; margin-bottom: 8px; white-space: nowrap; }
html[lang="en"] .stat-card:nth-child(2) strong { font-size: clamp(27px, 2.7vw, 34px); line-height: .95; white-space: pre-line; }
.stat-card span { color: rgba(255,255,255,.72); font-weight: 800; }

.buyer-network, .seller-section, .map-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 14px 40px rgba(15,31,61,.07);
}
.buyer-network p, .seller-copy p { color: var(--muted); margin: 0; }
.buyer-network .source-grid span { background: #f7f8fb; color: var(--navy); border-color: var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 10px 0 14px;
}
.section-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.listing-empty { grid-column: 1 / -1; }
.featured-badge { display: inline-flex; align-items: center; min-height: 26px; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(193, 151, 76, .14); color: #7a5a19; font-size: 12px; font-weight: 800; }
.all-listings-head { margin-top: 30px; }
#session-label {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.listing-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.listing-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,31,61,.07);
}
.listing-body {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}
.listing-city {
  margin: 0 0 4px;
  color: var(--gold);
  font-weight: 900;
}
.meta { color: var(--muted); font-size: 13px; }
.listing-row-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}
.listing-row-facts span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7fb;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.stat { background: #f6f7fb; border-radius: 8px; padding: 10px; }
.stat small { color: var(--muted); display: block; }
.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.info-tag {
  border-radius: 8px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  padding: 6px 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}
.promotion-badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15,31,61,.14);
  background: #f8fafc;
  color: var(--navy);
  font-size: 12px;
  font-weight: 950;
}
.promotion-standard {
  background: rgba(201,168,76,.14);
  border-color: rgba(201,168,76,.36);
  color: #745313;
}
.promotion-vip {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.fact-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}
.fact-list div {
  display: grid;
  grid-template-columns: minmax(96px, .85fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.fact-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.fact-list dd {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.listing-actions {
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-left: 1px solid var(--line);
}
.listing-grid .listing-actions .button {
  min-height: 48px;
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.listing-grid .listing-actions .button.primary {
  background: var(--red);
  color: #fff;
}
.listing-grid .listing-actions .button.primary:hover { filter: brightness(1.08); }
.listing-grid .listing-actions .button.primary:active { transform: translateY(1px); }
@media (max-width: 760px) {
  .listing-grid .listing-actions .button {
    padding-right: 14px;
    padding-left: 14px;
    white-space: nowrap;
  }
}
.favorite-button.is-favorited {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.favorite-grid .listing-card {
  display: block;
}
.favorite-grid .listing-body {
  padding: 14px;
}
.favorite-grid .listing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  border-left: 0;
}
.favorite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.favorite-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--muted);
}
.vip-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}
.vip-status-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.vip-status-panel span {
  color: rgba(255,255,255,.78);
  font-weight: 800;
}
.vip-member-content {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.vip-member-content.is-highlighted {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 8px;
}
.compact-head {
  margin-top: 26px;
}
.recent-view-list {
  display: grid;
  gap: 12px;
}
.recent-view-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
}
.recent-view-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.recent-view-card h3 {
  margin: 4px 0 8px;
  color: var(--navy);
}
.seller-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.seller-service-actions .button {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 13px;
}
.recent-view-meta,
.recent-view-time {
  color: var(--muted);
  font-weight: 800;
}
.recent-view-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.recent-view-facts span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 900;
}
.listing-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.listing-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f6f7fb;
}
.gallery-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.map-section {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.map-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.map-heading h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
}
.map-heading h2::before {
  content: "";
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: var(--red);
}
.map-heading h2::after {
  content: "📍";
  order: -1;
  font-size: 18px;
}
.map-frame {
  position: relative;
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15,31,61,.08);
}
.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 410;
  pointer-events: none;
  background: rgba(8, 31, 55, .46);
}
.map-frame.is-unlocked::after {
  opacity: 0;
}
#map {
  position: relative;
  z-index: 0;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  border: 0;
  contain: paint;
}
.map-frame.is-locked #map {
  filter: blur(2px) saturate(.82);
  pointer-events: none;
}
.map-frame.is-unlocked #map {
  filter: none;
  pointer-events: auto;
}
.map-center-cta {
  position: absolute;
  z-index: 820;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,.32);
}
.map-frame.is-unlocked .map-center-cta {
  display: none;
}
.map-center-cta .button {
  min-width: 132px;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
.map-count-pill {
  position: absolute;
  z-index: 820;
  left: 10px;
  bottom: 10px;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(4, 22, 38, .86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.note { color: var(--muted); font-size: 13px; margin: 0; }

.transactions-section {
  margin-bottom: 30px;
}
.transaction-table {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.homepage-ad-section { margin: 28px 0 22px; }

.ad-carousel,
.listing-ad-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15,31,61,.08);
  overflow: hidden;
}

.ad-carousel {
  max-width: 1200px;
  margin: 0 auto;
}

.homepage-ad-section .ad-carousel {
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

.homepage-ad-section .ad-frame {
  background: transparent;
  border-radius: inherit;
}

.listing-ad-card {
  max-width: none;
}

.ad-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 1;
  overflow: hidden;
  background: #f8fafc;
}

.ad-frame a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ad-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.listing-ad-card .ad-frame img {
  height: 100%;
}

.listing-ad-card .ad-frame { aspect-ratio: 5 / 1; }

.admin-ad-slots { display: grid; gap: 18px; margin-top: 20px; }
.admin-ad-slot-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; overflow: hidden; }
.admin-ad-preview { position: relative; width: 100%; aspect-ratio: 5 / 1; border-radius: 8px; overflow: hidden; background: #eef2f7; display: grid; place-items: center; margin: 12px 0; }
.admin-ad-preview a { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.admin-ad-preview a.active { opacity: 1; pointer-events: auto; }
.admin-ad-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.admin-ad-slot-edit { align-items: end; margin-bottom: 14px; }
.admin-ad-image-list { display: grid; gap: 8px; }
.admin-ad-image-row { display: grid; grid-template-columns: 90px minmax(140px,1fr) minmax(160px,1.4fr) 80px auto auto auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.admin-ad-image-row .admin-image { width: 88px; height: 56px; object-fit: cover; border-radius: 6px; }
.admin-ad-image-upload { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 90px auto; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.admin-ad-upload-guidance { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #f8fafc; color: var(--muted); font-weight: 700; }
.admin-ad-ratio-warning { grid-column: 1 / -1; margin: 0; color: #9a6700; font-weight: 800; }
.admin-ad-ratio-warning.is-ideal { color: #237a43; }
.admin-check { white-space: nowrap; }

@media (max-width: 760px) {
  .ad-frame, .listing-ad-card .ad-frame, .admin-ad-preview { aspect-ratio: 5 / 1; }
  .admin-ad-image-row, .admin-ad-image-upload { grid-template-columns: 1fr; }
  .admin-ad-image-row .admin-image { width: 100%; height: auto; aspect-ratio: 16 / 7; }
}

.ad-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15,31,61,.84);
  color: #fff;
  font-weight: 800;
}

.ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,31,61,.86);
  color: #fff;
  cursor: pointer;
}

.ad-nav.prev { left: 12px; }
.ad-nav.next { right: 12px; }

.ad-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px 12px;
}

.ad-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.ad-dot.active {
  width: 22px;
  background: var(--gold);
}

.listing-ad-card .ad-nav {
  display: none;
}

.listing-ad-card .ad-dots {
  align-items: center;
  gap: 6px;
  padding: 8px 10px 10px;
}

.listing-ad-card .ad-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #d7dce3;
}

.listing-ad-card .ad-dot.active {
  width: 9px;
  height: 9px;
  background: var(--gold);
}
.transaction-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.transaction-row:last-child { border-bottom: 0; }
.transaction-row.header {
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}
.transaction-row span { min-width: 0; }
.seller-section {
  display: block;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.seller-center-modal {
  position: relative;
  width: min(1140px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 0;
  border-radius: 10px;
  padding: 30px 24px 28px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}
.seller-center-close {
  color: #fff;
}
.seller-copy {
  width: 100%;
}
.seller-copy p { color: rgba(255,255,255,.76); }
.seller-center-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  width: 100%;
  max-width: 860px;
  margin: 10px auto 0;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 800;
  text-align: center;
}
.seller-center-intro span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.seller-center-intro span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  width: 1px;
  height: 16px;
  background: rgba(201,168,76,.72);
}
.seller-benefits {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.seller-benefits span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(201,168,76,.34);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 900;
}
.seller-center-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.seller-center-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  text-align: left;
}
.seller-center-card:hover {
  background: rgba(255,255,255,.12);
}
.seller-center-card strong { color: var(--gold); }
.seller-center-card span { color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.5; }
#seller-billing-panel {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.seller-center-payment-button {
  min-width: 220px;
}
.seller-cta-button { width: fit-content; }
.sell-page { max-width: 920px; }
.sell-page > .section-head {
  position: relative;
  justify-content: center;
  text-align: center;
}
.sell-page > .section-head > div {
  max-width: 720px;
}
.sell-page > .section-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
}
.sell-page > .section-head #session-label {
  position: absolute;
  right: 20px;
}
.sell-form-card { margin-bottom: 40px; }
.sell-form-card .full-address-field { grid-column: 1 / -1; }
.sell-form-card .full-address-field textarea { min-height: 96px; }
.sell-form-card .postcode-field { max-width: 300px; }
.sell-form-card .location-fields { grid-column: 1 / -1; }
.sell-form-card .promotion-plan-select { order: -1; margin: 6px 0 10px; border-top: 3px solid var(--gold); }
.sell-form-card .promotion-plan-select .huafu-seller-value h2 {
  margin-top: 0;
  text-align: center;
}
@media (max-width: 680px) {
  .sell-page > .section-head h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .sell-form-card .full-address-field,
  .sell-form-card .location-fields { grid-column: auto; }
  .sell-form-card .postcode-field { max-width: none; }
}
.listing-detail-page { max-width: 1120px; }
.listing-detail-shell {
  display: grid;
  gap: 18px;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: stretch;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid rgba(201,168,76,.28);
  box-shadow: 0 18px 46px rgba(15,31,61,.16);
}
.detail-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.detail-hero h1 {
  max-width: 760px;
  margin-bottom: 8px;
}
.detail-subtitle {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-weight: 800;
}
.key-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.key-metric {
  padding: 13px 14px;
  border-radius: 8px;
  background: #f7f8fb;
  border: 1px solid var(--line);
}
.key-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}
.key-metric strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
}
.core-panel {
  border-top: 4px solid var(--gold);
}
.detail-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.detail-action {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.detail-action.primary {
  background: var(--red);
  border-color: var(--red);
}
.detail-action.secondary {
  background: rgba(255,255,255,.1);
}
.detail-action.vip-lite,
.detail-action.vip-status {
  min-height: 38px;
  align-self: center;
  background: rgba(255,255,255,.08);
  border-color: rgba(201,168,76,.55);
  color: var(--gold);
  font-size: 13px;
}
.detail-action.vip-status {
  cursor: default;
  background: rgba(201,168,76,.16);
}
.detail-action.is-favorited {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.detail-cover-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 8px;
  background: #F3F5F8;
  overflow: hidden;
  cursor: zoom-in;
}
.detail-cover-button:focus-visible,
.gallery-feature-button:focus-visible,
.detail-gallery-button:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.45);
  outline-offset: 3px;
}
.detail-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  object-position: center;
  background: #F3F5F8;
}
.detail-cover-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  font-weight: 900;
  min-height: 180px;
}
.detail-cover-empty span {
  color: rgba(255,255,255,.58);
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 18px;
}
.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15,31,61,.07);
}
.detail-panel h2 {
  font-size: 22px;
}
.info-card-grid,
.composition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.info-card,
.composition-card {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
}
.info-card span,
.composition-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}
.info-card strong,
.composition-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.composition-card {
  border-left: 4px solid var(--gold);
}
.detail-rows {
  display: grid;
  gap: 8px;
  margin: 0;
}
.detail-rows div {
  display: grid;
  grid-template-columns: minmax(110px, .9fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f8fb;
  border: 1px solid var(--line);
}
.detail-rows dt {
  color: var(--muted);
  font-weight: 900;
}
.detail-rows dd {
  margin: 0;
  color: var(--navy);
  font-weight: 950;
  overflow-wrap: anywhere;
}
.vip-panel {
  border-left: 4px solid var(--gold);
}
.vip-panel.is-highlighted {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
.vip-panel p {
  color: var(--muted);
  margin: 0;
}
.vip-benefit-points {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--navy);
  font-weight: 800;
}
.vip-address-button {
  margin-top: 14px;
}
.vip-purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(201, 168, 76, 0.36);
  border-radius: 10px;
  background: #fffaf0;
}
.vip-purchase-panel strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
}
.vip-purchase-panel p {
  margin: 4px 0 0;
  color: #4f3a35;
}
.vip-purchase-panel.is-active {
  grid-template-columns: 1fr;
  background: #f7fbf2;
  border-color: rgba(46, 125, 50, 0.28);
}
.vip-purchase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #31533a;
  font-weight: 800;
}
.vip-purchase-price {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: var(--navy);
  white-space: nowrap;
}
.vip-purchase-price span {
  color: var(--gold);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}
.vip-purchase-price small {
  color: var(--muted);
  font-weight: 850;
}
.vip-purchase-button {
  min-height: 46px;
  white-space: nowrap;
}
.vip-feedback-locked {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--muted);
  font-weight: 800;
}
.vip-feedback-summary {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--navy);
}
.vip-review-list {
  display: grid;
  gap: 12px;
}
.vip-review-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.vip-review-item small,
.vip-review-item span {
  color: var(--muted);
}
.address-request-entry {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.address-request-entry p {
  margin: 0;
  color: var(--muted);
}
.address-request-entry .button {
  width: fit-content;
}
.confirm-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--navy);
  font-weight: 850;
}
.confirm-field input {
  margin-top: 3px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.detail-gallery-button,
.gallery-feature-button {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #F3F5F8;
  overflow: hidden;
  cursor: zoom-in;
}
.detail-gallery-button {
  aspect-ratio: 4 / 3;
}
.detail-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #F3F5F8;
}
.gallery-feature img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  object-position: center;
  background: #F3F5F8;
}
.detail-cover-button.is-error,
.gallery-feature-button.is-error,
.detail-gallery-button.is-error {
  min-height: 160px;
}
.detail-cover-button.is-error::after,
.gallery-feature-button.is-error::after,
.detail-gallery-button.is-error::after {
  content: "图片加载失败";
  color: var(--muted);
  font-weight: 900;
}
.image-preview-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: visible;
  background: transparent;
}
.image-preview-dialog::backdrop {
  background: rgba(8, 20, 40, 0.76);
}
.image-preview-panel {
  position: relative;
  display: grid;
  place-items: center;
  max-height: calc(100vh - 28px);
  padding: 46px 12px 12px;
  border-radius: 12px;
  background: #101827;
  overflow: auto;
}
.image-preview-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #F3F5F8;
}
.image-preview-close {
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.image-preview-close:hover,
.image-preview-close:focus-visible {
  background: rgba(255,255,255,.2);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.image-preview-error {
  display: grid;
  place-items: center;
  min-width: min(520px, calc(100vw - 64px));
  min-height: 240px;
  border-radius: 8px;
  background: #F3F5F8;
  color: var(--muted);
  font-weight: 900;
}
.image-review-empty {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 112px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  background: #f7f8fb;
  padding: 18px;
}
.image-review-empty strong {
  color: var(--navy);
}
.image-review-empty span {
  color: var(--muted);
  font-size: 14px;
}
.detail-loading,
.detail-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  font-weight: 900;
}
.seller-card, .panel, .modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(15,31,61,.08);
}
.seller-card { display: grid; gap: 10px; color: var(--text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seller-payment-agreement {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.seller-payment-agreement > label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.seller-payment-agreement > label input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--green);
}
.seller-payment-agreement > label span {
  min-width: 0;
}
.seller-payment-agreement .form-note {
  margin: 0;
}
.field-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}
.payment-card { gap: 18px; }
.bank-transfer-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fb;
  padding: 16px;
}
.bank-transfer-box h2 { margin: 0 0 10px; font-size: 20px; }
.bank-transfer-box p { margin: 6px 0; color: var(--text); }
.money-field {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.money-field span {
  flex: 0 0 auto;
  min-width: 38px;
  text-align: center;
  color: var(--navy);
  font-weight: 900;
  background: #f6f7fb;
  border-right: 1px solid var(--line);
}
.money-field input {
  border: 0;
  border-radius: 0;
  min-height: 44px;
}
.toggle-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 800;
}
.toggle-field input,
.platform-grid input[type="checkbox"] {
  width: auto;
  min-height: auto;
}
.business-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fb;
}
.choice-field {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
.choice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choice-options button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.choice-options button.is-selected {
  border-color: var(--gold);
  background: #fff8e1;
  color: var(--navy);
  box-shadow: 0 0 0 2px rgba(201,168,76,.16);
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.platform-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}
.upload-box {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px dashed rgba(190,151,75,.75);
  border-radius: 8px;
  background: #fffaf0;
}
.upload-box label {
  font-weight: 900;
  color: var(--navy);
}
.upload-box input[type="file"] {
  background: #fff;
  padding: 11px;
}
.upload-warning {
  margin: 0;
  color: #8a3b25;
  font-size: 14px;
  line-height: 1.55;
}
.image-review-panel { grid-column: 1 / -1; }
.admin-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f6f7fb;
}
.admin-image-link {
  display: inline-grid;
  width: 96px;
  min-height: 72px;
  place-items: center;
  text-decoration: none;
  vertical-align: top;
}
.admin-image-empty {
  display: inline-flex;
  width: 96px;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f6f7fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.admin-image-empty[hidden] {
  display: none;
}
.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-actions .button {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 12px;
}
.admin-action-button {
  min-width: 86px;
  white-space: nowrap;
}

.admin-status-select {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: inherit;
  padding: 7px 9px;
  font-size: 12px;
}

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 22px 20px 88px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer span { color: rgba(255,255,255,.68); }

.mobile-sell-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
  min-height: 52px;
  width: auto;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(15,31,61,.28);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: 0;
  padding: 0 20px;
}

.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  min-height: 72px;
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 -10px 30px rgba(15,31,61,.2);
}
.mobile-tabbar-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 72px;
  padding: 8px 6px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.mobile-tabbar-item.active,
.mobile-tabbar-item[aria-current="page"] {
  background: var(--gold);
  color: #07172c;
}
.mobile-tabbar-icon {
  width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
}
.mobile-tabbar-sell .mobile-tabbar-icon {
  font-size: 21px;
}

dialog { border: 0; padding: 0; background: transparent; }
dialog::backdrop { background: rgba(0,0,0,.55); }
body.modal-open { overflow: hidden; }
.modal { width: min(460px, calc(100vw - 28px)); position: relative; display: grid; gap: 10px; }
.modal.wide { width: min(780px, calc(100vw - 28px)); }
#auth-dialog,
#buyer-auth-dialog {
  max-width: 100vw;
}
#auth-dialog .modal,
#buyer-auth-dialog .modal,
#auth-dialog .modal > *,
#buyer-auth-dialog .modal > * {
  min-width: 0;
  max-width: 100%;
}
#auth-dialog .modal,
#buyer-auth-dialog .modal {
  gap: 16px;
  padding: 26px 24px 22px;
  border-radius: 14px;
}
#auth-dialog h2,
#buyer-auth-dialog h2 {
  margin: 0;
padding: 0 38px;
color: var(--navy);
font-size: clamp(24px, 4vw, 30px);
line-height: 1.15;
text-align: center;
}
.viewing-field { display: grid; gap: 5px; color: var(--text); font-weight: 800; }
.viewing-field > span { font-size: 14px; }
.viewing-modal { max-height: calc(100vh - 28px); overflow-y: auto; }
.viewing-disclaimer { display: grid; gap: 9px; padding: 14px; border: 1px solid rgba(15, 31, 53, .18); border-radius: 8px; background: #f5f7f4; }
.viewing-disclaimer h3 { margin: 0; color: var(--green); font-size: 17px; }
.viewing-disclaimer p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.65; }
.viewing-disclaimer-consent { display: flex; gap: 9px; align-items: flex-start; padding-top: 4px; color: var(--text); font-weight: 800; line-height: 1.55; }
.viewing-disclaimer-consent input { width: auto; min-height: auto; margin-top: 4px; flex: 0 0 auto; }
.viewing-modal [data-viewing-submit]:disabled { opacity: .55; cursor: not-allowed; }
#detail-content { max-height: calc(100vh - 28px); overflow-y: auto; }
#viewing-form [data-viewing-submit]:disabled { opacity: .55; cursor: not-allowed; }
.forgot-password-link {
  width: fit-content;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.password-reset-page {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 32px 14px;
  background: linear-gradient(180deg, #f6f3ea 0%, #eef3f8 100%);
}
.password-reset-card {
  width: min(480px, calc(100vw - 28px));
  box-sizing: border-box;
  display: grid;
  gap: 14px;
}
.password-reset-card h1,
.password-reset-card p {
  margin: 0;
}
.password-reset-card label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}
.password-reset-message {
  padding: 11px 12px;
  border-radius: 8px;
  background: #eef6ee;
  color: #24562c;
}
.password-reset-message.is-error {
  background: #fff0f0;
  color: #8b1f1f;
}
.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: #eef3f8;
}
.auth-mode-tab {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
}
.auth-mode-tab.is-active {
  border-color: rgba(11, 43, 74, .16);
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 43, 74, .08);
}
.auth-mode-tab:focus-visible {
  outline: 3px solid rgba(194, 140, 43, .35);
  outline-offset: 2px;
}
.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.auth-method-tab {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}
.auth-method-tab.is-active {
  border-bottom-color: var(--red);
  background: transparent;
  box-shadow: none;
}
.auth-method-tab:focus-visible {
  outline: 3px solid rgba(194, 140, 43, .35);
  outline-offset: 2px;
}
.email-auth-panel,
.phone-auth-panel,
.phone-auth-code-step {
  display: grid;
  gap: 10px;
}
.email-auth-panel[hidden],
.phone-auth-panel[hidden],
.phone-auth-code-step[hidden],
[data-phone-auth-ui][hidden] {
  display: none !important;
}
.phone-auth-recommendation {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(194, 140, 43, .34);
  border-radius: 9px;
  background: #fff9e9;
  color: var(--navy);
  line-height: 1.45;
}
.phone-auth-recommendation strong { font-size: 14px; }
.phone-auth-recommendation span { color: var(--muted); font-size: 12px; }
.phone-auth-flow-intro {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 31, 61, .18);
  border-radius: 9px;
  background: #f5f7fb;
  color: var(--navy);
  line-height: 1.45;
}
.phone-auth-flow-intro strong { font-size: 15px; }
.phone-auth-flow-intro span { color: var(--muted); font-size: 12px; }
.phone-auth-field {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}
.phone-auth-field input { width: 100%; }
.phone-auth-hint {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.phone-auth-login-step,
.phone-auth-recovery-step,
.phone-auth-password-step {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.phone-auth-login-step[hidden],
.phone-auth-recovery-step[hidden],
.phone-auth-password-step[hidden],
.phone-auth-send-row[hidden] {
  display: none !important;
}
.phone-auth-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.phone-auth-link {
  min-width: 0;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.phone-auth-link:hover { color: #641313; }
.phone-auth-link:focus-visible {
  outline: 3px solid rgba(194, 140, 43, .42);
  outline-offset: 2px;
  border-radius: 4px;
}
.phone-auth-back { justify-self: start; }
.phone-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.phone-auth-actions:has(.phone-auth-change[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.phone-auth-send {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.button.phone-auth-change {
  min-width: 0;
  white-space: normal;
  border-color: rgba(15, 31, 61, .32);
  background: #f7f3e8;
  color: var(--navy);
}
.button.phone-auth-change:hover {
  border-color: rgba(139, 26, 26, .5);
  background: #efe5cf;
  color: var(--red);
}
.button.phone-auth-change:focus-visible {
  outline: 3px solid rgba(194, 140, 43, .42);
  outline-offset: 2px;
}
.button.phone-auth-change:disabled {
  border-color: rgba(15, 31, 61, .18);
  background: #eef0f3;
  color: #596273;
}
.phone-auth-verify { width: 100%; }
.phone-auth-message { margin: 0; }
.phone-auth-success {
  padding: 10px 12px;
  border: 1px solid #98c8a0;
  border-radius: 8px;
  background: #eff9f0;
  color: #245b2c;
  font-size: 14px;
}
.phone-auth-panel button:disabled,
.email-auth-panel button:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.phone-auth-panel input:disabled {
  color: var(--text);
  background: #f2f4f6;
  opacity: 1;
}
.google-auth-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(11, 43, 74, .22);
  background: #fff;
  color: var(--navy);
  justify-content: center;
}
.google-auth-button:hover { background: #f7f9fb; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d9a5a5;
  border-radius: 8px;
  background: #fff4f4;
  color: #8b1f1f;
  font-size: 14px;
}
.auth-agreement {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3px 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.auth-agreement[hidden] { display: none !important; }
.auth-agreement input {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 1px 4px 0 0;
  accent-color: var(--red);
}
.auth-agreement a {
  color: var(--red);
 font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-agreement-error {
  margin: -8px 0 0;
  color: #8b1f1f;
  font-size: 13px;
  font-weight: 700;
}
.auth-agreement-error[hidden] { display: none !important; }
#auth-dialog .button.primary,
#buyer-auth-dialog .button.primary {
  min-height: 48px;
  border-radius: 8px;
}
#auth-dialog input:not([type="checkbox"]),
#buyer-auth-dialog input:not([type="checkbox"]) {
  min-height: 48px;
}
.vip-benefits-modal {
  width: min(760px, calc(100vw - 28px));
  gap: 16px;
}
.vip-benefits-modal h2 {
  margin: 0;
  padding-right: 28px;
  color: var(--navy);
}
.vip-benefits-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}
.vip-benefits-list li {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 900;
}
.vip-plan-picker {
  display: grid;
  gap: 12px;
}
.vip-plan-picker h3 {
  margin: 0;
  color: var(--navy);
  text-align: center;
}
.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vip-plan-card {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 176px;
  padding: 18px 14px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  cursor: pointer;
}
.vip-plan-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.vip-plan-card:hover,
.vip-plan-card:focus-within,
.vip-plan-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(172, 126, 33, .2);
}
.vip-plan-card strong { font-size: 18px; }
.vip-plan-price {
  color: var(--navy);
  font-size: 28px;
  font-weight: 950;
}
.vip-plan-card small { color: var(--muted); }
.vip-plan-select-label {
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
.vip-plan-card.is-selected .vip-plan-select-label {
  background: var(--gold);
  color: #fff;
}
.vip-plan-recommended {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.x { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }

.admin-page { background: #081108; color: #eaf6ea; }
.admin-page main { max-width: 1280px; }
.admin-page .panel { background: #0e1f0e; border-color: rgba(34,197,94,.2); box-shadow: none; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 9px 10px; border-bottom: 1px solid rgba(128,128,128,.2); text-align: left; font-size: 13px; }
.activity { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.activity-item { padding: 10px; border-radius: 8px; background: rgba(255,255,255,.06); }
.activity-item strong,
.activity-item small,
.activity-note {
  display: block;
}
.activity-note {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
}
.activity-detail-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
}
.activity-detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
}
.activity-detail-list dt {
  color: var(--muted);
  font-weight: 900;
}
.activity-detail-list dd {
  margin: 0;
  color: inherit;
  word-break: break-word;
}

.seller-service-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 31, 53, .12);
  border-radius: 8px;
  background: #fff;
}

.seller-services-page {
  background: #f5f7fb;
}

.seller-services-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.seller-services-hero {
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: #07172c;
}

.seller-services-hero h1 {
  margin: 4px 0 10px;
}

.seller-services-app {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.seller-service-empty,
.service-selector-card,
.service-tab-panel {
  padding: 20px;
  border: 1px solid rgba(15, 31, 53, .1);
  border-radius: 8px;
  background: #fff;
}

.service-selector-card {
  display: grid;
  gap: 14px;
}

.service-selector-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.service-selector-card select,
.service-row select {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 31, 53, .18);
  border-radius: 8px;
  background: #fff;
}

.service-listing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-listing-summary span {
  padding: 12px;
  border-radius: 8px;
  background: #f5f7fb;
  color: #334155;
}

.service-listing-summary strong {
  display: block;
  margin-top: 3px;
  color: #07172c;
}

.service-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.service-tabs button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(15, 31, 53, .14);
  border-radius: 8px;
  background: #f8fafc;
  color: #07172c;
  cursor: pointer;
  white-space: nowrap;
}

.service-tabs button.active {
  border-color: #07172c;
  background: #07172c;
  color: #fff;
}

.service-items {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 31, 53, .1);
  border-radius: 8px;
  background: #fff;
}

.service-row h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.service-row p {
  margin: 0;
  color: #64748b;
}

.service-row strong {
  color: #07172c;
  font-size: 18px;
  white-space: nowrap;
}

.inline-controls {
  display: flex;
  gap: 8px;
}

.withdrawal-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 180px;
}

.withdrawal-controls label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 700;
}

.withdrawal-controls input {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 31, 53, .18);
  border-radius: 8px;
}

.service-placeholder {
  display: grid;
  gap: 10px;
}

.service-order-list {
  display: grid;
  gap: 8px;
}

.service-order-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.service-cart {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: #07172c;
  box-shadow: 0 18px 45px rgba(7, 23, 44, .25);
}

.service-cart span {
  color: #f3c96b;
  font-weight: 700;
}

.service-cart ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.service-cart li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.service-cart li button {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.service-cart-total {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-cart-total strong {
  font-size: 26px;
  color: #fff;
}

.payment-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 31, 53, .1);
}

.seller-dashboard-page {
  background: var(--paper);
}
.seller-dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 14px 76px;
}
.seller-hero,
.seller-module,
.seller-auth-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15,31,61,.07);
}
.seller-hero {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.seller-hero h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
}
.seller-process { order: -1; }
.seller-process .seller-module-head,
.seller-process li,
.seller-promotion-entry { text-align: center; }
.seller-process li strong,
.seller-process li span { display: block; text-align: center; }
.seller-promotion-entry { justify-self: center; }
.seller-hero-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}
.seller-auth-state {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 18px;
}
.seller-auth-state span {
  color: var(--muted);
}
.seller-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.seller-kpi-grid article {
  padding: 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}
.seller-kpi-grid span {
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 900;
}
.seller-kpi-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}
.seller-module {
  margin-bottom: 16px;
  padding: 18px;
}
.seller-module-head {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.seller-module-head h2 {
  margin: 0;
}
.seller-module-copy {
  margin: 0 0 14px;
  color: var(--muted);
}
.seller-listing-list,
.seller-inquiry-list,
.buyer-match-list,
.promotion-service-grid {
  display: grid;
  gap: 12px;
}
.seller-listing-card,
.seller-inquiry-card,
.buyer-match-list article,
.promotion-service-grid article,
.seller-empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.seller-listing-card {
  display: grid;
  gap: 14px;
  padding: 15px;
}
.seller-card-title-row {
  display: grid;
  gap: 8px;
}
.seller-card-title-row h3 {
  margin: 0;
  color: var(--navy);
}
.seller-listing-main p {
  margin: 8px 0;
  color: var(--muted);
}
.seller-listing-main > strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
}
.seller-status-pill {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(201,168,76,.16);
  color: #745313;
  font-size: 12px;
  font-weight: 950;
}
.promotion-plan-pill {
  background: #eef2ff;
  color: #24315f;
}
.seller-review-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.seller-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.seller-image-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.seller-metric-row span {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.seller-image-status-row span {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.seller-metric-row b {
  display: block;
  color: var(--navy);
  font-size: 18px;
}
.seller-image-status-row b {
  color: var(--navy);
}
.seller-card-actions {
  display: grid;
  gap: 9px;
}
.seller-card-actions .button,
.seller-module-head .button,
.seller-auth-state .button,
.promotion-service-grid .button {
  width: 100%;
}
.seller-empty-state {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: var(--muted);
}
.seller-empty-state strong {
  color: var(--navy);
}
.seller-inquiry-card,
.buyer-match-list article,
.promotion-service-grid article {
  display: grid;
  gap: 8px;
  padding: 15px;
}
.seller-inquiry-card strong,
.buyer-match-list strong,
.promotion-service-grid strong {
  color: var(--navy);
}
.seller-inquiry-card span,
.buyer-match-list span,
.promotion-service-grid span,
.seller-process span {
  color: var(--muted);
}
.buyer-match-list em {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15,31,61,.08);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.seller-process ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seller-process li {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 8px;
  min-height: 150px;
  align-content: center;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
  text-align: center;
}
.seller-process li strong { color: var(--gold-2); }
.seller-process li span { color: rgba(255,255,255,.88); }
.seller-feature-entry-list { margin-bottom: 16px; }
.seller-feature-entry-group { display: grid; gap: 8px; }
.seller-feature-listing-label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.seller-feature-entry-grid { display: grid; gap: 12px; }
.seller-feature-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.seller-feature-box h3 { margin: 0; color: var(--gold-2); font-size: 20px; }
.seller-feature-box p { margin: 0; color: rgba(255,255,255,.9); line-height: 1.55; }
.seller-feature-box p strong { color: #fff; }
.seller-feature-box .button { width: 100%; margin-top: auto; }
.seller-feature-exposure { align-content: start; }
.seller-feature-exposure p:last-of-type { font-size: 13px; }
}
.buyer-requirement-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 18px 54px;
}
.buyer-requirement-form {
  margin-top: 18px;
}
.promotion-plan-select {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.promotion-plan-select div {
  display: grid;
  gap: 4px;
}
.promotion-plan-select strong {
  color: var(--navy);
}
.promotion-plan-select span,
.promotion-plan-select p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.promotion-plan-radio-group {
  display: grid;
  gap: 10px;
}
.promotion-plan-select .promotion-plan-option {
  display: grid;
  grid-template-columns: 22px 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  line-height: 1.2;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.promotion-plan-select .promotion-plan-option:hover {
  border-color: rgba(20, 95, 52, .32);
  background: #fbfdfb;
}
.promotion-plan-select .promotion-plan-option:focus-within {
  outline: 3px solid rgba(201, 168, 76, .28);
  outline-offset: 2px;
}
.promotion-plan-select .promotion-plan-option:has(input:checked) {
  border-color: var(--green);
  background: #f5fbf4;
  box-shadow: 0 8px 20px rgba(20, 95, 52, .08);
}
.promotion-plan-select .promotion-plan-option:active {
  transform: translateY(1px);
}
.promotion-plan-select .promotion-plan-option input[type="radio"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
}
.promotion-plan-select .promotion-plan-option span {
  line-height: 1.25;
}
.promotion-plan-select .promotion-plan-option .plan-name {
  color: var(--navy);
  font-size: 16px;
  font-weight: 750;
}
.promotion-plan-select .promotion-plan-option .plan-payment {
  color: #607086;
  font-size: 15px;
  font-weight: 500;
}
.sell-form-card > .two .field-label,
.sell-form-card > .field-label,
.sell-form-card > .two input,
.sell-form-card > .two select,
.sell-form-card > .field-label input,
.sell-form-card > .field-label textarea,
.sell-form-card > select,
.sell-form-card > textarea,
.sell-form-card > .two .field-label > span,
.sell-form-card > .field-label > span,
.sell-form-card > .two input::placeholder,
.sell-form-card > .two .field-label input::placeholder,
.sell-form-card > .field-label input::placeholder,
.sell-form-card > .field-label textarea::placeholder {
  font-weight: 400;
}
#seller-form label,
#seller-form input,
#seller-form select,
#seller-form option,
#seller-form textarea,
#seller-form button,
#seller-form .choice-field,
#seller-form .platform-grid label,
#seller-form .upload-warning,
#seller-form .promotion-plan-option,
#seller-form .promotion-plan-option * {
  font-weight: 400;
}
.promotion-plan-select .promotion-plan-option .plan-payment strong {
  color: #344258;
  font-weight: 750;
}
.promotion-plan-select .promotion-plan-option .plan-payment-emphasis {
  color: #9a6a08;
  font-weight: 850;
}
.promotion-plan-select .huafu-seller-value {
  display: grid;
  gap: 12px;
  margin: 4px 0 2px;
  padding: 14px;
  border: 1px solid rgba(20, 95, 52, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7, #f5fbf4);
}
.huafu-seller-value h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}
.promotion-plan-select .huafu-seller-value-lead {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--navy);
  font-weight: 850;
}
.huafu-seller-value ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.huafu-seller-value li {
  position: relative;
  padding-left: 24px;
  color: #304136;
  line-height: 1.55;
}
.huafu-seller-value li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #168148;
  font-weight: 950;
}
.promotion-plan-select .promotion-benefits-table-wrap,
.buyer-dashboard-card .promotion-benefits-table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.buyer-dashboard-card .promotion-benefits-table-wrap { overflow-x: visible; }
.buyer-dashboard-card .promotion-benefits-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 12px;
}
.buyer-dashboard-card .promotion-benefits-table th,
.buyer-dashboard-card .promotion-benefits-table td {
  padding: 8px 6px;
  overflow-wrap: anywhere;
}
.buyer-dashboard-card .promotion-benefits-table th:first-child { width: 46%; }
.buyer-dashboard-card .promotion-benefits-table th:nth-child(2),
.buyer-dashboard-card .promotion-benefits-table th:nth-child(3) { width: 27%; }
.promotion-benefits-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
}
.promotion-benefits-table th,
.promotion-benefits-table td {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.promotion-benefits-table th:first-child {
  width: 31%;
  text-align: left;
}
.promotion-benefits-table tr:last-child th,
.promotion-benefits-table tr:last-child td { border-bottom: 0; }
.promotion-benefits-table th:last-child,
.promotion-benefits-table td:last-child { border-right: 0; }
.promotion-benefits-table thead th {
  background: #f3f6fa;
  font-size: 14px;
  font-weight: 950;
}
.promotion-benefits-table th:nth-child(3),
.promotion-benefits-table td:nth-child(3) {
  background: #eef6ff;
  border-color: #bcd8f5;
}
.promotion-benefits-table th:nth-child(4),
.promotion-benefits-table td:nth-child(4) {
  background: #fff9e8;
  border-color: #dfc36b;
}
.promotion-benefits-table thead th:nth-child(3) { color: #145a96; }
.promotion-benefits-table thead th:nth-child(4) { color: #795b09; }
.promotion-sale-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.promotion-benefits-table del {
  color: #8a6f72;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
}
.promotion-benefits-table td:last-child strong { color: #a36d00; font-size: 15px; }
.promotion-sale-price small {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #d9ad32;
  color: #281f08;
  font-size: 11px;
  font-weight: 950;
}
.promotion-plan-select .promotion-benefits-note {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,.09);
  color: var(--navy);
  font-weight: 750;
}
@media (max-width: 600px) {
  .huafu-seller-value ul { grid-template-columns: 1fr; }
  .promotion-plan-select .huafu-seller-value { padding: 12px; }
  .huafu-seller-value h2 { font-size: 18px; }
  .promotion-plan-select .promotion-plan-option {
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    min-height: 70px;
    padding: 11px 12px;
  }
  .promotion-plan-select .promotion-plan-option input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-basis: auto;
    grid-row: 1 / 3;
    align-self: center;
  }
  .promotion-plan-select .promotion-plan-option .plan-name,
  .promotion-plan-select .promotion-plan-option .plan-payment {
    grid-column: 2;
  }
  .promotion-plan-select .promotion-plan-option .plan-payment {
    font-size: 14px;
  }
  .promotion-benefits-table { min-width: 660px; font-size: 12px; }
  .promotion-benefits-table th,
  .promotion-benefits-table td { padding: 9px 8px; }
  .buyer-dashboard-card .promotion-benefits-table {
    min-width: 0;
    font-size: 11px;
  }
  .buyer-dashboard-card .promotion-benefits-table th,
  .buyer-dashboard-card .promotion-benefits-table td { padding: 7px 4px; }
}
.promotion-plan-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.promotion-plan-card li {
  line-height: 1.45;
}
.promotion-plan-card small {
  color: var(--navy);
  font-weight: 900;
}
.promotion-plan-card.is-vip {
  border-color: rgba(15,31,61,.28);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.seller-edit-state,
.seller-edit-images {
  display: grid;
  gap: 12px;
}
.seller-edit-actions {
  display: flex;
  justify-content: flex-start;
}
.seller-edit-plan-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,.09);
  color: var(--navy);
  font-weight: 750;
}
.seller-edit-images {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.seller-edit-images > div:first-child {
  display: grid;
  gap: 4px;
}
.seller-edit-images strong {
  color: var(--navy);
}
.seller-edit-images span {
  color: var(--muted);
}
.seller-edit-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.seller-edit-image-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}
.seller-edit-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

@media (max-width: 980px) {
  .search-inner, .brand-network-main, .buyer-network, .seller-section, .map-section { grid-template-columns: 1fr; }
  .detail-hero, .detail-grid { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .seller-center-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-strip { top: 84px; justify-content: flex-start; }
  .search-inner { align-items: stretch; }
}

@media (min-width: 769px) {
  .seller-dashboard {
    padding: 28px 20px 84px;
  }
  .seller-hero,
  .seller-module-head,
  .seller-listing-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .seller-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .seller-card-actions {
    min-width: 260px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .promotion-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .buyer-match-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .seller-process ol {
      grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .seller-feature-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .seller-card-actions .button,
  .seller-module-head .button,
  .seller-auth-state .button,
  .promotion-service-grid .button {
    width: auto;
  }
}

@media (max-width: 768px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .topbar {
    position: static;
    align-items: flex-start;
    padding: 12px 14px;
    flex-direction: column;
  }
  .brand { width: 100%; }
  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: wrap;
  }
  .main-nav a:nth-of-type(2) { margin-right: 0; }
  .main-nav a,
  .main-nav button {
    min-height: 44px;
  }
  .main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
  }
  .search-band { padding: 12px 14px 14px; }
  .search-inner {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .search-button { width: 100%; min-height: 50px; }
  .category-strip {
    position: sticky;
    top: 0;
    justify-content: flex-start;
    padding: 0 10px;
    scrollbar-width: none;
  }
  .category-strip::-webkit-scrollbar { display: none; }
  .cat-button {
    min-height: 48px;
    padding: 13px 15px 11px;
    font-size: 14px;
  }
  main { padding: 16px 14px 86px; }
  .brand-network { padding: 18px; }
  .brand-network-title { margin-bottom: 20px; }
  .brand-network-main { gap: 14px; }
  .hero-copy {
    min-height: auto;
    padding: 8px 0 0;
  }
  .hero-sub { font-size: 15px; }
  .trust-message { padding: 14px; margin: 16px 0; }
  .hero-actions { margin-top: 10px; }
  .hero-actions .button { width: 100%; }
  .network-panel, .buyer-network, .seller-section, .map-section { padding: 18px; }
  .stat-strip, .listing-grid, .favorite-grid, .seller-center-actions { grid-template-columns: 1fr; }
  .seller-center-intro {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .seller-center-intro span {
    white-space: normal;
  }
  .seller-center-intro span + span::before {
    display: none;
  }
  .network-list, .two, .platform-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr 1fr; }
  .source-grid span, .source-grid li, .network-list span { min-height: 44px; display: flex; align-items: center; }
  .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px;
  }
  .stat-card strong { margin-bottom: 0; font-size: 32px; white-space: nowrap; }
  .stat-card span { text-align: right; }
  .transaction-row { grid-template-columns: 1fr 1fr; }
  .transaction-row.header { display: none; }
  .map-frame { min-height: 280px; }
  #map { height: 280px; }
  h1 { font-size: 32px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .listing-card .button { width: 100%; }
  .listing-grid .listing-card {
    flex-direction: column;
  }
  .listing-grid .listing-actions {
    flex-basis: auto;
    padding: 0 16px 16px;
    border-left: 0;
  }
  .ad-frame img,
  .listing-ad-card .ad-frame img { height: 100%; min-height: 0; }
  .ad-caption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    border-radius: 8px;
  }
  .vip-status-panel {
    grid-template-columns: 1fr;
  }
  .vip-status-panel .button {
    width: 100%;
  }
  .recent-view-card {
    grid-template-columns: 1fr;
  }
  .recent-view-card .button {
    width: 100%;
  }
  .detail-actions .button { width: 100%; }
  .key-metrics,
  .detail-actions,
  .info-card-grid,
  .composition-grid {
    grid-template-columns: 1fr;
  }
  .detail-action { width: 100%; }
  .detail-cover { min-height: 210px; }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-cover {
    min-height: 0;
    max-height: 70vh;
  }
  .detail-cover-empty {
    min-height: 180px;
  }
  .gallery-feature img {
    max-height: 70vh;
  }
  .image-preview-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .image-preview-panel {
    max-height: calc(100dvh - 16px);
    padding: 50px 8px 8px;
  }
  .image-preview-panel img {
    max-height: calc(100dvh - 88px);
  }
  .listing-actions { grid-template-columns: 1fr; }
  .fact-list div { grid-template-columns: 1fr 1fr; }
  .listing-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-purchase-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .vip-purchase-price {
    justify-items: start;
  }
  .vip-purchase-button {
    width: 100%;
  }
  .seller-card { gap: 12px; }
  .seller-service-entry,
  .service-row,
  .service-cart {
    grid-template-columns: 1fr;
  }
  .service-listing-summary {
    grid-template-columns: 1fr;
  }
  .seller-image-status-row {
    grid-template-columns: 1fr;
  }
  .inline-controls,
  .service-cart-total {
    align-items: stretch;
    flex-direction: column;
  }
  .service-row .button,
  .seller-service-entry .button,
  .service-cart .button {
    width: 100%;
  }
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .modal { max-height: calc(100vh - 28px); overflow: auto; }
  .mobile-sell-cta { display: none; }
  .mobile-tabbar { display: flex; }
}

@media (max-width: 430px) {
  .topbar { padding: 11px 12px; }
  .main-nav .button {
    padding-left: 11px;
    padding-right: 11px;
  }
  main { padding-left: 12px; padding-right: 12px; }
  .brand-network { padding: 16px; }
  .brand-network-title { font-size: 30px; }
  .network-panel, .buyer-network, .seller-section, .map-section { padding: 16px; }
  .detail-hero, .detail-panel { padding: 16px; }
  .key-metric strong { font-size: 21px; }
  .detail-rows div { grid-template-columns: 1fr; }
  .auth-method-tabs { grid-template-columns: 1fr 1fr; }
  #auth-dialog,
  #buyer-auth-dialog {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  #auth-dialog .modal,
  #buyer-auth-dialog .modal {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
    padding: 16px 14px;
  }
  #auth-dialog .modal .x,
  #buyer-auth-dialog .modal .x {
    top: 6px;
    right: 6px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  [data-phone-auth-ui],
  .phone-auth-panel,
  .phone-auth-code-step,
  .phone-auth-field,
  .phone-auth-field input,
  .phone-auth-actions,
  .phone-auth-actions > * {
    min-width: 0;
    max-width: 100%;
  }
  .phone-auth-actions { grid-template-columns: 1fr; }
  .phone-auth-secondary-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .phone-auth-secondary-actions .phone-auth-link {
    width: 100%;
    min-height: 40px;
    text-align: center;
  }
  .phone-auth-send,
  .phone-auth-change { width: 100%; min-width: 0; }
  .source-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 250px; }
  #map { height: 250px; }
}

@media (max-width: 390px) {
  .brand strong { font-size: 15px; }
  .main-nav { gap: 6px; }
  .main-nav a,
  .main-nav .link-button,
  .main-nav .button {
    font-size: 13px;
  }
  .hero-copy { padding-top: 4px; }
  h1 { font-size: 29px; }
  h2 { font-size: 23px; }
  .stat-card strong { font-size: 29px; }
  .map-frame { min-height: 230px; }
  #map { height: 230px; }
}

/* Legal documents */
.legal-page { background: #f7f3e8; color: var(--text); }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(18px, calc((100vw - 920px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.legal-header a { color: var(--navy); font-weight: 850; }
.legal-language { display: flex; gap: 8px; }
.legal-language a {
  padding: 7px 11px;
  border-radius: 999px;
  text-decoration: none;
}
.legal-language a.is-active { background: var(--red); color: #fff; }
.legal-document {
  width: min(920px, calc(100vw - 28px));
  margin: 28px auto 56px;
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15,31,61,.08);
}
.legal-document h1 { margin-top: 0; color: var(--navy); font-size: clamp(28px, 5vw, 42px); }
.legal-document h2 { margin: 30px 0 12px; color: var(--red); font-size: 21px; }
.legal-document h3 { color: var(--navy); font-size: 17px; }
.legal-document p,
.legal-document li { line-height: 1.8; }
.legal-document li + li { margin-top: 6px; }
.legal-meta { color: var(--muted); font-weight: 700; }
.legal-notice {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fff9e9;
}

/* Admin dashboard */
.admin-dashboard-page {
  --admin-bg: #061107;
  --admin-panel: #0b220f;
  --admin-panel-2: #0f2b14;
  --admin-line: rgba(66, 197, 99, .26);
  --admin-text: #eaf8ed;
  --admin-muted: #8fb69a;
  --admin-green: #20d464;
  --admin-gold: #d7ad3d;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-dashboard-page main,
.admin-dashboard-page .admin-main {
  max-width: none;
  margin: 0;
}

.crm-match-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.crm-match-summary article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel-2);
}
.crm-match-summary span { color: var(--admin-muted); font-size: 12px; font-weight: 800; }
.crm-match-summary strong { color: var(--admin-text); font-size: 24px; }
.crm-match-summary .full { grid-column: 1 / -1; }
.match-breakdown,
.ranking-reason {
  display: grid;
  gap: 10px;
}
.match-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(215, 173, 61, .12);
}
.match-total strong { color: #f7d77a; font-size: 26px; }
.match-breakdown ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.match-breakdown-item,
.ranking-reason div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.match-breakdown-item small,
.ranking-reason .note { grid-column: 1 / -1; color: var(--admin-muted); }
.match-breakdown-item.matched { border-left: 4px solid #52e985; }
.match-breakdown-item.matched span,
.match-breakdown-item.matched strong { color: #8df0ad; }
.match-breakdown-item.missed { border-left: 4px solid #ff6b6b; }
.match-breakdown-item.missed span,
.match-breakdown-item.missed strong { color: #ff9a9a; }
.ranking-reason {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ranking-reason .final,
.ranking-reason .note { grid-column: 1 / -1; }
.ranking-reason strong { color: #f7d77a; font-size: 22px; }
.admin-action-stack { display: flex; flex-wrap: wrap; gap: 6px; min-width: 210px; }
.admin-action-stack .button { flex: 1 1 auto; padding: 8px 10px; }

.seller-management-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 8px;
  min-width: 288px;
}

.seller-management-action {
  width: 100%;
  min-width: 88px;
  min-height: 40px;
  height: 40px;
  padding: 8px 12px;
  border-width: 1px;
  color: #fff !important;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(3, 12, 24, .2);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.seller-management-action--view {
  background: #1769c2;
  border-color: #3182d8;
}

.seller-management-action--view:hover,
.seller-management-action--view:focus-visible {
  background: #12549a;
  border-color: #2770bc;
}

.seller-management-action--edit {
  background: #c65f0a;
  border-color: #e47b27;
}

.seller-management-action--edit:hover,
.seller-management-action--edit:focus-visible {
  background: #9f4905;
  border-color: #c96212;
}

.seller-management-action--delete {
  background: #b4232d;
  border-color: #dc3c47;
}

.seller-management-action--delete:hover,
.seller-management-action--delete:focus-visible {
  background: #8e1821;
  border-color: #b92731;
}

.seller-management-action:hover:not(:disabled),
.seller-management-action:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(3, 12, 24, .3);
}

.seller-admin-filter {
  grid-template-columns: minmax(240px, 1fr) auto auto;
  margin-bottom: 16px;
}

.listing-code-cell {
  min-width: 170px;
  max-width: 250px;
}

.listing-code-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.listing-code-badge {
  appearance: none;
  border: 1px solid #8eb9e8;
  border-radius: 999px;
  background: rgba(23, 105, 194, .22);
  color: #f4f9ff;
  padding: 5px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.listing-code-badge:hover,
.listing-code-badge:focus-visible {
  border-color: #d6eaff;
  background: rgba(49, 130, 216, .42);
}

.listing-code-more {
  flex-basis: 100%;
}

.listing-code-more summary {
  width: fit-content;
  color: #cfe4fb;
  cursor: pointer;
  font-size: 12px;
}

.listing-code-more[open] .listing-code-list {
  margin-top: 7px;
}

.listing-code-empty {
  color: var(--admin-muted);
  white-space: nowrap;
}

.promotion-filter { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.promotion-filter label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.promotion-filter input, .promotion-filter select, .promotion-item-dates input, .promotion-publication-form input, .promotion-admin-notes textarea { width: 100%; }
.admin-filter-actions, .admin-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.admin-pagination { margin-top: 16px; }
.promotion-admin-notes, .promotion-item-dates, .promotion-publication-form { display: grid; gap: 10px; margin: 14px 0; }
.promotion-item-dates { grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; align-items: end; }
.promotion-item-dates label { display: grid; gap: 5px; }
.promotion-publication-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.promotion-admin-item { margin-top: 16px; }
.promotion-admin-item ul, .seller-promotion-item ul { display: grid; gap: 8px; padding-left: 20px; }
.seller-promotion-orders, .seller-promotion-items { display: grid; gap: 18px; }
.seller-promotion-order { padding: 22px; }
.seller-promotion-item { padding: 16px; border: 1px solid rgba(18, 73, 54, .16); border-radius: 14px; background: rgba(255, 255, 255, .68); }
.seller-promotion-item > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seller-promotion-item h3, .seller-promotion-item h4 { margin: 0; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 10px; border-radius: 999px; background: rgba(193, 151, 76, .15); color: #70520f; font-size: 12px; font-weight: 800; }

@media (max-width: 760px) {
  .promotion-filter, .promotion-item-dates, .promotion-publication-form, .seller-admin-filter { grid-template-columns: 1fr; }
  .listing-code-cell { min-width: 145px; max-width: none; }
  .seller-promotion-order { padding: 15px; }
  .seller-promotion-item > div { align-items: flex-start; flex-direction: column; }
}

.notification-badge {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.notification-center {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,31,61,.07);
}
.buyer-center-shell > .notification-center { margin-bottom: 18px; }
.notification-center-head,
.notification-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notification-center-head h2 { margin: 2px 0 0; }
.notification-list { display: grid; gap: 10px; margin-top: 16px; }
.notification-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff;
}
.notification-card.is-read { border-left-color: #cbd5e1; background: #f8fafc; }
.notification-card-main { min-width: 0; }
.notification-card p { margin: 7px 0; color: var(--text); overflow-wrap: anywhere; }
.notification-card small { color: var(--muted); }
.notification-state { color: var(--muted); font-size: 11px; font-weight: 900; }
.notification-state.unread { color: #a51f1f; }
.notification-empty { padding: 20px; text-align: center; color: var(--muted); }
.notification-preferences { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.notification-preferences summary { cursor: pointer; padding: 12px 14px; font-weight: 900; }
.notification-email-indicator { float: right; color: var(--muted); font-size: 12px; }
.notification-preferences form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 0 14px 14px; }
.notification-preferences form label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.notification-preferences form .note,
.notification-preferences form div { grid-column: 1 / -1; }

.admin-dashboard-page .notification-center {
  border-color: var(--admin-line);
  background: var(--admin-panel);
  box-shadow: none;
}
.admin-notification-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-notification-form label { display: grid; gap: 6px; color: var(--admin-muted); font-size: 12px; font-weight: 800; }
.admin-notification-form .full { grid-column: 1 / -1; }
.admin-bulk-warning { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff3cd; color: #7a5200; font-weight: 800; }
.admin-notification-filter { display: grid; grid-template-columns: 1fr 1fr 150px auto auto; gap: 8px; margin-bottom: 14px; }
.admin-template-list { display: grid; gap: 14px; }
.admin-template-filter { display: flex; align-items: end; gap: 10px; margin-bottom: 14px; }
.admin-template-filter label { display: grid; gap: 6px; font-weight: 800; }
.admin-template-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; }
.admin-template-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-template-card form label { display: grid; gap: 6px; font-weight: 800; }
.admin-template-card form .full { grid-column: 1 / -1; }
.admin-template-card textarea { min-height: 100px; }
.admin-template-preview { grid-column: 1 / -1; padding: 10px 12px; border-radius: 8px; background: #f8fafc; }
.admin-template-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-template-preview-head > div { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-template-preview-head .button.active { background: var(--navy); color: #fff; }
.admin-template-variable-list span { display: inline-block; margin: 2px 4px; padding: 3px 7px; border-radius: 999px; background: #e8f4eb; color: #285f36; font-weight: 800; }
.admin-template-variable-list span.is-missing { background: #fee2e2; color: #a51f1f; }
.admin-template-preview p { margin: 6px 0; }
.admin-template-preview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.admin-template-preview dl div { padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.admin-template-preview dt { color: var(--muted); font-size: 11px; font-weight: 900; }
.admin-template-preview dd { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-template-test { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(160px, auto); gap: 8px; align-items: center; }
.admin-template-locale-create { grid-column: 1 / -1; display: flex; gap: 8px; }
.admin-email-preview-frame { width: 100%; max-width: 640px; margin: 14px auto 0; border: 1px solid #d9d2bd; border-radius: 10px; overflow: hidden; background: #fff; color: #334b39; transition: max-width .2s ease, background .2s ease; }
.admin-email-preview-frame.is-mobile { max-width: 375px; }
.admin-email-preview-frame.is-dark { background: #14231a; color: #d7e3da; border-color: #405247; }
.admin-email-preview-brand { padding: 16px 20px; background: #0d321d; color: #d8b45a; font-size: 19px; font-weight: 900; }
.admin-email-preview-brand small { display: block; color: #fff; font-size: 10px; }
.admin-email-preview-frame h4 { margin: 18px 20px 8px; font-size: 20px; }
.admin-email-preview-frame > p { margin: 0 20px 16px; white-space: pre-wrap; }
.admin-email-preview-cta { display: inline-block; margin: 0 20px 18px; padding: 9px 15px; border-radius: 6px; background: #b98b2f; color: #fff; font-weight: 800; }
.admin-email-preview-frame footer { padding: 14px 20px; background: #f7f4ec; color: #667268; font-size: 11px; }
.admin-email-preview-frame.is-dark footer { background: #0c1710; color: #9fb0a4; }
.admin-template-history { grid-column: 1 / -1; display: grid; gap: 7px; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; }
.admin-template-history[hidden] { display: none; }
.admin-template-history > div { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; align-items: center; }

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 16px 10px;
  background: #071b0a;
  border-right: 1px solid var(--admin-line);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 18px;
  color: #fff;
  text-decoration: none;
}

.admin-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand small {
  color: var(--admin-muted);
  margin-top: 2px;
}

.admin-menu-group {
  display: grid;
  gap: 7px;
  margin: 16px 0 22px;
}

.admin-menu-group p {
  margin: 0 8px 3px;
  color: #4b965c;
  font-size: 12px;
  font-weight: 800;
}

.admin-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #ccebd2;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background: #0f461c;
  border-color: rgba(59, 211, 107, .55);
  color: #42e47c;
}

.admin-menu-item span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(32, 212, 100, .18);
  color: #dcffe6;
  font-size: 11px;
  text-align: center;
}

.admin-workspace {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 20px;
  background: rgba(6, 17, 7, .96);
  border-bottom: 1px solid var(--admin-line);
  backdrop-filter: blur(12px);
}

.admin-topbar h1 {
  margin: 0;
  color: #fff;
  font-size: 26px;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-main {
  padding: 20px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
  gap: 18px;
}

.admin-sync-banner,
.admin-card,
.admin-kpi-grid article {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  box-shadow: none;
}

.admin-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #123d18;
}

.admin-sync-banner strong,
.admin-sync-banner span {
  display: block;
}

.admin-sync-banner strong {
  color: #52e985;
}

.admin-sync-banner span {
  color: #b8d5be;
  margin-top: 4px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-kpi-grid article {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 18px;
}

.admin-kpi-grid span {
  font-size: 22px;
}

.admin-kpi-grid strong {
  color: var(--admin-green);
  font-size: 30px;
  line-height: 1;
}

.admin-kpi-grid small {
  color: #ccebd2;
  font-weight: 800;
}

.admin-kpi-grid em {
  color: var(--admin-muted);
  font-style: normal;
  font-size: 12px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: 14px;
}

.operations-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 14px;
}

.operations-action-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-range-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.crm-dashboard-funnel {
  margin-top: 12px;
}

.crm-funnel-list,
.crm-dashboard-top-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-funnel-list li,
.crm-dashboard-top-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.crm-funnel-list span,
.crm-dashboard-top-list h3,
.crm-dashboard-top-list a {
  color: #e8f6ea;
}

.crm-funnel-list strong,
.crm-dashboard-top-list span {
  color: #d7ad3d;
  font-size: 20px;
  font-weight: 900;
}

.crm-dashboard-top-list h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.crm-dashboard-top-list a {
  text-decoration: none;
}

.operations-action-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(82,233,133,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.operations-action-item:hover,
.operations-action-item:focus-visible {
  border-color: #52e985;
  background: rgba(82,233,133,.1);
}

.operations-action-item.urgent {
  border-left: 4px solid #ffb454;
}

.operations-action-item span,
.operations-week-summary span {
  color: #ccebd2;
  font-size: 13px;
  font-weight: 800;
}

.operations-action-item strong {
  color: #52e985;
  font-size: 26px;
}

.operations-action-item.urgent strong {
  color: #ffca80;
}

.operations-action-item small {
  color: var(--admin-muted);
}

.operations-week-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.operations-week-summary div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(82,233,133,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.operations-week-summary strong {
  color: #fff;
  font-size: 21px;
}

.operations-activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.operations-activity-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(82,233,133,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.operations-activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #52e985;
  box-shadow: 0 0 0 4px rgba(82,233,133,.12);
}

.operations-activity-item strong {
  color: #fff;
}

.operations-activity-item p {
  margin: 5px 0;
  color: #ccebd2;
  font-size: 13px;
}

.operations-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 8px;
  color: var(--admin-muted);
  text-align: center;
}

.admin-card {
  min-width: 0;
  padding: 16px;
}

.admin-card.wide {
  min-height: 320px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.admin-card-head p {
  margin: 4px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  margin: 0 0 14px;
}

.admin-search-row input {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 0 12px;
}

.admin-search-row input::placeholder {
  color: rgba(234,248,237,.58);
}

.admin-detail-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #071b0a;
  color: var(--admin-text);
  border: 1px solid var(--admin-line);
}

.admin-detail-modal h2 {
  margin: 0 0 12px;
  color: #fff;
}

#listing-detail-dialog {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 18px;
  overflow: hidden;
}

#listing-detail-dialog[open] {
  display: grid;
  place-items: center;
}

#listing-detail-dialog .admin-detail-modal {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 0;
  overflow: hidden;
}

.admin-detail-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-line);
  background: #0b2410;
}

.admin-detail-modal-head h2 {
  margin: 0;
}

.admin-detail-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-detail-modal-close {
  min-width: 132px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #fff;
  color: #0b2410;
  font-size: 16px;
  font-weight: 900;
  font-weight: 900;
  cursor: pointer;
}

.admin-detail-modal-close span[aria-hidden="true"] {
  font-size: 24px;
  line-height: 1;
}

.admin-detail-modal-close:hover,
.admin-detail-modal-close:focus-visible {
  background: #eaf8ed;
  outline: 3px solid rgba(88,228,134,.34);
  outline-offset: 2px;
}

.admin-detail-modal-scroll {
  min-height: 0;
  padding: 10px 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-color: #58e486 #0b2410;
}

#listing-detail-dialog .admin-detail-section dt {
  color: #b8d9bf;
}

#listing-detail-dialog .admin-detail-section p,
#listing-detail-dialog .admin-detail-section li {
  color: #eaf8ed;
}

.admin-detail-section {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(66,197,99,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.admin-detail-section h3 {
  margin: 0 0 14px;
  color: #58e486;
  font-size: 18px;
}

.admin-detail-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0;
}

.admin-detail-section div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-detail-section dt {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-detail-section dd {
  margin: 0;
  color: #fff;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.55;
}

.admin-dashboard-page .table-wrap {
  overflow: auto;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(0,0,0,.12);
}

.admin-dashboard-page table {
  min-width: 900px;
}

.admin-dashboard-page th {
  color: #86de9c;
  background: rgba(16, 72, 29, .45);
  white-space: nowrap;
}

.admin-dashboard-page td {
  color: #eaf8ed;
  vertical-align: top;
}

.admin-dashboard-page small {
  color: #a7c8ad;
}

.admin-dashboard-page .activity {
  max-height: 620px;
}

.admin-dashboard-page .activity-item {
  border: 1px solid rgba(66,197,99,.18);
  background: rgba(255,255,255,.045);
}

@media (max-width: 640px) {
  #listing-detail-dialog {
    padding: 8px;
  }

  #listing-detail-dialog .admin-detail-modal {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .admin-detail-modal-head {
    align-items: flex-start;
    padding: 12px;
  }

  .admin-detail-modal-head h2 {
    font-size: 20px;
  }

  #listing-detail-dialog .admin-detail-modal-head {
    flex-direction: column;
  }

  #listing-detail-dialog .admin-detail-modal-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #listing-detail-dialog .admin-detail-modal-actions > * {
    width: 100%;
  }

  #listing-detail-dialog .admin-detail-modal-close {
    min-width: 0;
  }

  .admin-detail-modal-scroll {
    padding: 4px 12px 14px;
  }
}

.admin-dashboard-page .button.ghost.light {
  color: #eaf8ed;
  border-color: rgba(255,255,255,.2);
}

.admin-dashboard-page .admin-actions .button[data-viewing-action="complete"] {
  background: #237a45;
  border-color: #1a6036;
  color: #fff;
  font-weight: 800;
}
.admin-dashboard-page .admin-actions .button[data-viewing-action="complete"]:hover,
.admin-dashboard-page .admin-actions .button[data-viewing-action="complete"]:focus-visible {
  background: #195f35;
  border-color: #124b29;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(78, 176, 111, .32);
}
.admin-dashboard-page .admin-actions .button[data-viewing-action="cancel"] {
  background: #a55220;
  border-color: #7f3d16;
  color: #fff;
  font-weight: 800;
}
.admin-dashboard-page .admin-actions .button[data-viewing-action="cancel"]:hover,
.admin-dashboard-page .admin-actions .button[data-viewing-action="cancel"]:focus-visible {
  background: #843f18;
  border-color: #673010;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(213, 121, 55, .34);
}
.admin-dashboard-page .admin-actions .button[data-viewing-action="complete"]:disabled {
  background: #527561;
  border-color: #456553;
  color: #f4faf6;
  opacity: 1;
}
.admin-dashboard-page .admin-actions .button[data-viewing-action="cancel"]:disabled {
  background: #80604d;
  border-color: #6d5141;
  color: #fff8f3;
  opacity: 1;
}

@media (max-width: 980px) {
  .admin-dashboard-page {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    display: block;
    padding: 12px;
  }
  .admin-menu-group {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    margin: 10px 0;
  }
  .admin-menu-group p {
    display: none;
  }
  .admin-topbar,
  .admin-sync-banner,
  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-kpi-grid,
  .admin-overview-grid,
  .operations-secondary-grid {
    grid-template-columns: 1fr;
  }
  .operations-action-queue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .crm-match-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-range-switch { justify-content: flex-start; }
  .crm-funnel-list li,
  .crm-dashboard-top-list li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .admin-action-stack { min-width: 170px; }
  .notification-center { padding: 16px; }
  .notification-center-head,
  .notification-card { align-items: stretch; flex-direction: column; }
  .notification-card .button { width: 100%; }
  .notification-preferences form { grid-template-columns: 1fr; }
  .notification-preferences form .note,
  .notification-preferences form div { grid-column: auto; }
  .notification-email-indicator { float: none; display: block; margin-top: 4px; }
  .admin-notification-form,
  .admin-notification-filter { grid-template-columns: 1fr; }
  .admin-template-card form { grid-template-columns: 1fr; }
  .admin-template-card form .full { grid-column: auto; }
  .admin-template-preview { grid-column: auto; }
  .admin-template-preview dl,
  .admin-template-test { grid-template-columns: 1fr; }
  .admin-template-test { grid-column: auto; }
  .admin-template-filter { align-items: stretch; flex-direction: column; }
  .admin-template-preview-head { align-items: flex-start; flex-direction: column; }
  .admin-template-locale-create { flex-direction: column; }
  .admin-template-history > div { grid-template-columns: 1fr; }
  .admin-notification-form .full { grid-column: auto; }
  .operations-activity-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .crm-match-summary { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .admin-main {
    padding: 12px;
  }
  .admin-kpi-grid {
    gap: 10px;
  }
  .admin-kpi-grid article {
    min-height: auto;
    padding: 14px;
  }
  .admin-top-actions .button,
  .admin-sync-banner .button,
  .admin-search-row .button {
    width: 100%;
  }
  .admin-search-row {
    grid-template-columns: 1fr;
  }
  .admin-detail-section dl {
    grid-template-columns: 1fr;
  }
  .operations-action-queue,
  .operations-week-summary {
    grid-template-columns: 1fr;
  }
}



.buyer-conversion-section {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(115, 35, 35, 0.14);
  border-radius: 8px;
  background: #fffaf7;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 20px;
  align-items: center;
}

.buyer-conversion-section h2,
.buyer-center-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  text-align: center;
}
.buyer-center-hero { text-align: center; }
.buyer-language-switch { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.buyer-language-switch .is-active { display: none; }
.buyer-center-hero .buyer-language-switch .button {
  background: var(--gold-2);
  color: var(--navy);
  border-color: var(--gold);
}
.buyer-center-hero .buyer-language-switch .button:hover,
.buyer-center-hero .buyer-language-switch .button:focus-visible {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.buyer-growth-page .buyer-language-switch .button {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.buyer-growth-page .buyer-language-switch .button:hover,
.buyer-growth-page .buyer-language-switch .button:focus-visible {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.buyer-growth-card { display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; gap: 24px; align-items: start; margin: 0 0 20px; padding: 24px 28px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.buyer-growth-brand,
.buyer-growth-status { width: 180px; justify-self: center; align-self: start; display: grid; grid-template-rows: 112px auto auto; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.buyer-growth-brand img,
.buyer-growth-status img { display: block; width: 112px; height: 112px; object-fit: contain; }
.buyer-growth-brand span { color: #fff; font-weight: 700; white-space: nowrap; }
.buyer-growth-copy { min-width: 0; text-align: center; }
.buyer-growth-copy p { margin: 6px 0; }
.buyer-growth-card h2 { margin: 0 0 8px; color: #fff; }
.buyer-growth-card p { color: rgba(255,255,255,.86); }
.buyer-growth-card .button { margin-top: 10px; }
.buyer-growth-status strong { color: var(--gold-2); font-size: 1.1rem; }
.buyer-growth-status span { color: #fff; }
.buyer-growth-status-line { white-space: nowrap; }

.buyer-benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.buyer-benefit-list li::before {
  content: "✓";
  color: #a7332f;
  font-weight: 800;
  margin-right: 8px;
}

.buyer-conversion-actions,
.buyer-center-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buyer-center-page,
.buyer-requirement-page {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.buyer-center-hero {
  margin-bottom: 20px;
}

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

.buyer-dashboard-card {
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 8px;
  padding: 18px;
}

.buyer-vip-card,
.vip-status-panel.buyer-vip-card {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: 20px 28px;
  padding: 30px;
  border: 1px solid rgba(201, 168, 76, .58);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), #172f59);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 31, 61, .18);
}
.buyer-dashboard-grid > .buyer-vip-card { grid-column: 1 / -1; }
.buyer-vip-card > .buyer-vip-intro, .buyer-vip-card > .vip-benefits-grid, .buyer-vip-card > .buyer-vip-payment-history, .buyer-vip-card > .buyer-vip-action { grid-column: 1 / -1; }
.buyer-vip-header { text-align: center; }
.buyer-vip-card .buyer-vip-crown {
  display: block;
  color: var(--gold-2);
  font-size: 30px;
  line-height: 1;
}
.buyer-vip-card h2 { margin: 8px 0 6px; color: #fff; }
.buyer-vip-card p { color: rgba(255,255,255,.82); }
.buyer-vip-card small { color: var(--gold-2); font-weight: 800; }
.buyer-vip-intro { margin: 22px 0 16px; text-align: center; font-weight: 800; }
.vip-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 760px;
  margin: 0 auto;
}
.vip-benefits-grid span {
  padding: 11px 13px;
  border: 1px solid rgba(234, 215, 141, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-weight: 750;
}
.buyer-vip-action { margin-top: 24px; text-align: center; }
.buyer-vip-action .button { min-width: 190px; }
.buyer-vip-number { display: inline-block; margin-top: 10px; color: var(--gold-2); letter-spacing: .08em; font-size: 1.1rem; }
.buyer-vip-membership-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.buyer-vip-membership-details p { margin: 0; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.buyer-vip-membership-details b { color: #fff; }
.buyer-vip-payment-history { margin-top: 22px; }
.buyer-vip-payment-history h3 { color: #fff; }
.buyer-vip-history { margin: 0; padding-left: 20px; color: rgba(255,255,255,.82); }
.buyer-vip-history li + li { margin-top: 7px; }

.buyer-viewing-todo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--red); border-radius: 10px; background: #fff7f4; box-shadow: var(--shadow-sm); }
.viewing-record-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(128,128,128,.18); scroll-margin-top: 90px; }
.viewing-record-card:last-child { border-bottom: 0; }
.viewing-record-main { display: grid; gap: 6px; min-width: 0; }
.viewing-record-statuses, .viewing-record-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.viewing-record-guidance { color: var(--muted); }
.viewing-record-card.is-notification-target { margin-inline: -10px; padding-inline: 10px; border-radius: 10px; background: #fff4cf; animation: viewing-record-highlight 2.4s ease-out; }
@keyframes viewing-record-highlight { 0%, 45% { box-shadow: 0 0 0 4px rgba(196,154,44,.35); } 100% { box-shadow: none; } }

.viewing-feedback-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 16px; }
.viewing-feedback-dialog::backdrop { background: rgba(20,18,16,.68); }
.viewing-feedback-modal { width: 100%; max-width: none; max-height: calc(100vh - 24px); overflow-y: auto; margin: 0; padding: 24px; }
.viewing-feedback-modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.viewing-feedback-modal-head h2 { margin-top: 0; }
.viewing-feedback-loading { padding: 16px; text-align: center; }
.viewing-feedback-points { display: grid; gap: 5px; margin: 14px 0 20px; padding: 14px; border: 1px solid rgba(196,154,44,.4); border-radius: 10px; background: #fff9e8; }
.viewing-feedback-points small { margin-top: 4px; color: var(--muted); }
.viewing-feedback-modal fieldset { display: grid; gap: 14px; padding: 0; border: 0; }
.viewing-feedback-modal fieldset.is-readonly { opacity: .84; }
.viewing-feedback-modal select { position: relative; z-index: 1; pointer-events: auto; touch-action: manipulation; }
.viewing-feedback-modal select:focus-visible { outline: 3px solid rgba(196,154,44,.35); outline-offset: 2px; }
.viewing-feedback-rating-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.viewing-feedback-consent { display: flex; gap: 9px; align-items: flex-start; }
.viewing-feedback-consent input { width: auto; margin-top: 4px; }
.viewing-feedback-privacy-note { padding: 12px 14px; border-radius: 10px; background: #f5f5f3; }
.viewing-feedback-privacy-note p { margin: 4px 0; color: var(--muted); }
.viewing-feedback-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.viewing-feedback-detail-grid p { display: grid; gap: 3px; margin: 0; padding: 10px; border-radius: 8px; background: #f7f6f2; }
.viewing-feedback-detail-grid p.wide { grid-column: 1 / -1; }
.viewing-feedback-detail-grid span { color: var(--muted); font-size: .85rem; }
.viewing-feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.viewing-feedback-message { min-height: 1.4em; margin: 10px 0 0; color: var(--red); font-weight: 700; }
.buyer-action-toast { position: fixed; z-index: 10000; right: 20px; bottom: 20px; max-width: min(440px, calc(100vw - 40px)); padding: 14px 18px; border-radius: 10px; color: #fff; background: #174c35; box-shadow: var(--shadow-lg); }

@media (max-width: 640px) {
  .buyer-viewing-todo, .viewing-record-card { align-items: stretch; flex-direction: column; }
  .viewing-record-actions .button, .buyer-viewing-todo .button { width: 100%; }
  .viewing-feedback-rating-grid, .viewing-feedback-detail-grid { grid-template-columns: 1fr; }
  .viewing-feedback-modal { padding: 18px 14px; }
  .viewing-feedback-actions { flex-direction: column-reverse; }
  .viewing-feedback-actions .button { width: 100%; }
}

.auth-access-intro {
  padding: 12px 14px;
  border: 1px solid rgba(201,168,76,.32);
  border-radius: 8px;
  background: rgba(201,168,76,.08);
}
.auth-access-intro p { margin: 0 0 8px; font-weight: 800; }
.auth-access-benefits {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-access-benefits li::before { content: "✓"; margin-right: 7px; color: var(--gold); font-weight: 950; }
.detail-login-gate { align-items: center; }
.detail-login-gate h2 { margin-top: 22px; }

@media (max-width: 600px) {
  .buyer-vip-card,
  .vip-status-panel.buyer-vip-card { padding: 22px 16px; }
  .vip-benefits-grid { grid-template-columns: 1fr; gap: 8px; }
  .buyer-vip-action .button { width: 100%; }
  .vip-plan-grid { grid-template-columns: 1fr; }
  .vip-plan-card { min-height: 0; }
}

.requirement-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.requirement-row:last-child {
  border-bottom: 0;
}

.buyer-requirement-editor {
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  padding: 10px 0;
}

.buyer-requirement-editor:last-child { border-bottom: 0; }

.buyer-requirement-editor summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  color: var(--navy);
}

.buyer-requirement-summary-card {
  display: grid;
  gap: 12px;
}

.buyer-requirement-summary-main {
  display: grid;
  gap: 4px;
  color: var(--navy);
}

.buyer-requirement-summary-main span {
  color: var(--muted);
  font-size: 0.92rem;
}

.buyer-requirement-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-requirement-card-actions .button {
  min-height: 40px;
}

.buyer-requirement-dialog {
  width: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  background: transparent;
  z-index: 1200;
}

.buyer-requirement-dialog::backdrop {
  background: rgba(8, 20, 40, 0.55);
}

.buyer-requirement-modal {
  position: relative;
  z-index: 1201;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  color: #172033;
  background: #FFFFFF;
  border: 1px solid #D8E0EA;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(8, 20, 40, 0.32);
}

.buyer-requirement-modal > h2,
.buyer-requirement-modal-head {
  margin: 0;
  padding: 17px 72px 17px 20px;
  color: #0F2747;
  background: #F4F7FB;
  border-bottom: 1px solid #D8E0EA;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 900;
  line-height: 1.25;
}

.buyer-requirement-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buyer-requirement-modal-head h2 {
  margin: 0;
  color: #0F2747;
  font-size: inherit;
  font-weight: inherit;
}

.buyer-requirement-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0F2747;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.buyer-requirement-modal-close:hover,
.buyer-requirement-modal-close:focus-visible {
  background: rgba(15, 39, 71, 0.08);
  outline: 2px solid rgba(201, 168, 76, 0.45);
  outline-offset: 2px;
}

.buyer-requirement-modal > #buyer-requirement-dialog-body,
.buyer-requirement-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #FFFFFF;
}

.buyer-requirement-detail {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.buyer-requirement-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.buyer-requirement-detail-row span {
  color: var(--muted);
  font-weight: 700;
}

.buyer-requirement-detail-row strong {
  color: var(--navy);
  word-break: break-word;
}

.buyer-requirement-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
}

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

.buyer-requirement-form label {
  display: grid;
  gap: 5px;
  font-weight: 800;
  color: #0F2747;
}

.buyer-requirement-form input,
.buyer-requirement-form select,
.buyer-requirement-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #FFFFFF;
  color: #172033;
  font: inherit;
}

.buyer-requirement-form textarea {
  min-height: 104px;
  resize: vertical;
}

.buyer-requirement-form input::placeholder,
.buyer-requirement-form textarea::placeholder {
  color: #6B7280;
  opacity: 1;
}

.buyer-requirement-form input:focus,
.buyer-requirement-form select:focus,
.buyer-requirement-form textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(201, 168, 76, 0.22);
}

.buyer-requirement-wide,
.buyer-requirement-toggle,
.buyer-requirement-actions {
  grid-column: 1 / -1;
}

.buyer-requirement-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

.buyer-requirement-toggle input { width: auto; }
.buyer-requirement-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.buyer-requirement-actions .button.primary:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.buyer-match-card {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
.buyer-match-card:last-child { border-bottom: 0; }
.buyer-match-explain {
  border: 1px solid rgba(201, 168, 76, .28);
  border-radius: 8px;
  background: rgba(201, 168, 76, .07);
  padding: 10px 12px;
}
.buyer-match-explain summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}
.buyer-match-explain ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #4f3a35;
}

@media (max-width: 600px) {
  .buyer-requirement-modal {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
  }
  .buyer-requirement-modal > h2,
  .buyer-requirement-modal-head {
    padding: 15px 64px 15px 16px;
  }
  .buyer-requirement-modal > #buyer-requirement-dialog-body,
  .buyer-requirement-modal-body {
    padding: 16px;
  }
  .buyer-requirement-grid { grid-template-columns: 1fr; }
  .buyer-requirement-actions .button,
  .buyer-requirement-card-actions .button { width: 100%; }
  .buyer-requirement-detail-row { grid-template-columns: 1fr; gap: 4px; }
}

.detail-buyer-guide {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: #4f3a35;
}

.detail-buyer-guide a {
  font-weight: 800;
  color: #a7332f;
}

@media (max-width: 760px) {
  .buyer-conversion-section,
  .buyer-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .buyer-conversion-section {
    padding: 18px;
  }

  .buyer-center-page,
  .buyer-requirement-page {
    width: min(100% - 20px, 1120px);
  }
}
.form-error-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(167, 51, 47, 0.28);
  border-radius: 8px;
  background: #fff1f0;
  color: #8f1f1a;
  font-weight: 700;
}

.buyer-requirement-success {
  margin-top: 18px;
}
.admin-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.35);
}

.store-action-cell {
  min-width: 190px;
  vertical-align: top;
}

.admin-actions.store-management-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-width: 170px;
}

.store-management-actions .store-action,
.store-management-actions .store-action-state,
.store-management-actions .store-status-control {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.store-management-actions .store-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  color: #fff;
}

.store-action--view { background: #1769c2; border-color: #4a9aee !important; }
.store-action--approve { background: #168447; border-color: #39b96f !important; }
.store-action--reject { background: #bd3434; border-color: #ef6a6a !important; }
.store-action--offline { background: #cc6a08; border-color: #f6a03d !important; }
.store-action--feature { background: #c89a20; border-color: #f0ca63 !important; color: #201600 !important; }
.store-action--feature-active { background: #5e5130; border-color: #c7aa58 !important; }
.store-action--delete { background: #711f2a; border-color: #bd5260 !important; }

.store-management-actions .store-action:hover:not(:disabled),
.store-management-actions .store-action:focus-visible:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.store-management-actions .store-action--waiting:disabled {
  opacity: 1;
  filter: none;
  background: #5f6772;
  border-color: #8e98a6;
  color: #fff;
}

.store-management-actions .store-action-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid;
}

.store-action-state--approved { color: #86efac; background: rgba(22,132,71,.22); border-color: #168447; }
.store-action-state--rejected { color: #fecaca; background: rgba(189,52,52,.22); border-color: #bd3434; }
.store-action-state--offline { color: #fed7aa; background: rgba(204,106,8,.2); border-color: #cc6a08; }

.store-management-actions .store-status-control {
  display: grid;
  gap: 6px;
  height: auto;
  padding: 9px 10px;
  color: #d7eadb;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
}

.store-management-actions .store-status-control span {
  font-size: 12px;
}

.store-management-actions .admin-status-select {
  width: 100%;
  min-height: 38px;
  font-size: 14px;
}
.admin-listing-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.admin-listing-status-filters .button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
}

.admin-listing-status-filters .button.active {
  border-color: #f4c95d;
  background: #f4c95d;
  color: #172033;
}

.admin-listing-status-filters .button span {
  display: inline-flex;
  min-width: 1.5rem;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.listing-code-badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(244, 201, 93, 0.75);
  border-radius: 999px;
  color: #fff4c7;
  background: rgba(244, 201, 93, 0.12);
  font-weight: 700;
  white-space: nowrap;
}

.admin-status-dialog {
  width: min(34rem, calc(100vw - 2rem));
}

.admin-status-dialog ul {
  padding-left: 1.25rem;
  line-height: 1.7;
}

.admin-status-dialog label {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.admin-status-dialog select,
.admin-status-dialog textarea {
  width: 100%;
}

.admin-status-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.store-action--relist {
  border-color: #65d69e;
  color: #b9f6d8;
}

@media (max-width: 720px) {
  .buyer-growth-card, .buyer-vip-card, .vip-status-panel.buyer-vip-card { grid-template-columns: 1fr; }
  .buyer-dashboard-grid > .buyer-vip-card { grid-column: 1; }
  .buyer-growth-card { padding: 20px; }
  .buyer-vip-card > * { grid-column: 1; }
  .admin-listing-status-filters .button {
    flex: 1 1 calc(50% - 0.65rem);
  }
}

/* Full-width Buyer Centre VIP dashboard. */
.buyer-vip-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
  padding: 26px 28px;
}
.buyer-vip-top {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr) minmax(160px, 260px);
  gap: 22px;
  align-items: center;
  min-width: 0;
}
.buyer-vip-card-art,
.buyer-vip-top-balance { min-width: 0; }
.buyer-vip-card-art img {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}
.buyer-vip-card .buyer-vip-header { align-self: center; }
.buyer-vip-card .buyer-vip-header h2 {
  margin: 8px 0 5px;
  font-size: clamp(1.75rem, 3vw, 2rem);
}
.buyer-vip-card .buyer-vip-status {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
}
.buyer-vip-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, .75fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}
.buyer-vip-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(234, 215, 141, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}
.buyer-vip-panel h3 {
  margin: 0 0 14px;
  color: #fff;
  text-align: center;
}
.buyer-vip-card .buyer-vip-membership-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.buyer-vip-card .buyer-vip-membership-details p {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 10px;
  border: 0;
  border-radius: 0;
  overflow-wrap: anywhere;
}
.buyer-vip-card .buyer-vip-membership-details p:nth-child(-n + 4) {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.buyer-vip-card .buyer-vip-membership-details p:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.buyer-vip-card .buyer-vip-membership-details b {
  color: var(--gold-2);
  font-size: .9rem;
}
.buyer-vip-card .buyer-vip-membership-details span {
  color: rgba(255, 255, 255, .86);
  font-size: .88rem;
  font-weight: 400;
}
.buyer-vip-benefits-panel {
  display: flex;
  align-items: center;
}
.buyer-vip-card .vip-benefits-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin: 0;
}
.buyer-vip-card .vip-benefits-grid span {
  padding: 2px 0 2px 12px;
  border: 0;
  border-left: 2px solid var(--gold-2);
  border-radius: 0;
  background: transparent;
  font-weight: 650;
}
.buyer-vip-card .buyer-vip-payment-history {
  min-width: 0;
  margin: 0;
}
.buyer-vip-card .buyer-vip-payment-history,
.buyer-vip-card .buyer-vip-history {
  overflow-wrap: anywhere;
}
.buyer-vip-card > .buyer-vip-action {
  grid-column: 1;
  margin-top: 0;
}

/* Buyer Growth Programme standalone page layout. */
.buyer-growth-page {
  min-width: 0;
}
.buyer-growth-page-header {
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
  text-align: center;
}
.buyer-growth-current {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: start;
  gap: 20px;
  min-width: 0;
  margin-bottom: 16px;
}
.buyer-growth-current-side {
  width: 180px;
  justify-self: center;
  display: grid;
  grid-template-rows: 112px;
  justify-items: center;
  align-content: start;
  text-align: center;
}
.buyer-growth-current-side img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.buyer-growth-current-summary {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  text-align: center;
}
.buyer-growth-current-summary p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.buyer-growth-current-level { white-space: nowrap; }
.buyer-growth-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.buyer-growth-level-grid > article {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.buyer-growth-level-grid > article > img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 12px;
}

@media (max-width: 720px) {
  .buyer-growth-current,
  .buyer-growth-level-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .buyer-growth-current-side { width: min(180px, 100%); }
  .buyer-growth-current-summary { width: 100%; }
  .buyer-growth-level-grid > article > img {
    max-width: 160px;
  }
}

@media (max-width: 720px) {
  .buyer-vip-card,
  .vip-status-panel.buyer-vip-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .buyer-vip-top,
  .buyer-vip-sections {
    grid-template-columns: minmax(0, 1fr);
  }
  .buyer-vip-top-balance { display: none; }
  .buyer-vip-card-art { width: min(260px, 100%); margin: 0 auto; }
  .buyer-vip-card .buyer-vip-header { grid-row: 2; }
  .buyer-vip-card .buyer-vip-membership-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .buyer-vip-card .buyer-vip-membership-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .buyer-vip-card .buyer-vip-membership-details p:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .buyer-vip-card .buyer-vip-membership-details p:last-child { border-bottom: 0; }
}

/* Seller plan comparison: retain horizontal scrolling on narrow screens. */
.service-tab-panel:has(.promotion-benefits-table) { overflow-x: auto; }
.service-tab-panel .promotion-benefits-table { min-width: 660px; table-layout: fixed; }
.service-tab-panel .promotion-benefits-table th,
.service-tab-panel .promotion-benefits-table td { overflow-wrap: anywhere; white-space: normal; }

.seller-services-page .seller-services-app {
  min-width: 0;
  max-width: 100%;
}
.seller-services-page .service-tab-panel {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}
.seller-plan-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.seller-plan-scroll-hint {
  display: none;
}
@media (max-width: 768px) {
  .seller-plan-scroll-hint {
    display: block;
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-2);
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
  }
}
