:root {
  --brand-red: #ef4938;
  --brand-red-dark: #b7342d;
  --ink: #202020;
  --charcoal: #444444;
  --line: #e6e8eb;
  --surface: #ffffff;
  --soft: #f5f7f8;
  --cool: #eaf4f6;
  --success: #169b72;
  --shadow: 0 18px 50px rgba(32, 32, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(239, 73, 56, 0.12), transparent 28%),
    linear-gradient(135deg, #f7fafb 0%, #f3f5f7 48%, #eef7f8 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 7px clamp(14px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.main-nav,
.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-pill,
.user-pill {
  min-height: 38px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.country-pill span,
.user-pill span {
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 800;
}

.country-pill strong,
.user-pill strong {
  font-size: 13px;
}

.user-pill {
  border-color: #ffd3cd;
  background: #fff3f1;
}

.header-alerts {
  position: relative;
}

.alert-trigger {
  position: relative;
  width: 40px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.alert-trigger svg,
.alert-item-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alert-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--brand-red);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.alert-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 60px rgba(25, 30, 35, 0.16);
}

.alert-menu[hidden] {
  display: none;
}

.alert-menu > strong {
  font-size: 14px;
}

.alert-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.alert-item.is-new {
  border-color: #b7f0d3;
  background: #f0fdf4;
}

.alert-item-muted {
  background: #fbfcfd;
  color: var(--charcoal);
}

.alert-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe8e5;
  color: var(--brand-red-dark);
}

.alert-item b,
.alert-item small {
  display: block;
}

.alert-item small {
  margin-top: 3px;
  color: var(--charcoal);
  line-height: 1.35;
}

.logout-form {
  margin: 0;
}

.main-nav {
  justify-content: center;
}

.nav-icon,
.language-switcher a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
}

.nav-icon {
  width: auto;
  position: relative;
  gap: 8px;
}

.nav-icon b {
  font-size: 13px;
  line-height: 1;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon:hover,
.nav-icon.is-active,
.language-switcher .is-selected {
  background: var(--cool);
  color: var(--ink);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(19, 23, 25, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(19, 23, 25, 0.12);
}

.button-primary {
  background: var(--brand-red);
  color: white;
  box-shadow: 0 10px 24px rgba(239, 73, 56, 0.24);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-light {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.flash {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border-radius: 6px;
  background: #e9f8f1;
  color: var(--success);
  font-weight: 800;
}

.breadcrumbs {
  max-width: 1180px;
  margin: 18px auto -12px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}

.breadcrumbs a,
.breadcrumbs span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.breadcrumbs a {
  color: var(--brand-red-dark);
}

.breadcrumbs a::after {
  content: "/";
  color: var(--charcoal);
  opacity: 0.55;
}

.breadcrumbs span {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.hero-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 82px) 20px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy h1,
.page-head h1,
.form-shell h1,
.auth-shell h1 {
  margin: 10px 0 14px;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.listings-head h1 {
  max-width: 1120px;
  font-size: clamp(40px, 4.7vw, 64px);
}

.hero-copy p,
.page-head p,
.form-shell p {
  max-width: 680px;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-panel {
  margin-top: 28px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.country-gate {
  max-width: 1180px;
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 82px) 20px 44px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 30px;
  align-items: start;
}

.country-gate-copy {
  position: sticky;
  top: 96px;
}

.country-gate-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.country-gate-copy p {
  max-width: 560px;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.6;
}

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

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

.country-card span {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.country-card strong {
  font-size: 24px;
}

.country-card small {
  color: var(--charcoal);
  font-weight: 800;
}

.active-country-note,
.locked-country {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.active-country-note a {
  color: var(--brand-red);
  font-weight: 900;
}

.locked-country {
  width: 100%;
  justify-content: space-between;
  margin-bottom: 14px;
}

.locked-country span {
  color: var(--charcoal);
  font-weight: 800;
}

label span,
.filters label,
.smart-form label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

textarea {
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(239, 73, 56, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 73, 56, 0.12);
  outline: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  padding: 0;
}

.hero-card,
.filters,
.detail-panel,
.smart-form,
.plan-card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(239, 73, 56, 0.18), rgba(234, 244, 246, 0.9));
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mini-listing {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
}

.featured-slider {
  display: grid;
  gap: 12px;
}

.featured-slides {
  min-height: 360px;
}

.featured-slide {
  display: none;
  margin-top: 0;
}

.featured-slide.is-active {
  display: grid;
  animation: featuredFade 280ms ease;
}

.featured-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slider-button,
.featured-dot {
  border: 0;
  cursor: pointer;
}

.slider-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 18px rgba(19, 23, 25, 0.12);
}

.slider-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.featured-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd4d8;
}

.featured-dot.is-active {
  width: 22px;
  background: var(--brand-red);
}

@keyframes featuredFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-listing-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cool);
}

.empty-mini {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #cfd6da;
  border-radius: 8px;
  background: #fbfcfd;
}

.empty-mini small {
  color: var(--charcoal);
  line-height: 1.5;
}

.mini-listing b,
.price {
  color: var(--brand-red);
  font-size: 24px;
}

.badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffe8e5;
  color: var(--brand-red-dark);
  font-size: 12px;
  font-weight: 900;
}

.badge-sold {
  background: #202020;
  color: white;
}

.mini-listing.is-featured,
.listing-row.is-featured {
  border-color: #ffc7bf;
  border-left: 4px solid var(--brand-red);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 244, 0.94)),
    white;
}

.listing-row.is-featured {
  box-shadow: 0 16px 38px rgba(239, 73, 56, 0.12);
}

.is-sold .listing-photo img,
.is-sold .mini-listing-image {
  filter: grayscale(1);
  opacity: 0.72;
}

.section-wrap,
.page-head,
.listing-layout,
.detail-layout,
.form-shell,
.auth-shell,
.metric-grid,
.action-band,
.admin-modules,
.plans-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
}

.section-heading,
.action-band,
.monetize-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-heading h2,
.monetize-band h2,
.action-band h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 40px);
}

.text-link {
  color: var(--brand-red);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.category-tile {
  min-height: 148px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #ffffff, #eef8f6);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #ffffff, #fff0ed);
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}

.monetize-band {
  max-width: 1140px;
  margin: 24px auto 40px;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #ffd8d2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 240, 0.94) 55%, rgba(234, 244, 246, 0.86)),
    white;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(19, 23, 25, 0.1);
}

.monetize-band .eyebrow {
  color: var(--brand-red-dark);
}

.monetize-band .button {
  background: var(--brand-red);
  color: white;
  border-color: transparent;
}

.monetize-band p {
  max-width: 680px;
  color: var(--charcoal);
}

.listing-layout,
.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.detail-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.filters,
.detail-panel,
.smart-form {
  padding: 20px;
}

.filter-form {
  display: grid;
  gap: 14px;
}

.listing-stack {
  display: grid;
  gap: 12px;
}

.listing-row {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(19, 23, 25, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.seller-listing-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.listing-row:hover,
.seller-listing-card:hover {
  transform: translateY(-1px);
  border-color: #ffd1ca;
  box-shadow: 0 16px 36px rgba(19, 23, 25, 0.1);
}

.listing-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.listing-actions form {
  margin: 0;
}

.button-danger {
  background: #7f1d1d;
  color: white;
}

.listing-photo,
.gallery-preview div {
  position: relative;
  min-height: 96px;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 73, 56, 0.18), rgba(255, 255, 255, 0.68)),
    repeating-linear-gradient(45deg, #eaf4f6 0 12px, #ffffff 12px 24px);
  overflow: hidden;
}

.listing-photo-link {
  display: block;
  height: 100%;
  min-height: 96px;
}

.gallery-preview div {
  aspect-ratio: 1 / 1;
}

.listing-photo img,
.gallery-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.listing-row h2 a {
  color: inherit;
}

.listing-row h2,
.seller-listing-card h2 {
  margin: 8px 0 6px;
  font-size: 20px;
  line-height: 1.18;
}

.listing-row > strong,
.seller-listing-card > strong {
  color: var(--brand-red-dark);
  font-size: 20px;
  white-space: nowrap;
}

.listing-seller-line {
  margin-top: 6px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

.listing-seller-line a {
  color: var(--brand-red-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listing-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.detail-meta-line {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.detail-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gallery-trigger {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.detail-gallery-mobile {
  display: none;
}

.gallery-preview div:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.gallery-preview div:not(:first-child) {
  min-height: 104px;
}

.compact-gallery {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-gallery div,
.compact-gallery div:first-child,
.compact-gallery div:not(:first-child) {
  min-height: 150px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 56px 72px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 46px;
  line-height: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 900;
}

.contact-box,
.sold-notice,
.action-band {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cool);
}

.sold-notice {
  border-color: #222;
  background: #fff7ed;
}

.sold-notice p {
  margin: 8px 0 0;
  color: var(--charcoal);
  line-height: 1.5;
}

.contact-box p {
  margin: 10px 0 0;
  color: var(--charcoal);
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-summary,
.dev-link-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-shell {
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.account-shell > div,
.account-shell .smart-form {
  grid-column: 1;
}

.account-shell .account-summary {
  margin-top: 12px;
}

.dev-link-box {
  overflow-wrap: anywhere;
  background: #fffaf0;
}

.form-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.account-shell {
  grid-template-columns: 1fr;
  gap: 16px;
}

.smart-form {
  display: grid;
  gap: 14px;
}

.form-hint {
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.4;
}

.photo-manage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.photo-manage-grid > strong {
  grid-column: 1 / -1;
}

.photo-delete-option {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 800;
}

.photo-delete-option img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.form-grid,
.metric-grid,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-shell {
  max-width: 520px;
}

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

.metric-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}

.metric-card span {
  color: var(--charcoal);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  font-size: 34px;
}

.metric-card small {
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.35;
}

.ui-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.admin-metric-card {
  min-height: 106px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 15px 16px;
  border-left: 5px solid var(--brand-red);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(32, 32, 32, 0.16);
}

.admin-metric-card .metric-icon {
  width: 40px;
  height: 40px;
  margin-top: 2px;
}

.admin-metric-card .metric-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-metric-card .metric-copy small {
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-metric-card .metric-copy strong {
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1;
}

.seller-metrics .metric-card {
  min-height: 150px;
  border-left: 5px solid var(--brand-red);
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe8e5;
}

.metric-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-alert {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #111;
  color: white;
  font-size: 13px;
}

.metric-red {
  border-left-color: var(--brand-red);
}

.metric-red .metric-icon {
  color: var(--brand-red-dark);
  background: #ffe8e5;
}

.metric-gold {
  border-left-color: #d97706;
}

.metric-gold .metric-icon {
  color: #92400e;
  background: #fef3c7;
}

.metric-green {
  border-left-color: #059669;
}

.metric-green .metric-icon {
  color: #065f46;
  background: #d1fae5;
}

.metric-blue {
  border-left-color: #2563eb;
}

.metric-blue .metric-icon {
  color: #1d4ed8;
  background: #dbeafe;
}

.metric-dark {
  border-left-color: #27272a;
}

.metric-dark .metric-icon {
  color: #27272a;
  background: #e4e4e7;
}

.dashboard-tabs {
  max-width: 1180px;
  margin: -12px auto 28px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.dashboard-tabs a.is-active {
  background: #202020;
  color: white;
}

.dashboard-tabs .tab-icon {
  min-width: 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  background: #f3f5f7;
  color: var(--charcoal);
}

.dashboard-tabs .tab-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.dashboard-tabs a.is-active .tab-icon {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.dashboard-tabs span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand-red);
  color: white;
  font-size: 12px;
}

.dashboard-overview,
.dashboard-section {
  margin-bottom: 36px;
}

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

.admin-modules a,
.plan-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 900;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.paypal-button {
  min-height: 42px;
  margin-top: 8px;
}

.payment-status {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--charcoal);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.payment-status[data-tone="success"] {
  border-color: #1a9f67;
  background: #eefaf4;
  color: #0f6844;
}

.payment-status[data-tone="error"] {
  border-color: var(--brand-red);
  background: #fff1ef;
  color: var(--brand-red-dark);
}

.badge-featured {
  background: #fff0c7;
  color: #8a5a00;
}

.selected-payment-target,
.seller-payment-list,
.seller-payment-item {
  display: grid;
  gap: 10px;
}

.selected-payment-target {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-red);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.selected-payment-target h2,
.selected-payment-target p {
  margin: 0;
}

.seller-payment-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.seller-payment-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.seller-payment-item:hover {
  border-color: var(--brand-red);
  box-shadow: var(--shadow);
}

.seller-payment-item span,
.seller-payment-item small {
  color: var(--muted);
}

.admin-modules a {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-modules a:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(32, 32, 32, 0.16);
}

.admin-modules strong {
  align-self: end;
}

.admin-modules .module-icon {
  width: 42px;
  height: 42px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe8e5;
  color: var(--brand-red-dark);
}

.admin-modules small {
  grid-column: 2;
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.4;
}

.admin-sponsor-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.sponsor-admin-thumb {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cool);
  margin-bottom: 10px;
}

.sponsored-admin-table input,
.sponsored-admin-table select {
  margin-bottom: 8px;
}

.upload-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  margin: -2px 0 8px;
}

.upload-spec strong {
  color: var(--brand-red-dark);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.upload-spec span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-panel {
  max-width: 1180px;
  margin: 0 auto 36px;
  padding: 0 20px 20px;
  display: grid;
  gap: 16px;
}

.admin-create-form,
.admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-create-form strong {
  margin-right: auto;
}

.admin-listing-flags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-moderation-form {
  max-width: 860px;
}

.admin-moderation-form textarea {
  min-height: 320px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.55;
  resize: vertical;
}

.admin-create-form input,
.admin-create-form select,
.admin-filter-form select {
  width: auto;
  min-width: 140px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-country-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-country-picker a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.admin-country-picker span {
  color: var(--charcoal);
  font-weight: 800;
}

.admin-country-picker small {
  color: var(--muted);
  font-weight: 800;
}

.admin-message-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-message-summary span {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-message-summary strong {
  color: var(--brand-red);
  font-size: 24px;
}

.admin-message-summary small {
  color: var(--charcoal);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--charcoal);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td input,
.admin-table td select {
  min-height: 34px;
  margin-bottom: 6px;
}

.admin-table small {
  display: block;
  margin-top: 5px;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
}

.check-inline input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.plan-card {
  display: grid;
  gap: 12px;
}

.plan-card strong {
  font-size: 42px;
  color: var(--brand-red);
}

.message-center {
  max-width: 1180px;
  margin: 0 auto 36px;
  padding: 0 20px 20px;
  display: grid;
  gap: 14px;
}

.message-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.message-card.is-unread {
  border-left: 5px solid #059669;
  background: #fbfffd;
}

.badge-unread {
  background: #d1fae5;
  color: #065f46;
}

.message-card h3 {
  margin: 10px 0 8px;
}

.message-card p {
  color: var(--charcoal);
  line-height: 1.5;
}

.message-card dl {
  margin: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.message-card dt {
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-card dd {
  margin: 0 0 8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.store-dashboard {
  max-width: 1180px;
  margin: 0 auto 36px;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.seller-store-form {
  max-width: none;
}

.store-preview,
.store-public-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.store-logo,
.store-logo-current img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.store-logo-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 900;
}

.store-preview {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.store-public-head {
  max-width: 1180px;
  margin: 28px auto 22px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.store-public-head h1,
.store-preview h2 {
  margin: 4px 0;
}

.store-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-socials a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.store-preview-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.store-listings {
  max-width: 980px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.audit-card {
  border-left: 5px solid var(--brand-red);
}

.empty-state {
  max-width: 680px;
  min-height: 54vh;
  display: grid;
  place-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.support-shell {
  max-width: 1180px;
  min-height: 58vh;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 22px;
  align-items: start;
}

.support-copy {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

.support-copy h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
}

.support-copy p {
  max-width: 560px;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.55;
}

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

.support-cards a {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(19, 23, 25, 0.06);
}

.support-cards a.is-active {
  border-color: #ffc7bf;
  border-left: 5px solid var(--brand-red);
  background: #fff7f5;
}

.support-cards span {
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.support-form h2 {
  margin: 0;
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  margin-top: 28px;
  padding: 28px clamp(16px, 4vw, 48px) 20px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(32, 32, 32, 0.98), rgba(48, 52, 54, 0.96)),
    var(--ink);
  color: white;
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
}

.footer-bottom {
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.sponsored-strip {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 20px 24px;
}

.sponsored-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sponsored-strip-head span {
  color: var(--brand-red-dark);
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.sponsored-banner {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(19, 23, 25, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sponsored-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(19, 23, 25, 0.12);
}

.sponsored-banner img {
  width: 100%;
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.footer-brand div {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-size: 20px;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.site-footer a {
  color: white;
  font-weight: 900;
}

.footer-column {
  display: grid;
  gap: 9px;
}

.footer-column strong,
.footer-support-card > span {
  color: #ffb9b1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: white;
}

.footer-support-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-support-card strong {
  font-size: 20px;
}

.footer-support-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.footer-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.footer-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--brand-red);
  color: white !important;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(239, 73, 56, 0.28);
}

.footer-link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white !important;
}

@media (max-width: 980px) {
  .hero-shell,
  .country-gate,
  .search-panel,
  .listing-layout,
  .detail-layout,
  .store-dashboard,
  .form-shell,
  .support-shell {
    grid-template-columns: 1fr;
  }

  .country-gate-copy {
    position: static;
  }

  .detail-layout .detail-panel {
    order: -1;
  }

  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .main-nav,
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .category-grid,
  .country-grid-select,
  .admin-country-picker,
  .admin-message-summary,
  .metric-grid,
  .admin-modules,
  .admin-sponsor-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .section-heading,
  .action-band,
  .monetize-band,
  .store-public-head,
  .site-footer {
    display: grid;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding-block: 6px;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .header-actions {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .country-pill,
  .user-pill,
  .button,
  .nav-icon,
  .language-switcher a {
    min-height: 34px;
  }

  .nav-icon {
    width: 36px;
    gap: 0;
    padding-inline: 8px;
  }

  .nav-icon b {
    display: none;
  }

  .country-pill {
    padding-inline: 10px;
  }

  .brand img {
    width: 44px;
  }

  .category-grid,
  .country-grid-select,
  .admin-country-picker,
  .admin-message-summary,
  .metric-grid,
  .admin-modules,
  .plans-grid,
  .admin-sponsor-grid,
  .support-cards,
  .footer-main,
  .message-card,
  .form-grid,
  .admin-listing-flags,
  .listing-row,
  .seller-listing-card {
    grid-template-columns: 1fr;
  }

  .selected-payment-target {
    grid-template-columns: 1fr;
  }

  .listing-actions {
    justify-content: stretch;
  }

  .dashboard-tabs {
    margin-top: -10px;
  }

  .dashboard-tabs a {
    flex: 1 1 120px;
    justify-content: center;
  }

  .seller-metrics .metric-card {
    min-height: 132px;
  }

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

  .listing-actions .button,
  .listing-actions form {
    width: 100%;
  }

  .photo-manage-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 12px;
  }

  .detail-gallery-desktop {
    display: none;
  }

  .detail-gallery-mobile {
    display: grid;
    margin: 12px 0 16px;
  }

  .detail-layout .gallery-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .detail-layout .gallery-preview div,
  .detail-layout .gallery-preview div:first-child,
  .detail-layout .gallery-preview div:not(:first-child) {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .hero-copy h1,
  .page-head h1,
  .form-shell h1,
  .auth-shell h1 {
    font-size: 38px;
  }

  .lightbox {
    padding: 54px 14px 62px;
  }

  .lightbox img {
    max-height: calc(100vh - 140px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 12px;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 36px;
  }
}
