:root {
  --white: #ffffff;
  --black: #000000;
  --ink: #111111;
  --muted: #6b7280;
  --border: #ececec;
  --soft: #f7f7f6;
  --accent: #2563eb;
  --accent-soft: #eff5ff;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.055);
  --shadow-float: 0 22px 64px rgba(0, 0, 0, 0.09);
  --container: min(1440px, calc(100vw - 64px));
  --transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--black);
  font-family: "Onest", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

img,
svg {
  display: block;
}

::selection {
  color: #fff;
  background: var(--black);
}

.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;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-line {
  position: absolute;
  bottom: 56px;
  width: 112px;
  height: 1px;
  overflow: hidden;
  background: var(--border);
}

.loading-line span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--black);
  animation: loading 900ms ease-in-out infinite;
}

@keyframes loading {
  from { transform: translateX(-105%); }
  to { transform: translateX(340%); }
}

.brand-logo {
  flex: 0 0 auto;
  width: 116px;
  height: 38px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo--loader,
.brand-logo--footer {
  width: 222px;
  height: 74px;
}

.brand-logo--loader img,
.brand-logo--footer img {
  object-position: center;
}

.brand-button {
  display: block;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 72px;
  border-bottom: 1px solid rgba(236, 236, 236, 0.88);
  background: rgba(255, 255, 255, 0.97);
}

.nav-shell {
  display: grid;
  grid-template-columns: 250px minmax(260px, 560px) 1fr;
  align-items: center;
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  gap: 24px;
}

.nav-search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  gap: 10px;
  color: var(--muted);
  cursor: text;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-search:hover {
  border-color: #dcdcdc;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.nav-link { white-space: nowrap; }

.nav-search span {
  flex: 1;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keyboard-key {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 24px;
  padding: 0 6px;
  color: #9a9a9a;
  font-size: 11px;
  border: 1px solid #e3e3e3;
  border-radius: 7px;
  background: #fff;
}

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

.nav-link,
.icon-button,
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  cursor: pointer;
  border-radius: 999px;
  background: transparent;
  transition: background var(--transition), transform var(--transition);
}

.nav-link {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover,
.icon-button:hover,
.profile-button:hover {
  background: var(--soft);
}

.icon-button {
  position: relative;
  width: 40px;
  padding: 0;
}

.icon-button:active,
.profile-button:active,
.button:active {
  transform: scale(0.97);
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--accent);
}

.profile-button {
  width: 40px;
  padding: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  background: #111;
}

.avatar--large {
  width: 72px;
  height: 72px;
  font-size: 20px;
}

.avatar--xl {
  width: 112px;
  height: 112px;
  font-size: 34px;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

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

.hero {
  position: relative;
  min-height: 720px;
  padding: 112px 0 80px;
  overflow: hidden;
}

.hero-copy {
  grid-column: span 7;
  align-self: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #111;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(58px, 6vw, 102px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
  color: var(--muted);
}

.hero-description {
  max-width: 550px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button--primary {
  color: #fff;
  background: var(--black);
}

.button--primary:hover {
  background: #252525;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.button--secondary {
  border-color: var(--border);
  background: #fff;
}

.button--secondary:hover {
  border-color: #d8d8d8;
  box-shadow: var(--shadow-soft);
}

.button--accent {
  color: #fff;
  background: var(--accent);
}

.button--accent:hover {
  background: #1f57d2;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.24);
}

.button--wide {
  width: 100%;
}

.button--small {
  min-height: 40px;
  padding: 0 15px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 62px;
  color: var(--muted);
  font-size: 12px;
}

.face-stack {
  display: flex;
}

.face-stack span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -7px;
  color: #fff;
  font-size: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111;
}

.face-stack span:first-child {
  margin-left: 0;
  background: #323232;
}

.face-stack span:nth-child(2) { background: #6f6f6f; }
.face-stack span:nth-child(3) { background: #a3a3a3; color: #111; }

.hero-showcase {
  grid-column: 8 / span 5;
  position: relative;
  min-height: 520px;
}

.showcase-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-float);
}

.showcase-card--main {
  top: 24px;
  right: 4%;
  width: min(390px, 90%);
  padding: 12px;
  transform: rotate(2.2deg);
  animation: float-main 7s ease-in-out infinite;
}

.showcase-card--small {
  left: 0;
  bottom: 58px;
  width: 218px;
  padding: 10px;
  transform: rotate(-4deg);
  animation: float-small 8s ease-in-out infinite;
}

@keyframes float-main {
  0%, 100% { transform: translateY(0) rotate(2.2deg); }
  50% { transform: translateY(-10px) rotate(1.3deg); }
}

@keyframes float-small {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(9px) rotate(-2.8deg); }
}

.showcase-cover {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 32px;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  color: #fff;
}

.showcase-cover::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.showcase-cover strong {
  max-width: 230px;
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 5px;
  gap: 16px;
}

.showcase-meta strong,
.showcase-meta span {
  display: block;
}

.showcase-meta strong { font-size: 14px; }
.showcase-meta span { color: var(--muted); font-size: 12px; }

.showcase-price {
  font-size: 16px !important;
  font-weight: 600;
  color: #111 !important;
}

.small-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #f1f1ef;
}

.small-cover-mark {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  gap: 5px;
}

.small-cover-mark i {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 10px;
  background: #111;
}

.small-cover-mark i:nth-child(2),
.small-cover-mark i:nth-child(3) {
  background: var(--accent);
}

.trust-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-line div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #555;
  font-size: 13px;
}

.section {
  padding: 124px 0;
}

.section--compact {
  padding: 88px 0;
}

.section--soft {
  background: #fafaf9;
}

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

.section-head h2,
.page-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.section-head p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  color: #111;
  font-weight: 600;
  background: transparent;
}

.text-link svg {
  transition: transform var(--transition);
}

.text-link:hover svg {
  transform: translateX(3px);
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 158px;
  padding: 20px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card:hover {
  border-color: #d8d8d8;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fbfbfb;
}

.category-card strong {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

.category-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  cursor: pointer;
  color: #565656;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  border-color: #111;
  background: #111;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
  margin-top: 34px;
}

.product-card {
  min-width: 0;
}

.product-cover {
  position: relative;
  aspect-ratio: 1.14 / 1;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #f4f4f2;
  transform: translateZ(0);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover .product-cover {
  border-color: #dfdfdf;
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.cover-art {
  position: absolute;
  inset: 0;
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cover-art--image { overflow: hidden; }
.cover-art--image img { width: 100%; height: 100%; object-fit: cover; }

.product-card:hover .cover-art {
  transform: scale(1.018);
}

.wishlist-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), color var(--transition);
}

.wishlist-button:hover { transform: scale(1.06); }
.wishlist-button.is-active { color: var(--accent); }
.wishlist-button.is-active svg { fill: currentColor; }

.cover-label {
  position: absolute;
  top: 24px;
  left: 24px;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cover-title {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 78%;
  margin: 0;
  font-size: clamp(24px, 2.3vw, 39px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.cover-art--dark {
  color: #fff;
  background: #111;
}

.cover-art--dark::after {
  content: "";
  position: absolute;
  top: 23%;
  right: 18%;
  width: 30%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
}

.cover-art--grid {
  background-color: #f2f2ef;
}

.grid-bars {
  position: absolute;
  inset: 0;
}

.grid-bars i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #dbdbd7;
}

.cover-art--grid .cover-title {
  padding: 10px;
  background: #f2f2ef;
}

.cover-art--blue {
  color: #fff;
  background: var(--accent);
}

.cover-art--blue::before,
.cover-art--blue::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
}

.cover-art--blue::before { width: 42%; aspect-ratio: 1; right: -5%; top: 16%; }
.cover-art--blue::after { width: 18%; aspect-ratio: 1; right: 29%; top: 34%; }

.cover-art--type {
  background: #fff;
}

.giant-type {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: clamp(96px, 11vw, 174px);
  letter-spacing: -0.11em;
  line-height: 1;
}

.cover-art--blocks {
  background: #e9e9e6;
}

.cover-block {
  position: absolute;
  border: 1px solid #111;
  background: #fff;
}

.cover-block--one { width: 47%; height: 58%; left: 14%; top: 15%; border-radius: 50% 50% 22px 22px; }
.cover-block--two { width: 32%; height: 37%; right: 12%; bottom: 14%; border-radius: 22px; background: #111; }

.cover-art--wave {
  color: #fff;
  background: #111;
}

.wave {
  position: absolute;
  inset: 35% 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.wave i {
  width: 2px;
  height: 20%;
  border-radius: 4px;
  background: #fff;
}

.wave i:nth-child(2n) { height: 75%; }
.wave i:nth-child(3n) { height: 40%; }
.wave i:nth-child(5n) { height: 100%; }

.cover-art--editorial {
  background: #f0f0ed;
}

.edition-number {
  position: absolute;
  right: 18px;
  bottom: 3px;
  color: #d1d1cd;
  font-size: clamp(120px, 14vw, 210px);
  font-weight: 600;
  letter-spacing: -0.1em;
  line-height: .72;
}

.cover-art--photo {
  background: #d7d7d4;
}

.photo-disc {
  position: absolute;
  top: 15%;
  left: 21%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #111;
}

.photo-disc::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: #d7d7d4;
}

.product-info {
  padding: 16px 4px 0;
}

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

.product-title {
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.product-price {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
}

.product-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  background: transparent;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: #fff;
  border-radius: 50%;
  background: var(--accent);
}

.product-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}

.product-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-category {
  margin-left: auto;
  padding: 4px 8px;
  color: #555;
  border-radius: 999px;
  background: #f4f4f3;
}

.feature-banner {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
  color: #fff;
}

.feature-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 700px;
  min-height: 520px;
  padding: 74px;
}

.feature-banner h2 {
  margin: auto 0 22px;
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: .98;
}

.feature-banner p {
  max-width: 540px;
  margin: 0 0 30px;
  color: #aaa;
  font-size: 17px;
}

.feature-banner .button {
  color: #111;
  background: #fff;
}

.feature-orbits {
  position: absolute;
  top: 50%;
  right: -7%;
  width: 43%;
  aspect-ratio: 1;
  border: 1px solid #3b3b3b;
  border-radius: 50%;
  transform: translateY(-50%);
}

.feature-orbits::before,
.feature-orbits::after {
  content: "";
  position: absolute;
  border: 1px solid #3b3b3b;
  border-radius: 50%;
}

.feature-orbits::before { inset: 16%; }
.feature-orbits::after { inset: 34%; background: var(--accent); border: 0; }

.creator-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.creator-card {
  display: flex;
  align-items: center;
  padding: 24px;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.creator-card:hover {
  border-color: #d9d9d9;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.creator-info { flex: 1; min-width: 0; }
.creator-info strong { display: flex; align-items: center; gap: 5px; }
.creator-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.creator-stat { text-align: right; font-size: 13px; font-weight: 600; }
.creator-stat small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }

.site-footer {
  padding: 112px 0 38px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 6fr repeat(3, 2fr);
  gap: 24px;
  padding-bottom: 96px;
}

.footer-brand p {
  max-width: 360px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer-column h3 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column button {
  display: block;
  margin: 11px 0;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  background: transparent;
}

.footer-column a:hover,
.footer-column button:hover { color: #111; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  color: #8a8a8a;
  font-size: 11px;
  border-top: 1px solid var(--border);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27a567;
}

/* Overlay and search */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 24px 24px;
  background: rgba(255, 255, 255, 0.86);
  animation: overlay-in var(--transition) both;
}

.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.08);
}

@keyframes overlay-in { from { opacity: 0; } }

.search-modal {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.15);
  animation: modal-in 240ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(-10px) scale(.985); }
}

.search-modal-head {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.search-modal-head input {
  flex: 1;
  height: 100%;
  color: #111;
  font-size: 18px;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-modal-head input::placeholder { color: #a4a4a4; }

.search-close {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  cursor: pointer;
  color: #777;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.search-content {
  max-height: min(620px, calc(100vh - 210px));
  overflow-y: auto;
  padding: 16px;
}

.search-section + .search-section { margin-top: 22px; }
.search-section-title { margin: 0 0 8px 10px; color: #888; font-size: 10px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }

.search-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  border-radius: 12px;
  background: transparent;
}

.search-option:hover { background: #f6f6f5; }
.search-option-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; color: #555; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.search-option-copy { flex: 1; min-width: 0; }
.search-option-copy strong { display: block; font-size: 13px; font-weight: 500; }
.search-option-copy span { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.search-option-arrow { color: #aaa; }
.ai-mark { color: var(--accent); }

.popover {
  position: fixed;
  z-index: 150;
  top: 64px;
  right: max(32px, calc((100vw - min(1440px, calc(100vw - 64px))) / 2 + 42px));
  width: 354px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(0,0,0,.12);
  animation: modal-in 180ms ease both;
}

.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 12px; }
.popover-head strong { font-size: 14px; }
.popover-head button { padding: 0; color: var(--accent); font-size: 11px; cursor: pointer; background: transparent; }
.notice { display: flex; gap: 11px; padding: 11px 10px; border-radius: 12px; }
.notice:hover { background: #f7f7f6; }
.notice-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #f1f1ef; }
.notice-copy strong { display: block; font-size: 12px; font-weight: 600; }
.notice-copy p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notice-copy time { display: block; margin-top: 5px; color: #aaa; font-size: 9px; }

.toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 12px 38px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Inner pages */
.page-shell {
  min-height: calc(100vh - 72px);
  padding: 64px 0 120px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  background: transparent;
}

.back-button:hover { color: #111; }

.product-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 34px 0 42px;
  gap: 24px;
}

.product-page-head h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.product-page-meta { display: flex; align-items: center; gap: 14px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.product-page-meta button { padding: 0; color: inherit; cursor: pointer; background: transparent; }

.share-actions { display: flex; gap: 8px; }
.share-actions .icon-button { border: 1px solid var(--border); }

.product-detail-layout {
  align-items: start;
}

.product-gallery {
  grid-column: span 8;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #111;
}

.gallery-main .cover-art { transform: none !important; }
.gallery-main .cover-title { font-size: clamp(42px, 6vw, 88px); left: 6%; bottom: 7%; }
.gallery-main .cover-label { top: 6%; left: 6%; }

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

.gallery-thumb {
  position: relative;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f3f3f0;
}

.gallery-thumb--spec { padding: 24px; }
.gallery-thumb--spec strong { position: absolute; left: 20px; bottom: 18px; font-size: 19px; line-height: 1.1; }
.gallery-thumb--spec span { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.gallery-thumb--black { color: #fff; background: #111; }
.gallery-thumb--blue { color: #fff; background: var(--accent); }

.purchase-panel {
  position: sticky;
  top: 96px;
  grid-column: 9 / span 4;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.purchase-price { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.purchase-price strong { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.purchase-price span { color: var(--muted); font-size: 11px; }
.license-select { width: 100%; height: 48px; margin: 22px 0 12px; padding: 0 14px; border: 1px solid var(--border); border-radius: 14px; outline: 0; background: #fafafa; }
.purchase-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 2px 0; color: var(--muted); font-size: 11px; }
.purchase-list { margin: 23px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); }
.purchase-list div { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 12px; }
.purchase-list div:first-child { margin-top: 0; }
.purchase-list strong { color: #111; font-weight: 500; }

.product-body {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 24px;
  margin-top: 72px;
}

.product-copy { padding-right: 6%; }
.product-copy h2 { margin: 0 0 22px; font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.product-copy p { margin: 0; color: #555; font-size: 16px; line-height: 1.8; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 34px 0 64px; }
.feature-item { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.feature-item svg { margin-bottom: 28px; }
.feature-item strong { display: block; font-size: 14px; }
.feature-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 22px 0; cursor: pointer; text-align: left; font-weight: 500; background: transparent; }
.accordion-content { display: none; max-width: 720px; padding: 0 34px 22px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.accordion-item.is-open .accordion-content { display: block; }
.accordion-item.is-open .accordion-button svg { transform: rotate(45deg); }
.accordion-button svg { transition: transform var(--transition); }

.side-details { align-self: start; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.side-details h3 { margin: 0 0 18px; font-size: 14px; }
.side-detail-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
.side-detail-row strong { color: #111; font-weight: 500; }

/* Seller profile */
.seller-hero {
  margin-top: 32px;
  padding-top: 150px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background-color: #f4f4f1;
}

.seller-hero-inner {
  display: flex;
  align-items: flex-end;
  margin: 0 -1px -1px;
  padding: 0 38px 32px;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
}

.seller-hero-inner .avatar { margin-top: -44px; }
.seller-main-info { flex: 1; padding-top: 28px; }
.seller-name { display: flex; align-items: center; gap: 7px; }
.seller-name h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.seller-main-info p { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.seller-actions { display: flex; gap: 8px; }

.seller-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 70px; }
.seller-stat { padding: 23px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.seller-stat strong { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.seller-stat span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

/* Checkout */
.checkout-page { background: #fafaf9; }
.checkout-shell { width: min(1120px, calc(100vw - 48px)); margin: 0 auto; padding: 40px 0 100px; }
.checkout-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 56px; }
.secure-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.checkout-grid { display: grid; grid-template-columns: 7fr 5fr; align-items: start; gap: 64px; }
.checkout-form h1 { margin: 0 0 10px; font-size: 44px; font-weight: 500; letter-spacing: -.05em; }
.checkout-form > p { margin: 0 0 40px; color: var(--muted); }
.form-section { margin-top: 34px; }
.form-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; }
.step-number { display: grid; place-items: center; width: 23px; height: 23px; color: #fff; font-size: 10px; border-radius: 50%; background: #111; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: block; margin-top: 12px; }
.field:first-child { margin-top: 0; }
.field span { display: block; margin: 0 0 7px 3px; color: #555; font-size: 11px; }
.field input,
.field select { width: 100%; height: 48px; padding: 0 14px; color: #111; border: 1px solid var(--border); border-radius: 13px; outline: 0; background: #fff; transition: border-color var(--transition), box-shadow var(--transition); }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus,
.field select:focus { border-color: #b6c9f6; box-shadow: 0 0 0 3px var(--accent-soft); }
.field--wide { grid-column: 1 / -1; }
.payment-choice { display: flex; align-items: center; min-height: 58px; padding: 0 16px; gap: 12px; border: 1px solid var(--accent); border-radius: 14px; background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.radio-mark { width: 16px; height: 16px; border: 5px solid var(--accent); border-radius: 50%; }
.payment-choice strong { font-size: 13px; }
.payment-icons { display: flex; gap: 5px; margin-left: auto; }
.payment-icons span { display: grid; place-items: center; min-width: 34px; height: 22px; padding: 0 5px; font-size: 8px; font-weight: 700; border: 1px solid var(--border); border-radius: 5px; }
.license-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.license-check input { margin-top: 2px; accent-color: var(--accent); }

.order-card { position: sticky; top: 32px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.order-card h2 { margin: 0 0 22px; font-size: 18px; font-weight: 500; }
.order-product { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.order-thumb { position: relative; aspect-ratio: 1.1 / 1; overflow: hidden; border-radius: 14px; }
.order-thumb .cover-title { left: 10px; bottom: 10px; font-size: 15px; }
.order-product-copy strong { display: block; font-size: 13px; }
.order-product-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.order-product-price { margin-top: 19px !important; color: #111 !important; font-size: 14px !important; font-weight: 600; }
.order-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 12px; }
.order-row strong { color: #111; font-weight: 500; }
.order-total { margin-top: 20px; padding-top: 18px; font-size: 15px; border-top: 1px solid var(--border); }
.order-total strong:last-child { font-size: 22px; }
.order-card .button { margin-top: 24px; }

.success-card { width: min(560px, 100%); margin: 40px auto 0; padding: 48px; text-align: center; border: 1px solid var(--border); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; color: #fff; border-radius: 50%; background: var(--accent); }
.success-card h1 { margin: 0; font-size: 36px; font-weight: 500; letter-spacing: -.04em; }
.success-card p { margin: 14px auto 28px; color: var(--muted); line-height: 1.65; }

/* Authentication */
.auth-page {
  display: grid;
  grid-template-columns: minmax(480px, .9fr) minmax(520px, 1.1fr);
  min-height: 100vh;
  background: #fff;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
}

.auth-logo {
  position: absolute;
  top: 32px;
  left: 42px;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.auth-copy > p:last-child {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  margin-top: 0;
}

.auth-form .button {
  margin-top: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  gap: 12px;
  color: #aaa;
  font-size: 10px;
}

.auth-providers {
  display: grid;
  margin-top: 36px;
  gap: 10px;
}

.auth-provider {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  min-height: 62px;
  padding: 0 16px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.auth-provider:hover {
  transform: translateY(-1px);
  border-color: #d5d5d5;
  box-shadow: 0 12px 28px rgba(17, 17, 17, .055);
}

.auth-provider:disabled { cursor: wait; opacity: .65; }
.auth-provider > span:nth-child(2) { display: grid; gap: 3px; }
.auth-provider strong { font-size: 12px; font-weight: 600; }
.auth-provider small { color: var(--muted); font-size: 9px; }
.auth-provider > svg { color: #a0a0a0; transition: transform var(--transition); }
.auth-provider:hover > svg { transform: translateX(2px); }

.auth-provider-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fafafa;
}

.auth-provider-mark--google {
  color: #4285f4;
  font-size: 17px;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

.auth-provider-mark--telegram { color: #229ed9; }
.auth-provider-mark--telegram svg { width: 21px; height: 21px; fill: currentColor; }
.auth-provider.is-loading > svg { animation: auth-provider-pulse .8s ease-in-out infinite alternate; }

@keyframes auth-provider-pulse {
  to { transform: translateX(4px); opacity: .35; }
}

.telegram-login-panel {
  display: grid;
  grid-template-columns: 38px minmax(120px, 1fr) auto;
  min-height: 66px;
  padding: 0 14px 0 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.telegram-login-copy { display: grid; gap: 3px; }
.telegram-login-copy strong { font-size: 12px; font-weight: 600; }
.telegram-login-copy small { color: var(--muted); font-size: 9px; }
.telegram-login-slot { display: flex; min-width: 170px; align-items: center; justify-content: flex-end; }
.telegram-login-slot iframe { max-width: 100%; }

@media (max-width: 520px) {
  .telegram-login-panel { grid-template-columns: 38px minmax(0, 1fr); padding: 14px 16px; }
  .telegram-login-slot { grid-column: 1 / -1; min-width: 0; justify-content: center; }
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-legal {
  margin: 22px 24px 0;
  color: #999;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.auth-aside {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 24px);
  margin: 12px;
  padding: 64px;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  background: #111;
}

.auth-quote {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.auth-quote-mark {
  display: block;
  height: 44px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 78px;
  line-height: 1;
}

.auth-quote blockquote {
  margin: 24px 0;
  font-size: clamp(30px, 3vw, 50px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.auth-quote p {
  margin: 0;
  color: #999;
  font-size: 12px;
}

.auth-orbit {
  position: absolute;
  border: 1px solid #383838;
  border-radius: 50%;
}

.auth-orbit--one {
  top: -15%;
  right: -8%;
  width: 66%;
  aspect-ratio: 1;
}

.auth-orbit--two {
  top: 9%;
  right: 12%;
  width: 28%;
  aspect-ratio: 1;
  background: var(--accent);
  border: 0;
}

/* Dashboard */
.dashboard-page { min-height: calc(100vh - 72px); background: #fafaf9; }
.dashboard-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.dashboard-sidebar { padding: 32px 20px; border-right: 1px solid var(--border); background: #fff; }
.workspace { display: flex; align-items: center; gap: 10px; margin: 0 6px 32px; }
.workspace-logo { display: grid; place-items: center; width: 68px; height: 34px; }
.workspace-logo img { width: 100%; height: auto; object-fit: contain; }
.workspace strong { display: block; font-size: 12px; }
.workspace span { display: block; color: var(--muted); font-size: 9px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav button { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 0 12px; gap: 10px; cursor: pointer; color: #666; font-size: 12px; text-align: left; border-radius: 11px; background: transparent; }
.side-nav button:hover,
.side-nav button.is-active { color: #111; background: #f4f4f2; }
.side-nav-label { margin: 26px 12px 8px; color: #aaa; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-help { margin-top: 44px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.sidebar-help strong { display: block; font-size: 11px; }
.sidebar-help p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.sidebar-help button { padding: 0; cursor: pointer; color: var(--accent); font-size: 10px; background: transparent; }

.dashboard-main { min-width: 0; padding: 46px 48px 80px; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; gap: 24px; }
.dashboard-head h1 { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.dashboard-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.date-filter { display: flex; align-items: center; min-height: 40px; padding: 0 13px; gap: 8px; color: #555; font-size: 11px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #555; border-radius: 9px; background: #f4f4f2; }
.metric-card strong { display: block; margin-top: 22px; font-size: 25px; font-weight: 500; letter-spacing: -.04em; }
.metric-change { display: inline-flex; align-items: center; margin-top: 3px; color: #27815c; font-size: 9px; }
.metric-change.is-down { color: #9b5d4a; }

.dashboard-panels { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 12px; margin-top: 12px; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.panel-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.panel-legend::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chart { position: relative; display: flex; align-items: flex-end; height: 218px; margin-top: 22px; padding: 0 4px 25px; gap: 8px; border-bottom: 1px solid var(--border); }
.chart::before { content: ""; position: absolute; z-index: 0; inset: 0 0 auto; height: 1px; background: #f0f0f0; box-shadow: 0 48px #f0f0f0, 0 96px #f0f0f0, 0 144px #f0f0f0; }
.bar-group { position: relative; display: flex; flex: 1; align-items: flex-end; height: 100%; }
.bar { width: 100%; min-height: 4px; border-radius: 6px 6px 1px 1px; background: #111; transition: background var(--transition), height 600ms cubic-bezier(.2,.8,.2,1); }
.bar:hover { background: var(--accent); }
.bar-label { position: absolute; left: 50%; bottom: -22px; color: #aaa; font-size: 8px; transform: translateX(-50%); }

.top-product { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.top-product:last-child { border-bottom: 0; }
.top-product-thumb { position: relative; flex: 0 0 auto; width: 43px; height: 38px; overflow: hidden; border-radius: 8px; background: #111; }
.top-product-thumb.is-blue { background: var(--accent); }
.top-product-thumb.is-light { background: #e7e7e4; }
.top-product-copy { flex: 1; min-width: 0; }
.top-product-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.top-product-copy span { display: block; color: var(--muted); font-size: 8px; }
.top-product-value { font-size: 10px; font-weight: 600; }

.orders-panel { margin-top: 12px; }
.table-wrap { margin: 20px -22px -22px; overflow-x: auto; }
.order-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.order-table th { padding: 11px 22px; color: #999; font-size: 8px; font-weight: 500; text-align: left; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fafafa; }
.order-table td { padding: 15px 22px; font-size: 10px; border-bottom: 1px solid var(--border); }
.order-table tr:last-child td { border-bottom: 0; }
.order-person { display: flex; align-items: center; gap: 9px; }
.mini-avatar { display: grid; place-items: center; width: 27px; height: 27px; color: #fff; font-size: 8px; border-radius: 50%; background: #111; }
.status-pill { display: inline-flex; padding: 4px 8px; color: #287657; border-radius: 999px; background: #edf7f2; }

.empty-state { padding: 100px 20px; text-align: center; }
.empty-state-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border: 1px solid var(--border); border-radius: 20px; background: #fafafa; }
.empty-state h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.empty-state p { max-width: 410px; margin: 10px auto 24px; color: var(--muted); }
.premium-seller-grid > .empty-state { grid-column: 1 / -1; width: 100%; }
.panel > .empty-state,
.deal-panel > .empty-state,
.account-balance-panel > .empty-state { padding: 64px 24px; }
.messages-empty-panel { min-height: 520px; }

/* Catalog-first home */
.catalog-home {
  padding: 64px 0 88px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.catalog-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 32px;
}

.catalog-path {
  display: block;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.catalog-home h1 {
  margin: 0;
  font-size: clamp(54px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .88;
}

.catalog-home-head p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 66px;
  padding: 0 18px;
  gap: 13px;
  cursor: text;
  color: #111;
  text-align: left;
  border: 1px solid #dcdcdc;
  border-radius: 18px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.catalog-search:hover {
  border-color: #bdbdbd;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .045);
}

.catalog-search > span {
  flex: 1;
  color: #777;
  font-size: 16px;
}

.catalog-search kbd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #999;
  font-family: inherit;
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.catalog-switcher {
  display: flex;
  align-items: center;
  margin-top: 30px;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.catalog-switcher button {
  position: relative;
  min-height: 48px;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  background: transparent;
}

.catalog-switcher button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: transparent;
}

.catalog-switcher button.is-active { color: #111; }
.catalog-switcher button.is-active::after { background: #111; }
.catalog-switcher button span { margin-left: 5px; color: #999; font-size: 9px; }

.catalog-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--border);
}

.catalog-game {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) 15px;
  align-items: center;
  min-height: 76px;
  padding: 10px 16px;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background var(--transition);
}

.catalog-game:hover { background: #fafafa; }
.catalog-game > svg { color: #aaa; transition: color var(--transition), transform var(--transition); }
.catalog-game:hover > svg { color: #111; transform: translateX(3px); }

.catalog-game-index {
  color: #b5b5b5;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.catalog-game .game-glyph {
  width: 40px;
  height: 40px;
  font-size: 9px;
  border-radius: 12px;
}

.catalog-game:nth-child(5n + 2) .game-glyph,
.catalog-game:nth-child(5n + 4) .game-glyph { color: #111; background: #efefec; }
.catalog-game:nth-child(7n) .game-glyph { color: #fff; background: var(--accent); }

.catalog-game-copy { min-width: 0; }
.catalog-game-copy strong,
.catalog-game-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-game-copy strong { font-size: 10px; font-weight: 600; }
.catalog-game-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.catalog-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0;
  gap: 8px;
  cursor: pointer;
  color: #111;
  font-size: 10px;
  font-weight: 600;
  background: transparent;
}

.seller-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 0;
  gap: 32px;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.seller-callout span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.seller-callout h3 {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.seller-callout p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }

/* Transactional marketplace */
.balance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  gap: 7px;
  cursor: pointer;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.balance-pill:hover {
  border-color: #d5d5d5;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.game-directory-section { border-top: 1px solid var(--border); }
.game-directory-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game-tile {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.game-tile:hover { border-color: #d9d9d9; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.game-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
  border-radius: 13px;
  background: #111;
}
.game-tile:nth-child(3n + 2) .game-glyph { color: #111; background: #f0f0ed; }
.game-tile:nth-child(4n) .game-glyph { background: var(--accent); }
.game-tile strong { display: block; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.game-tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.game-directory-counts { display: flex; align-items: center; margin-top: 18px; gap: 24px; color: var(--muted); font-size: 10px; }
.game-directory-counts strong { margin-right: 4px; color: #111; font-size: 12px; }
.game-directory-counts .text-link { margin-left: auto; }

.game-overlay { align-items: center; padding: 34px; }
.game-directory-modal {
  position: relative;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: min(820px, calc(100vh - 68px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .14);
}
.game-modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 30px 20px; gap: 24px; }
.game-modal-head h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.game-modal-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.game-modal-head button,
.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: #555;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  transform: rotate(45deg);
}
.game-search { display: flex; align-items: center; height: 48px; margin: 0 30px; padding: 0 15px; gap: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 14px; background: #fafafa; }
.game-search:focus-within { color: #111; border-color: #c9d6f4; box-shadow: 0 0 0 3px var(--accent-soft); }
.game-search input { width: 100%; color: #111; border: 0; outline: 0; background: transparent; }
.game-search > span { flex: 0 0 auto; font-size: 9px; }
.game-tabs { display: flex; padding: 18px 30px 12px; gap: 8px; overflow-x: auto; }
.game-tabs button { min-height: 34px; padding: 0 13px; cursor: pointer; color: var(--muted); font-size: 10px; white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.game-tabs button span { margin-left: 5px; opacity: .65; }
.game-tabs button.is-active { color: #fff; border-color: #111; background: #111; }
.game-directory-list { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; padding: 8px 30px 24px; gap: 8px; overflow-y: auto; }
.game-directory-item { display: flex; align-items: center; min-height: 58px; padding: 8px 10px; gap: 10px; cursor: pointer; text-align: left; border: 1px solid transparent; border-radius: 13px; background: #fff; }
.game-directory-item:hover { border-color: var(--border); background: #fafafa; }
.game-directory-item .game-glyph { width: 38px; height: 38px; font-size: 10px; border-radius: 11px; }
.game-directory-item strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.game-directory-item span:last-child { min-width: 0; }
.game-directory-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.game-no-results { grid-column: 1 / -1; padding: 70px 20px; color: var(--muted); text-align: center; }
.game-modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px; color: var(--muted); font-size: 9px; border-top: 1px solid var(--border); }

.payment-methods { display: grid; gap: 9px; }
.payment-choice {
  width: 100%;
  cursor: pointer;
  text-align: left;
  border-color: var(--border);
  box-shadow: none;
}
.payment-choice:hover { border-color: #d0d0d0; }
.payment-choice.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.payment-choice:disabled { cursor: not-allowed; opacity: .48; }
.payment-choice > span:nth-child(2) { min-width: 0; }
.payment-choice strong,
.payment-choice small { display: block; }
.payment-choice small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 400; }
.payment-choice .radio-mark { flex: 0 0 auto; border: 1px solid #cfcfcf; }
.payment-choice.is-active .radio-mark { border: 5px solid var(--accent); }
.payment-balance { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; color: #555; border-radius: 9px; background: #f4f4f2; }
.balance-payment-note { display: flex; align-items: flex-start; margin: 14px 2px 0; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* Unified personal account */
.unified-badge { display: inline-flex; align-items: center; margin: -18px 6px 20px; padding: 7px 9px; gap: 6px; color: var(--accent); font-size: 9px; font-weight: 600; border-radius: 8px; background: var(--accent-soft); }
.side-nav button { position: relative; }
.side-badge { display: grid; place-items: center; min-width: 19px; height: 19px; margin-left: auto; padding: 0 5px; color: #666; font-size: 8px; border-radius: 999px; background: #ececea; }
.account-kicker { display: block; margin-bottom: 8px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.account-view { display: grid; gap: 12px; }
.wallet-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 220px;
  padding: 32px;
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  background: #111;
}
.wallet-hero::after { content: "P"; position: absolute; top: -72px; right: 18px; color: #1f1f1f; font-size: 250px; font-weight: 800; letter-spacing: -.1em; }
.wallet-hero > * { position: relative; z-index: 1; }
.wallet-label { display: flex; align-items: center; gap: 7px; color: #aaa; font-size: 10px; }
.wallet-actions { display: flex; gap: 8px; }
.wallet-watermark { display: none; }
.wallet-hero-label { display: flex; align-items: center; gap: 7px; color: #aaa; font-size: 10px; }
.wallet-hero strong { display: block; margin-top: 12px; font-size: clamp(36px, 5vw, 58px); font-weight: 500; letter-spacing: -.055em; }
.wallet-hero p { margin: 8px 0 0; color: #888; font-size: 10px; }
.wallet-hero-actions { display: flex; gap: 8px; }
.wallet-button { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; gap: 7px; cursor: pointer; color: #fff; font-size: 10px; border: 1px solid #393939; border-radius: 11px; background: #191919; }
.wallet-button--light { color: #111; border-color: #fff; background: #fff; }
.account-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.account-metric { min-height: 128px; padding: 18px; cursor: pointer; text-align: left; border: 1px solid var(--border); border-radius: 17px; background: #fff; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.account-metric:hover { border-color: #d7d7d7; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.account-metric-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.account-metric-head span:first-child { display: flex; align-items: center; gap: 6px; }
.account-metric > strong { display: block; margin-top: 26px; font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.account-metric > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.account-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 12px; }
.deal-list,
.money-list { margin-top: 14px; }
.deal-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 14px; align-items: center; width: 100%; padding: 13px 0; gap: 11px; cursor: pointer; text-align: left; border-bottom: 1px solid var(--border); background: transparent; }
.deal-row:last-child,
.money-row:last-child { border-bottom: 0; }
.deal-direction { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 26px; padding: 0 8px; color: #555; font-size: 8px; font-weight: 600; border-radius: 999px; background: #f3f3f1; }
.deal-direction.is-sale { color: #245f4a; background: #edf7f2; }
.deal-copy { min-width: 0; }
.deal-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.deal-copy span,
.deal-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.deal-meta { text-align: right; }
.deal-meta strong { display: block; font-size: 10px; }
.deal-state { display: block; margin: 0; padding: 0; color: #2b7658; text-align: right; background: transparent; }
.deal-state strong { display: block; font-size: 8px; font-weight: 600; white-space: nowrap; }
.deal-state small { display: block; margin-top: 3px; color: #111; font-size: 9px; }
.deal-state.is-waiting { color: #8b672e; background: #f8f3e9; }
.money-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; padding: 12px 0; gap: 10px; border-bottom: 1px solid var(--border); }
.money-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #555; border-radius: 10px; background: #f3f3f1; }
.money-copy strong { display: block; font-size: 9px; }
.money-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.money-value { font-size: 10px; font-weight: 600; }
.money-value.is-plus { color: #247356; }
.money-row > span:nth-child(2) strong { display: block; font-size: 9px; }
.money-row > span:nth-child(2) small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.money-row > b { font-size: 10px; white-space: nowrap; }
.account-table-panel { padding-bottom: 4px; }
.account-table-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 5px; gap: 20px; }
.account-table-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.account-table-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.account-table-head button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; gap: 6px; cursor: pointer; color: #444; font-size: 9px; white-space: nowrap; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.wallet-hero--compact { min-height: 170px; }
.transaction-panel { padding-bottom: 8px; }
.transaction-list { margin-top: 12px; }
.transaction-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; padding: 13px 0; gap: 11px; border-bottom: 1px solid var(--border); }
.transaction-row:last-child { border-bottom: 0; }
.transaction-row .money-value small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; text-align: right; }
.transaction-row > span:nth-child(2) strong { display: block; font-size: 10px; }
.transaction-row > span:nth-child(2) small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.transaction-row > b { font-size: 10px; white-space: nowrap; }

.messages-panel { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 610px; padding: 0; overflow: hidden; }
.chat-list { padding: 14px; border-right: 1px solid var(--border); }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 14px; }
.chat-list-head h2 { margin: 0; font-size: 12px; }
.chat-list-head strong { display: block; font-size: 12px; }
.chat-list-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-preview { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; width: 100%; padding: 11px 9px; gap: 9px; cursor: pointer; text-align: left; border-radius: 11px; background: transparent; }
.chat-preview:hover,
.chat-preview.is-active { background: #f4f4f2; }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; font-size: 9px; font-weight: 700; border-radius: 11px; background: #111; }
.chat-preview-copy { min-width: 0; }
.chat-preview-copy strong,
.chat-preview-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-preview-copy strong { font-size: 9px; }
.chat-preview-copy span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-preview time { color: #aaa; font-size: 7px; }
.chat-preview > span:nth-child(2) { min-width: 0; }
.chat-preview > span:nth-child(2) strong,
.chat-preview > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-preview > span:nth-child(2) strong { font-size: 9px; }
.chat-preview > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.chat-room { display: flex; flex-direction: column; min-width: 0; }
.chat-room-head { display: flex; align-items: center; min-height: 70px; padding: 0 20px; gap: 10px; border-bottom: 1px solid var(--border); }
.chat-room-head > span:nth-child(2) { flex: 1; min-width: 0; }
.chat-room-head strong { display: block; font-size: 11px; }
.chat-room-head small { display: block; margin-top: 3px; color: #2d785b; font-size: 8px; }
.chat-room-head button { margin-left: auto; }
.chat-deal-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 14px 20px 0; padding: 12px 14px; gap: 3px 14px; border: 1px solid var(--border); border-radius: 13px; background: #fafafa; }
.chat-deal-card span { display: block; color: var(--muted); font-size: 8px; }
.chat-deal-card strong { display: block; margin-top: 3px; font-size: 10px; }
.chat-deal-card small { grid-column: 1 / -1; color: #8b672e; font-size: 8px; }
.chat-deal-card button { cursor: pointer; color: var(--accent); font-size: 9px; background: transparent; }
.chat-messages { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding: 24px 20px; gap: 9px; overflow-y: auto; }
.chat-empty-copy { display: grid; place-items: center; align-content: center; flex: 1; min-height: 180px; color: var(--muted); text-align: center; }
.chat-empty-copy strong { color: #111; font-size: 14px; }
.chat-empty-copy span { max-width: 280px; margin-top: 6px; font-size: 10px; line-height: 1.5; }
.chat-bubble { align-self: flex-start; max-width: min(440px, 82%); padding: 11px 13px; color: #333; font-size: 10px; line-height: 1.55; border-radius: 13px 13px 13px 4px; background: #f1f1ef; }
.chat-bubble.is-mine,
.chat-bubble.is-own { align-self: flex-end; color: #fff; border-radius: 13px 13px 4px; background: #111; }
.chat-bubble p { margin: 0; }
.chat-bubble time { display: block; margin-top: 4px; color: #999; font-size: 7px; }
.chat-bubble.is-mine time,
.chat-bubble.is-own time { color: #777; text-align: right; }
.chat-compose { display: flex; align-items: center; margin: 0 20px 20px; padding: 6px 6px 6px 14px; gap: 8px; border: 1px solid var(--border); border-radius: 13px; }
.chat-compose input { flex: 1; min-width: 0; outline: 0; font-size: 10px; background: transparent; }
.chat-compose button { display: grid; place-items: center; width: 34px; height: 34px; cursor: pointer; color: #fff; border-radius: 9px; background: #111; }

.seller-product-list { display: grid; margin-top: 14px; }
.seller-product-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto 32px; align-items: center; padding: 12px 0; gap: 14px; border-bottom: 1px solid var(--border); }
.seller-product-row:last-child { border-bottom: 0; }
.seller-product-thumb { display: grid; place-items: center; width: 46px; height: 40px; color: #fff; font-size: 10px; font-weight: 700; border-radius: 9px; background: #111; }
.seller-product-copy strong { display: block; font-size: 10px; }
.seller-product-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.seller-product-price { font-size: 10px; font-weight: 600; }
.seller-product-row > span:nth-child(n + 3) small { display: block; color: var(--muted); font-size: 7px; }
.seller-product-row > span:nth-child(n + 3) strong { display: block; margin-top: 2px; font-size: 10px; }
.seller-product-row button { display: grid; place-items: center; width: 32px; height: 32px; cursor: pointer; color: #555; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.account-product-grid { margin-top: 0; }
.settings-panel { display: grid; gap: 24px; }
.settings-profile { display: flex; align-items: center; gap: 13px; }
.settings-avatar { display: flex; align-items: center; width: auto; height: auto; color: #111; gap: 12px; border-radius: 0; background: transparent; }
.settings-avatar > div { flex: 1; }
.settings-avatar > div strong { display: block; font-size: 11px; }
.settings-avatar > div small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.settings-profile strong { display: block; font-size: 12px; }
.settings-profile span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.balance-modal-card,
.product-modal-card {
  position: relative;
  z-index: 101;
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .14);
}
.product-modal-card { width: min(640px, 100%); }
.balance-modal-card .modal-close,
.product-modal-card .modal-close { position: absolute; top: 22px; right: 22px; }
.balance-modal-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border-radius: 14px; background: #111; }
.balance-modal-card h2,
.product-modal-card h2 { margin: 22px 0 7px; font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.balance-modal-card > p,
.product-modal-card > p { margin: 0 0 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.amount-input { display: flex; align-items: center; height: 64px; padding: 0 16px; gap: 8px; border: 1px solid var(--border); border-radius: 15px; background: #fafafa; }
.amount-input input { min-width: 0; width: 100%; font-size: 27px; font-weight: 500; letter-spacing: -.03em; outline: 0; background: transparent; }
.amount-input span { color: var(--muted); font-size: 16px; }
.quick-amounts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 20px; gap: 7px; }
.quick-amounts button { min-height: 36px; cursor: pointer; color: #555; font-size: 9px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.quick-amounts button:hover { color: #111; border-color: #ccc; }
.balance-modal-safe { display: flex; align-items: flex-start; margin-top: 16px; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.product-modal-card .form-row { margin-top: 12px; }
.product-modal-card .button { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1180px) {
  :root { --container: calc(100vw - 48px); }
  .nav-shell { grid-template-columns: 150px minmax(220px, 1fr) auto; }
  .nav-link--categories { display: none; }
  .balance-pill { display: none; }
  .hero-copy { grid-column: span 7; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .game-directory-preview { grid-template-columns: repeat(3, 1fr); }
  .account-metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 130px 1fr auto; gap: 12px; }
  .nav-link--sell { display: none; }
  .hero { padding-top: 76px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero h1 { max-width: 760px; }
  .hero-showcase { grid-column: 1 / -1; min-height: 470px; margin-top: 50px; }
  .showcase-card--main { right: 8%; }
  .showcase-card--small { left: 8%; }
  .trust-line { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 2fr repeat(3, 1fr); }
  .product-gallery { grid-column: 1 / -1; }
  .purchase-panel { position: relative; top: auto; grid-column: 1 / -1; }
  .product-body { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-card { position: relative; top: auto; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: block; padding: 10px 24px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .dashboard-sidebar .workspace,
  .dashboard-sidebar .unified-badge,
  .dashboard-sidebar .side-nav-label,
  .dashboard-sidebar .sidebar-help { display: none; }
  .dashboard-sidebar .side-nav { flex-direction: row; min-width: max-content; }
  .dashboard-sidebar .side-nav button { width: auto; padding: 0 12px; }
  .game-directory-list { grid-template-columns: repeat(2, 1fr); }
  .account-columns { grid-template-columns: 1fr; }
  .messages-panel { grid-template-columns: 240px minmax(0, 1fr); }
  .catalog-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --container: calc(100vw - 32px); }
  .site-header { height: 64px; }
  .nav-shell { grid-template-columns: 98px 1fr auto; }
  .brand-logo { width: 96px; height: 34px; }
  .nav-search { height: 40px; padding: 0 12px; }
  .nav-search span { display: none; }
  .nav-search .keyboard-key { display: none; }
  .nav-search svg { margin: auto; }
  .nav-actions { gap: 0; }
  .nav-actions .icon-button:first-of-type { display: none; }
  .hero { min-height: auto; padding: 64px 0 42px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
  .hero h1 { font-size: clamp(48px, 15vw, 74px); }
  .hero-description { margin-top: 25px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-proof { margin-top: 42px; }
  .hero-showcase { min-height: 385px; margin-top: 38px; }
  .showcase-card--main { right: 0; width: 82%; }
  .showcase-cover { min-height: 230px; padding: 24px; }
  .showcase-cover strong { font-size: 31px; }
  .showcase-card--small { left: 0; bottom: 20px; width: 42%; }
  .trust-line { grid-template-columns: 1fr; align-items: start; padding: 24px 0; row-gap: 16px; }
  .trust-line div { justify-content: flex-start; }
  .section { padding: 80px 0; }
  .section--compact { padding: 62px 0; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 30px; }
  .section-head h2 { font-size: 40px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 140px; }
  .product-grid { grid-template-columns: 1fr; gap: 34px; }
  .product-cover { aspect-ratio: 1.2 / 1; }
  .cover-title { font-size: 36px; }
  .feature-banner,
  .feature-banner-content { min-height: 590px; }
  .feature-banner-content { padding: 40px 26px; }
  .feature-orbits { top: 16%; right: -20%; width: 75%; transform: none; }
  .footer-top { grid-template-columns: repeat(2, 1fr); row-gap: 40px; padding-bottom: 60px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .overlay { padding: 70px 12px 12px; }
  .popover { right: 16px; left: 16px; width: auto; }
  .page-shell { padding: 36px 0 80px; }
  .product-page-head { align-items: flex-start; flex-direction: column; }
  .product-page-head h1 { font-size: 44px; }
  .gallery-thumbs { grid-template-columns: 1fr; }
  .gallery-thumb { aspect-ratio: 1.7 / 1; }
  .feature-list { grid-template-columns: 1fr; }
  .seller-hero { padding-top: 110px; }
  .seller-hero-inner { align-items: flex-start; flex-direction: column; padding: 0 24px 24px; }
  .seller-main-info { padding-top: 0; }
  .seller-actions { width: 100%; }
  .seller-actions .button { flex: 1; }
  .seller-stats { grid-template-columns: repeat(2, 1fr); }
  .checkout-shell { width: min(100% - 32px, 1120px); padding-top: 24px; }
  .checkout-header { margin-bottom: 38px; }
  .checkout-form h1 { font-size: 38px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { width: min(100% - 32px, 480px); padding-top: 150px; justify-content: flex-start; }
  .auth-logo { top: 28px; left: 16px; }
  .dashboard-main { padding: 30px 16px 60px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-panels { grid-template-columns: 1fr; }
  .game-directory-preview { grid-template-columns: 1fr; }
  .game-directory-counts { align-items: flex-start; flex-direction: column; gap: 8px; }
  .game-directory-counts .text-link { margin: 8px 0 0; }
  .game-overlay { padding: 12px; }
  .game-directory-modal { max-height: calc(100vh - 24px); border-radius: 20px; }
  .game-modal-head { padding: 22px 18px 16px; }
  .game-modal-head h2 { font-size: 24px; }
  .game-search { margin: 0 18px; }
  .game-tabs { padding: 14px 18px 10px; }
  .game-directory-list { grid-template-columns: 1fr; padding: 6px 18px 18px; }
  .game-modal-foot { align-items: flex-start; flex-direction: column; padding: 14px 18px; gap: 4px; }
  .wallet-hero { align-items: flex-start; flex-direction: column; min-height: 260px; padding: 24px; }
  .wallet-hero-actions { width: 100%; }
  .wallet-button { flex: 1; justify-content: center; }
  .account-metric-grid { grid-template-columns: 1fr 1fr; }
  .messages-panel { grid-template-columns: 1fr; }
  .chat-list { max-height: 205px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .chat-room { min-height: 500px; }
  .seller-product-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .seller-product-row button { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .balance-modal-card,
  .product-modal-card { padding: 24px 18px; border-radius: 20px; }
  .catalog-home { padding: 38px 0 62px; }
  .catalog-home-head { align-items: flex-start; flex-direction: column; margin-bottom: 28px; gap: 22px; }
  .catalog-home h1 { font-size: 58px; }
  .catalog-home-head p { max-width: 290px; margin-top: 18px; line-height: 1.6; }
  .catalog-home-head .button { width: 100%; }
  .catalog-search { height: 58px; padding: 0 15px; }
  .catalog-search > span { font-size: 13px; }
  .catalog-search kbd { display: none; }
  .catalog-switcher { margin-top: 22px; gap: 20px; }
  .catalog-game-grid { grid-template-columns: 1fr; }
  .catalog-game { border-right: 1px solid var(--border); }
  .seller-callout { align-items: flex-start; flex-direction: column; padding: 30px 0; }
  .seller-callout .button { width: 100%; }
}

@media (max-width: 410px) {
  .nav-actions .icon-button { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .seller-stats { grid-template-columns: 1fr; }
  .account-metric-grid { grid-template-columns: 1fr; }
  .wallet-hero-actions { flex-direction: column; }
  .deal-row { grid-template-columns: 64px minmax(0, 1fr); }
  .deal-direction { width: 64px; }
  .deal-meta { grid-column: 2; text-align: left; }
}

/* Premium marketplace landing */
.market-home {
  overflow: hidden;
  background: #fff;
}

.market-home .catalog-home {
  padding: 34px 0 0;
  border: 0;
}

.market-home .catalog-home-head {
  align-items: center;
  margin: 0 0 22px;
}

.market-home .catalog-path {
  margin: 0 0 6px;
  font-size: 8px;
  letter-spacing: .13em;
}

.market-home .catalog-home h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.market-home .catalog-home-head .button {
  width: auto;
}

.market-hero {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  color: #111;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #f6f6f4;
  box-shadow: 0 22px 64px rgba(0, 0, 0, .075);
}

.market-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.005);
  animation: marketHeroIn 900ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes marketHeroIn {
  from { opacity: 0; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1.005); }
}

.market-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 530px;
  max-width: 700px;
  padding: 62px;
}

.market-hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #555;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid #d8d8d6;
  border-radius: 999px;
  background: #fff;
}

.market-hero-content h2 {
  max-width: 720px;
  margin: 25px 0 0;
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 500;
  letter-spacing: -.064em;
  line-height: .95;
}

.market-hero-content p {
  max-width: 540px;
  margin: 23px 0 0;
  color: #626262;
  font-size: 15px;
  line-height: 1.65;
}

.market-hero-cta {
  margin-top: 32px;
  color: #fff;
  background: #111;
}

.market-hero-cta:hover {
  color: #fff;
  background: #2a2a2a;
}

.market-hero-stats {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 28px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 0;
  border: 1px solid #111;
  border-radius: 16px;
  background: #111;
}

.market-hero-stats span {
  display: flex;
  flex-direction: column;
  min-width: 106px;
  padding: 0 16px;
  color: rgba(255, 255, 255, .56);
  font-size: 8px;
  line-height: 1.4;
  border-left: 1px solid rgba(255, 255, 255, .15);
}

.market-hero-stats span:first-child { padding-left: 0; border-left: 0; }
.market-hero-stats span:last-child { padding-right: 0; }
.market-hero-stats strong { margin-bottom: 2px; color: #fff; font-size: 12px; font-weight: 600; }

.market-section {
  padding: 92px 0;
  background: #fff;
}

.market-section--rail {
  padding-right: 0;
}

.market-section--soft {
  background: #f7f7f5;
}

.market-section--closing {
  padding-top: 26px;
}

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

.market-section-head > div:first-child > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.market-section-head h2 {
  margin: 0;
  font-size: clamp(31px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: 1;
}

.market-section-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
}

.market-section-link svg { transition: transform var(--transition); }
.market-section-link:hover svg { transform: translateX(3px); }

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

.premium-category-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  gap: 15px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.premium-category-card:hover {
  border-color: #d8d8d8;
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .07);
}

.premium-category-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #111;
  border-radius: 15px;
  background: #f2f2f0;
}

.premium-category-card--3 .premium-category-icon,
.premium-category-card--6 .premium-category-icon { color: #fff; background: #111; }
.premium-category-card--2 .premium-category-icon { color: var(--accent); background: var(--accent-soft); }

.premium-category-copy { min-width: 0; }
.premium-category-copy strong,
.premium-category-copy small { display: block; }
.premium-category-copy strong { font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.premium-category-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.premium-category-arrow { display: grid; place-items: center; color: #aaa; transition: color var(--transition), transform var(--transition); }
.premium-category-card:hover .premium-category-arrow { color: #111; transform: translateX(3px); }

.rail-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.rail-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.rail-controls button:hover { border-color: #ccc; transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.game-card-rail,
.deal-rail,
.product-rail {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-right: calc((100vw - var(--container)) / -2);
  padding: 1px calc((100vw - var(--container)) / 2) 28px 1px;
  overflow-x: auto;
  scroll-padding-left: 1px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.game-card-rail::-webkit-scrollbar,
.deal-rail::-webkit-scrollbar,
.product-rail::-webkit-scrollbar { display: none; }

.trending-game-card {
  flex: 0 0 clamp(290px, 25vw, 360px);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  scroll-snap-align: start;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.trending-game-card:hover {
  border-color: #d8d8d8;
  transform: translateY(-4px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .09);
}

.trending-game-art {
  position: relative;
  display: block;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  background: #111;
}

.trending-game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .34), transparent 62%);
}

.trending-game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.trending-game-card:hover .trending-game-art img { transform: scale(1.035); }

.trending-game-rank {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 9px;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(0, 0, 0, .34);
}

.trending-game-body {
  display: flex;
  align-items: center;
  padding: 17px 17px 10px;
  gap: 11px;
}

.trending-game-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -.02em;
  border-radius: 13px;
  background: #111;
}

.trending-game-copy { min-width: 0; }
.trending-game-copy strong,
.trending-game-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trending-game-copy strong { font-size: 14px; font-weight: 600; }
.trending-game-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.trending-game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 17px 17px;
  color: var(--muted);
  font-size: 9px;
}

.trending-game-meta strong { color: #111; font-size: 11px; font-weight: 600; }

.promotion-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 255px;
  gap: 14px;
}

.promotion-card {
  position: relative;
  grid-column: span 5;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  text-align: left;
  border-radius: 22px;
  background: #111;
}

.promotion-card--main {
  grid-column: span 7;
  grid-row: span 2;
}

.promotion-card img,
.promotion-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.promotion-card img { object-fit: cover; transition: transform 520ms cubic-bezier(.2, .8, .2, 1); }
.promotion-card:hover img { transform: scale(1.035); }
.promotion-shade { background: linear-gradient(0deg, rgba(0, 0, 0, .83), rgba(0, 0, 0, .05) 72%); }

.promotion-content {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 25px;
  left: 26px;
}

.promotion-content small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.promotion-content strong {
  display: block;
  max-width: 520px;
  font-size: clamp(25px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.promotion-card:not(.promotion-card--main) .promotion-content strong { font-size: clamp(22px, 2.2vw, 32px); }
.promotion-content > span { display: inline-flex; align-items: center; margin-top: 17px; gap: 7px; font-size: 9px; font-weight: 600; }

.promotion-card--light {
  color: #fff;
  background: #111;
}

.promotion-monogram {
  position: absolute;
  right: -12px;
  bottom: -78px;
  color: #1c1c1c;
  font-size: 290px;
  font-weight: 750;
  letter-spacing: -.1em;
  line-height: 1;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.promotion-card--light:hover .promotion-monogram { transform: translate(-8px, -5px) rotate(-2deg); }

.deal-card {
  flex: 0 0 clamp(250px, 22vw, 318px);
  overflow: hidden;
  border: 1px solid #e5e5e2;
  border-radius: 22px;
  background: #fff;
  scroll-snap-align: start;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.deal-card:hover { border-color: #d5d5d2; transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.deal-cover { position: relative; aspect-ratio: 1.2 / 1; overflow: hidden; cursor: pointer; }
.deal-cover .cover-title { font-size: clamp(23px, 2.2vw, 32px); }
.deal-discount { position: absolute; top: 13px; left: 13px; z-index: 3; display: inline-flex; align-items: center; height: 28px; padding: 0 9px; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; background: var(--accent); }
.deal-copy { padding: 16px 17px 18px; }
.deal-time { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 9px; font-weight: 600; }
.deal-copy h3 { min-height: 42px; margin: 10px 0 12px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.45; }
.deal-copy > div { display: flex; align-items: baseline; gap: 8px; }
.deal-copy > div strong { font-size: 18px; letter-spacing: -.025em; }
.deal-copy > div s { color: #999; font-size: 10px; }

.market-filter-row { margin: -8px 0 28px; }

.product-rail .product-card {
  flex: 0 0 clamp(260px, 23vw, 336px);
  scroll-snap-align: start;
}

.product-rail .product-cover { aspect-ratio: 1.18 / 1; }
.product-rail .empty-state { flex: 1; }

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

.premium-seller-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.premium-seller-card:hover { border-color: #d7d7d7; transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.seller-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.seller-card-rating { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.seller-card-rating svg { color: #111; fill: #111; }
.seller-card-name { display: flex; align-items: center; margin-top: 27px; gap: 7px; }
.seller-card-name strong { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.seller-card-description { max-width: 270px; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.seller-card-meta { display: flex; align-items: center; margin-top: auto; padding-top: 22px; gap: 18px; color: #555; font-size: 9px; border-top: 1px solid var(--border); }

@media (max-width: 1180px) {
  .market-hero-content { max-width: 680px; padding: 50px; }
  .market-hero-stats span { min-width: 92px; }
  .premium-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .market-hero { min-height: 560px; }
  .market-hero-content { justify-content: flex-start; min-height: 560px; max-width: 690px; padding: 54px 42px 150px; }
  .market-hero-stats { right: 24px; bottom: 22px; left: 24px; justify-content: flex-start; width: fit-content; }
  .promotion-grid { grid-auto-rows: 245px; }
  .promotion-card--main { grid-column: 1 / -1; grid-row: span 2; }
  .promotion-card:not(.promotion-card--main) { grid-column: span 6; }
  .premium-seller-grid { grid-template-columns: 1fr; }
  .premium-seller-card { min-height: 225px; }
}

@media (max-width: 680px) {
  .market-home .catalog-home { padding-top: 24px; }
  .market-home .catalog-home-head { align-items: center; flex-direction: row; margin-bottom: 18px; gap: 12px; }
  .market-home .catalog-path { font-size: 7px; }
  .market-home .catalog-home h1 { font-size: 23px; }
  .market-home .catalog-home-head .button { min-height: 36px; width: auto; padding: 0 12px; font-size: 9px; }
  .market-hero { display: flex; min-height: 0; margin: 0 -6px; flex-direction: column; border-radius: 20px; background: #fff; }
  .market-hero-image { position: relative; inset: auto; flex: 0 0 286px; height: 286px; object-position: 66% 30%; transform: none; }
  .market-hero-content { justify-content: flex-start; min-height: 0; max-width: none; padding: 30px 24px 25px; }
  .market-hero-content h2 { margin-top: 18px; font-size: clamp(40px, 12vw, 53px); }
  .market-hero-content p { margin-top: 16px; font-size: 13px; line-height: 1.55; }
  .market-hero-cta { width: 100%; margin-top: 24px; }
  .market-hero-stats { position: relative; right: auto; bottom: auto; left: auto; width: auto; margin: 0 18px 18px; padding: 12px 10px; border-radius: 14px; }
  .market-hero-stats span { min-width: 0; flex: 1; padding: 0 9px; }
  .market-hero-stats strong { font-size: 10px; }
  .market-section { padding: 68px 0; }
  .market-section--closing { padding-top: 10px; }
  .market-section-head { align-items: center; margin-bottom: 24px; gap: 12px; }
  .market-section-head h2 { font-size: 32px; }
  .market-section-head > div:first-child > span { font-size: 8px; }
  .market-section-link { font-size: 9px; }
  .premium-category-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .premium-category-card { grid-template-columns: 42px minmax(0, 1fr); min-height: 98px; padding: 13px; gap: 11px; border-radius: 17px; }
  .premium-category-icon { width: 42px; height: 42px; border-radius: 12px; }
  .premium-category-copy strong { font-size: 11px; line-height: 1.25; }
  .premium-category-copy small { font-size: 8px; }
  .premium-category-arrow { display: none; }
  .game-card-rail,
  .deal-rail,
  .product-rail { margin-right: -16px; padding-right: 16px; gap: 12px; }
  .trending-game-card { flex-basis: min(82vw, 330px); border-radius: 19px; }
  .rail-controls button:first-child { display: none; }
  .rail-controls button { width: 36px; height: 36px; }
  .promotion-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; gap: 10px; }
  .promotion-card,
  .promotion-card--main,
  .promotion-card:not(.promotion-card--main) { grid-column: 1; grid-row: auto; min-height: 250px; border-radius: 19px; }
  .promotion-card--main { min-height: 420px; }
  .promotion-content { right: 20px; bottom: 20px; left: 20px; }
  .promotion-content strong,
  .promotion-card:not(.promotion-card--main) .promotion-content strong { font-size: 27px; }
  .deal-card { flex-basis: min(78vw, 296px); border-radius: 19px; }
  .market-filter-row { margin-bottom: 22px; }
  .product-rail .product-card { flex-basis: min(82vw, 320px); }
  .product-rail .product-cover { aspect-ratio: 1.16 / 1; }
  .premium-seller-card { min-height: 220px; border-radius: 19px; }
}

@media (max-width: 410px) {
  .market-home .catalog-home h1 { font-size: 20px; }
  .market-home .catalog-home-head .button { padding: 0 10px; }
  .market-hero-content h2 { font-size: 39px; }
  .market-hero-stats span { font-size: 7px; }
  .premium-category-grid { grid-template-columns: 1fr; }
  .premium-category-card { grid-template-columns: 42px minmax(0, 1fr) 18px; }
  .premium-category-arrow { display: grid; }
  .market-section-head h2 { font-size: 29px; }
}

/* Catalog modal QA pass */
.game-directory-modal {
  height: min(820px, calc(100dvh - 68px));
  max-height: none;
}

.game-directory-modal.is-filtered {
  height: auto;
  min-height: 430px;
  max-height: min(820px, calc(100dvh - 68px));
}

.game-directory-modal.is-filtered .game-directory-list {
  flex: 0 1 auto;
  min-height: 140px;
  max-height: 430px;
}

.game-directory-modal.is-empty .game-directory-list {
  min-height: 250px;
}

.game-modal-head,
.game-search,
.game-tabs,
.game-modal-foot {
  flex: 0 0 auto;
}

.game-modal-head {
  align-items: center;
}

.game-search input {
  min-width: 0;
  font-size: 13px;
}

.game-search > span {
  min-width: 68px;
  text-align: right;
  white-space: nowrap;
}

.game-tabs {
  min-height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.game-tabs::-webkit-scrollbar { display: none; }

.game-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
}

.game-directory-list {
  flex: 1 1 auto;
  min-height: 0;
  grid-auto-rows: min-content;
  overscroll-behavior: contain;
}

.game-directory-item {
  min-width: 0;
  min-height: 62px;
  border-color: var(--border);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.game-directory-item:hover {
  border-color: #d5d5d5;
  transform: translateY(-1px);
}

.game-directory-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.game-directory-item > svg {
  flex: 0 0 auto;
  color: #999;
}

.game-directory-item[hidden],
.game-no-results[hidden] {
  display: none !important;
}

.game-no-results {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 240px;
  padding: 40px 20px;
  gap: 6px;
}

.game-no-results strong {
  color: #111;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.game-no-results span {
  color: var(--muted);
  font-size: 10px;
}

.game-modal-foot > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.game-modal-foot > span > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .game-overlay { padding: 20px; }
  .game-directory-modal { height: calc(100dvh - 40px); }
  .game-directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .game-overlay { padding: 10px; }
  .game-directory-modal { height: calc(100dvh - 20px); border-radius: 20px; }
  .game-directory-modal.is-filtered { height: calc(100dvh - 20px); min-height: 0; max-height: none; }
  .game-directory-modal.is-filtered .game-directory-list { flex: 1 1 auto; min-height: 0; max-height: none; }
  .game-modal-head { padding: 20px 18px 15px; }
  .game-modal-head h2 { font-size: 24px; line-height: 1.08; }
  .game-search { height: 46px; margin: 0 18px; padding: 0 13px; }
  .game-search > span { min-width: auto; font-size: 8px; }
  .game-tabs { min-height: 58px; padding: 11px 18px; }
  .game-tabs button { min-height: 36px; }
  .game-directory-list { grid-template-columns: 1fr; padding: 4px 18px 16px; }
  .game-directory-item { min-height: 64px; padding: 9px 10px; }
  .game-modal-foot { align-items: stretch; flex-direction: column; padding: 13px 18px 16px; gap: 11px; }
  .game-modal-foot > span { font-size: 8px; }
  .game-modal-foot .button { width: 100%; }
}

@media (max-width: 410px) {
  .game-overlay { padding: 0; }
  .game-directory-modal { height: 100dvh; border-width: 0; border-radius: 0; }
  .game-directory-modal.is-filtered { height: 100dvh; }
  .game-modal-head { padding-top: max(18px, env(safe-area-inset-top)); }
  .game-modal-head .account-kicker { margin-bottom: 6px; }
  .game-modal-head h2 { font-size: 22px; }
  .game-search input { font-size: 12px; }
  .game-search > span { display: none; }
}

/* Legal administration */
.admin-page { min-height: 100vh; background: #f8f8f7; }
.admin-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; display: flex; height: 100vh; padding: 28px 20px 22px; flex-direction: column; border-right: 1px solid var(--border); background: #fff; }
.admin-brand { align-self: flex-start; margin: 0 8px 34px; }
.admin-brand .brand-logo { width: 118px; }
.admin-workspace { display: flex; align-items: center; padding: 14px; gap: 11px; border: 1px solid var(--border); border-radius: 16px; background: #fafafa; }
.admin-workspace-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; font-size: 12px; font-weight: 700; border-radius: 10px; background: #111; }
.admin-workspace div { display: grid; gap: 1px; }
.admin-workspace strong { font-size: 12px; font-weight: 650; }
.admin-workspace small { color: var(--muted); font-size: 10px; }
.admin-nav { display: flex; margin-top: 30px; flex-direction: column; gap: 4px; }
.admin-nav p { margin: 18px 12px 6px; color: #a1a1a1; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-nav button { display: flex; align-items: center; min-height: 42px; padding: 0 12px; gap: 10px; cursor: pointer; color: #606060; font-size: 12px; text-align: left; border-radius: 11px; background: transparent; transition: color var(--transition), background var(--transition); }
.admin-nav button:hover { color: #111; background: #f6f6f5; }
.admin-nav button.is-active { color: #111; font-weight: 600; background: #f1f1f0; }
.admin-security-note { display: flex; margin-top: auto; padding: 14px; gap: 10px; color: #525252; border: 1px solid #e5e5e5; border-radius: 14px; background: #fafafa; }
.admin-security-note svg { flex: 0 0 auto; margin-top: 2px; }
.admin-security-note div { display: grid; gap: 3px; }
.admin-security-note strong { font-size: 11px; }
.admin-security-note span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-main { min-width: 0; padding: 48px clamp(28px, 4vw, 68px) 88px; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.admin-header h1 { margin: 0; font-size: clamp(30px, 3vw, 43px); font-weight: 500; letter-spacing: -.045em; }
.admin-header p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.admin-header-status { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; gap: 7px; color: #555; font-size: 11px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #24a148; box-shadow: 0 0 0 4px rgba(36, 161, 72, .09); }
.admin-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 38px; gap: 10px; }
.admin-summary { min-height: 126px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.admin-summary > span { color: var(--muted); font-size: 11px; }
.admin-summary > strong { display: block; margin-top: 24px; font-size: 22px; font-weight: 520; letter-spacing: -.035em; }
.admin-summary > small { display: block; margin-top: 3px; color: #999; font-size: 10px; }
.admin-document-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; gap: 10px; }
.legal-type-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); min-height: 86px; padding: 15px; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 17px; background: #fff; }
.legal-type-card.is-ready { border-color: #d9e4fb; }
.legal-type-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #555; border: 1px solid var(--border); border-radius: 11px; background: #fafafa; }
.legal-type-card > div { min-width: 0; }
.legal-type-card strong { display: block; overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.legal-type-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.legal-version { grid-column: 1 / -1; color: var(--accent); font-size: 10px; font-weight: 650; }
.legal-version.is-empty { color: #aaa; }
.admin-work-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); margin-top: 20px; gap: 12px; }
.admin-upload-panel,
.admin-guide-panel { padding: 24px; }
.admin-step { color: #b8b8b8; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.admin-upload-panel > .field { margin-top: 22px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-form-row .field { margin-top: 12px; }
.admin-file-drop { position: relative; display: grid; min-height: 138px; margin-top: 14px; padding: 22px; place-items: center; align-content: center; cursor: pointer; text-align: center; border: 1px dashed #d5d5d5; border-radius: 16px; background: #fbfbfa; transition: border-color var(--transition), background var(--transition); }
.admin-file-drop:hover,
.admin-file-drop.has-file { border-color: #9eb9f2; background: #f7faff; }
.admin-file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-file-drop-icon { display: grid; width: 38px; height: 38px; margin-bottom: 10px; place-items: center; color: var(--accent); border-radius: 11px; background: var(--accent-soft); }
.admin-file-drop strong { max-width: 100%; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.admin-file-drop small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-publish-check { margin: 15px 0; }
.admin-form-note { margin: 12px 0 0; color: #929292; font-size: 10px; text-align: center; }
.admin-guide-list { display: grid; margin: 22px 0 0; padding: 0; gap: 0; list-style: none; }
.admin-guide-list li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 0 0 24px; gap: 12px; }
.admin-guide-list li:not(:last-child)::after { position: absolute; top: 29px; bottom: 3px; left: 14px; width: 1px; content: ""; background: var(--border); }
.admin-guide-list li > span { display: grid; position: relative; z-index: 1; width: 30px; height: 30px; place-items: center; color: #555; font-size: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.admin-guide-list strong { display: block; margin-top: 2px; font-size: 12px; }
.admin-guide-list p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-documents-panel { margin-top: 12px; padding: 24px; }
.admin-document-list { margin: 20px -24px -24px; }
.admin-document-row { display: grid; grid-template-columns: 38px minmax(180px, 1.4fr) 72px 130px 86px minmax(150px, auto); min-height: 76px; padding: 14px 24px; align-items: center; gap: 12px; border-top: 1px solid var(--border); }
.admin-file-mark { display: grid; width: 38px; height: 38px; place-items: center; color: #555; border: 1px solid var(--border); border-radius: 11px; background: #fafafa; }
.admin-document-copy { min-width: 0; }
.admin-document-copy strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-document-copy span,
.admin-version span,
.admin-effective span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.admin-version strong,
.admin-effective strong { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; }
.legal-status { display: inline-flex; width: max-content; min-height: 26px; padding: 0 8px; align-items: center; font-size: 9px; font-weight: 650; border: 1px solid var(--border); border-radius: 999px; }
.legal-status.is-published { color: #17743a; border-color: #d9ecdf; background: #f5fbf7; }
.legal-status.is-draft { color: #8a6500; border-color: #ece3c6; background: #fdfbf3; }
.legal-status.is-archived { color: #777; background: #f7f7f7; }
.admin-document-actions { display: flex; justify-content: flex-end; gap: 6px; }
.admin-icon-link { display: grid; width: 32px; height: 32px; place-items: center; color: #555; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.button--tiny { min-height: 32px; padding: 0 9px; font-size: 10px; border-radius: 9px; }

@media (max-width: 1180px) {
  .admin-summary-grid,
  .admin-document-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-document-row { grid-template-columns: 38px minmax(180px, 1fr) 70px 88px minmax(140px, auto); }
  .admin-effective { display: none; }
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; display: block; width: 100%; height: auto; padding: 14px 20px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-brand,
  .admin-workspace,
  .admin-security-note,
  .admin-nav p { display: none; }
  .admin-nav { margin: 0; flex-direction: row; min-width: max-content; }
  .admin-nav button { min-height: 38px; }
  .admin-main { padding: 34px 24px 70px; }
  .admin-work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .admin-main { padding: 28px 16px 60px; }
  .admin-header { flex-direction: column; }
  .admin-header h1 { font-size: 32px; }
  .admin-summary-grid,
  .admin-document-types { grid-template-columns: 1fr 1fr; }
  .admin-work-grid { margin-top: 14px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-form-row .field + .field { margin-top: 0; }
  .admin-document-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 14px 16px; }
  .admin-version,
  .admin-effective { display: none; }
  .legal-status { grid-column: 2; }
  .admin-document-actions { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 420px) {
  .admin-summary-grid,
  .admin-document-types { grid-template-columns: 1fr; }
}
