:root {
  color-scheme: dark;
  --bg: #0b1322;
  --surface: #101a2b;
  --surface-2: #162139;
  --surface-3: #1c2942;
  --border: #24334f;
  --border-strong: #32445f;
  --text: #eef2f7;
  --muted: #9fb0c3;
  --faint: #6c7d93;
  --accent: #0e96df;
  --accent-strong: #5ec0f2;
  --accent-soft: rgba(14, 150, 223, 0.16);
  --danger: #e27c7c;
  --nav-solid: #0b1322;
  --nav-strong: rgba(11, 19, 34, 0.94);
  --nav-mid: rgba(11, 19, 34, 0.68);
  --nav-soft: rgba(11, 19, 34, 0.28);
  --nav-trace: rgba(11, 19, 34, 0.1);
  --grid-line: rgba(14, 150, 223, 0.05);
  --radius: 6px;
  --radius-sm: 4px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f6fb;
  --surface: #ffffff;
  --surface-2: #edf3f9;
  --surface-3: #e2ebf5;
  --border: #d4e0ec;
  --border-strong: #b5c7db;
  --text: #182332;
  --muted: #55657a;
  --faint: #6e7f93;
  --accent: #0088cc;
  --accent-strong: #00659c;
  --accent-soft: rgba(0, 136, 204, 0.12);
  --danger: #bd5555;
  --nav-solid: #f2f6fb;
  --nav-strong: rgba(242, 246, 251, 0.94);
  --nav-mid: rgba(242, 246, 251, 0.68);
  --nav-soft: rgba(242, 246, 251, 0.28);
  --nav-trace: rgba(242, 246, 251, 0.1);
  --grid-line: rgba(0, 136, 204, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: auto; overscroll-behavior-y: none; }

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 60px;
  overscroll-behavior-y: none;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
}
main { flex: 1 0 auto; }
body::before,
body::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
}
body.home::before,
body.home::after {
  -webkit-mask-image: linear-gradient(#000 0, #000 600px, transparent 740px);
  mask-image: linear-gradient(#000 0, #000 600px, transparent 740px);
}
body::before {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0;
}
body::after {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(0, 136, 204, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 136, 204, 0.08) 1px, transparent 1px);
  background-size: 144px 144px;
  background-position: 24px 24px;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--text); }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.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; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  background-color: var(--nav-solid);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.nav-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.brand { display: flex; align-items: center; gap: 4px; }
.nav-inner > .brand { justify-self: start; }
.brand-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: url("logo.svg?v=16") center / contain no-repeat;
}
.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 18px; }
.nav-actions { display: contents; }
.nav-actions > .nav-links { grid-column: 2; }
.nav-actions > :not(.nav-links) { grid-row: 1; }
.nav-actions > .saved-link { grid-column: 3; justify-self: end; margin-right: 84px; }
.nav-actions > .cart-link { grid-column: 3; justify-self: end; margin-right: 42px; }
.nav-actions > .theme-toggle { grid-column: 3; justify-self: end; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  position: relative;
  transition: none;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-strong); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: none;
}
.nav-links a.active::after { transform: scaleX(1); }

.theme-toggle {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='12'%20cy='12'%20r='5'%20fill='%23000'/%3E%3Cpath%20d='M12%201.5v3M12%2019.5v3M4.6%204.6l2.1%202.1M17.3%2017.3l2.1%202.1M1.5%2012h3M19.5%2012h3M4.6%2019.4l2.1-2.1M17.3%206.7l2.1-2.1'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='12'%20cy='12'%20r='5'%20fill='%23000'/%3E%3Cpath%20d='M12%201.5v3M12%2019.5v3M4.6%204.6l2.1%202.1M17.3%2017.3l2.1%202.1M1.5%2012h3M19.5%2012h3M4.6%2019.4l2.1-2.1M17.3%206.7l2.1-2.1'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root[data-theme="light"] .theme-toggle::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M21%2012.79A9%209%200%201%201%2011.21%203%207%207%200%200%200%2021%2012.79z'%20fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M21%2012.79A9%209%200%201%201%2011.21%203%207%207%200%200%200%2021%2012.79z'%20fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.saved-link, .cart-link { width: 32px; height: 32px; position: relative; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; }
.saved-link span { display: grid; place-items: center; line-height: 1; }
.saved-link:hover, .cart-link:hover { color: var(--accent-strong); border-color: var(--border-strong); }
.saved-link b, .cart-link b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: 9px; }
.theme-toggle, .saved-link, .cart-link { width: 34px; height: 34px; }
.cart-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu-toggle { display: none; }

/* ---------- Hero ---------- */
main#top { scroll-margin-top: 60px; }
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 70px 24px 64px;
  text-align: center;
  position: relative;
}

.hero > *:not(.float-field) { position: relative; z-index: 1; }

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.hero-logo-ring {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.hero-logo-name {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@keyframes logo-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

.float-field {
  position: absolute;
  inset: 0 8px 150px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.float-name {
  position: absolute;
  margin-top: 24px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
  animation: float-drift var(--float-duration, 20s) ease-in-out var(--float-delay, 0s) infinite;
}
.float-name.float-reverse { animation-direction: reverse; }
@keyframes float-drift {
  0%   { transform: translate(0, 0) rotate(-2deg); }
  20%  { transform: translate(4px, -4px) rotate(1deg); }
  40%  { transform: translate(-3px, -6px) rotate(2deg); }
  60%  { transform: translate(-4px, -3px) rotate(0deg); }
  80%  { transform: translate(3px, 3px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(-2deg); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  white-space: nowrap;
}
.rarity-eyebrow.common { color: #8b8b94; border-color: rgba(139, 139, 148, 0.35); background: rgba(139, 139, 148, 0.07); }
.rarity-eyebrow.uncommon { color: #5fbf5f; border-color: rgba(95, 191, 95, 0.4); background: rgba(95, 191, 95, 0.08); }
.rarity-eyebrow.rare { color: #4d9bf7; border-color: rgba(77, 155, 247, 0.42); background: rgba(77, 155, 247, 0.08); }
.rarity-eyebrow.epic { color: #b05cff; border-color: rgba(176, 92, 255, 0.42); background: rgba(176, 92, 255, 0.08); }
.rarity-eyebrow.legendary { color: #ff8a3c; border-color: rgba(255, 138, 60, 0.45); background: rgba(255, 138, 60, 0.08); }

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
}
.hero-brand {
  --rarity-color: var(--accent);
  --rarity-shine: var(--accent-strong);
  background-image: linear-gradient(
    110deg,
    var(--rarity-color) 34%,
    var(--rarity-shine) 48%,
    var(--rarity-color) 62%
  );
  background-size: 260% 100%;
  background-position: 180% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shine 9s ease-in-out infinite;
}
.hero-brand-word { color: var(--accent); }

@keyframes hero-shine {
  0%, 55% { background-position: 180% 50%; }
  90%     { background-position: -180% 50%; }
  100%    { background-position: -180% 50%; }
}

.hero-sub {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-search { position: relative; width: min(600px, 100%); height: 48px; margin: 24px auto 0; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.hero-search input { width: 100%; height: 100%; padding: 0 62px 0 16px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-search button { position: absolute; top: 0; right: 0; width: 52px; height: 100%; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; background: rgba(0, 136, 204, .12); color: var(--accent-strong); }
.hero-search button:hover { background: rgba(0, 136, 204, .2); }
.hero-search button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.hero-trust { margin: 16px auto 0; list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hero-trust li { padding: 6px 10px; border-radius: 999px; background: rgba(74, 222, 128, 0.14); color: var(--text); font-size: 11px; font-weight: 600; }
.hero-trust li span { color: #4ade80; }
.hero-actions .btn {
  width: 180px;
  min-height: 46px;
  padding-left: 16px;
  padding-right: 16px;
}
.crypto-accepted {
  width: min(600px, 100%);
  margin: 24px auto 0;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.payment-track { width: max-content; display: flex; gap: 8px; opacity: 0.82; animation: payment-marquee 22s linear infinite; will-change: transform; }
.crypto-accepted ul { flex: 0 0 auto; list-style: none; display: flex; align-items: center; gap: 8px; }
@keyframes payment-marquee { to { transform: translateX(calc(-50% - 4px)); } }
.crypto-accepted li { min-height: 32px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: 11px; font-weight: 600; white-space: nowrap; }
.payment-logo { width: 16px; height: 16px; flex: 0 0 auto; object-fit: contain; filter: invert(1); opacity: 0.9; }
:root[data-theme="light"] .payment-logo { filter: none; }

.hero-stats {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.stat strong { color: color-mix(in srgb, var(--accent) 42%, var(--text)); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: 15px; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b0b0e;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -30% auto -30% -55%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover::after { left: 125%; }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--faint); background: var(--surface-3); }

.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); margin-top: 6px; }

/* ---------- Subpages ---------- */
.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 40px;
}
.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-sub { color: var(--muted); margin-top: 10px; max-width: 560px; font-size: 16px; }

/* ---------- Featured ---------- */
.featured {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px 0;
  scroll-margin-top: 64px;
}
.featured-head { margin-bottom: 24px; }
.reviews-preview + .featured { padding-top: 64px; }
.featured-more { text-align: center; margin-top: 28px; }
.sale-countdown {
  position: relative;
  overflow: hidden;
  margin: -8px 0 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  animation: sale-border 2.6s ease-in-out infinite;
}
@keyframes sale-border {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: var(--accent-strong); }
}
.sale-countdown-copy { display: flex; flex-direction: column; gap: 3px; }
.sale-countdown-copy strong { font-size: 20px; letter-spacing: 0.025em; }
.sale-countdown-copy > span:last-child { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.07em; }
.sale-live { color: var(--accent-strong); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.sale-timer { display: flex; align-items: flex-start; gap: 8px; flex: 0 0 auto; }
.sale-timer > span { min-width: 48px; display: grid; justify-items: center; gap: 2px; }
.sale-timer b { font-family: var(--mono); color: #ff5252; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.sale-timer small { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sale-timer > i { color: var(--faint); font-style: normal; font-weight: 700; line-height: 20px; }

.grid-lg {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-lg .card { padding: 26px; gap: 14px; }
.grid-lg .card-name { font-size: 36px; }
.grid-lg .card-price { font-size: 21px; }
.grid-lg .card-price small { font-size: 11px; }
.grid-lg .favorite-btn { width: 36px; min-width: 36px; height: 36px; padding: 0; }
.grid-lg .btn-cart { width: 36px; min-width: 36px; height: 36px; }
.grid-lg .card-tags { align-items: center; }
.grid-lg .tag { min-height: 30px; display: inline-flex; align-items: center; font-size: 11.5px; line-height: 1; padding: 3px 8px; }
.grid-lg .card-meta { font-size: 13px; }

.card-original {
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  text-decoration: line-through;
  margin-right: 8px;
}
.tag.sale-tag {
  color: #fff;
  border-color: #4ade80;
  background: linear-gradient(135deg, #22c55e, #15803d);
  font-size: 12.5px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 11px !important;
  box-shadow: none;
}

/* ---------- Browse ---------- */
.browse {
  max-width: 1160px;
  margin: 64px auto 0;
  padding: 0 24px 64px;
  scroll-margin-top: 82px;
}

.browse-head { position: relative; z-index: 1; width: 264px; height: 40px; margin-bottom: -40px; padding-top: 0; display: flex; align-items: center; }

.browse-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 32px;
  align-items: start;
}

/* Filters */
.filters {
  position: sticky;
  top: 84px;
  margin-top: 61px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.filters-head > div { display: flex; flex-direction: column; gap: 1px; }
.filters-head strong { font-size: 15px; line-height: 1.4; }
.filter-status { color: var(--faint); font-size: 11.5px; }
.filter-clear {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 0;
}
.filter-clear:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.filter-clear:disabled { color: var(--faint); cursor: default; opacity: 0.55; }

.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.input, .select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.checkbox-row { display: flex; gap: 8px; flex-wrap: wrap; }

#lengthFilter .checkbox {
  position: relative;
  min-width: 42px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
#lengthFilter .checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#lengthFilter .checkbox:has(input:checked) {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: var(--accent-soft);
}
#lengthFilter .checkbox:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface-2);
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checkbox input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #0b0b0e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkbox:hover span { color: var(--text); }
.checkbox.toggle span { font-size: 13.5px; }

.segmented {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--surface-3); color: var(--text); }

.price-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-sep { color: var(--faint); font-size: 13px; }

/* Results */
.browse-search { position: relative; display: block; margin-bottom: 14px; }
.browse-search svg { position: absolute; z-index: 1; top: 50%; left: 13px; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.browse-search .input { height: 42px; padding-left: 42px; background: var(--surface); }
.browse-search:focus-within svg { stroke: var(--accent-strong); }
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.results-count { font-size: 14px; color: var(--muted); }
.results-overview { display: flex; align-items: center; gap: 10px; }
.mobile-filter-btn, .filter-close { display: none; }
.filter-apply { display: none; }

.sort { display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 13px; color: var(--faint); }
.select { width: auto; min-width: 190px; padding: 7px 34px 7px 12px; appearance: auto; }
#rarityFilter { transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
#rarityFilter[data-rarity="legendary"] { color: #ff9a52; border-color: rgba(255, 138, 60, 0.55); background-color: rgba(255, 138, 60, 0.08); }
#rarityFilter[data-rarity="epic"] { color: #c174ff; border-color: rgba(176, 92, 255, 0.5); background-color: rgba(176, 92, 255, 0.08); }
#rarityFilter[data-rarity="rare"] { color: #6aafff; border-color: rgba(77, 155, 247, 0.5); background-color: rgba(77, 155, 247, 0.08); }
#rarityFilter[data-rarity="uncommon"] { color: #77cc77; border-color: rgba(95, 191, 95, 0.5); background-color: rgba(95, 191, 95, 0.08); }
#rarityFilter[data-rarity="common"] { color: var(--muted); border-color: var(--border-strong); background-color: var(--surface-3); }
#rarityFilter option { color: var(--text); background: var(--surface-2); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  isolation: isolate;
}
.grid.grid-lg { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  z-index: -1;
}
.card.is-sale .card-price { color: #4ade80; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.results .card-top { min-height: 60px; align-items: flex-start; }
.results .card-tags { align-items: center; }
.results .tag { min-height: 26px; display: inline-flex; align-items: center; line-height: 1; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-overflow { position: relative; display: inline-flex; }
.tag-more { min-height: 0; cursor: pointer; }
.tag-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 12;
  width: max-content;
  max-width: 210px;
  padding: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.tag-overflow:hover .tag-popover,
.tag-overflow:focus-within .tag-popover,
.tag-overflow.open .tag-popover { opacity: 1; visibility: visible; transform: translateY(0); }
.card:has(.tag-overflow:hover),
.card:has(.tag-overflow:focus-within),
.card:has(.tag-overflow.open) { z-index: 8; overflow: visible; }
.favorite-btn { width: 38px; height: 34px; min-width: 38px; padding: 0; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 136, 204, 0.4); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); font-size: 17px; font-weight: 600; line-height: 1; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.favorite-btn:hover { color: #0b0b0e; border-color: var(--accent); background: var(--accent); }
.favorite-btn.active { color: #0b0b0e; border-color: var(--accent); background: var(--accent); }
.favorite-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.favorite-btn.active svg { fill: currentColor; }
:root[data-theme="light"] .favorite-btn:hover,
:root[data-theme="light"] .favorite-btn.active,
:root[data-theme="light"] .btn-cart:hover,
:root[data-theme="light"] .btn-cart.active { color: #fff; }

.tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  background: var(--surface-2);
}
.tag-accent { color: var(--accent-strong); border-color: rgba(0, 136, 204, 0.4); }

.card-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card:has(.card-share) > .card-name { padding-right: 42px; }
.card-share {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.card-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-share svg { display: none; }
.card-share::before { content: ''; width: 18px; height: 18px; display: block; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4'/%3E%3Cpath d='m8.6 13.5 6.8 4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4'/%3E%3Cpath d='m8.6 13.5 6.8 4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.card-share:hover { color: var(--accent-strong); transform: translate(1px, -1px); }
.card-share.shared { color: #4ade80; }
.card-share.share-error { color: #ef4444; }

.card-meta { display: flex; align-items: center; justify-content: space-between; }
.card-year { font-size: 12px; color: var(--faint); }
.card-length { font-size: 12px; color: var(--faint); }

.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; margin-top: auto; }
.card-actions { display: flex; align-items: center; gap: 7px; }
.grid-lg .card-bottom { align-items: center; width: 100%; gap: 10px; padding-top: 4px; }
.grid-lg .card-price { min-width: 0; white-space: nowrap; }
.grid-lg .card-price .card-original { margin-right: 5px; font-size: 12px; }
.grid-lg .card-actions { width: auto; margin-left: auto; flex: 0 0 auto; justify-content: flex-end; gap: 5px; }
.card-price { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.card-price small { font-size: 12px; font-weight: 500; color: var(--faint); }

.btn-cart {
  width: 38px;
  min-width: 38px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 136, 204, 0.4);
  color: var(--accent-strong);
  padding: 0;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-cart svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-cart .cart-basket { transition: fill 0.15s ease; }
.btn-cart.active .cart-basket { fill: currentColor; }
.btn-cart:hover, .btn-cart.active { background: var(--accent); color: #0b0b0e; }

.btn-sold {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: default;
}
.sold .card-name { color: var(--faint); }
.sold .card-price { color: var(--faint); }
.sold .card-price small { display: none; }
.sold .btn-sold { pointer-events: none; }

/* ---------- Rarity ---------- */
.rarity-tag { font-weight: 700; }

.rarity-name {
  background-image: linear-gradient(
    110deg,
    var(--rarity-color) 34%,
    var(--rarity-shine) 48%,
    var(--rarity-color) 62%
  );
  background-size: 260% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: username-shine 8.5s ease-in-out infinite;
}
.rarity-name.common { --rarity-color: #8b8b94; --rarity-shine: #a2a2ab; --rarity-glow: rgba(139, 139, 148, 0.03); color: #8b8b94; }
.rarity-name.uncommon { --rarity-color: #5fbf5f; --rarity-shine: #7dca78; --rarity-glow: rgba(95, 191, 95, 0.055); color: #5fbf5f; }
.rarity-name.rare { --rarity-color: #4d9bf7; --rarity-shine: #78b3f8; --rarity-glow: rgba(77, 155, 247, 0.08); color: #4d9bf7; }
.rarity-name.epic { --rarity-color: #b05cff; --rarity-shine: #c087f7; --rarity-glow: rgba(176, 92, 255, 0.11); color: #b05cff; }

.rarity-name.legendary {
  --rarity-color: #ff8a3c;
  --rarity-shine: #ffb66f;
  --rarity-glow: rgba(255, 138, 60, 0.14);
  color: #ff8a3c;
}

@keyframes username-shine {
  0%, 55% { background-position: 250% 50%; }
  90%     { background-position: -250% 50%; }
  100%    { background-position: -250% 50%; }
}

.float-name.rarity-name {
  animation:
    float-drift var(--float-duration, 20s) ease-in-out var(--float-delay, 0s) infinite;
}
.float-name.rarity-name.float-reverse { animation-direction: reverse, normal; }

.r-legendary {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(90deg, #ff8a3c 0%, #ffc267 25%, #fff0b2 50%, #ffc267 75%, #ff8a3c 100%) border-box;
  background-size: auto, 200% 100%;
  animation: rarity-border-flow 5s linear infinite;
}
.r-legendary:hover { border-color: transparent; }
.r-legendary .favorite-btn,
.r-legendary .btn-cart {
  color: #ff9a52;
  border-color: rgba(255, 138, 60, 0.5);
  background: rgba(255, 138, 60, 0.09);
}
.r-legendary .favorite-btn:hover,
.r-legendary .favorite-btn.active,
.r-legendary .btn-cart:hover,
.r-legendary .btn-cart.active {
  color: #111014;
  border-color: #ffb35f;
  background: linear-gradient(135deg, #ff8a3c, #ffc267);
}
.r-legendary .favorite-btn svg { stroke: currentColor; }
:root[data-theme="light"] .r-legendary .favorite-btn:hover,
:root[data-theme="light"] .r-legendary .favorite-btn.active,
:root[data-theme="light"] .r-legendary .btn-cart:hover,
:root[data-theme="light"] .r-legendary .btn-cart.active { color: #fff; }

.card.sold.r-legendary {
  background: var(--surface);
  border: 1px solid var(--border);
  animation: none;
}
.card.sold .card-name.rarity-name {
  background: none;
  color: var(--faint);
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--faint);
  text-shadow: none;
  animation: none;
}

@keyframes rarity-border-flow {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 200% 50%; }
}

/* Empty state */
.empty {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty-title { font-size: 17px; font-weight: 600; }
.empty-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.empty .form-actions { justify-content: center; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.page-nums { display: flex; gap: 6px; flex-wrap: wrap; }
.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.page-btn:hover:not(:disabled):not(.active) {
  color: var(--text);
  border-color: var(--border-strong);
}
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0e;
}
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-arrow { min-width: 34px; padding: 0; }
.page-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- How ---------- */
.how, .faq {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px;
}
.how .section-title, .faq .section-title { margin-bottom: 28px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.how-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-strong);
}
.how-card h3 { font-size: 16px; margin-top: 12px; font-weight: 600; }
.how-card p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--faint);
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- Reviews ---------- */
.reviews-preview {
  max-width: 1160px;
  margin: 64px auto 0;
  padding: 0 24px;
}
main#top .hero + .reviews-preview { margin-top: 24px; }
.reviews-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-kicker {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.text-link { color: var(--accent-strong); font-size: 13px; font-weight: 600; white-space: nowrap; }
.text-link svg { width: 13px; height: 13px; margin-left: 4px; display: inline-block; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s ease; }
.text-link:hover svg { transform: translateX(3px); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s ease;
}
.review-card:hover { border-color: var(--border-strong); }
.review-stars { color: #f2b84b; font-size: 14px; letter-spacing: 0.12em; line-height: 1; }
.review-stars span { color: var(--border-strong); }
.review-stars-meter,
.star-rating-visual {
  position: relative;
  width: max-content;
  color: var(--border-strong);
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}
.review-stars-meter { font-size: 22px; }
.star-rating-visual { font-size: 34px; }
.review-stars-fill,
.star-rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #f2b84b;
}
.review-card blockquote { color: var(--text); font-size: 14px; line-height: 1.7; flex: 1; }
.review-card.rating-only { gap: 18px; }
.review-card.rating-only > .review-stars:not(.review-stars-big),
.review-card.rating-only > .review-stars-meter { display: none; }
.review-stars-big {
  flex: 1;
  display: flex;
  align-items: center;
  color: #f2b84b;
  font-size: 32px;
  letter-spacing: 0.12em;
  line-height: 1;
}
.review-stars-big span { color: var(--border-strong); }
.review-card footer { display: flex; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.review-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 136, 204, 0.38);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}
.review-card .review-avatar { display: none; }
.review-card footer > span:last-child { display: flex; flex-direction: column; }
.review-card footer strong { font-size: 13px; }
.review-card footer small { color: var(--faint); font-size: 11px; }
.reviews-page { padding-bottom: 72px; overflow-anchor: none; }
.rating-summary {
  margin: 40px 0 30px;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: 200px minmax(220px, 1fr) minmax(240px, 1.2fr);
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rating-overall { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.rating-overall small { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.rating-ring {
  --p: 98%;
  position: relative;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  background: conic-gradient(#f2b84b var(--p), var(--surface-3) 0);
}
.rating-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.rating-ring strong { position: relative; z-index: 1; font-size: 34px; line-height: 1; letter-spacing: -0.04em; }
.rating-ring span { position: relative; z-index: 1; color: var(--faint); font-size: 13px; font-weight: 600; }
.rating-bars { display: flex; flex-direction: column; gap: 7px; }
.rating-bars div { display: grid; grid-template-columns: 12px 1fr 32px; align-items: center; gap: 8px; color: var(--faint); font-size: 11px; }
.rating-bars i { height: 5px; overflow: hidden; border-radius: 5px; background: var(--surface-3); }
.rating-bars b { display: block; height: 100%; border-radius: inherit; background: #f2b84b; }
.rating-verified { display: flex; align-items: center; gap: 16px; }
.rating-verified-icon { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); }
.rating-verified-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rating-verified strong { font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.rating-verified strong span { color: var(--accent-strong); }
.rating-verified p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.reviews-full { grid-template-columns: repeat(3, 1fr); }
.review-card[hidden] { display: none; }
.reviews-cta {
  margin-top: 30px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.reviews-cta h2 { font-size: 19px; }
.reviews-cta p { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- Detail, forms & marketplace flows ---------- */
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--faint); font-size: 12px; margin-bottom: 34px; }
.breadcrumbs a:hover { color: var(--text); }
.username-detail { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; }
.detail-name {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0.04em 0 0.12em;
  overflow: visible;
  font-family: var(--mono);
  font-size: clamp(44px, 8vw, 86px);
  line-height: 1.08;
  margin-top: 8px;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.purchase-panel, .order-summary, .form-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-direct-title { margin-top: 36px; font-size: 18px; }
.contact-channels { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s ease, transform 0.15s ease; }
.contact-channel:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.contact-channel-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); }
.contact-channel-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-channel > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-channel strong { font-size: 14px; }
.contact-channel small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-panel { position: relative; display: flex; flex-direction: column; gap: 12px; }
.purchase-panel > .filter-label { padding-right: 120px; }
.detail-price-label { min-height: 28px; padding-right: 120px; display: flex; align-items: center; }
.detail-price-label .filter-label { white-space: nowrap; }
.detail-price-row { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.detail-price-row > strong { font-size: 28px; }
.detail-price-row > strong small { color: var(--faint); font-size: 12px; }
.detail-sale-badge { flex: 0 0 auto; padding: 4px 8px; color: #4ade80; border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.08); }
.detail-price-row > .detail-sale-price { color: #4ade80; }
.detail-sale-price .card-original { margin-right: 8px; color: var(--faint); font-size: 15px; font-weight: 500; }
.detail-share {
  top: 8px;
  right: 8px;
  width: auto;
  padding: 0 6px;
  display: inline-flex;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.detail-share span { line-height: 1; }
.purchase-panel > strong { font-size: 28px; }
.purchase-panel > strong small { color: var(--faint); font-size: 12px; }
.purchase-panel p, .order-summary p { color: var(--muted); font-size: 13px; }
.detail-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.detail-actions .favorite-btn,
.detail-actions .btn-cart,
.detail-buy-btn { width: auto; min-width: 0; height: 40px; flex: 1; padding: 0 8px; gap: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.detail-actions .favorite-btn,
.detail-actions .btn-cart { display: inline-flex; }
.detail-buy-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: #0b0b0e; transition: background 0.15s ease, transform 0.15s ease; }
.detail-buy-btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.detail-buy-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .detail-buy-btn { color: #fff; }
.share-btn { align-self: flex-start; color: var(--accent-strong); background: transparent; border: 0; font-size: 12px; font-weight: 600; }
.detail-section { margin-top: 56px; }
.detail-section h2 { font-size: 20px; margin-bottom: 18px; }
.price-history { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-history > div { padding: 18px; display: flex; flex-direction: column; gap: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.price-history span { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.purchase-timeline, .order-timeline { list-style: none; display: grid; gap: 12px; }
.purchase-timeline li { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.purchase-timeline b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); }
.purchase-timeline span, .purchase-timeline small { display: flex; flex-direction: column; }
.purchase-timeline small { color: var(--muted); }
.compact-card { min-height: 110px; }
.saved-grid { margin-top: 36px; }
.cart-layout { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cart-layout .saved-grid { margin-top: 0; }
.cart-actions { position: sticky; top: 88px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; align-items: stretch; flex-direction: column; gap: 16px; }
.cart-actions strong { padding-bottom: 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.cart-actions .btn { width: 100%; }
.cart-summary-label { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.cart-summary-viewport { position: relative; }
.cart-summary-items { max-height: 290px; overflow-y: hidden; display: grid; gap: 0; scrollbar-width: none; }
.cart-summary-items.is-scrollable {
  overflow-y: auto;
  padding-right: 14px;
}
.cart-summary-items::-webkit-scrollbar { display: none; }
.cart-summary-scrollbar { display: none; position: absolute; top: 0; right: 0; bottom: 0; width: 7px; padding: 1px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; pointer-events: none; }
.cart-summary-viewport.is-scrollable .cart-summary-scrollbar { display: block; }
.cart-summary-scrollbar span { display: block; width: 100%; min-height: 40px; background: var(--border-strong); border-radius: 999px; transition: transform 80ms linear; }
.cart-summary-items > div { padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.cart-summary-items > div:first-child { padding-top: 2px; }
.cart-summary-items > div > span:first-child { min-width: 0; overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cart-summary-items strong { flex: 0 0 auto; padding: 0; border: 0; color: var(--text); font-size: 14px; }
.cart-summary-price { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; gap: 2px 6px; text-align: right; }
.cart-summary-price .summary-original { color: var(--faint); font-size: 10px; text-decoration: line-through; }
.cart-summary-price small { grid-column: 1 / -1; color: #4ade80; font-size: 9px; font-weight: 700; letter-spacing: 0.02em; }
.cart-actions > #cartTotal { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cart-total-price { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; gap: 3px 8px; text-align: right; }
.cart-total-price .summary-original { color: var(--faint); font-size: 11px; font-weight: 500; text-decoration: line-through; }
.cart-total-price b { color: var(--text); font-size: 20px; white-space: nowrap; }
.cart-total-price b small { color: var(--faint); font-size: 9px; font-weight: 600; }
.cart-total-price em { grid-column: 1 / -1; color: #4ade80; font-size: 10px; font-style: normal; font-weight: 700; }
.cart-layout #cartGrid .tag { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.cart-card-actions { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.cart-card-actions .btn { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 9px 10px; font-size: 12px; }
.cart-item-checkout svg, .cart-remove svg, #cartCheckout svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#cartCheckout { gap: 9px; }
.cart-remove {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cart-card-actions .cart-remove:only-child { flex-basis: 100%; }
#cartGrid .card-name { padding-right: 38px; }
.cart-card-share { top: 10px; right: 12px; }
.cart-remove:hover { color: #fff; border-color: #dc3545; background: #dc3545; }
.cart-notice {
  position: fixed;
  right: 20px;
  top: 76px;
  z-index: 90;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.cart-notice::before {
  content: '';
  position: absolute;
  top: -7px;
  left: calc(var(--cart-arrow-left, 20px) - 7px);
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--border-strong);
  border-left: 7px solid transparent;
}
.cart-notice::after {
  content: '';
  position: absolute;
  top: -5px;
  left: calc(var(--cart-arrow-left, 20px) - 6px);
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--surface-2);
  border-left: 6px solid transparent;
}
.cart-notice.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cart-notice a { color: var(--accent-strong); font-size: 12px; font-weight: 700; white-space: nowrap; }
.cart-notice a:hover { text-decoration: underline; text-underline-offset: 3px; }
.checkout-page, .order-page, .narrow-page { max-width: 900px; }
.template-banner { padding: 12px 15px; display: flex; gap: 10px; border: 1px solid rgba(242,184,75,.4); background: rgba(242,184,75,.09); color: var(--muted); border-radius: var(--radius); font-size: 12px; margin-bottom: 28px; }
.template-banner strong { color: #e7a82f; }
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 34px; align-items: start; }
.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { font-size: 18px; }
.form-card label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.form-card label.checkbox { flex-direction: row; align-items: flex-start; gap: 9px; }
.form-card label.checkbox input { margin-top: 3px; flex: 0 0 auto; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-message { color: var(--accent-strong); font-size: 12px; min-height: 18px; }
.order-summary { display: flex; flex-direction: column; gap: 15px; }
.order-summary h2 { font-family: var(--mono); font-size: 30px; }
.order-summary dl { display: grid; gap: 10px; }
.order-summary dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.order-summary dl .order-total { padding-top: 4px; border-bottom: 0; color: var(--text); font-weight: 700; }
.order-summary dt { color: var(--faint); }
.order-summary dt small { margin-left: 4px; color: #35c96f; font-size: 10px; font-weight: 700; }
.order-timeline {
  display: block;
  width: min(100%, 540px);
  margin: 34px 0 16px;
}
.order-timeline li { position: relative; display: flex; gap: 18px; min-height: 68px; color: var(--faint); }
.order-timeline li:last-child { min-height: 0; }
.order-timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--border-strong);
}
.order-timeline li.done:has(+ li.done)::before { background: var(--accent); opacity: 0.55; }
.order-timeline i { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg); }
.order-timeline i::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--faint);
}
.order-timeline li.done { color: var(--text); }
.order-timeline li.done i { background: var(--accent); border-color: var(--accent); }
.order-timeline li.done i::after { background: var(--bg); }
.order-timeline li.current strong { color: var(--accent-strong); }
.order-timeline li.current i {
  border-color: var(--accent);
  background: var(--accent);
}
.order-timeline li.current i::after { background: var(--accent); }
.order-timeline li.current i { animation: timeline-pulse 2s ease-in-out infinite; }
@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px rgba(0, 136, 204, 0.08); }
}
.order-timeline span, .order-timeline small { display: flex; flex-direction: column; }
.order-timeline strong { font-size: 16px; line-height: 1.45; }
.order-timeline small { margin-top: 4px; color: var(--faint); font-size: 13px; }
.inline-review { max-width: 620px; margin-top: 34px; }
.rating-field { display: flex; align-items: center; gap: 12px; border: 0; }
.rating-field legend { margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.star-rating-control { position: relative; width: max-content; }
.star-rating-control input[type="range"] {
  position: absolute;
  inset: -10px 0;
  width: 100%;
  height: calc(100% + 20px);
  cursor: pointer;
  opacity: 0;
}
.star-rating-control:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.rating-value { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.policy-page { max-width: 760px; }
.policy-page h2 { font-size: 18px; margin: 30px 0 7px; }
.policy-page p { color: var(--muted); }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.empty-page { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
}
:root[data-theme="light"] .hero-title { text-shadow: none; }
:root[data-theme="light"] body {
  background-image: radial-gradient(circle at 50% 0%, rgba(101, 101, 220, 0.07), transparent 520px);
}
:root[data-theme="light"] .card:hover {
  border-color: var(--border-strong);
}
:root[data-theme="light"] .btn-primary { color: #fff; }
:root[data-theme="light"] .hero-eyebrow { background: rgba(255, 255, 255, 0.78); }
:root[data-theme="light"] .rarity-eyebrow.common { color: #646473; border-color: rgba(100, 100, 115, 0.3); background: rgba(100, 100, 115, 0.06); }
:root[data-theme="light"] .rarity-eyebrow.uncommon { color: #258a42; border-color: rgba(37, 138, 66, 0.34); background: rgba(37, 138, 66, 0.07); }
:root[data-theme="light"] .rarity-eyebrow.rare { color: #2877ca; border-color: rgba(40, 119, 202, 0.34); background: rgba(40, 119, 202, 0.07); }
:root[data-theme="light"] .rarity-eyebrow.epic { color: #9040d0; border-color: rgba(144, 64, 208, 0.34); background: rgba(144, 64, 208, 0.07); }
:root[data-theme="light"] .rarity-eyebrow.legendary { color: #d86720; border-color: rgba(216, 103, 32, 0.36); background: rgba(216, 103, 32, 0.07); }
:root[data-theme="light"] .rarity-name.common { color: #646473; }
:root[data-theme="light"] .rarity-name.uncommon { color: #258a42; }
:root[data-theme="light"] .rarity-name.rare { color: #2877ca; }
:root[data-theme="light"] .rarity-name.epic { color: #9040d0; }
:root[data-theme="light"] .rarity-name.legendary { color: #d86720; }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 22px 80px;
}
.footer .brand-name { font-size: 14px; }
.footer-brand .footer-note { max-width: 390px; margin-top: 8px; line-height: 1.5; }
.footer-note { font-size: 13px; color: var(--faint); }
.footer-links { display: flex; gap: 72px; }
.footer-column { display: flex; flex-direction: column; gap: 6px; min-width: 110px; }
.footer-heading {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.footer-column a { color: var(--faint); font-size: 13px; transition: color 0.15s ease; }
.footer-column a:hover { color: var(--text); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 11px;
}

/* ---------- Reveal & entrance animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .hero > .reveal { transform: none; }
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}
.js .reveal.settled {
  transition-delay: 0s !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.grid-lg .card:nth-child(1) { transition-delay: 0.05s; }
.grid-lg .card:nth-child(2) { transition-delay: 0.13s; }
.grid-lg .card:nth-child(3) { transition-delay: 0.21s; }
.grid-lg .card:nth-child(4) { transition-delay: 0.29s; }

.btn-primary, .btn-ghost { transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-1px); }

/* ---------- Rendering efficiency ---------- */
.payment-showcase, .reviews-preview, #featured, .browse {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-actions { position: static; }
  .browse-head { width: auto; height: auto; margin-bottom: 18px; display: block; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; top: auto; max-height: min(86vh, 760px); margin: 0; border-radius: 14px 14px 0 0; overflow-y: auto; transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.22,1,.36,1), visibility .28s; }
  .filters.open { transform: translateY(0); visibility: visible; }
  .filter-close { width: 44px; height: 44px; display: grid; place-items: center; margin: -10px -10px 0 auto; border: 0; background: transparent; color: var(--muted); font-size: 24px; }
  .filter-apply { min-height: 48px; display: inline-flex; position: sticky; bottom: 0; }
  .mobile-filter-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; }
  .mobile-filter-btn b { min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: 9px; }
  .filter-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,8,.68); }
  body.filters-open { overflow: hidden; }
  .float-name { font-size: 14px !important; }
  .rating-summary { grid-template-columns: 170px 1fr; }
  .rating-verified { grid-column: 1 / -1; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .username-detail { grid-template-columns: 1fr; }
  .purchase-panel { max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-right: 20px; padding-left: 20px; }
  .footer-links { gap: 28px 48px; flex-wrap: wrap; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 900px) {
  body { padding-top: 56px; }
  .nav-inner { height: 56px; display: flex; }
  .nav-actions { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .nav-actions > .saved-link,
  .nav-actions > .cart-link { margin-right: 0; }
  .nav-links {
    display: none;
    position: fixed;
    z-index: 95;
    top: 64px;
    left: 12px;
    right: 12px;
    transform: none;
    padding: 10px;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 11px 12px; border-radius: 6px; font-size: 15px; }
  .nav-links a:focus-visible { outline-offset: -2px; }
  .nav-links a:hover, .nav-links a.active { background: var(--accent-soft); }
  .nav-links a::after { display: none; }
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
  }
  .mobile-menu-toggle span { width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .15s ease, opacity .15s ease; }
  .nav.menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .theme-toggle, .saved-link, .cart-link { width: 36px; height: 36px; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 18px 24px; }
  .hero-logo-ring { width: 120px; height: 120px; }
  .hero-logo-name { font-size: 18px; }
  .hero-logo { margin-bottom: 24px; }
  .hero-title { font-size: clamp(38px, 12vw, 54px); line-height: 1.02; }
  .hero-sub { margin-top: 18px; font-size: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 28px; gap: 10px; }
  .float-field { display: none; }
  .hero-stats { margin-top: 11px; padding-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .hero-stats .stat-delivery { grid-column: 1 / -1; align-items: center; }
  .stat strong { font-size: 21px; }
  .stat span { font-size: 12px; }
  .featured { padding-left: 16px; padding-right: 16px; }
  .reviews-preview + .featured { padding-top: 56px; }
  .sale-countdown { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px; }
  .sale-timer { width: 100%; justify-content: space-between; }
  .reviews-preview { margin-top: 56px; }
  .browse { margin-top: 56px; }
  .browse, .how, .faq, .page { padding: 48px 20px 32px; }
  .browse { padding: 0 16px 32px; }
  .browse-search { margin-bottom: 12px; }
  .browse-search .input { height: 44px; font-size: 16px; }
  .results-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(132px, 45%); align-items: center; gap: 8px; }
  .results-overview { min-width: 0; gap: 8px; }
  .results-count { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .sort { min-width: 0; }
  .sort-label { display: none; }
  .sort .select { width: 100%; min-width: 0; min-height: 44px; padding-left: 10px; }
  .grid.grid-lg { grid-template-columns: 1fr; }
  .review-grid, .reviews-full { grid-template-columns: 1fr; }
  .reviews-preview { padding: 0 16px; }
  .reviews-preview-head { align-items: flex-start; }
  .rating-summary { grid-template-columns: 1fr; }
  .rating-note { grid-column: auto; }
  .reviews-cta { align-items: flex-start; flex-direction: column; }
  .checkout-layout { grid-template-columns: 1fr; }
  .price-history { grid-template-columns: 1fr; }
  .detail-actions { align-items: stretch; flex-wrap: wrap; }
  .detail-actions .btn { flex: 1; }
  .template-banner { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-left: 20px; padding-right: 20px; }
  .footer-links { gap: 36px 48px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 440px) {
  .nav-inner { padding: 0 16px; }
  .brand-name { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { justify-content: space-around; gap: 24px 16px; }
  .grid-lg .card { padding: 22px; }
  .card-bottom { align-items: flex-end; }
  .pagination { gap: 5px; }
  .page-btn { min-width: 32px; padding: 7px 9px; }
  .page-arrow { min-width: 32px; }
  .reviews-preview-head { flex-direction: column; }
  .reviews-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
