:root {
  color-scheme: dark;
  --bg: #020607;
  --bg-2: #061111;
  --panel: rgba(5, 18, 19, 0.78);
  --panel-strong: rgba(7, 22, 23, 0.94);
  --line: rgba(53, 240, 169, 0.23);
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #f5fbff;
  --muted: #9db0b7;
  --green: #35f0a9;
  --green-2: #53ffc8;
  --cyan: #43d7ff;
  --blue: #557dff;
  --red: #ff4d5b;
  --orange: #ff9345;
  --gold: #ffc857;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 18%, rgba(53, 240, 169, 0.12), transparent 34rem),
    radial-gradient(circle at 16% 48%, rgba(67, 215, 255, 0.055), transparent 32rem),
    linear-gradient(135deg, #010404, #06100f 48%, #010404);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.13) 0 1px, transparent 1.4px),
    linear-gradient(120deg, rgba(53, 240, 169, 0.025), transparent 38%, rgba(67, 215, 255, 0.02));
  background-size: 110px 110px, cover;
  opacity: 0.42;
}

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

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1520px);
  margin: 0 auto;
  padding-inline: clamp(18px, 3.2vw, 52px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.commerce-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 44% 0%, rgba(53, 240, 169, 0.13), transparent 38rem),
    linear-gradient(180deg, rgba(4, 14, 15, 0.98), rgba(5, 22, 22, 0.9));
  backdrop-filter: blur(18px);
}

.site-header,
.top-search-band {
  position: relative;
  z-index: 8;
  background: transparent;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(14px, 2vw, 30px);
  align-items: center;
  min-height: 58px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: #c3d0d4;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.account-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(5, 18, 19, 0.98);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}

.account-menu-summary {
  display: block;
  margin: 2px 2px 6px;
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 8px 9px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.account-menu a {
  border-radius: 6px;
  padding: 10px;
  color: #cbd8dd;
}

.account-menu a:hover {
  background: rgba(53, 240, 169, 0.09);
  color: var(--green);
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 44% 0%, rgba(53, 240, 169, 0.13), transparent 38rem),
    linear-gradient(180deg, rgba(4, 14, 15, 0.98), rgba(5, 22, 22, 0.9));
  backdrop-filter: blur(18px);
}

.market-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2vw, 30px);
  align-items: center;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand span,
.brand em {
  color: #fff;
  font-style: normal;
}

.brand strong {
  color: var(--green);
}

.brand .logo-ai {
  color: #fff;
}

.brand .logo-m {
  color: var(--green);
}

.brand em {
  margin-left: 3px;
  font-size: 0.42em;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  color: #c3d0d4;
  font-size: 14px;
  font-weight: 800;
}

.nav-actions a {
  padding: 10px 0;
}

.nav-actions a:hover,
.nav-actions a[aria-current="page"] {
  color: var(--green);
}

.solid-button,
.ghost-button,
.outline-button,
.icon-button,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  white-space: nowrap;
  font-weight: 900;
}

.solid-button {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #03120d;
  box-shadow: 0 12px 28px rgba(53, 240, 169, 0.18);
}

.ghost-button,
.outline-button,
.icon-button,
.cart-button {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.header-actions .solid-button,
.header-actions .outline-button,
.header-actions .icon-button,
.header-actions .cart-button {
  font-size: 15px;
  line-height: 1;
}

.icon-button {
  padding: 0;
}

.icon-button span {
  padding-inline: 10px;
}

.cart-button {
  gap: 7px;
}

.cart-button span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--green);
  color: #03120d;
  font-size: 12px;
}

.account-status-button {
  gap: 9px;
  min-width: 126px;
  min-height: 42px;
  padding: 5px 12px;
  justify-content: flex-start;
  text-align: left;
}

.account-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.12), 0 0 16px rgba(255, 200, 87, 0.34);
}

.account-status-button.signed-in .account-status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 240, 169, 0.13), 0 0 18px rgba(53, 240, 169, 0.42);
}

.account-status-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.account-status-copy strong,
.account-status-copy small {
  display: block;
  line-height: 1.05;
}

.account-status-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.account-status-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-status-button.signed-in .account-status-copy small {
  color: var(--green-2);
}

.hero-search-wrap {
  padding-block: 4px;
}

.hero-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(11, 24, 26, 0.62);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search-copy {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.hero-search-copy span {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.hero-search-copy strong {
  color: #fff;
  font-weight: 900;
}

.mega-search {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(180px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.34);
}

.mega-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mega-search select,
.mega-search input,
.mega-search button {
  min-height: 42px;
  border: 0;
}

.mega-search select {
  border-right: 1px solid var(--line);
  padding: 0 14px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #06110f;
  font-weight: 500;
  color-scheme: dark;
}

.mega-search select option {
  background: #071617;
  color: #f5fbff;
}

.mega-search input {
  min-width: 0;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
  outline: 0;
  font-weight: 400;
}

.mega-search button {
  min-width: 116px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  font-weight: 500;
}

.trust-band {
  padding-block: 0;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 52px);
  min-height: 34px;
  align-items: center;
  overflow-x: auto;
  color: #d7e4e8;
  font-size: 12px;
  font-weight: 900;
  scrollbar-width: none;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #dce8ec;
  line-height: 1;
  white-space: nowrap;
}

.trust-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(53, 240, 169, 0.32));
}

.market-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.8vw, 34px) 0 16px;
}

.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 7, 0.96) 0%, rgba(2, 6, 7, 0.82) 45%, rgba(2, 6, 7, 0.7) 100%),
    url("/assets/agent-advisor/agent-to-agent-command-bg.png") center / cover no-repeat;
  opacity: 0.86;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 0.72fr);
  gap: clamp(14px, 2.1vw, 24px);
  align-items: stretch;
  min-width: 0;
}

.hero-copy,
.product-hero-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(6, 21, 22, 0.9), rgba(3, 11, 12, 0.82)),
    rgba(5, 18, 19, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 246px;
  padding: clamp(16px, 2.1vw, 28px);
}

.product-hero-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
}

.kicker,
.meta-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(32px, 3.45vw, 56px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 10px 0 0;
  color: #c3d0d4;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.48;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
  margin-top: 14px;
}

.quick-searches a,
.chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7e4e8;
  font-size: 12px;
  font-weight: 900;
}

.quick-searches a:hover {
  color: #03120d;
  background: var(--green);
}

.visual-frame {
  min-height: 218px;
  max-width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 218px;
  object-fit: cover;
}

.marketplace-command {
  padding: 12px 0 10px;
}

.marketplace-command .hero-grid {
  gap: 14px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.74fr);
}

.marketplace-command .hero-copy {
  min-height: 204px;
  padding: clamp(16px, 1.8vw, 24px);
}

.marketplace-command h1 {
  max-width: 680px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
}

.marketplace-command .lead {
  max-width: 620px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.42;
}

.marketplace-command .quick-searches {
  margin-top: 12px;
}

.marketplace-command .product-hero-card {
  gap: 8px;
  padding: 8px;
}

.marketplace-command .visual-frame,
.marketplace-command .visual-frame img {
  min-height: 166px;
  height: 166px;
}

.marketplace-command .stat-grid {
  gap: 6px;
}

.marketplace-command .stat-box {
  min-height: 56px;
  padding: 8px;
}

.marketplace-command .stat-box strong {
  font-size: 20px;
}

.marketplace-search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
}

.marketplace-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(5, 18, 19, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.marketplace-search-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--text);
  background: rgba(3, 12, 13, 0.84);
}

.search-keyword-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.stat-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 76px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.stat-box strong {
  display: block;
  color: var(--text);
  font-size: 23px;
  line-height: 1.1;
}

.stat-box span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(12px, 1.8vw, 20px);
  padding: 18px clamp(18px, 3.2vw, 52px) 50px;
  min-width: 0;
}

.filters {
  align-self: start;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(8, 24, 25, 0.94), rgba(5, 15, 16, 0.94)),
    var(--panel);
  position: sticky;
  top: 78px;
}

.filters h2,
.results-head h2,
.product-section h2,
.side-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.filters label,
.sort-row {
  display: grid;
  gap: 6px;
  color: #c3d0d4;
  font-size: 12px;
  font-weight: 900;
}

.filters input,
.filters select,
.sort-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--text);
  background: rgba(3, 12, 13, 0.84);
}

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

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.results {
  min-width: 0;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.results-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sort-row {
  grid-template-columns: auto 170px;
  align-items: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 10px;
}

.show-more-products {
  width: fit-content;
  margin: 16px auto 0;
}

.product-card {
  display: grid;
  grid-template-rows: 118px 1fr auto;
  min-height: 308px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(5, 18, 19, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.product-art {
  position: relative;
  min-height: 118px;
  background:
    linear-gradient(180deg, rgba(2, 6, 7, 0.05), rgba(2, 6, 7, 0.55)),
    var(--product-art, url("/assets/aimart-defaults/api.png")) center / cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
}

.product-art::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.product-card-body {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
}

.product-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.16;
  letter-spacing: 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-seller-line {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

.product-card .seller-name {
  color: var(--gold);
  font-weight: 900;
}

.seller-avatar-inline {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 200, 87, 0.42);
  border-radius: 50%;
  background:
    var(--seller-avatar-image, linear-gradient(135deg, rgba(255, 200, 87, 0.18), rgba(53, 240, 169, 0.12))) center / cover no-repeat;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.06);
}

.seller-avatar-inline.large {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.seller-avatar-inline.hero {
  width: 56px;
  height: 56px;
  border-width: 2px;
  font-size: 16px;
  box-shadow:
    0 0 0 3px rgba(255, 200, 87, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.28);
}

.product-hero-seller {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 200, 87, 0.055);
}

.product-hero-seller strong {
  display: block;
  color: var(--gold);
  font-size: 17px;
  font-weight: 900;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-card .chip,
.product-card .status-chip {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.status-chip.passed {
  color: #03120d;
  background: var(--green);
  border-color: transparent;
}

.status-chip.review_required,
.status-chip.pending_scan {
  color: #211600;
  background: var(--gold);
  border-color: transparent;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 10px;
  border-top: 1px solid var(--line-soft);
}

.price {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.price-block {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.price-block.compact {
  max-width: 112px;
}

.sale-price {
  color: var(--red);
}

.compare-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(255, 77, 91, 0.52);
  border-radius: 999px;
  padding: 0 7px;
  color: #ffe7e9;
  background: rgba(255, 77, 91, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  background: rgba(5, 18, 19, 0.78);
}

.product-page {
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  padding: clamp(28px, 5vw, 60px) 0 58px;
}

.product-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 7, 0.92), rgba(2, 6, 7, 0.72)),
    url("/assets/hero/aimart-command-hero-m-green-v2.png") center / cover no-repeat;
  opacity: 0.42;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
  min-width: 0;
}

.storefront-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
  min-width: 0;
}

.product-panel,
.product-side-panel,
.product-media,
.trust-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(6, 21, 22, 0.9), rgba(3, 11, 12, 0.82)),
    rgba(5, 18, 19, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.product-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 32px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.product-hero h1 {
  font-size: clamp(34px, 4.4vw, 70px);
}

.product-media {
  min-height: 300px;
  max-width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 7, 0.08), rgba(2, 6, 7, 0.42)),
    var(--product-art, url("/assets/aimart-defaults/api.png")) center / cover no-repeat;
}

.product-media::after {
  content: "";
  display: block;
  width: calc(100% - 28px);
  height: 2px;
  margin: 274px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.storefront-media {
  background:
    linear-gradient(180deg, rgba(2, 6, 7, 0.08), rgba(2, 6, 7, 0.42)),
    url("/assets/storefront/verified-seller-storefronts-gpt-image-2.png") center / cover no-repeat;
}

.storefront-media.has-seller-profile {
  background:
    linear-gradient(180deg, rgba(2, 6, 7, 0.08), rgba(2, 6, 7, 0.48)),
    var(--seller-storefront-image) center / cover no-repeat;
}

.storefront-panel {
  gap: 22px;
}

.storefront-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-side-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.checkout-button {
  min-height: 48px;
}

.checkout-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-status[data-tone="success"] {
  color: var(--green-2);
}

.checkout-status[data-tone="warning"] {
  color: var(--gold);
}

.checkout-status[data-tone="error"] {
  color: #ff8d97;
}

.seller-detail-item .seller-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

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

.detail-item,
.trust-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.detail-item strong,
.trust-card strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
}

.detail-item span,
.detail-item p,
.trust-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.seller-detail-link {
  color: var(--gold);
  font-weight: 900;
  line-height: 1.45;
}

.seller-detail-link:hover {
  color: #ffd56a;
}

.product-section {
  display: grid;
  gap: 12px;
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.related-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.related-card strong {
  color: var(--gold);
  font-weight: 900;
}

.related-card:hover {
  border-color: rgba(255, 200, 87, 0.48);
  background: rgba(255, 200, 87, 0.08);
  transform: translateY(-1px);
}

.related-card:hover strong {
  color: #ffd56a;
}

.checkout-page {
  position: relative;
  padding: 44px 0 72px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
}

.checkout-review-panel,
.checkout-summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(5, 18, 19, 0.92), rgba(8, 28, 27, 0.78));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.26);
}

.checkout-review-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.checkout-review-panel h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
}

.checkout-review-panel .lead {
  max-width: 780px;
}

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

.checkout-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease;
}

.checkout-item.selected {
  border-color: rgba(255, 200, 87, 0.48);
  background: rgba(255, 200, 87, 0.08);
}

.checkout-item-main,
.checkout-item label {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.checkout-item label {
  cursor: pointer;
}

.checkout-item input {
  accent-color: var(--green);
}

.checkout-item img,
.checkout-item-fallback {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.checkout-item-fallback {
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 900;
}

.checkout-item strong {
  display: block;
  color: var(--gold);
  font-size: 18px;
  line-height: 1.1;
}

.checkout-item small,
.checkout-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.checkout-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-left: 88px;
}

.checkout-item-actions button,
.checkout-item-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 850;
}

.checkout-item-actions b {
  min-width: 34px;
  text-align: center;
}

.checkout-summary-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.checkout-summary-panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.checkout-summary-row,
.checkout-selected-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.checkout-summary-row strong,
.checkout-selected-card strong {
  color: var(--text);
}

.checkout-selected-card {
  display: grid;
}

.checkout-selected-card strong {
  color: var(--gold);
}

.checkout-primary,
.checkout-secondary,
.checkout-agent-panel .outline-button {
  min-height: 44px;
  width: 100%;
}

.checkout-agent-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 200, 87, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 200, 87, 0.06);
}

.checkout-agent-panel h3,
.checkout-agent-panel p {
  margin: 0;
}

.checkout-agent-panel h3 {
  color: var(--gold);
}

.checkout-agent-panel p {
  color: var(--muted);
}

.checkout-agent-panel pre {
  max-height: 190px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.32);
  color: #bdfce5;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-empty {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.checkout-empty strong {
  color: var(--gold);
}

.checkout-empty span {
  color: var(--muted);
}

.purchase-success-page {
  position: relative;
  padding: 56px 0 72px;
}

.purchase-success-panel {
  display: grid;
  gap: 20px;
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(145deg, rgba(5, 18, 19, 0.92), rgba(8, 28, 27, 0.78));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32);
}

.purchase-success-panel h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
}

.purchase-success-panel .lead {
  max-width: 760px;
}

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

.purchase-actions .solid-button,
.purchase-actions .ghost-button {
  min-height: 48px;
}

.purchase-status-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.purchase-status-card strong {
  color: var(--gold);
  font-size: 15px;
}

.purchase-status-card code {
  overflow-wrap: anywhere;
  color: var(--green-2);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

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

.purchase-item-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.purchase-item-card strong,
.purchase-item-card span {
  display: block;
}

.purchase-item-card strong {
  color: var(--gold);
}

.purchase-item-card span {
  margin-top: 3px;
  color: var(--muted);
}

.purchase-item-card div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-page {
  min-height: 100vh;
}

.account-hero {
  padding: clamp(28px, 4vw, 48px) 0 22px;
  background:
    radial-gradient(circle at 18% 24%, rgba(67, 215, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, rgba(8, 31, 32, 0.94), rgba(2, 10, 11, 0.96));
}

.account-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.account-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
}

.account-hero .lead {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
}

.account-hero-actions,
.account-auth-actions,
.account-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-auth-card,
.account-panel,
.account-side-nav,
.account-json-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 37, 38, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.account-auth-card {
  padding: 18px;
}

.account-auth-card .account-auth-actions {
  margin-top: 18px;
}

.account-auth-card .solid-button,
.account-auth-card .outline-button {
  min-height: 42px;
  padding-inline: 18px;
}

.account-auth-card h2,
.account-panel h2,
.account-json-card h3 {
  margin: 0;
}

.account-auth-card p:not(.kicker),
.account-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.account-auth-mount {
  display: grid;
  place-items: center;
  justify-items: center;
  width: 100%;
  max-width: 340px;
  min-height: 80px;
  margin: 12px auto 0;
  overflow: hidden;
}

.account-auth-mount > * {
  width: 100%;
  max-width: 100%;
  margin-inline: auto !important;
  justify-self: center !important;
}

.account-clerk-target {
  display: grid;
  place-items: center;
}

.account-auth-mount .cl-rootBox,
.account-auth-mount .cl-cardBox,
.account-auth-mount .cl-card,
.account-auth-mount [class*="cl-rootBox"],
.account-auth-mount [class*="cl-cardBox"],
.account-auth-mount [class*="cl-card"] {
  width: min(100%, 360px) !important;
  max-width: min(100%, 360px) !important;
  margin-inline: auto !important;
  justify-self: center !important;
}

.account-auth-mount .cl-rootBox,
.account-auth-mount .cl-cardBox,
.account-auth-mount [class*="cl-rootBox"],
.account-auth-mount [class*="cl-cardBox"] {
  display: grid !important;
  justify-items: center !important;
  place-items: center !important;
}

.account-auth-mount .cl-card,
.account-auth-mount [class~="cl-card"] {
  padding: 16px !important;
}

.account-auth-mount .cl-header,
.account-auth-mount [class*="cl-header"] {
  gap: 6px !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
}

.account-auth-mount .cl-headerTitle,
.account-auth-mount [class*="cl-headerTitle"],
.account-auth-mount h1,
.account-auth-mount h2 {
  max-width: none !important;
  margin: 0 auto 4px !important;
  color: #f5f7f8 !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: normal !important;
}

.account-auth-mount .cl-headerSubtitle,
.account-auth-mount [class*="cl-headerSubtitle"],
.account-auth-mount p {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.account-auth-mount .cl-main,
.account-auth-mount .cl-form,
.account-auth-mount .cl-formField,
.account-auth-mount [class*="cl-main"],
.account-auth-mount [class*="cl-form"],
.account-auth-mount [class*="cl-formField"] {
  gap: 10px !important;
}

.account-auth-mount .cl-main,
.account-auth-mount .cl-form,
.account-auth-mount [class*="cl-main"],
.account-auth-mount [class*="cl-form"],
.account-auth-mount [class*="cl-footer"],
.account-auth-mount [class*="cl-footerAction"] {
  width: 100% !important;
  max-width: 340px !important;
  margin-inline: auto !important;
}

.account-auth-mount [class*="cl-footerAction"] {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 4px 8px !important;
  text-align: center !important;
}

.account-auth-mount [class*="cl-formFieldInput"],
.account-auth-mount input {
  min-height: 38px !important;
}

.account-auth-mount [class*="cl-formButtonPrimary"] {
  min-height: 38px !important;
}

.account-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
}

.account-auth-modal-backdrop[hidden] {
  display: none;
}

.account-auth-modal {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 390px);
  max-height: min(90vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(53, 240, 169, 0.12), transparent 16rem),
    rgba(8, 24, 25, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.account-auth-modal h2 {
  width: 100%;
  max-width: 340px;
  margin: 4px auto 8px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.04;
  text-align: center;
}

.account-auth-modal > p:not(.kicker) {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.account-auth-modal > .kicker {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  text-align: left;
}

.account-auth-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.account-auth-modal-mount {
  width: 100%;
  max-width: 340px;
  margin: 12px auto 0;
}

.account-auth-error {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
}

.account-dashboard {
  padding: 18px 0 clamp(48px, 7vw, 88px);
  background: rgba(2, 10, 11, 0.96);
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-side-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.account-side-nav a,
.account-action-grid a {
  color: var(--text);
  text-decoration: none;
}

.account-side-nav a {
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 900;
}

.account-side-nav a:hover,
.account-action-grid a:hover {
  border-color: var(--green);
  color: var(--green-2);
}

.account-panel-stack {
  display: grid;
  gap: 18px;
}

.account-panel {
  padding: clamp(18px, 2vw, 28px);
  scroll-margin-top: 18px;
}

.account-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.account-panel-head p {
  max-width: 760px;
  margin-bottom: 0;
}

.account-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.account-stats-row div,
.account-order-card,
.account-cart-item,
.account-empty-state,
.account-action-grid a {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.account-stats-row div {
  padding: 14px;
}

.account-stats-row strong {
  display: block;
  color: var(--green);
  font-size: 26px;
}

.account-stats-row span,
.account-order-card p,
.account-order-card small,
.account-cart-item span,
.account-cart-item small,
.account-empty-state span,
.account-action-grid span {
  color: var(--muted);
}

.account-order-list,
.account-cart-list,
.account-action-grid {
  display: grid;
  gap: 12px;
}

.account-order-card {
  padding: 16px;
}

.account-order-topline,
.account-order-main,
.account-order-meta,
.account-cart-item {
  display: grid;
  gap: 12px;
}

.account-order-topline {
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.account-order-topline b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(53, 240, 169, 0.14);
  color: var(--green-2);
}

.account-order-main,
.account-cart-item {
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
}

.account-order-main h3 {
  margin: 0 0 4px;
  color: var(--gold);
}

.account-order-main p,
.account-order-main small {
  display: block;
  margin: 0;
}

.account-order-main img,
.account-cart-item img,
.account-thumb-fallback {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  object-fit: cover;
}

.account-thumb-fallback {
  display: grid;
  place-items: center;
  background: rgba(53, 240, 169, 0.12);
  color: var(--gold);
  font-weight: 950;
}

.account-order-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.account-order-meta span {
  min-height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-order-actions {
  margin-top: 14px;
}

.account-download-result {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.account-download-result a {
  color: var(--gold);
  font-weight: 900;
}

.account-empty-state {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.account-empty-state .solid-button {
  width: fit-content;
}

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

.account-action-grid a {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.account-action-grid strong {
  color: var(--gold);
}

.account-json-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

.account-json-card pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.26);
}

.account-json-card code {
  color: #bfffe6;
  font-size: 12px;
  white-space: pre;
}

.order-detail-page {
  min-height: 68vh;
  padding: clamp(42px, 6vw, 74px) 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(53, 240, 169, 0.11), transparent 32rem),
    rgba(2, 10, 11, 0.96);
}

.order-detail-shell {
  max-width: 1040px;
}

.order-detail-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(17, 37, 38, 0.84);
}

.order-detail-card h1 {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 0.98;
}

.order-detail-auth {
  max-width: 520px;
}

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

.order-detail-grid article {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.order-detail-grid span,
.order-detail-grid strong {
  display: block;
}

.order-detail-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.order-detail-grid strong {
  margin-top: 6px;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-page {
  position: relative;
  overflow: hidden;
  padding: 22px 0 54px;
}

.studio-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 7, 0.96), rgba(2, 6, 7, 0.78)),
    url("/assets/agent-advisor/agent-to-agent-command-bg.png") center / cover no-repeat;
  opacity: 0.78;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(330px, 0.46fr);
  gap: 16px;
  align-items: start;
}

.studio-panel,
.studio-preview,
.studio-agent-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 24, 25, 0.92), rgba(5, 15, 16, 0.92)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.studio-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.studio-panel::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: min(260px, 34%);
  aspect-ratio: 1.6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(2, 6, 7, 0.08), rgba(2, 6, 7, 0.6)),
    url("/assets/storefront/verified-seller-storefronts-gpt-image-2.png") center / cover no-repeat;
  opacity: 0.44;
}

.studio-panel h1,
.studio-panel h2,
.studio-preview h2,
.studio-agent-panel h2 {
  margin: 0;
  line-height: 1.05;
}

.studio-panel h1 {
  font-size: clamp(30px, 3vw, 44px);
}

.studio-intro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.studio-note {
  max-width: 820px;
  margin: 0;
  color: #a9bbc0;
  font-size: 13px;
  line-height: 1.55;
}

.studio-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.studio-fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.studio-fieldset legend {
  padding: 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.studio-field {
  display: grid;
  gap: 6px;
  color: #c3d0d4;
  font-size: 12px;
  font-weight: 900;
}

.studio-field input,
.studio-field select,
.studio-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--text);
  background: rgba(3, 12, 13, 0.84);
}

.studio-field textarea {
  min-height: 88px;
  padding-block: 10px;
  resize: vertical;
}

.studio-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.studio-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-preview,
.studio-agent-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.studio-preview {
  position: sticky;
  top: 78px;
}

.studio-preview-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(5, 18, 19, 0.84);
}

.studio-preview-art {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(2, 6, 7, 0.05), rgba(2, 6, 7, 0.55)),
    var(--studio-art, url("/assets/storefront/verified-seller-storefronts-gpt-image-2.png")) center / cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
}

.studio-preview-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.studio-preview-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.studio-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding: 12px;
}

.studio-output {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px;
  color: #dce9ed;
  background: rgba(1, 6, 7, 0.86);
  font-size: 12px;
  line-height: 1.45;
}

.studio-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(53, 240, 169, 0.1), transparent 30rem),
    rgba(3, 10, 11, 0.96);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 128px;
}

.marketplace-footer-grid {
  grid-template-columns: minmax(240px, 1.15fr) repeat(4, minmax(130px, 1fr));
  align-items: start;
  padding-block: 24px;
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 800;
}

.site-footer .footer-column {
  display: grid;
  gap: 8px;
  justify-content: start;
}

.site-footer .footer-column h3 {
  margin: 0 0 4px;
  color: #f5fbff;
  font-size: 14px;
}

.site-footer .footer-column a {
  color: var(--muted);
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--green);
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
  }

  .trust-row {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {

  .hero-grid,
  .filter-layout,
  .product-detail-layout,
  .storefront-layout,
  .product-hero,
  .studio-grid,
  .checkout-grid,
  .account-hero-grid,
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary-panel {
    position: static;
  }

  .marketplace-command .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .filters {
    position: static;
  }

  .studio-preview {
    position: static;
  }

  .studio-panel::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .market-nav,
  .header-inner,
  .marketplace-search-strip,
  .results-head,
  .footer-grid,
  .marketplace-footer-grid {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .nav-actions,
  .header-actions,
  .site-footer nav {
    justify-content: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-actions .solid-button,
  .header-actions .outline-button,
  .header-actions .icon-button,
  .header-actions .cart-button {
    min-height: 34px;
    font-size: 14px;
  }

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

  .stat-grid,
  .filter-actions,
  .two-column,
  .trust-grid,
  .studio-field-grid,
  .account-order-topline,
  .account-order-main,
  .account-cart-item,
  .account-order-meta,
  .account-action-grid,
  .account-stats-row {
    grid-template-columns: 1fr;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .purchase-item-card {
    grid-template-columns: 1fr;
  }

  .account-panel-head {
    flex-direction: column;
  }

  .account-side-nav {
    position: static;
  }

  .account-empty-state .solid-button {
    width: 100%;
  }

  .checkout-item-main {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .checkout-item label {
    grid-template-columns: auto 62px minmax(0, 1fr);
  }

  .checkout-item img,
  .checkout-item-fallback {
    width: 62px;
    height: 62px;
  }

  .checkout-item-actions {
    padding-left: 0;
  }

  .marketplace-search-form {
    grid-template-columns: 1fr;
  }

  .mega-search {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .mega-search select {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .mega-search button {
    grid-column: 2 / 3;
    grid-row: 1;
    min-width: 0;
  }

  .mega-search input {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mega-search select,
  .mega-search input,
  .mega-search button {
    border: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .mega-search button {
    border-bottom: 0;
  }

  .sort-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    padding-inline: 14px;
  }

  .filter-layout {
    padding-inline: 14px;
  }

  .hero-copy,
  .product-hero-card,
  .product-panel,
  .product-side-panel,
  .filters,
  .results {
    width: 100%;
  }

  .quick-searches a {
    max-width: calc(50% - 5px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-review-panel,
  .checkout-summary-panel {
    padding: 16px;
  }

  .checkout-item-main,
  .checkout-item label {
    grid-template-columns: 1fr;
  }

  .solid-button,
  .ghost-button {
    width: 100%;
  }
}
