:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --soft: #fff7ed;
  --soft-warm: #eff6ff;
  --blue-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 58%, #60a5fa 100%);
  --orange-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 58%, #fdba74 100%);
  --gradient: var(--blue-gradient);
  --button-gradient: var(--orange-gradient);
  --shadow: 0 14px 36px rgba(37, 99, 235, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
}

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

button {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--gradient);
  color: white;
  font-size: 18px;
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.header-location {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}

.location-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.location-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-trigger .lucide-holder {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.location-trigger > span:not(.location-clear) {
  flex: 1;
}

.location-clear {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
}

.location-clear:hover {
  background: var(--soft);
  color: var(--brand-dark);
}

.location-clear .lucide-holder {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.location-popover {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 35;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.location-popover label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.location-suggestions {
  display: grid;
  gap: 5px;
  max-height: 240px;
  overflow: auto;
}

.location-suggestions button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}

.location-suggestions button:hover {
  background: var(--soft-warm);
}

.location-save {
  width: 100%;
}

.btn,
.ghost,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.btn {
  background: var(--brand);
  color: white;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.18);
}

.btn:hover {
  background: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.2);
}

.ghost {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.danger {
  background: var(--accent);
  color: white;
}

.page {
  flex: 1 0 auto;
  padding: 30px clamp(16px, 4vw, 52px) 56px;
}

.home-page {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.hero,
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 118px);
}

.hero h1,
.home-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.home-hero p {
  max-width: 680px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: auto;
  padding: 30px 0 10px;
}

.home-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 64px);
}

.clean-search {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(28px, 6vw, 74px) 0 8px;
}

.clean-search h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

.clean-search p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-browser {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.super-category-slider {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.super-category-card {
  display: grid;
  gap: 7px;
  justify-items: start;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.super-category-card.active,
.super-category-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--soft-warm);
}

.super-category-card .lucide-holder {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.super-category-card span {
  font-size: 14px;
  font-weight: 600;
}

.super-category-card small {
  color: var(--muted);
  font-size: 12px;
}

.category-dive {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.category-dive-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.category-dive-head strong {
  font-size: 14px;
  font-weight: 600;
}

.category-cluster {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.category-pill,
.sub-category-chip {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.category-pill {
  width: 100%;
  padding: 0 10px;
  text-align: left;
}

.sub-category-chip {
  margin: 0 6px 6px 0;
  padding: 0 9px;
}

.category-pill.active,
.sub-category-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.market-preview {
  min-height: 480px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(29, 78, 216, 0.82), rgba(96, 165, 250, 0.5)),
    url("https://images.unsplash.com/photo-1556741533-6e6a62bd8b49?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  padding: 22px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.market-preview strong {
  font-size: 26px;
}

.stats-grid,
.cards-grid,
.dashboard-grid,
.form-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.stat,
.panel,
.business-card,
.item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--orange-gradient);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 16px;
}

.section-head.slim {
  margin-top: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 10px;
  margin-bottom: 16px;
}

.search-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.search-grid {
  display: grid;
  grid-template-columns: 220px 220px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.search-field input {
  min-height: 48px;
}

.slider-section {
  display: grid;
  gap: 14px;
}

.slider-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.slider-head h2 {
  margin: 0;
  font-size: 24px;
}

.slider-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.business-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-highlights {
  display: grid;
  gap: 14px;
}

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

.highlight-product-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.highlight-product-card h3 {
  margin: 8px 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.highlight-product-card p {
  margin: 0 0 10px;
  font-size: 13px;
}

.highlight-product-image {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft-warm);
}

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

.highlight-product-image.empty {
  color: var(--accent);
}

.highlight-product-image.empty .lucide-holder {
  width: 28px;
  height: 28px;
}

.seller-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seller-chip-card {
  display: grid;
  gap: 5px;
  justify-items: start;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}

.seller-chip-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: var(--soft);
}

.seller-chip-card span {
  font-size: 14px;
  font-weight: 600;
}

.seller-chip-card small {
  color: var(--muted);
  font-size: 12px;
}

.business-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.business-row h3 {
  margin: 8px 0 4px;
}

.business-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.business-row-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.business-row-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-card {
  overflow: hidden;
}

.business-banner {
  height: 138px;
  background: var(--gradient);
  background-size: cover;
  background-position: center;
}

.detail-banner {
  min-height: 400px;
  position: relative;
}

.banner-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.business-content,
.panel {
  padding: 18px;
}

.catalog-entry-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.catalog-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.business-content h3 {
  margin: 8px 0 6px;
}

.business-content p {
  font-size: 14px;
  line-height: 1.5;
}

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

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
  border: 3px solid white;
  margin-top: -48px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--soft-warm);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.form-page {
  max-width: 980px;
  margin: 0 auto;
}

.login-panel {
  max-width: 680px;
  margin: 42px auto 0;
}

.login-panel h1 {
  margin: 12px 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.step {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.step.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.password-field div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

label {
  font-size: 13px;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.dashboard-grid {
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
}

.dashboard-profile {
  display: grid;
  gap: 8px;
}

.dashboard-cover {
  height: 136px;
  border-radius: 8px;
  background: var(--gradient);
  background-size: cover;
  background-position: center;
}

.dashboard-avatar-wrap {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: -38px;
  margin-left: 12px;
}

.dashboard-profile img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  border: 3px solid white;
  background: white;
}

.dashboard-avatar-placeholder {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 3px solid white;
  border-radius: 8px;
  background: var(--gradient);
  color: white;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.mini-upload {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 7px;
  border: 1px dashed #d1d5db;
  border-radius: 7px;
  background: #fbfcfd;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.mini-upload:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.mini-upload input {
  display: none;
}

.mini-action {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.mini-action:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.dashboard-banner-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dashboard-banner-preview {
  min-height: 178px;
  border-radius: 8px;
  background: var(--gradient);
  background-size: cover;
  background-position: center;
}

.dashboard-banner-control > div:last-child {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.banner-upload {
  min-height: 30px;
  padding: 0 9px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.5);
}

.crop-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.share-profile-modal {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.compact-modal .detail-head {
  margin-bottom: 0;
}

.consent-box {
  display: grid;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.legal-page {
  align-items: flex-start;
}

.legal-panel,
.legal-modal {
  line-height: 1.6;
}

.legal-section {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2,
.legal-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
}

.approval-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.approval-notice strong {
  font-size: 14px;
  font-weight: 600;
}

.approval-notice span {
  color: var(--muted);
  font-size: 13px;
}

.approval-notice.rejected {
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--soft-warm);
}

.share-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.share-modal-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.share-url-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.share-url-box input {
  background: var(--soft-warm);
}

.share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-options .ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.share-options .lucide-holder {
  width: 16px;
  height: 16px;
}

.crop-frame {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f4f6;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crop-frame:active {
  cursor: grabbing;
}

.crop-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.crop-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.profile-crop {
  width: min(360px, 82vw);
  aspect-ratio: 1 / 1;
}

.banner-crop {
  width: 100%;
  aspect-ratio: 1600 / 520;
}

.crop-zoom-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
  cursor: default;
}

.crop-zoom-actions button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.crop-zoom-actions span {
  min-width: 44px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.crop-actions {
  justify-content: flex-end;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button {
  min-height: 42px;
  border-radius: 8px;
  background: #eef2f6;
  text-align: left;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.side-nav button.active {
  background: var(--accent);
  color: white;
}

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

.item-card {
  padding: 14px;
}

.item-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.item-card img,
.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f6;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 14px;
  border-radius: 8px;
  background: #122033;
  color: white;
  box-shadow: var(--shadow);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
    #ffffff;
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  max-width: 720px;
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.admin-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.admin-score {
  display: grid;
  align-content: end;
  padding: 20px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.admin-score span {
  color: #b8c1ce;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.admin-score strong {
  margin-top: 8px;
  font-size: 56px;
  line-height: 1;
}

.compact {
  margin-top: 0;
}

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

.section-head.tight {
  margin: 0 0 12px;
}

.section-head.tight h2 {
  font-size: 22px;
}

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

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.table-row.simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

.table-row span,
.metric-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.metric-bars {
  display: grid;
  gap: 14px;
}

.metric-row {
  display: grid;
  gap: 8px;
}

.metric-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-row i {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: var(--brand);
}

.classic-admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.classic-admin-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.classic-admin-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.compact-btn,
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  box-shadow: none;
}

.detail-panel {
  display: grid;
  gap: 12px;
}

.admin-detail-page {
  max-width: 1120px;
  margin: 0 auto;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-head h1,
.detail-head h2 {
  margin: 0;
  font-weight: 600;
}

.detail-head h1 {
  font-size: clamp(24px, 3vw, 36px);
}

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

.pencil-action {
  flex: 0 0 auto;
}

.about-profile {
  display: grid;
  gap: 16px;
}

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

.info-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.info-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

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

.info-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.info-row span {
  color: var(--muted);
  font-size: 12px;
}

.info-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.email-verify-card,
.quote-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.email-verify-card h3,
.quote-box h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.email-verify-list {
  display: grid;
  gap: 10px;
}

.email-verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.email-verify-row > div:first-child {
  display: grid;
  gap: 3px;
}

.email-verify-row span,
.quote-list-row span,
.quote-result small,
.quote-selected-item small {
  color: var(--muted);
  font-size: 12px;
}

.email-verify-row em {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--soft-warm);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.email-verify-row em.pending {
  background: var(--soft);
  color: var(--brand-dark);
}

.otp-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.otp-box small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.quotation-page {
  display: grid;
  gap: 14px;
}

.downloads-page,
.download-list {
  display: grid;
  gap: 14px;
}

.quotation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.quote-results,
.quote-selected,
.quote-list {
  display: grid;
  gap: 8px;
}

.quote-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
}

.quote-result span,
.quote-selected-item,
.quote-list-row > div:first-child {
  display: grid;
  gap: 3px;
}

.quote-selected-item {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.quote-output,
.quote-list-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.quote-list-row {
  display: grid;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.download-row > div:first-child {
  display: grid;
  gap: 4px;
}

.download-row strong {
  font-size: 15px;
  font-weight: 600;
}

.download-row span {
  color: var(--muted);
  font-size: 12px;
}

.download-actions {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(160px, 220px) minmax(86px, auto) minmax(82px, auto);
  gap: 7px;
  align-items: center;
}

.download-actions input {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

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

.detail-grid p {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.detail-grid strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.detail-grid span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
}

.admin-sidebar h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.admin-sidebar button {
  min-height: 42px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: left;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.admin-sidebar button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.admin-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-table-panel {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 13px;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9fafb;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

td {
  color: #374151;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  white-space: nowrap;
}

.compact-form {
  margin: 12px 0;
}

.notification-wrap,
.account-wrap {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  max-width: 210px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.account-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-trigger .lucide-holder {
  width: 17px;
  height: 17px;
}

.icon-btn {
  position: relative;
  display: grid;
  min-width: 38px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.icon-btn .lucide,
.icon-btn .lucide-holder {
  width: 18px;
  height: 18px;
  color: var(--ink);
  stroke-width: 2;
}

.icon-btn .lucide-holder {
  display: inline-grid;
  place-items: center;
}

.icon-btn i {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
}

.notification-menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 30;
  width: min(380px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.account-menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 30;
  width: 226px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.account-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.account-menu button:hover {
  background: var(--soft-warm);
}

.account-menu .lucide-holder {
  width: 16px;
  height: 16px;
}

.account-menu .danger-link {
  color: var(--brand-dark);
}

.notification-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.notification-head strong {
  font-weight: 600;
}

.notification-head div {
  display: flex;
  gap: 6px;
}

.notification-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: left;
}

.notification-item.read {
  background: white;
}

.notification-item strong {
  font-size: 13px;
  font-weight: 600;
}

.notification-item span {
  color: var(--muted);
  font-size: 13px;
}

.messages-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-list button {
  display: grid;
  gap: 3px;
  min-height: auto;
  padding: 10px;
  text-align: left;
}

.mini-list button.active {
  border-color: var(--accent);
}

.mini-list span {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.chat-box {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  background: #f2f5f8;
  border-radius: 8px;
}

.chat-page {
  max-width: 980px;
  margin: 0 auto;
}

.dashboard-detail-panel,
.embedded-detail {
  min-width: 0;
}

.embedded-detail {
  display: grid;
  gap: 16px;
}

.embedded-item-detail {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.embedded-enquiry-form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-chat-box {
  min-height: 420px;
  max-height: min(62vh, 620px);
}

.message {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
}

.message.mine {
  margin-left: auto;
  background: var(--soft);
}

.suggestion-box {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.suggestion-box h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-list span {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.lead-actions,
.preference-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}

.analytics-panel {
  display: grid;
  gap: 16px;
}

.notification-row {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.notification-row:hover {
  background: var(--soft-warm);
}

.feed-wrap {
  display: grid;
  gap: 14px;
}

.feed-composer,
.feed-post {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feed-limit-note {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft-warm);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 500;
}

.feed-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feed-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.feed-tabs button.active {
  background: var(--accent);
  color: white;
}

.feed-list {
  display: grid;
  gap: 12px;
}

.feed-preview,
.feed-image {
  width: 100%;
  max-width: 500px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f6;
}

.feed-image-button {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.feed-image-button:hover {
  transform: none;
}

.feed-image-button .feed-image {
  display: block;
  cursor: zoom-in;
}

.image-overlay {
  z-index: 95;
}

.image-overlay-panel {
  position: relative;
  display: grid;
  place-items: center;
  max-width: min(920px, 96vw);
  max-height: 92vh;
}

.image-overlay-panel .icon-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
}

.image-overlay-panel img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.feed-author {
  display: flex;
  gap: 10px;
  align-items: center;
}

.feed-author img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f6;
}

.feed-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.feed-author span,
.feed-actions span {
  color: var(--muted);
  font-size: 12px;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.comment-list p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 13px;
}

.comment-list strong {
  font-weight: 600;
}

.comment-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

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

.thread-item {
  display: grid;
  gap: 8px;
}

.thread-item > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
}

.thread-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.thread-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.thread-item b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 500;
}

.inline-chat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.upload-option {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--brand-dark);
  cursor: pointer;
}

.upload-option:hover {
  border-color: var(--brand);
  background: var(--soft);
}

.upload-option input {
  display: none;
}

.upload-option span {
  font-size: 13px;
  font-weight: 500;
}

.upload-option small {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: auto;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 20px clamp(16px, 4vw, 52px);
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 13px;
}

.site-footer strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-link {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
  transform: none;
}

@media (max-width: 920px) {
  .hero,
  .home-hero,
  .dashboard-grid,
  .admin-hero,
  .admin-grid,
  .classic-admin-head,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .cards-grid,
  .item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .search-grid,
  .business-row,
  .business-slider,
  .highlight-product-grid,
  .seller-strip,
  .super-category-slider,
  .quotation-grid,
  .quote-output,
  .quote-list-row,
  .download-row,
  .download-actions,
  .messages-grid,
  .item-detail,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .category-cluster {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar {
    display: flex;
    overflow-x: auto;
  }

  .admin-sidebar h2 {
    display: none;
  }

  .admin-sidebar button {
    flex: 0 0 auto;
  }

  .slider-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .market-preview {
    min-height: 340px;
  }

  .stats-grid,
  .cards-grid,
  .form-grid,
  .about-grid,
  .steps,
  .item-list {
    grid-template-columns: 1fr;
  }

  .page {
    padding-inline: 14px;
  }

  .topbar {
    position: static;
  }

  .header-location {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .nav {
    justify-content: flex-start;
  }

  .notification-menu,
  .account-menu,
  .location-popover {
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .catalog-entry-panel,
  .catalog-page-head {
    display: grid;
  }

  .share-url-box {
    grid-template-columns: 1fr;
  }

  .dashboard-banner-control {
    grid-template-columns: 1fr;
  }

  .dashboard-banner-control > div:last-child {
    justify-items: start;
  }

  .comment-box {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-wrap: wrap;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .email-verify-row,
  .otp-box {
    grid-template-columns: 1fr;
  }
}
