:root {
  --bg: #090b0d;
  --bg-soft: #101418;
  --panel: #161b20;
  --panel-2: #1e242a;
  --ink: #f6efe3;
  --muted: #b3aa9a;
  --faint: #776f62;
  --line: rgba(246, 239, 227, 0.12);
  --line-strong: rgba(246, 239, 227, 0.22);
  --teal: #1ba99a;
  --teal-dark: #0e776f;
  --amber: #e8a84f;
  --red: #db5145;
  --green: #4faf67;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --skeleton-base: rgba(255, 255, 255, 0.075);
  --skeleton-strong: rgba(255, 255, 255, 0.14);
  --skeleton-sheen: rgba(255, 255, 255, 0.22);
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(232, 168, 79, 0.14), transparent 34rem),
    radial-gradient(circle at 12% 0%, rgba(27, 169, 154, 0.14), transparent 28rem),
    linear-gradient(180deg, #07090b, #0d1114 42rem, #090b0d);
}

body,
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea {
  border-radius: var(--radius);
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 5.25rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(27, 169, 154, 0.72);
  box-shadow: 0 0 0 3px rgba(27, 169, 154, 0.18);
}

select option {
  color: #121518;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(9, 11, 13, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 11px;
  align-items: center;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--teal), var(--green) 52%, var(--amber));
  color: #08100f;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(27, 169, 154, 0.25);
}

.brand-mark img {
  position: static;
  width: 34px;
  height: 34px;
  opacity: 1;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 850;
}

.nav-link span {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
}

.account-zone {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 6px 10px;
  font-weight: 850;
}

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--avatar, var(--teal));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  overflow: hidden;
}

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

.solid-button,
.outline-button,
.ghost-button,
.danger-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  padding: 0 16px;
  font-weight: 900;
}

.solid-button {
  background: var(--teal);
  color: #04100f;
  box-shadow: 0 16px 30px rgba(27, 169, 154, 0.18);
}

.solid-button:hover {
  background: #35c1b1;
}

.outline-button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
}

.danger-button {
  background: rgba(239, 93, 74, 0.14);
  border: 1px solid rgba(239, 93, 74, 0.5);
  color: #ffb4aa;
}

.danger-button:hover {
  background: rgba(239, 93, 74, 0.22);
}

.link-button {
  min-height: auto;
  padding: 0;
  color: var(--teal);
  background: transparent;
}

.jumbo-button {
  min-height: 50px;
}

.button-row,
.card-actions,
.product-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.hero {
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  display: grid;
  align-items: end;
  padding: 80px clamp(16px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.96), rgba(7, 9, 11, 0.72) 42%, rgba(7, 9, 11, 0.22)),
    url("/assets/mancave-hero.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
}

.hero p {
  max-width: 620px;
  font-size: 1.05rem;
}

.eyebrow {
  margin-bottom: 11px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(650px, 100%);
  margin-top: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.hero-chips button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.34);
  color: var(--ink);
  padding: 0 13px;
  font-weight: 850;
}

.home-shell,
.page-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding: 42px 0 80px;
}

.narrow-shell {
  width: min(760px, calc(100% - 32px));
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -38px 0 40px;
  position: relative;
  z-index: 2;
}

.stats-bar div,
.seller-metrics div,
.profile-stats div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(22, 27, 32, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats-bar strong,
.seller-metrics strong,
.profile-stats strong {
  font-size: 1.7rem;
}

.stats-bar span,
.seller-metrics span,
.profile-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.section-head h1,
.section-head h2 {
  margin-bottom: 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 22px;
  padding: 14px;
  background: rgba(22, 27, 32, 0.74);
  border: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
  padding-bottom: 72px;
}

.promoted-section {
  margin-bottom: 30px;
}

.promoted-section .product-grid {
  padding-bottom: 10px;
}

.product-card.is-promoted {
  border-color: rgba(232, 168, 79, 0.92);
  box-shadow: 0 0 0 1px rgba(232, 168, 79, 0.24);
}

.product-card,
.cart-item,
.checkout-panel,
.order-card,
.seller-listing,
.locked-panel,
.quiet-box,
.room-note,
.profile-hero {
  background: rgba(22, 27, 32, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.product-card {
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 168, 79, 0.4);
}

.skeleton-card,
.skeleton-panel {
  pointer-events: none;
}

.skeleton-card:hover {
  transform: none;
  border-color: var(--line);
}

.skeleton-line,
.skeleton-cover,
.skeleton-thumb,
.skeleton-mini-cover,
.skeleton-avatar {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, var(--skeleton-sheen), transparent),
    linear-gradient(90deg, var(--skeleton-base), var(--skeleton-strong), var(--skeleton-base));
  background-size: 220% 100%, 100% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-line {
  width: 100%;
  height: 13px;
}

.h-title {
  height: 20px;
}

.h-heading {
  height: clamp(28px, 4vw, 42px);
}

.h-display {
  height: clamp(42px, 7vw, 64px);
}

.h-price {
  height: 24px;
}

.h-input {
  height: 46px;
}

.w-22 {
  width: 22%;
}

.w-24 {
  width: 24%;
}

.w-26 {
  width: 26%;
}

.w-28 {
  width: 28%;
}

.w-30 {
  width: 30%;
}

.w-34 {
  width: 34%;
}

.w-36 {
  width: 36%;
}

.w-40 {
  width: 40%;
}

.w-42 {
  width: 42%;
}

.w-44 {
  width: 44%;
}

.w-46 {
  width: 46%;
}

.w-48 {
  width: 48%;
}

.w-52 {
  width: 52%;
}

.w-54 {
  width: 54%;
}

.w-56 {
  width: 56%;
}

.w-58 {
  width: 58%;
}

.w-62 {
  width: 62%;
}

.w-64 {
  width: 64%;
}

.w-70 {
  width: 70%;
}

.w-72 {
  width: 72%;
}

.w-74 {
  width: 74%;
}

.w-78 {
  width: 78%;
}

.w-80 {
  width: 80%;
}

.w-82 {
  width: 82%;
}

.w-84 {
  width: 84%;
}

.w-86 {
  width: 86%;
}

.w-90 {
  width: 90%;
}

.w-94 {
  width: 94%;
}

.w-100 {
  width: 100%;
}

.button-skeleton {
  width: 118px;
  height: 40px;
}

.wide-button {
  width: min(100%, 230px);
}

.skeleton-cover {
  aspect-ratio: 4 / 5;
}

.skeleton-cover-detail {
  min-height: 560px;
  box-shadow: var(--shadow);
}

.skeleton-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}

.skeleton-mini-cover {
  width: 82px;
  min-width: 82px;
  aspect-ratio: 4 / 5;
}

.skeleton-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.skeleton-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.skeleton-specs .skeleton-line + .skeleton-line {
  margin-top: 8px;
}

.skeleton-tabs {
  min-height: 58px;
}

.embed-loading-skeleton {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 20px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 220% 0, 0 0;
  }
  100% {
    background-position: -220% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-cover,
  .skeleton-thumb,
  .skeleton-mini-cover,
  .skeleton-avatar {
    animation: none;
  }
}

.cover-link {
  display: block;
}

.game-cover {
  position: relative;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(150deg, var(--cover-a), var(--cover-b));
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.game-cover-photo {
  background: #111827;
}

.game-cover-photo::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.game-cover-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
}

.game-cover::after {
  content: "";
  position: absolute;
  inset: auto -18% -24% 10%;
  height: 42%;
  transform: rotate(-7deg);
  background: rgba(255, 255, 255, 0.14);
}

.cover-platform,
.cover-initials,
.cover-title {
  position: relative;
  z-index: 1;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.92);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.95),
    0 0 2px rgba(0, 0, 0, 0.95),
    0 2px 12px rgba(0, 0, 0, 0.75),
    0 0 1px rgba(255, 255, 255, 0.55);
}

.cover-platform {
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cover-initials {
  justify-self: center;
  align-self: center;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 950;
}

.cover-title {
  max-width: 92%;
  font-size: 1.02rem;
  line-height: 1.08;
  font-weight: 950;
}

.game-cover-mini {
  width: 82px;
  min-width: 82px;
  border-radius: var(--radius);
}

.game-cover-mini .cover-platform,
.game-cover-mini .cover-title {
  display: none;
}

.game-cover-mini .cover-initials {
  font-size: 1.35rem;
}

.game-cover-detail {
  min-height: 560px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.product-image-trigger:hover .game-cover-detail,
.gallery-image-button:hover img {
  outline: 2px solid rgba(27, 169, 154, 0.58);
  outline-offset: 3px;
}

.product-main-photo {
  cursor: zoom-in;
}

.image-open-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 9, 11, 0.76);
  color: #fff6e7;
  font-size: 0.78rem;
  font-weight: 950;
}

.product-copy {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.product-topline,
.price-row,
.order-head,
.checkout-total,
.sale-row,
.order-items > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-topline {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  flex-wrap: wrap;
}

.promo-badge,
.promotion-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: fit-content;
  padding: 0 9px;
  border: 1px solid rgba(232, 168, 79, 0.44);
  border-radius: 999px;
  background: rgba(232, 168, 79, 0.13);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.promotion-status.pending {
  border-color: rgba(78, 205, 196, 0.36);
  background: rgba(78, 205, 196, 0.11);
  color: var(--teal);
}

.save-button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0 10px;
  font-weight: 900;
}

.save-button.is-saved {
  color: #15110a;
  background: var(--amber);
}

.owner-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(78, 205, 196, 0.35);
  border-radius: 999px;
  background: rgba(78, 205, 196, 0.12);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.product-title,
.cart-title {
  font-weight: 950;
  line-height: 1.18;
}

.product-title {
  min-height: 44px;
  font-size: 1.05rem;
}

.product-copy p,
.cart-item p,
.seller-line,
.seller-listing p,
.order-head p {
  margin-bottom: 0;
}

.profile-link {
  color: var(--teal);
  font-weight: 950;
}

.profile-link:hover {
  color: #fff6e7;
}

.seller-line {
  font-size: 0.82rem;
}

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

.price-row strong,
.product-price {
  color: #fff6e7;
  font-weight: 950;
}

.price-row strong {
  font-size: 1.25rem;
}

.price-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.stock-line,
.cart-shipping-line,
.product-shipping-line {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.product-shipping-line {
  margin-top: -8px;
}

.cart-shipping-line {
  display: block;
  margin-top: 4px;
}

.card-actions > * {
  flex: 1;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 850;
}

.product-back-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.back-link:hover {
  color: var(--ink);
}

.product-page {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.product-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-kicker span,
.total-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(232, 168, 79, 0.16);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lead {
  font-size: 1.05rem;
}

.product-price {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.spec-list div {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: var(--panel-2);
}

.spec-list dt {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  font-weight: 850;
}

.room-note {
  margin-top: 26px;
  padding: 22px;
}

.compact-note {
  margin-top: 0;
  color: var(--muted);
}

.gameplay-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-image-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.gameplay-gallery img,
.image-preview-strip img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gameplay-gallery img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: zoom-in;
}

.profile-page {
  display: grid;
  gap: 22px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(135deg, rgba(27, 169, 154, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(30, 36, 42, 0.96), rgba(17, 22, 26, 0.92));
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: clamp(76px, 12vw, 112px);
  height: clamp(76px, 12vw, 112px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    var(--avatar, var(--teal));
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.profile-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.profile-hero p {
  margin-bottom: 0;
}

.profile-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  min-width: 170px;
}

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

.profile-stats-rating-only {
  grid-template-columns: minmax(220px, 360px);
}

.profile-rating-stat small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-stars {
  display: block;
  min-height: 2.8rem;
}

.rating-stars {
  --star-size: clamp(2.15rem, 4vw, 2.85rem);
  --rating-fill: 0%;
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--amber) 0 var(--rating-fill), rgba(148, 163, 184, 0.42) var(--rating-fill) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: var(--star-size);
  letter-spacing: 1px;
  line-height: 1;
}

.profile-bio {
  max-width: 720px;
  margin: 12px 0 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.locked-panel,
.empty-state {
  padding: clamp(22px, 5vw, 36px);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.setup-gate {
  max-width: 720px;
  margin: 0 auto;
}

.stripe-verification-note {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 169, 154, 0.32);
  background: rgba(27, 169, 154, 0.08);
  color: var(--muted);
  text-align: left;
}

.stripe-verification-note strong {
  color: #fff6e7;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.stripe-verification-note p {
  margin-bottom: 0;
  font-size: 0.84rem;
  font-weight: 800;
}

.sell-page {
  max-width: 980px;
}

.sell-wizard {
  display: grid;
  gap: 16px;
}

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

.sell-stepper button {
  display: flex;
  align-items: center;
  min-height: 68px;
  justify-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  text-align: left;
}

.sell-stepper button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.sell-stepper button strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.sell-stepper button.is-active {
  border-color: rgba(27, 169, 154, 0.56);
  background: rgba(27, 169, 154, 0.11);
}

.sell-stepper button.is-complete span {
  background: var(--teal);
  color: #06110f;
}

.sell-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sell-step-form {
  padding: 0;
  overflow: hidden;
}

.sell-step-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.sell-step-intro {
  display: grid;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sell-step-intro span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sell-step-intro h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.sell-step-intro p {
  margin-bottom: 0;
}

.sell-step-actions {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}

.field-title {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.image-uploader {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.image-uploader-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.image-uploader p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.image-count-pill {
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.upload-drop {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: center;
}

.upload-drop:not(.is-disabled):hover {
  border-color: rgba(27, 169, 154, 0.58);
  background: rgba(27, 169, 154, 0.08);
}

.upload-drop span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.upload-drop input {
  display: none;
}

.image-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.image-preview-strip figure {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.image-preview-strip figure.is-main {
  border-color: rgba(232, 168, 79, 0.62);
}

.image-thumb {
  position: relative;
}

.image-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

.image-thumb span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  background: rgba(7, 9, 11, 0.82);
  color: #fff6e7;
  font-size: 0.72rem;
  font-weight: 950;
}

.image-preview-strip figcaption {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.image-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.mini-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.main-image-note,
.image-empty-state {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.image-empty-state {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sell-review {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.sell-review > strong {
  color: var(--ink);
  font-size: 1rem;
}

.sell-review div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sell-review span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sell-review b {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.wide-field {
  grid-column: span 2;
}

.cart-layout,
.seller-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
  gap: 22px;
  align-items: start;
}

.cart-layout-checkout-open {
  grid-template-columns: minmax(320px, 0.75fr) minmax(430px, 0.55fr);
}

.seller-console {
  display: grid;
  gap: 24px;
}

.seller-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(232, 168, 79, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(23, 28, 33, 0.96), rgba(12, 15, 18, 0.94));
  box-shadow: var(--shadow);
}

.seller-hero h1 {
  margin-bottom: 12px;
}

.wallet-card,
.profile-editor,
.edit-panel,
.seller-order-card {
  border: 1px solid var(--line);
  background: rgba(22, 27, 32, 0.82);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.wallet-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.wallet-card span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-card strong {
  font-size: 2.2rem;
}

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

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

.wallet-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.seller-filter-bar,
.profile-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(22, 27, 32, 0.72);
}

.seller-filter-bar {
  grid-template-columns: minmax(180px, 1fr) 150px 150px 150px auto;
  align-items: end;
}

.profile-editor {
  padding: 0;
}

.profile-editor summary {
  cursor: pointer;
  padding: 16px;
  color: var(--ink);
  font-weight: 950;
}

.compact-head {
  margin: 0;
  padding: 16px 16px 0;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  border-top: 1px solid var(--line);
}

.profile-image-field {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.large-avatar {
  width: 84px;
  height: 84px;
}

.profile-link-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.seller-profile-editor {
  display: grid;
  gap: 14px;
}

.seller-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
  padding: 16px;
}

.seller-profile-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.seller-profile-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.seller-profile-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.seller-profile-card .profile-form,
.seller-profile-card .settings-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.seller-profile-settings-form {
  align-content: start;
}

.seller-origin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.seller-origin-fields > div {
  grid-column: 1 / -1;
}

.seller-origin-fields label:nth-of-type(2),
.seller-origin-fields label:nth-of-type(3) {
  grid-column: 1 / -1;
}

.seller-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(22, 27, 32, 0.72);
}

.seller-tabs a {
  padding: 10px 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 950;
}

.seller-tabs a.active {
  border-color: var(--line-strong);
  background: rgba(27, 169, 154, 0.18);
  color: var(--ink);
}

.seller-stock-tabs {
  display: flex;
  gap: 8px;
}

.seller-stock-tabs a {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 950;
}

.seller-stock-tabs a.active {
  background: rgba(232, 168, 79, 0.16);
  border-color: rgba(232, 168, 79, 0.38);
  color: var(--amber);
}

.edit-panel {
  padding: 18px;
}

.management-list {
  gap: 10px;
}

.listing-analytics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.listing-analytics span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.seller-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.seller-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.seller-action-row .outline-button,
.seller-action-row .danger-button {
  min-height: 38px;
  padding: 0 12px;
}

.seller-orders-head {
  margin-top: 10px;
}

.seller-order-list {
  gap: 12px;
}

.seller-order-card {
  display: grid;
  gap: 0;
  padding: 16px;
}

.seller-order-card p {
  margin-bottom: 6px;
}

.order-money {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: end;
}

.order-money span {
  color: var(--muted);
  font-weight: 800;
}

.seller-order-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.seller-order-items span {
  min-width: 0;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 12px 0 28px;
}

.pager span {
  color: var(--muted);
  font-weight: 900;
}

.cart-list,
.order-list,
.seller-list,
.sale-list {
  display: grid;
  gap: 13px;
}

.cart-item,
.seller-listing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.cart-controls {
  display: grid;
  gap: 9px;
  width: 116px;
}

.checkout-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.cart-layout-checkout-open .checkout-panel {
  position: static;
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
}

.checkout-embed-shell {
  grid-column: 2;
  grid-row: 1 / span 99;
  min-width: 0;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.checkout-total span {
  display: grid;
  gap: 2px;
}

.checkout-total small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.order-card {
  padding: 18px;
}

.order-head-button {
  width: 100%;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.order-head-button:hover h2 {
  color: var(--teal);
}

.order-number {
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.2;
}

.order-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.order-items > div,
.sale-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-item-row {
  flex-wrap: wrap;
}

.order-item-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-item-row small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.order-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.order-detail-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.order-detail-panel h3,
.order-detail-panel h4 {
  margin-bottom: 0;
}

.tracking-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

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

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

.tracking-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tracking-summary span,
.tracking-history small,
.tracking-box small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.tracking-summary strong,
.tracking-history strong {
  overflow-wrap: anywhere;
}

.tracking-history {
  display: grid;
  gap: 8px;
}

.tracking-toggle {
  justify-self: start;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.tracking-extra {
  display: grid;
  gap: 10px;
}

.tracking-extra p {
  margin: 0;
}

.tracking-history > div {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  border-left: 2px solid var(--line-strong);
}

.return-status-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.return-unavailable-note {
  max-width: 230px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
}

.return-window-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
}

.return-detail-box {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.return-detail-box p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.star-buttons {
  display: inline-flex;
  gap: 2px;
}

.star-button {
  min-height: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1rem;
}

.star-button.active {
  color: var(--amber);
  border-color: rgba(232, 168, 79, 0.45);
}

.inbox-head {
  align-items: center;
}

.inbox-head p:not(.eyebrow) {
  margin: 8px 0 0;
}

.inbox-new-button {
  gap: 9px;
  white-space: nowrap;
}

.inbox-new-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.15rem;
  line-height: 1;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  overflow: hidden;
  height: clamp(560px, calc(100vh - 220px), 760px);
  min-height: 640px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.conversation-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
}

.conversation-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.conversation-list-head strong {
  color: var(--ink);
}

.conversation-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.conversation-row:hover,
.conversation-row.is-active {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.conversation-row.is-active {
  box-shadow: inset 3px 0 0 var(--teal);
}

.inbox-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  font-size: 0.8rem;
}

.inbox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.conversation-copy strong,
.conversation-copy span,
.conversation-copy small,
.conversation-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy span,
.conversation-copy small,
.conversation-meta small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.conversation-meta {
  display: grid;
  justify-items: end;
  align-self: stretch;
  gap: 6px;
}

.conversation-meta b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--amber);
  color: #16110a;
  font-size: 0.74rem;
  text-align: center;
}

.message-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  overflow: hidden;
  padding: 20px;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 46%, transparent), transparent 240px),
    var(--panel);
}

.thread-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.thread-head h2 {
  margin-bottom: 4px;
}

.thread-head small {
  color: var(--muted);
  font-weight: 850;
}

.thread-people {
  display: flex;
  flex-shrink: 0;
}

.thread-people .inbox-avatar + .inbox-avatar {
  margin-left: -12px;
  border: 2px solid var(--panel);
}

.message-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
  padding: 6px 8px 6px 0;
  overscroll-behavior: contain;
}

.message-bubble {
  width: min(700px, 86%);
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.message-bubble.is-mine {
  justify-self: end;
  border-color: rgba(27, 169, 154, 0.4);
  background: rgba(27, 169, 154, 0.12);
}

.message-bubble-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.message-bubble-head strong {
  color: var(--ink);
}

.message-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
}

.message-bubble small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.system-message-bubble {
  width: min(760px, 94%);
  border-color: color-mix(in srgb, var(--teal) 32%, var(--line));
  background: color-mix(in srgb, var(--panel-2) 84%, var(--teal));
}

.system-message-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.system-message-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-message-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.system-message-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.system-message-card a,
.system-inline-link {
  color: var(--teal);
  font-weight: 950;
}

.system-message-note {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  background: color-mix(in srgb, var(--panel) 82%, var(--amber));
  color: var(--muted) !important;
}

.system-offer-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.message-reply-form,
.message-compose-form,
.recipient-search-form {
  display: grid;
  gap: 12px;
}

.message-reply-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.message-reply-form .wide-field,
.message-compose-form .wide-field,
.recipient-search-form .wide-field {
  grid-column: 1 / -1;
}

.message-compose-modal {
  width: min(720px, 100%);
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

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

.selected-recipient,
.recipient-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.recipient-result {
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.recipient-result:hover,
.recipient-result.is-selected {
  border-color: var(--teal);
}

.recipient-result span,
.selected-recipient span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.recipient-result strong,
.selected-recipient strong,
.recipient-result small,
.selected-recipient small,
.recipient-result em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-result small,
.selected-recipient small,
.recipient-result em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.recipient-result b {
  color: var(--teal);
  font-size: 0.78rem;
}

.recipient-results {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 2px;
}

.inbox-empty-mini,
.inbox-thread-empty {
  box-shadow: none;
}

.seller-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.freeze-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 93, 74, 0.42);
  background: rgba(239, 93, 74, 0.1);
  color: #ffcbc5;
}

.freeze-banner strong {
  color: #fff;
}

.seller-layout aside,
.seller-layout section {
  min-width: 0;
}

.seller-layout h2 {
  margin-bottom: 14px;
}

.quiet-box {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.62);
}

.crop-modal {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 0 18px 18px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 25, 0.98);
  box-shadow: var(--shadow);
}

.crop-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto;
}

.crop-preview {
  display: block;
  width: min(100%, 460px);
  border: 1px solid var(--line-strong);
  background: #050607;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

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

.crop-frame {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 999px rgba(0, 0, 0, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.crop-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.crop-controls p {
  max-width: 460px;
  margin-bottom: 0;
  text-align: center;
  font-weight: 800;
}

.crop-touch-controls {
  display: inline-grid;
  grid-template-columns: 40px minmax(70px, auto) 40px;
  gap: 8px;
  align-items: center;
}

.crop-touch-controls span {
  color: var(--muted);
  font-weight: 950;
  text-align: center;
}

.auth-modal {
  position: relative;
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #11161a;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.confirm-modal {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: #11161a;
  box-shadow: var(--shadow);
}

.confirm-modal p {
  color: var(--muted);
  font-weight: 800;
}

.promotion-modal {
  width: min(680px, 100%);
}

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

.promotion-package {
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.promotion-package:hover {
  border-color: rgba(232, 168, 79, 0.54);
  transform: translateY(-1px);
}

.promotion-package span {
  display: grid;
  gap: 4px;
}

.promotion-package strong {
  font-size: 1.05rem;
}

.promotion-package small {
  color: var(--muted);
  font-weight: 900;
}

.promotion-package b {
  color: var(--amber);
  font-size: 1.6rem;
  font-weight: 950;
}

.shipping-label-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  align-self: start;
}

.return-issue-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  align-self: start;
}

.return-issue-modal form {
  display: grid;
  gap: 14px;
}

.shipping-label-modal .form-footer {
  position: sticky;
  bottom: -24px;
  margin: 0 -24px -24px;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  z-index: 1;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 850;
}

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

.shipping-rate-option {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.shipping-rate-option:not(.skeleton-panel) {
  cursor: pointer;
}

.shipping-rate-option.selected {
  border-color: rgba(37, 99, 235, 0.78);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.shipping-rate-main,
.shipping-rate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.shipping-rate-main strong,
.shipping-rate-main b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shipping-rate-main b {
  font-size: 1.08rem;
  font-weight: 950;
}

.shipping-rate-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.shipping-rate-meta span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.shipping-rate-summary,
.shipping-label-ready,
.empty-panel {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.shipping-rate-summary span,
.shipping-label-ready span,
.empty-panel {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.shipping-rate-option .short {
  width: 42%;
}

.image-source-modal {
  width: min(560px, 100%);
}

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

.image-source-choice {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.image-source-choice:hover {
  border-color: rgba(27, 169, 154, 0.58);
  background: rgba(27, 169, 154, 0.08);
}

.image-source-choice strong {
  font-size: 1rem;
}

.image-source-choice span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.image-source-choice input {
  display: none;
}

.product-lightbox {
  z-index: 80;
  background: rgba(0, 0, 0, 0.84);
}

.product-lightbox-dialog {
  position: relative;
  width: min(1100px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 15, 18, 0.98);
  box-shadow: var(--shadow);
}

.product-lightbox-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(70vh, 720px);
  touch-action: pan-y;
  user-select: none;
}

.product-lightbox-media img {
  max-width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  border: 1px solid var(--line);
  background: #050607;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 64px;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  background: rgba(7, 9, 11, 0.74);
  color: #fff6e7;
  font-size: 2.4rem;
  line-height: 1;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.product-lightbox-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 850;
}

.product-lightbox-footer strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.camera-modal {
  width: min(720px, calc(100vw - 28px));
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 25, 0.98);
  box-shadow: var(--shadow);
}

.camera-preview-wrap {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #050607;
}

.camera-preview-wrap video {
  display: block;
  width: 100%;
  max-height: min(62vh, 620px);
  object-fit: contain;
  background: #050607;
}

.camera-help {
  margin-bottom: 0;
  text-align: center;
  font-weight: 800;
}

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

.auth-modal h2 {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 950;
}

.demo-logins {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.app-download-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  width: min(360px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(232, 168, 79, 0.12), transparent 48%),
    var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.app-download-qr {
  display: grid;
  place-items: center;
  min-width: 92px;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.app-download-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-download-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.app-download-kicker {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-download-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.1;
}

.app-download-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 42px;
  margin-top: 2px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050607;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.app-store-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}

.app-store-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  color: #050607;
  font-size: 0.95rem;
  font-weight: 950;
}

.app-store-button span:last-child {
  display: grid;
  gap: 0;
  line-height: 1;
}

.app-store-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 850;
}

.app-store-button b {
  font-size: 1rem;
  font-weight: 950;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 154px;
  z-index: 80;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  max-width: 340px;
  transform: translateY(10px);
  opacity: 0;
  padding: 13px 15px;
  background: #f6efe3;
  color: #111;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, opacity 0.18s ease;
  font-weight: 900;
}

.toast-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-error {
  background: #f0756b;
}

@media (max-width: 1160px) {
  .app-header {
    grid-template-columns: auto 1fr;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
  }

  .account-zone {
    justify-self: end;
  }

  .filter-bar,
  .seller-filter-bar,
  .cart-layout,
  .seller-layout,
  .seller-hero,
  .seller-order-card {
    grid-template-columns: 1fr;
  }

  .order-money,
  .seller-actions {
    justify-items: start;
  }

  .checkout-panel {
    position: static;
  }

  .cart-layout-checkout-open .checkout-panel {
    grid-template-columns: 1fr;
  }

  .checkout-embed-shell {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .app-header {
    gap: 10px;
  }

  .brand span:last-child,
  .account-pill span:last-child {
    display: none;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .nav-link {
    min-height: 36px;
    padding-inline: 8px;
  }

  .hero {
    min-height: 560px;
    padding: 62px 16px;
    background:
      linear-gradient(90deg, rgba(7, 9, 11, 0.94), rgba(7, 9, 11, 0.72)),
      url("/assets/mancave-hero.png") 65% center / cover no-repeat;
  }

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

  .home-shell,
  .page-shell,
  .narrow-shell {
    width: min(100% - 24px, 1380px);
  }

  .stats-bar,
  .seller-metrics,
  .profile-stats,
  .product-page,
  .sell-form,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profile-actions {
    width: 100%;
  }

  .stats-bar {
    margin-top: -30px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .wide-field {
    grid-column: auto;
  }

  .game-cover-detail {
    min-height: 420px;
  }

  .cart-item,
  .seller-listing {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cart-controls,
  .seller-listing > strong {
    grid-column: 1 / -1;
    width: 100%;
  }

  .seller-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 2.45rem;
  }

  .account-zone {
    gap: 6px;
  }

  .solid-button,
  .outline-button,
  .ghost-button {
    padding-inline: 12px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 520px;
  }

  .product-grid,
  .spec-list,
  .split-fields,
  .gameplay-gallery,
  .sell-stepper,
  .sell-review div,
  .profile-link-row,
  .profile-image-field,
  .wallet-card form {
    grid-template-columns: 1fr;
  }

  .product-actions > *,
  .card-actions > * {
    width: 100%;
    flex: auto;
  }

  .toast-region {
    right: 12px;
    left: 12px;
    bottom: 146px;
  }

  .app-download-widget {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .app-download-qr {
    min-width: 76px;
    padding: 6px;
  }

  .app-download-copy p {
    display: none;
  }

  .app-store-button {
    min-height: 38px;
  }
}
}

/* Professional UI refresh */
:root,
html.theme-light,
body.theme-light {
  --bg: #f5f7fb;
  --bg-soft: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --ink: #101827;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --amber: #b7791f;
  --red: #dc2626;
  --green: #15803d;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.11);
  --radius: 8px;
  --skeleton-base: rgba(15, 23, 42, 0.075);
  --skeleton-strong: rgba(15, 23, 42, 0.13);
  --skeleton-sheen: rgba(255, 255, 255, 0.72);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #111827;
    --panel: #161b22;
    --panel-2: #1f2937;
    --ink: #f8fafc;
    --muted: #a7b0c0;
    --faint: #758195;
    --line: rgba(248, 250, 252, 0.12);
    --line-strong: rgba(248, 250, 252, 0.22);
    --teal: #60a5fa;
    --teal-dark: #3b82f6;
    --amber: #f59e0b;
    --red: #f87171;
    --green: #34d399;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --skeleton-base: rgba(248, 250, 252, 0.075);
    --skeleton-strong: rgba(248, 250, 252, 0.14);
    --skeleton-sheen: rgba(248, 250, 252, 0.2);
    color-scheme: dark;
  }
}

html.theme-dark,
body.theme-dark {
  --bg: #0d1117;
  --bg-soft: #111827;
  --panel: #161b22;
  --panel-2: #1f2937;
  --ink: #f8fafc;
  --muted: #a7b0c0;
  --faint: #758195;
  --line: rgba(248, 250, 252, 0.12);
  --line-strong: rgba(248, 250, 252, 0.22);
  --teal: #60a5fa;
  --teal-dark: #3b82f6;
  --amber: #f59e0b;
  --red: #f87171;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --skeleton-base: rgba(248, 250, 252, 0.075);
  --skeleton-strong: rgba(248, 250, 252, 0.14);
  --skeleton-sheen: rgba(248, 250, 252, 0.2);
  color-scheme: dark;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 360px),
    var(--bg);
}

#app {
  min-height: 100vh;
}

body.theme-dark {
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.1), transparent 340px),
    var(--bg);
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

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

input,
select,
textarea {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--ink);
}

select option {
  color: var(--ink);
  background: var(--panel);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.app-header {
  top: 0;
  margin: 0;
  padding: 14px clamp(14px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

body.theme-dark .app-header {
  background: rgba(13, 17, 23, 0.92);
}

.brand {
  min-width: 210px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--panel);
  box-shadow: none;
}

.brand-mark img {
  width: 40px;
  height: 40px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.top-nav {
  justify-content: center;
  gap: 6px;
}

.nav-link {
  min-height: 38px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--ink);
}

.mobile-menu-toggle {
  display: none;
}

.solid-button,
.outline-button,
.ghost-button,
.danger-button,
.link-button {
  min-height: 40px;
  border-radius: 8px;
}

.solid-button {
  background: #2563eb;
  color: #ffffff;
  box-shadow: none;
}

.solid-button:hover {
  background: #1d4ed8;
}

.outline-button,
.ghost-button {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.danger-button {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.34);
  color: var(--red);
}

.account-pill {
  background: var(--panel);
  border-color: var(--line-strong);
}

.hero {
  min-height: auto;
  width: min(100% - 32px, 1220px);
  margin: 32px auto 18px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero::after {
  display: none;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  max-width: 780px;
}

.hero p {
  max-width: 660px;
  font-size: 1.02rem;
}

.hero-search {
  max-width: 680px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-search input {
  border: 0;
  background: transparent;
}

.home-shell,
.page-shell,
.narrow-shell {
  width: min(100% - 32px, 1220px);
}

.stats-bar {
  margin: 0 0 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-bar > div,
.profile-stats > div,
.seller-metrics > div {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
}

.section-head {
  margin: 22px 0 14px;
  padding: 0;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.filter-bar,
.seller-filter-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
  align-items: end;
}

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

.product-card,
.cart-item,
.checkout-panel,
.order-card,
.seller-listing,
.locked-panel,
.quiet-box,
.room-note,
.profile-hero,
.wallet-card,
.profile-editor,
.edit-panel,
.seller-order-card,
.seller-hero,
.settings-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

body.theme-dark .product-card,
body.theme-dark .cart-item,
body.theme-dark .checkout-panel,
body.theme-dark .order-card,
body.theme-dark .seller-listing,
body.theme-dark .locked-panel,
body.theme-dark .quiet-box,
body.theme-dark .room-note,
body.theme-dark .profile-hero,
body.theme-dark .wallet-card,
body.theme-dark .profile-editor,
body.theme-dark .edit-panel,
body.theme-dark .seller-order-card,
body.theme-dark .seller-hero,
body.theme-dark .settings-card {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.product-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
}

.game-cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(150deg, var(--cover-a, #111827), var(--cover-b, #334155));
}

.cover-title,
.cover-platform,
.cover-initials {
  paint-order: stroke fill;
  -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.92);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.95),
    0 0 2px rgba(0, 0, 0, 0.95),
    0 2px 12px rgba(0, 0, 0, 0.75),
    0 0 1px rgba(255, 255, 255, 0.55);
}

.product-title {
  color: var(--ink);
}

.price-row strong,
.product-price {
  color: var(--ink);
}

.seller-hero,
.profile-hero {
  background: var(--panel);
}

.wallet-card strong {
  color: var(--ink);
}

.seller-tabs,
.seller-stock-tabs {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
}

.seller-tabs a,
.seller-stock-tabs a {
  color: var(--muted);
}

.seller-tabs a.active,
.seller-stock-tabs a.active {
  background: var(--panel-2);
  color: var(--ink);
}

.auth-modal,
.confirm-modal,
.crop-modal {
  background: var(--panel);
  border-color: var(--line-strong);
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.setup-gate {
  gap: 16px;
  max-width: 860px;
  background: var(--panel);
  border-style: solid;
}

.stripe-verification-note {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
}

.stripe-verification-note strong {
  color: var(--ink);
}

.verification-gate {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(183, 121, 31, 0.34);
  background: rgba(183, 121, 31, 0.08);
  color: var(--muted);
  text-align: left;
}

.verification-gate strong {
  color: var(--ink);
}

.verification-gate p,
.verification-modal p {
  margin-bottom: 0;
}

.stripe-embed-box {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
}

.checkout-embed {
  min-height: 520px;
}

.settings-page {
  display: grid;
  gap: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.seller-settings-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) minmax(260px, 0.55fr);
}

.settings-stack,
.settings-card,
.settings-form,
.settings-list {
  display: grid;
  gap: 14px;
}

.settings-card {
  padding: clamp(18px, 3vw, 24px);
}

.seller-bank-card {
  align-self: start;
  gap: 16px;
}

.seller-bank-card .stripe-embed-box {
  min-height: 420px;
}

.seller-bank-summary {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(21, 128, 61, 0.24);
  background: rgba(21, 128, 61, 0.08);
}

.seller-bank-summary span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.settings-form h3,
.settings-form .wide-field,
.settings-form .form-footer {
  grid-column: 1 / -1;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.settings-row div {
  display: grid;
  gap: 3px;
}

.settings-row span,
.status-chip {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
}

.status-chip.good {
  color: var(--green);
  border-color: rgba(21, 128, 61, 0.28);
  background: rgba(21, 128, 61, 0.08);
}

.status-chip.warn {
  color: var(--amber);
  border-color: rgba(183, 121, 31, 0.28);
  background: rgba(183, 121, 31, 0.08);
}

.toggle-row,
.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row input,
.choice-card input {
  width: auto;
}

.account-type-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-type-field legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.choice-card {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

.choice-card span {
  display: grid;
  gap: 3px;
}

.choice-card small {
  color: var(--muted);
  font-weight: 750;
}

.preference-toggle {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
}

.preference-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.16s ease, background 0.16s ease;
}

.preference-toggle input:checked + .toggle-switch {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(37, 99, 235, 0.16);
}

.preference-toggle input:checked + .toggle-switch::after {
  transform: translateX(20px);
  background: var(--teal);
}

.preference-toggle input:focus-visible + .toggle-switch {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.preference-toggle strong,
.preference-toggle small {
  display: block;
}

.preference-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.danger-zone {
  border-color: rgba(220, 38, 38, 0.24);
}

.app-footer {
  width: min(100% - 32px, 1220px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 38px auto 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.app-footer strong {
  color: var(--ink);
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  font-size: 0.88rem;
  font-weight: 850;
}

.app-footer a,
.legal-mini a,
.legal-consent a {
  color: var(--teal);
  font-weight: 900;
}

.legal-page {
  display: grid;
  gap: 18px;
}

.legal-updated {
  display: inline-flex;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.legal-nav a.active,
.legal-nav a:hover {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--ink);
}

.legal-card {
  display: grid;
  gap: 0;
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.legal-card section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.legal-card section:first-child {
  padding-top: 0;
}

.legal-card section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-card h2 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.legal-card p,
.legal-mini {
  margin-bottom: 0;
}

.legal-mini {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.legal-consent {
  align-items: flex-start;
  font-size: 0.82rem;
}

body.density-compact .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
}

body.density-compact .product-copy,
body.density-compact .settings-card,
body.density-compact .checkout-panel,
body.density-compact .cart-item {
  padding: 14px;
}

@media (max-width: 1160px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }

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

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

@media (max-width: 820px) {
  .hero,
  .home-shell,
  .page-shell,
  .narrow-shell,
  .app-footer {
    width: min(100% - 24px, 1220px);
  }

  .app-footer {
    display: grid;
  }

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

  .hero-search,
  .settings-form {
    grid-template-columns: 1fr;
  }

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

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

/* Seller dashboard refresh */
.seller-console {
  gap: 18px;
}

.seller-commandbar {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.seller-commandbar h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
}

.seller-commandbar p {
  max-width: 680px;
  margin-bottom: 0;
}

.seller-status-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.seller-status-panel p,
.seller-status-panel small {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.status-chip.danger {
  color: var(--red);
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
}

.status-chip.small {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.72rem;
}

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

.seller-metric-card,
.seller-panel,
.seller-insight-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.seller-metric-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.seller-metric-card span,
.seller-insight-strip span,
.wallet-total span,
.money-breakdown span,
.order-buyer-grid span,
.seller-order-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seller-metric-card strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1;
}

.seller-metric-card small,
.seller-insight-strip small,
.seller-actions span,
.order-buyer-grid small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.seller-insight-strip > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.seller-insight-strip > div:last-child {
  border-right: 0;
}

.seller-insight-strip strong {
  min-width: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.2;
}

.seller-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

.seller-dashboard-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.seller-dashboard-main > .seller-tabs {
  position: static;
}

.seller-money-sidebar {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 88px;
}

.seller-dashboard-details {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.seller-details-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.seller-timeframe-select {
  display: grid;
  gap: 6px;
  min-width: 168px;
}

.seller-timeframe-select span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-timeframe-select select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
}

.seller-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
}

.seller-money-sidebar .seller-panel {
  padding: 18px;
}

.seller-panel-head,
.seller-workspace-head,
.seller-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.seller-panel-head h2,
.seller-workspace-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.wallet-total {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.wallet-total strong {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.seller-money-sidebar .wallet-total strong {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.money-breakdown {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.money-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.money-breakdown div:last-child {
  border-bottom: 0;
}

.seller-money-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.seller-money-sidebar .seller-money-panel form {
  grid-template-columns: 1fr;
}

.seller-tabs {
  position: sticky;
  top: 74px;
  z-index: 10;
  gap: 6px;
  padding: 6px;
}

.seller-mode-switcher {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.seller-mode-switcher button {
  min-width: 118px;
  min-height: 46px;
  display: grid;
  gap: 1px;
  align-content: center;
  justify-items: start;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 900;
}

.seller-mode-switcher button strong {
  color: inherit;
  font-size: 0.88rem;
}

.seller-mode-switcher button span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.seller-mode-switcher button.active {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--ink);
}

.seller-mode-switcher button:hover {
  color: var(--ink);
}

.seller-workspace {
  display: grid;
  gap: 14px;
}

.seller-workspace-head {
  padding-top: 4px;
}

.seller-workspace-head p {
  max-width: 720px;
  margin-bottom: 0;
}

.seller-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.seller-stock-tabs {
  align-items: stretch;
  padding: 6px;
}

.seller-stock-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
}

.seller-filter-bar {
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  padding: 12px;
}

.seller-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
}

.seller-order-summary > div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.seller-order-summary > div:last-child {
  border-right: 0;
}

.seller-order-summary strong {
  font-size: 1.2rem;
}

.seller-listing {
  grid-template-columns: 82px minmax(0, 1fr) minmax(118px, auto);
  align-items: start;
  gap: 16px;
  padding: 16px;
}

.seller-listing-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.seller-listing-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-listing-main p {
  margin-bottom: 0;
}

.listing-analytics {
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.listing-analytics span {
  display: grid;
  gap: 2px;
  padding: 0 0 0 10px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line-strong);
}

.listing-analytics small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.listing-analytics strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.seller-actions {
  align-content: start;
  justify-items: end;
}

.seller-actions strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.seller-order-card {
  align-items: start;
  padding: 0;
  overflow: hidden;
}

.seller-order-card.has-report {
  border-color: rgba(232, 168, 79, 0.65);
  box-shadow: 0 20px 54px rgba(232, 168, 79, 0.14);
}

.seller-order-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.seller-order-toggle:hover {
  background: color-mix(in srgb, var(--panel-2) 62%, transparent);
}

.seller-order-toggle-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 150px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.seller-order-chevron {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.seller-report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(232, 168, 79, 0.82);
  background: rgba(232, 168, 79, 0.22);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.seller-report-callout {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(232, 168, 79, 0.78);
  background: rgba(232, 168, 79, 0.18);
  color: var(--ink);
}

.seller-report-callout strong,
.seller-item-report strong {
  color: var(--amber);
  font-size: 1.02rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seller-report-callout span,
.seller-item-report span {
  color: var(--muted);
  font-weight: 900;
}

.seller-order-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.seller-order-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 0;
  border-bottom: 0;
}

.seller-order-top p {
  margin-bottom: 0;
}

.seller-order-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.seller-order-top > strong {
  color: var(--ink);
  font-size: 1.25rem;
}

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

.order-buyer-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-buyer-grid strong,
.order-buyer-grid small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.seller-order-items {
  margin-top: 0;
}

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

.seller-item-report {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(232, 168, 79, 0.75);
  background: rgba(232, 168, 79, 0.16);
}

.seller-item-report p {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.seller-order-items .seller-order-item-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.seller-order-game {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.seller-order-thumb {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.seller-order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-order-game-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.seller-order-game-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.seller-order-game-head strong,
.seller-order-game-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.seller-order-game-head span {
  color: var(--ink);
  font-weight: 950;
}

.seller-order-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seller-order-game-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.seller-order-game-meta b {
  color: var(--ink);
  font-weight: 950;
}

.seller-order-description,
.seller-order-includes {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.seller-order-includes strong {
  color: var(--ink);
}

.order-money {
  width: 100%;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  justify-items: stretch;
}

.order-money span,
.order-money strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-money strong {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

body.theme-dark .seller-commandbar,
body.theme-dark .seller-metric-card,
body.theme-dark .seller-panel,
body.theme-dark .seller-insight-strip,
body.theme-dark .seller-order-summary {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

@media (max-width: 1160px) {
  .seller-commandbar,
  .seller-dashboard-layout,
  .seller-toolbar,
  .seller-order-body {
    grid-template-columns: 1fr;
  }

  .seller-money-sidebar {
    position: static;
  }

  .seller-tabs {
    position: static;
  }

  .order-money,
  .seller-actions {
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .seller-overview-grid,
  .seller-insight-strip,
  .seller-order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-insight-strip > div,
  .seller-order-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .seller-order-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .seller-insight-strip > div:last-child {
    border-bottom: 0;
  }

  .seller-filter-bar,
  .order-buyer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .seller-overview-grid,
  .seller-insight-strip,
  .seller-order-summary,
  .listing-analytics,
  .seller-money-panel form,
  .seller-order-items .seller-order-item-row {
    grid-template-columns: 1fr;
  }

  .seller-mode-switcher {
    width: 100%;
  }

  .seller-mode-switcher button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .seller-insight-strip > div,
  .seller-order-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .seller-insight-strip > div:last-child,
  .seller-order-summary > div:last-child {
    border-bottom: 0;
  }

  .seller-workspace-head,
  .seller-details-head,
  .seller-panel-head,
  .seller-order-top,
  .seller-order-toggle {
    display: grid;
  }

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

  .seller-order-toggle-meta {
    justify-items: start;
    min-width: 0;
  }

  .seller-timeframe-select {
    width: 100%;
  }

  .seller-order-game {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .seller-order-thumb {
    width: 56px;
  }

  .seller-order-game-head {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .seller-order-items .seller-order-item-row .outline-button {
    width: 100%;
  }

  .seller-listing {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .seller-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-items: stretch;
  }

  .seller-action-row {
    justify-content: stretch;
    white-space: normal;
  }

  .seller-action-row > * {
    flex: 1;
  }

  .promotion-package-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--ink);
    box-shadow: none;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .app-header.mobile-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .app-header.mobile-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .app-header.mobile-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .top-nav,
  .account-zone {
    display: none;
  }

  .app-header.mobile-open .top-nav,
  .app-header.mobile-open .account-zone {
    grid-column: 1 / -1;
    display: grid;
    width: 100%;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  }

  body.theme-dark .app-header.mobile-open .top-nav,
  body.theme-dark .app-header.mobile-open .account-zone {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  }

  .app-header.mobile-open .top-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-header.mobile-open .account-zone {
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
    gap: 8px;
    margin-top: -2px;
  }

  .app-header.mobile-open .nav-link,
  .app-header.mobile-open .account-zone button {
    width: 100%;
    min-height: 44px;
  }

  .app-header.mobile-open .nav-link {
    justify-content: center;
    background: var(--panel-2);
    border-color: var(--line);
  }

  .app-header.mobile-open .nav-link.is-active {
    border-color: var(--teal);
  }

  .app-header.mobile-open .account-pill {
    justify-content: flex-start;
  }

  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .conversation-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .message-compose-form,
  .message-reply-form,
  .recipient-search-box {
    grid-template-columns: 1fr;
  }

  .message-thread {
    min-height: 520px;
  }

  .message-bubble {
    width: 94%;
  }

  .system-message-card {
    grid-template-columns: 1fr;
  }

  .system-offer-actions {
    justify-content: stretch;
  }

  .system-offer-actions .solid-button,
  .system-offer-actions .outline-button {
    flex: 1 1 140px;
  }

  .selected-recipient,
  .recipient-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .selected-recipient .compact-button,
  .recipient-result b {
    grid-column: 2;
    justify-self: start;
  }

  .tracking-summary {
    grid-template-columns: 1fr;
  }

  .seller-origin-fields {
    grid-template-columns: 1fr;
  }

  .order-head-button,
  .order-item-row,
  .order-item-actions {
    align-items: stretch;
  }

  .order-item-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .return-status-row {
    justify-content: flex-start;
  }

  .return-unavailable-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark img {
    width: 18px;
    height: 18px;
  }

  .app-header.mobile-open .top-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .home-shell,
  .page-shell,
  .narrow-shell,
  .app-footer {
    width: min(100% - 20px, 1220px);
  }

  .page-shell {
    padding-top: 24px;
    padding-bottom: 54px;
  }

  .section-head {
    gap: 10px;
    margin: 16px 0 12px;
  }

  .filter-bar,
  .seller-filter-bar,
  .sell-form,
  .sell-step-panel,
  .image-source-grid,
  .settings-grid,
  .seller-settings-grid,
  .seller-profile-grid,
  .cart-layout,
  .cart-layout-checkout-open,
  .product-page,
  .seller-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .seller-filter-bar,
  .sell-form,
  .settings-card,
  .checkout-panel,
  .product-panel,
  .cart-item,
  .profile-hero {
    padding: 14px;
  }

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

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 12px;
  }

  .game-cover-detail {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .product-lightbox-dialog {
    width: min(100vw - 16px, 1100px);
    padding: 10px;
  }

  .product-lightbox-media {
    min-height: min(66vh, 620px);
  }

  .lightbox-nav {
    width: 40px;
    height: 54px;
    font-size: 2rem;
  }

  .product-price {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .app-footer {
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
  }

.app-footer nav {
    gap: 8px 12px;
  }
}

.collection-page .section-head h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.collection-summary {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.collection-summary div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.collection-summary span,
.collection-summary small {
  color: var(--muted);
  font-weight: 850;
}

.collection-summary strong {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.9;
}

.collection-progress {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.collection-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.collection-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.collection-sheet {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.collection-sheet-row {
  display: grid;
  grid-template-columns: 86px minmax(260px, 1.35fr) 140px minmax(320px, 2fr) 118px;
  min-width: 1010px;
  align-items: center;
  gap: 0;
  min-height: 48px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.collection-sheet-row > * {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.collection-sheet-row > :last-child {
  border-right: 0;
}

.collection-sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  background: var(--panel-2);
}

.collection-sheet-head > * {
  min-height: 42px;
}

.collection-sheet-row.is-owned {
  background: rgba(79, 175, 103, 0.2);
}

.collection-sheet-row.is-owned > * {
  border-color: rgba(79, 175, 103, 0.25);
}

.collection-sheet-row input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
}

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

.collection-list-button {
  width: 100%;
  min-height: 34px;
}

.offer-modal textarea {
  min-height: 96px;
}

.offer-notice-list {
  display: grid;
  gap: 12px;
  max-height: min(70vh, 620px);
  overflow: auto;
}

.offer-notice-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.offer-notice-card.accepted {
  border-color: rgba(79, 175, 103, 0.45);
}

.offer-notice-card.declined {
  border-color: rgba(232, 168, 79, 0.45);
}

.offer-notice-card img,
.offer-notice-card .mini-cover,
.offer-card .mini-cover {
  width: 74px;
  height: 88px;
  object-fit: cover;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 950;
}

.offer-card .mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .collection-toolbar {
    grid-template-columns: 1fr;
  }

  .collection-summary div:first-child {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 540px) {
  .profile-stats,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .cart-title,
  .product-title,
  .seller-listing-title-row {
    overflow-wrap: anywhere;
  }

  .settings-row,
  .order-money span,
  .order-money strong {
    display: grid;
    justify-content: stretch;
  }
}
