:root {
  --ink: #eef4fb;
  --muted: #9eb0c7;
  --line: rgba(186, 214, 255, 0.16);
  --glass: rgba(8, 18, 34, 0.62);
  --silver: #d5deea;
  --deep: #071422;
  --tg-pad-top: 0px;
  --tg-pad-bottom: 0px;
  color-scheme: dark;
}

[hidden] { display: none !important; }
.route-pending #market { display: none; }
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  overflow-x: clip;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  background: #07111c;
  -webkit-tap-highlight-color: transparent;
}
button, a, input, textarea { touch-action: manipulation; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

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

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(37, 99, 235, 0.2), transparent 62%),
    linear-gradient(180deg, #07111e 0%, #081628 46%, #07111c 100%);
}
.flow {
  position: absolute;
  width: 170%;
  height: 170%;
  left: -35%;
  top: -35%;
  will-change: transform;
}
.flow-a {
  background:
    radial-gradient(42% 38% at 24% 18%, rgba(37, 99, 235, 0.62), transparent 70%),
    radial-gradient(34% 32% at 78% 16%, rgba(56, 189, 248, 0.4), transparent 68%),
    radial-gradient(40% 36% at 64% 82%, rgba(99, 102, 241, 0.36), transparent 72%),
    radial-gradient(32% 30% at 16% 74%, rgba(14, 165, 233, 0.3), transparent 70%);
  animation: flow-a 34s ease-in-out infinite alternate;
}
.flow-b {
  background:
    radial-gradient(36% 34% at 72% 34%, rgba(125, 211, 252, 0.34), transparent 70%),
    radial-gradient(42% 38% at 22% 46%, rgba(59, 130, 246, 0.32), transparent 72%),
    radial-gradient(28% 26% at 48% 12%, rgba(196, 181, 253, 0.22), transparent 70%);
  animation: flow-b 26s ease-in-out infinite alternate;
}
.wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 16%, #000 8%, transparent 74%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
}
.orb-a { width: 42vw; height: 42vw; left: -10vw; top: -14vw; background: #1d4ed8; opacity: 0.28; }
.orb-b { width: 30vw; height: 30vw; right: -6vw; top: -4vw; background: #38bdf8; opacity: 0.18; }
.orb-c { width: 28vw; height: 28vw; left: 22vw; bottom: -12vw; background: #0ea5e9; opacity: 0.12; }
.orb-d { width: 22vw; height: 22vw; right: 10vw; top: 46vh; background: #818cf8; opacity: 0.1; }
@keyframes flow-a {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to { transform: translate3d(4%, 3%, 0) rotate(10deg); }
}
@keyframes flow-b {
  from { transform: translate3d(3%, 1%, 0) rotate(6deg); opacity: 0.4; }
  to { transform: translate3d(-5%, -3%, 0) rotate(-8deg); opacity: 0.95; }
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.top, main, .foot { position: relative; z-index: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7, 14, 28, 0.88);
  border-bottom: 1px solid rgba(186, 214, 255, 0.12);
  box-shadow: 0 8px 28px rgba(3, 8, 18, 0.16);
}
.top-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
}
.brand-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sell-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fbff, #c5d2e4);
  color: #0c1830;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.sell-caret {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.sell-btn:hover .sell-caret,
.sell-btn[aria-expanded="true"] .sell-caret { transform: translateY(3px); }
.sell-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: max(14px, calc((100% - 1120px) / 2));
  width: min(380px, calc(100% - 28px));
  max-height: min(72dvh, 560px);
  overflow: auto;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(160, 198, 255, 0.32);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(90, 150, 255, 0.18), transparent 52%),
    rgba(10, 18, 34, 0.97);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  animation: sell-drop 0.2s ease;
}
.sell-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sell-head strong { flex: 1; min-width: 0; font-size: 16px; letter-spacing: -0.03em; }
.sell-x { width: 32px; height: 32px; font-size: 18px; flex: none; }
.sell-panel .blurb { margin: 0 0 10px; font-size: 13px; line-height: 1.4; }
.sell-panel .peer-form { margin-top: 0; }
.auth-dialog.sell-dialog {
  width: min(460px, 100%);
  text-align: left;
  max-height: min(88dvh, 760px);
  overflow: auto;
}
.sell-dialog .peer-form { margin-top: 4px; }
.sell-dialog .blurb { margin: 0 0 12px; }
@keyframes sell-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: Montserrat, "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 10px 16px rgba(4, 12, 28, 0.45));
}
.brand-zxc, .brand-market {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-zxc {
  background-image: linear-gradient(180deg, #ffffff 0%, #c5e2ff 14%, #5aa2ff 34%, #1f6fe0 60%, #163e86 100%);
}
.brand-market {
  background-image: linear-gradient(180deg, #ffffff 0%, #f4f7fb 18%, #c5ceda 48%, #8d9aab 72%, #eef3f8 100%);
}
.brand:hover { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0 18px rgba(120, 180, 255, 0.35)); }

.search {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  width: min(260px, 100%);
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  flex: none;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.search input::placeholder { color: #7f93ab; }
.search:focus-within {
  border-color: rgba(120, 176, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(61, 130, 255, 0.15);
}

.cart-btn, .checkout, .buy, .empty button, .qty button {
  border: 0;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff, #c5d2e4);
  color: #0c1830;
  font-weight: 700;
}
.cart-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-btn:hover { filter: brightness(1.05); }
.badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #14315f;
  color: #fff;
  font-size: 12px;
}

.intro { padding: 28px 0 6px; }
.intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.intro-copy { min-width: 0; }
.promo-slot { display: grid; gap: 8px; flex: none; }
.promo-slot[hidden] { display: none; }
.deal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, 46vw);
  padding: 10px 16px 10px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 176, 84, 0.38);
  background:
    radial-gradient(90px 70px at 8% 50%, rgba(255, 122, 40, 0.28), transparent 72%),
    linear-gradient(180deg, rgba(28, 22, 16, 0.94), rgba(12, 16, 28, 0.94));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}
.deal-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: none;
}
.promo-copy { min-width: 0; }
.promo-kicker {
  margin: 0;
  color: #ffb15a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.promo-title {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.promo-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.promo-price b { font-size: 18px; letter-spacing: -0.03em; color: #ffe1b0; }
.promo-old {
  color: #8ea0b8;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(224, 106, 90, 0.95);
}
.promo-clock {
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #ffe2bf;
}
.eyebrow {
  margin: 0 0 8px;
  color: #8eb7ee;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 10%, #d7e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.lede {
  margin: 12px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.services { margin-top: 8px; }
.services .eyebrow { margin-bottom: 10px; }
.service-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.service-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 16px 10px 14px;
  border-radius: 22px;
  border: 1px solid rgba(186, 214, 255, 0.22);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(90, 150, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  color: inherit;
  text-align: center;
}
.service-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
}
.account-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card img.rent-ico { object-fit: cover; background: #101820; }
.service-card > span { font-weight: 800; letter-spacing: -0.03em; }
.service-card small { color: var(--muted); font-weight: 700; font-size: 12px; }
.service-card[aria-pressed="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #0c1830;
  border-color: transparent;
}
.service-card[aria-pressed="true"] small { color: #415066; }
.accounts { margin-top: 12px; }
.house {
  margin-top: 18px;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(186, 214, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.72), rgba(7, 14, 26, 0.35));
}
.house-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 4px 12px;
}
.house-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.04em; font-weight: 800; }
.house-head p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.house .services { margin-top: 0; }
.house .accounts { margin-top: 10px; }
.peer-launch { margin-top: 16px; }
.peer-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 16px;
  border-radius: 26px;
  text-align: left;
  color: inherit;
  border: 1px solid rgba(140, 190, 255, 0.55);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(130, 186, 255, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(24, 52, 92, 0.98), rgba(8, 18, 34, 0.96));
  box-shadow: 0 0 0 1px rgba(90, 160, 255, 0.16), 0 18px 40px rgba(16, 48, 96, 0.32);
}
.peer-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #9eb6d4);
  color: #102033;
}
.peer-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.peer-entry-copy { display: grid; gap: 2px; min-width: 0; }
.peer-entry-copy span { font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.peer-entry-copy small { color: #d5e4f8; font-weight: 700; }
.peer-entry[aria-pressed="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #0c1830;
  border-color: transparent;
}
.peer-entry[aria-pressed="true"] .peer-entry-copy small { color: #415066; }
.peer-entry[aria-pressed="true"] .peer-mark { background: #102033; color: #f4f7fb; }
.peer-side { display: flex; align-items: center; gap: 10px; }
.peer-pills { display: flex; gap: 6px; }
.peer-pills img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: none;
}
.peer-open {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f4f7fb;
}
.peer-open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.peer-entry[aria-pressed="true"] .peer-open { background: #102033; color: #f4f7fb; }
#market.is-peers > .intro,
#market.is-peers > .peer-launch,
#market.is-peers > .house { display: none; }
.peer-screen-head { display: grid; justify-items: start; gap: 10px; margin: 6px 0 14px; }
.peer-screen-head h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.04em; }
.peer-return {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(186, 214, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  flex: none;
}
.peer-return svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.peer-lead { margin: 4px 0 12px; color: var(--muted); line-height: 1.45; }
#catalog { margin-top: 8px; }
#catalog .toolbar { justify-content: flex-end; margin-top: 16px; margin-bottom: 10px; }
.service-faces { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; }
.service-faces img { width: 44px; height: 44px; margin: 0; border-radius: 0; object-fit: contain; }
.service-dialog { text-align: center; }
#service-body { display: grid; gap: 14px; margin-top: 16px; }
.service-buy { display: grid; gap: 14px; }
#service-body label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
#service-body .hint { margin: 0; text-align: center; }
.service-switch, .service-months { display: grid; gap: 8px; width: 100%; }
.service-switch { grid-template-columns: 1fr 1fr; }
.service-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-term { display: grid; gap: 8px; justify-items: center; width: 100%; }
.service-term > span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.service-rate { margin: 0; text-align: center; font-weight: 800; letter-spacing: -0.03em; }
.service-rate span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.service-offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}
.service-offers button { width: 100%; text-align: left; }
.service-switch button, .service-months button, .service-offers button, .service-game {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border-radius: 14px;
  min-height: 42px;
  padding: 8px 12px;
  font-weight: 700;
}
.service-switch button[aria-pressed="true"],
.service-months button[aria-pressed="true"],
.service-offers button[aria-pressed="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #0c1830;
  border-color: transparent;
}
.service-months button { display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 58px; padding: 8px 4px; }
.service-months button strong { font-size: 18px; letter-spacing: -0.04em; line-height: 1; }
.service-months button small { font-size: 11px; font-weight: 700; opacity: 0.72; }
.service-games, .service-fields { display: grid; gap: 8px; margin-top: 10px; max-height: 240px; overflow: auto; }
.service-game { width: 100%; text-align: left; }
.service-dialog input, .service-dialog select {
  width: 100%;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
}
.service-who { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.service-self {
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-weight: 800;
  white-space: nowrap;
}
#service-price.service-sum {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding: 14px 12px 12px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(186, 214, 255, 0.16);
}
#service-price strong { font-size: 28px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
#service-price span { color: var(--muted); font-size: 13px; font-weight: 700; }
.service-dialog .form-error { margin-top: 12px; }
.service-dialog .checkout { margin-top: 18px; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
}
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px 8px 14px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}
.cat img, .glyph img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.cat[aria-selected="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #0c1830;
  border-color: transparent;
}
.count { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }

.market-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 22px;
}
.market-stage { min-width: 0; }
.market-stage .intro { padding-top: 6px; }
.dock {
  position: sticky;
  top: calc(var(--tg-pad-top) + 97px);
  z-index: 2;
}
.dock-card {
  padding: 16px 14px 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  border: 1px solid rgba(186, 214, 255, 0.14);
  box-shadow: 0 16px 36px rgba(3, 10, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dock-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.dock-sumwrap { position: relative; }
.dock-sum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.dock-sum span { overflow-wrap: anywhere; }
.dock-sum svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.dock-menu { left: 0; right: auto; min-width: 190px; }
.dock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 8px;
}
.dock-actions button {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-height: 78px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.dock-act {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #d5deea;
}
.dock-act svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock-act.is-plus {
  background: linear-gradient(180deg, #f7fbff, #c5d2e4);
  border: 0;
  color: #0c1830;
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}
.dock-act.is-send {
  background: linear-gradient(180deg, #e7f1ff, #8eb6f2);
  border: 0;
  color: #10203a;
}
#listings-list { display: grid; gap: 10px; }
#favorites-list { display: grid; gap: 10px; }
.dock-sale {
  margin: 8px 0 0;
  color: #d7e6fb;
  font-size: 13px;
  font-weight: 700;
}
.dock-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 4px 8px;
  text-align: left;
  font-weight: 700;
}
.dock-nav img {
  width: 36px;
  height: 36px;
  max-width: none;
  object-fit: contain;
  flex: none;
}
.dock-nav button[aria-current="page"] { background: rgba(255, 255, 255, 0.07); }
.dock-backdrop, .dock-grab { display: none; }
.dock-nav .dock-more { display: none; }
.dock-more-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.dock-more-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .dock-actions button:hover,
  .dock-nav button:hover { background: rgba(255, 255, 255, 0.05); }
}
.library { padding-bottom: 8px; }
.library h1 { margin-bottom: 16px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat, .lib-row, .library-lock {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  border: 1px solid rgba(186, 214, 255, 0.14);
}
.stat { padding: 14px 16px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.lib-list { display: grid; gap: 10px; }
.lib-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: inherit;
  text-align: left;
}
button.lib-row { border: 1px solid rgba(186, 214, 255, 0.14); }
.lib-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.lib-open {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}
.lib-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.lib-copy strong { overflow-wrap: anywhere; }
.lib-copy small, .lib-row small { color: var(--muted); font-size: 13px; }
.lib-row > img, .lib-main img {
  width: 36px;
  height: 36px;
  max-width: none;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}
.lib-row > b { white-space: nowrap; }
.op-plus { color: #8dff9a; font-weight: 800; }
.op-minus { color: #ffb0b0; font-weight: 800; }
.library-lock { padding: 18px; margin-bottom: 12px; }
.library-lock .checkout { margin-top: 12px; }

.filters {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(200px, 280px);
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  border: 1px solid rgba(186, 214, 255, 0.14);
  box-shadow: 0 16px 36px rgba(3, 10, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.filter-field, .filter-sort { display: grid; gap: 6px; min-width: 0; }
.filter-field span, .filter-sort > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.filter-field input, .sort-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 12px;
  font-size: 16px;
}
.filter-field input::placeholder { color: #7f93ab; }
.filter-field input:focus, .sort-btn:focus-visible {
  outline: none;
  border-color: rgba(120, 176, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(61, 130, 255, 0.15);
}
.filter-sort { position: relative; }
.sort-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-weight: 700;
}
.sort-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  transition: transform 0.2s ease;
}
.sort-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sort-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(8, 18, 34, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.sort-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}
.sort-menu button.is-current { background: rgba(90, 160, 255, 0.16); }
@media (hover: hover) and (pointer: fine) {
  .sort-menu button:hover { background: rgba(90, 160, 255, 0.16); }
}

.countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.countries[hidden] { display: none; }
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0 14px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.country-chip[aria-selected="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #0c1830;
  border-color: transparent;
}
.country-chip .flag-mini {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.type-filter { margin: 0 0 16px; }
.type-filter[hidden] { display: none; }
.type-filter > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#type-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
  min-height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0 8px 0 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.type-chip.is-all { padding: 0 14px; }
.type-chip.is-good[aria-selected="true"] {
  background: rgba(52, 199, 89, 0.18);
  border-color: rgba(52, 199, 89, 0.72);
  color: #e7ffee;
}
.type-chip.is-bad[aria-selected="true"] {
  background: rgba(255, 59, 48, 0.16);
  border-color: rgba(255, 59, 48, 0.7);
  color: #ffe8e6;
}
.type-gap { width: 8px; flex: none; }
.traits { display: flex; flex-wrap: wrap; gap: 6px; }
.trait {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 5px 4px 10px;
  border-radius: 11px;
  background: rgba(6, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.trait > span:first-child { min-width: 0; }
.mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex: none;
}
.trait.is-good .mark, .type-chip.is-good .mark { background: #34c759; color: #fff; }
.trait.is-bad .mark, .type-chip.is-bad .mark { background: #ff3b30; color: #fff; }
.mark svg { width: 14px; height: 14px; fill: currentColor; }
.trait.is-bad .mark svg, .type-chip.is-bad .mark svg { transform: rotate(180deg); }
.trait-pop {
  position: fixed;
  z-index: 120;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(18, 8, 10, 0.96);
  border: 1px solid rgba(255, 90, 80, 0.45);
  color: #ffe8e6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}
.category-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(90, 160, 255, 0.08);
  border: 1px solid rgba(120, 176, 255, 0.22);
}
.category-note[hidden] { display: none; }
.category-note p:first-child {
  margin: 0 0 4px;
  color: #9ec4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.category-note p:last-child { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.guide {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}
.guide-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.guide-text, #acc-instruction { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.pick { display: grid; gap: 8px; }
.pick-label { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-row .trait { position: relative; cursor: pointer; }
.pick-row .trait input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.pick-row .trait:has(input:checked) { box-shadow: 0 0 0 2px currentColor; }
.pick-row .trait.is-good:has(input:checked) { color: #e7ffee; box-shadow: 0 0 0 2px #34c759; }
.pick-row .trait.is-bad:has(input:checked) { color: #ffe8e6; box-shadow: 0 0 0 2px #ff3b30; }
.admin-offer {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.admin-offer:first-child { border-top: 1px solid var(--line); padding-top: 14px; }
.admin-offer .admin-row { border: 0; padding: 0; flex-wrap: wrap; }
.admin-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-flag { width: 28px; height: 20px; object-fit: cover; border-radius: 4px; flex: none; }
.admin-actions { display: flex; gap: 8px; flex: none; margin-top: 8px; }
.admin-actions .ghost { height: 40px; padding: 0 12px; white-space: nowrap; }
.admin-edit { display: grid; gap: 8px; margin-top: 10px; }
.admin-edit .pick-row { display: grid; grid-template-columns: 1fr 1fr; }
.admin-edit select, .admin-edit textarea, .admin-edit input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
  color-scheme: dark;
  font-family: inherit;
}
.admin-edit textarea { min-height: 74px; resize: vertical; }
.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.file-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.price-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.price-field { position: relative; display: block; min-width: 0; }
.price-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 36px 0 14px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  color-scheme: dark;
}
.price-field span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 800;
  pointer-events: none;
}
.price-edit .checkout { width: auto; min-width: 132px; height: 48px; }
.admin-fold { margin: 16px 0; }
.admin-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(186, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.admin-fold summary::-webkit-details-marker { display: none; }
.admin-fold summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  flex: none;
}
.admin-fold[open] summary::after { transform: rotate(45deg); }
.admin-fold .admin-form { margin-bottom: 0; }
.card-art.has-flag,
.sheet-art.has-flag,
.card-art.has-brand,
.sheet-art.has-brand {
  height: 176px;
  background:
    radial-gradient(72% 78% at 50% 46%, rgba(132, 178, 255, 0.36), transparent 68%),
    linear-gradient(165deg, #1d4d8c 0%, #14325f 52%, #0b1c36 100%);
}
.card-art.has-brand.is-mullvad,
.sheet-art.has-brand.is-mullvad {
  background:
    radial-gradient(70% 76% at 50% 44%, rgba(255, 196, 70, 0.18), transparent 64%),
    linear-gradient(165deg, #24527e 0%, #163654 52%, #0e2238 100%);
}
.card-art.has-brand.is-mullvad::before,
.sheet-art.has-brand.is-mullvad::before {
  background: radial-gradient(circle at 50% 48%, #f3f6fb 0 62px, rgba(243, 246, 251, 0) 64px);
}
.card-art.has-brand.is-mullvad .brand-hero,
.sheet-art.has-brand.is-mullvad .brand-hero {
  width: 136px;
  height: 136px;
}
.brand-hero,
.flag-hero {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 1;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -52%);
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.34));
  pointer-events: none;
  user-select: none;
}
.card-art.has-flag::before,
.sheet-art.has-flag::before,
.card-art.has-brand::before,
.sheet-art.has-brand::before {
  display: block;
  width: auto;
  height: auto;
  right: auto;
  top: auto;
  border-radius: 0;
  inset: 0;
  background: radial-gradient(38% 34% at 50% 44%, rgba(255, 255, 255, 0.18), transparent 72%);
  pointer-events: none;
}
.card-art.has-flag::after,
.sheet-art.has-flag::after,
.card-art.has-brand::after,
.sheet-art.has-brand::after { display: none; }
.brand-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brand-picks label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
  cursor: pointer;
}
.brand-picks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.brand-picks label:has(input:checked) {
  border-color: rgba(158, 196, 255, 0.72);
  background: rgba(90, 150, 255, 0.16);
}
.brand-picks img { width: 28px; height: 28px; object-fit: contain; }
.vpn-creds { display: grid; gap: 8px; margin-top: 12px; }
.vpn-creds .phone-copy { margin: 0; }
.cred-k, .cred-hint { color: #9eb6d4; font-size: 12px; font-weight: 700; }
.cred-v {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-align: center;
}
.phone-copy.is-copied .cred-hint { color: #b7f0c8; }
.offer-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #9ec4ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.flag-inline {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}
.offer-kind { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.offer-facts {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 8px;
  margin: 0;
}
.offer-facts div {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}
.offer-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.offer-facts dd {
  margin: 1px 0 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
}
.offer-facts dd.is-empty { color: var(--muted); }
.offer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.device-note {
  margin: 0;
  max-width: 42%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}
.admin-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}
.admin-switch .checkout,
.admin-switch .ghost { width: 100%; }
#admin .narrow { max-width: 960px; }
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.admin-tabs button {
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 800;
  font-size: 14px;
}
.admin-tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #f7fbff, #c5d2e4);
  color: #0c1830;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stat-card {
  min-width: 0;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(186, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 28, 50, 0.94), rgba(8, 18, 34, 0.92));
}
.stat-card.span-2 { grid-column: span 2; }
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.stat-card.span-2 strong { font-size: 32px; }
.stat-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.stat-block { margin-top: 14px; }
.stat-block h2 { margin: 0 0 10px; font-size: 18px; }
.source-list, .sale-list { display: grid; gap: 8px; }
.source-row, .sale-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.source-row img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}
.source-row strong, .sale-row strong { display: block; overflow-wrap: anywhere; }
.source-row small, .sale-row small { color: var(--muted); font-weight: 700; }
.source-row b, .sale-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sale-row { grid-template-columns: minmax(0, 1fr) auto; }
button.sale-row {
  width: 100%;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
button.sale-row.is-open:hover,
button.sale-row.is-open:focus-visible {
  border-color: rgba(186, 214, 255, 0.46);
}
.goods-bar { display: grid; gap: 10px; margin-bottom: 12px; }
.goods-bar .checkout { width: 100%; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filters button {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 800;
  font-size: 14px;
}
.admin-filters button[aria-pressed="true"] {
  background: #f4f7fb;
  color: #0c1830;
  border-color: transparent;
}
#goods-search, #user-search {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-bottom: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(90, 160, 255, 0.16);
  color: #cfe3ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.user-grid .lede, .admin-list .lede { grid-column: 1 / -1; margin: 8px 0; }
button.user-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}
.user-card .person-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.user-card strong, .user-card small { display: block; overflow-wrap: anywhere; }
.user-card small { margin-top: 2px; color: var(--muted); font-weight: 700; }
.user-card .is-on { color: #8ee0a8; }
.user-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.user-head .person-avatar { width: 64px; height: 64px; font-size: 24px; }
.user-head h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.user-head p { margin: 4px 0 0; color: var(--muted); }
.user-back { margin-bottom: 12px; }
.offer-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--silver);
  font-weight: 800;
}
.sheet-art.has-flag,
.sheet-art.has-brand {
  position: relative;
  overflow: hidden;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 16px;
}
.rent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.rent-card {
  display: grid;
  gap: 8px;
  padding: 8px 8px 12px;
  border-radius: 18px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background: linear-gradient(180deg, rgba(18, 32, 54, 0.96), rgba(8, 16, 30, 0.94));
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.rent-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #101820;
}
.rent-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rent-days {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.rent-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.rent-sub { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.rent-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rent-prices span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.rent-prices strong { font-size: 16px; letter-spacing: -0.03em; }
.rent-filters { display: grid; gap: 10px; margin: 0 0 12px; }
.rent-filters[hidden] { display: none; }
.rent-selects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rent-selects:empty { display: none; }
.rent-selects select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #122033;
  color: inherit;
  padding: 0 10px;
  font-weight: 700;
}
.rent-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rent-chips:empty { display: none; }
.rent-chip-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rent-sheet-top { position: relative; display: flex; justify-content: flex-end; padding: 8px 8px 0; flex: none; }
.rent-grab { display: none; }
.rent-sheet-main {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 0 16px 12px;
  min-height: 0;
}
.rent-sheet-copy { min-width: 0; }
.rent-sheet-copy h2 { overflow-wrap: anywhere; }
.rent-photo[hidden] { display: none; }
.rent-photo {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 18px;
  background: #101820;
}
.rent-meta { margin: 6px 0 0; color: var(--muted); font-weight: 700; line-height: 1.35; }
.rent-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rent-facts span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.rent-step { display: flex; align-items: center; gap: 8px; margin: 0; }
.rent-step button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-size: 22px;
}
.rent-step input {
  width: 72px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}
.rent-sheet-foot {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 16, 30, 0.96);
}
.rent-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rent-price { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rent-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rent-pills.is-two { grid-template-columns: 1fr 1fr; }
.rent-pills span {
  padding: 8px 6px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.rent-pills .is-days { color: #d7e8ff; background: #17345c; }
.rent-pills .is-rate { color: #d9ffe8; background: #143828; }
.rent-pills .is-fee { color: #ffe3a8; background: #3d2c12; }
.rent-how {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #b7c3d4;
  font-weight: 800;
}
.rent-how:hover { background: rgba(255, 255, 255, 0.1); }
.rent-help {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-items: end;
  padding: 12px;
  background: rgba(3, 8, 16, 0.62);
}
.rent-help[hidden] { display: none; }
.rent-help-card {
  display: grid;
  gap: 12px;
  max-height: 100%;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: #101c2e;
  border: 1px solid var(--line);
}
.rent-help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rent-help-head h3 { margin: 0; font-size: 18px; }
.rent-help ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.rent-help li { line-height: 1.4; }
.rent-help a { color: #9ec5ff; }
.rent-help a.checkout { color: #08111c; }
.rent-help-note { margin: 0; color: #ffe3a8; font-size: 13px; font-weight: 700; line-height: 1.4; }
.sheet.rent-own {
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100% - 24px));
  max-height: min(86dvh, 100%);
  padding: 0;
  overflow: hidden;
}
.sheet.rent-own[hidden] { display: none; }
.rent-link { display: grid; gap: 6px; }
.rent-link span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rent-link input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 12px;
  font-size: 16px;
}
.rent-link input:focus {
  outline: none;
  border-color: rgba(120, 176, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(61, 130, 255, 0.15);
}
.rent-sheet-foot .checkout { width: 100%; }
.rent-note { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.94), rgba(8, 18, 34, 0.9));
  border: 1px solid rgba(186, 214, 255, 0.14);
  box-shadow: 0 16px 36px rgba(3, 10, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(160, 204, 255, 0.45);
    box-shadow: 0 20px 40px rgba(8, 24, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}
.card-art {
  position: relative;
  height: 132px;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: linear-gradient(145deg, var(--a), var(--b));
  overflow: hidden;
}
.card-art::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -30px;
  top: -46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.card-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42px;
  background: linear-gradient(180deg, transparent, rgba(5, 12, 24, 0.28));
}
.glyph {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 1;
}
.glyph svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 16, 30, 0.35);
  font-size: 12px;
  font-weight: 700;
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { margin: 0; font-size: 17px; letter-spacing: -0.03em; line-height: 1.25; }
.term { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.card-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-top: 6px;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.heart {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #9eb0c7;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}
.heart svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.heart[aria-pressed="true"] {
  color: #8ec5ff;
  background: rgba(80, 150, 255, 0.18);
  border-color: rgba(140, 190, 255, 0.45);
}
.heart[aria-pressed="true"] svg { fill: currentColor; }
.price { font-size: 18px; letter-spacing: -0.03em; white-space: nowrap; }
.price-sale { display: grid; gap: 1px; line-height: 1.05; min-width: 0; }
.price-top { display: flex; align-items: center; gap: 6px; }
.price-was {
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(224, 106, 90, 0.95);
}
.price-off {
  color: #ffb15a;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.price-sale .price { color: #ffe1b0; font-size: 20px; }
.buy {
  height: auto;
  min-height: 40px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  flex: 0 1 auto;
  min-width: 0;
}
.buy:hover { background: rgba(255, 255, 255, 0.14); }

.empty {
  margin: 28px 0 10px;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(8, 18, 34, 0.4);
}
.empty p { margin: 0 0 12px; color: var(--muted); }
.empty button, .checkout {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #c5d2e4);
  color: #0c1830;
  font-weight: 800;
}

.foot {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(22px + env(safe-area-inset-bottom, 0px));
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 28px 32px;
  align-items: start;
}
.foot-brand { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.foot-mark {
  width: 48px;
  height: 48px;
  max-width: none;
  border-radius: 14px;
  flex: none;
}
.foot-name {
  margin: 0;
  font-family: Montserrat, "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.foot-tag { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.foot-mail {
  display: inline-block;
  margin-top: 6px;
  color: #d5e6ff;
  font-size: 14px;
  text-decoration: none;
}
.foot-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-col { min-width: 0; }
.foot-col > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.foot-link > span:not(.foot-ico) {
  min-width: 0;
  line-height: 1.25;
}
a.foot-link { border-radius: 12px; }
a.foot-link:focus-visible { outline: 2px solid rgba(120, 176, 255, 0.7); outline-offset: 3px; }
a.foot-doc {
  justify-content: flex-start;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
@media (hover: hover) and (pointer: fine) {
  a.foot-link:hover { color: #fff; }
}
.foot-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.foot-ico img { width: 22px; height: 22px; max-width: none; object-fit: contain; }
.foot-ico img.is-round { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(3, 8, 16, 0.55);
  backdrop-filter: blur(4px);
}
.drawer, .sheet {
  position: fixed;
  z-index: 50;
  background: rgba(10, 20, 36, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.drawer {
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(400px, calc(100% - 24px));
  border-radius: 22px;
  display: flex;
  flex-direction: column;
}
.drawer-head, .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.drawer-head h2, .sheet h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.sheet-head > div:first-child { flex: 1; min-width: 0; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
.drawer-body { flex: 1; overflow: auto; padding: 8px 16px 16px; }
.drawer-foot { padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.total strong { font-size: 22px; }
.checkout { width: 100%; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cart-empty { color: var(--muted); margin: 18px 0; }
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.line h3 { margin: 0; font-size: 15px; }
.line p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.line-actions { display: flex; align-items: center; gap: 8px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 0;
}

.sheet {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 24px));
  max-height: min(92dvh, 100%);
  border-radius: 22px;
  overflow: auto;
}
.sheet-art { height: 160px; background: linear-gradient(145deg, var(--a), var(--b)); }
.sheet-body { padding: 16px 18px 18px; }
.sheet-body .traits { margin-bottom: 10px; }
.sheet .term { margin-top: 6px; }
.sheet .blurb { margin: 12px 0 16px; color: var(--muted); line-height: 1.5; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-row .checkout { width: auto; min-width: 148px; padding: 0 18px; }
.sheet.rent-sheet {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - var(--tg-pad-top, 0px) - var(--tg-pad-bottom, 0px) - 32px);
  padding: 0;
  overflow: hidden;
}
.sheet.peer-sheet {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - var(--tg-pad-top, 0px) - var(--tg-pad-bottom, 0px) - 32px);
}
.sheet.peer-sheet[hidden] { display: none; }
.sheet.rent-sheet[hidden] { display: none; }
html.tg-desktop .sheet.rent-sheet {
  top: calc(50% + (var(--tg-pad-top, 0px) - var(--tg-pad-bottom, 0px)) / 2);
}

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 14px;
  background: #f4f7fb;
  color: #0c1830;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.buy-scene {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.buy-veil {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  animation: fade-in 0.28s ease;
}
.buy-card {
  position: relative;
  width: min(360px, 100%);
  padding: 28px 22px 22px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.98), rgba(8, 18, 34, 0.96));
  border: 1px solid rgba(186, 214, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: dialog-in 0.34s ease;
}
.buy-card h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 26px;
  letter-spacing: -0.04em;
  background: none;
  -webkit-text-fill-color: #f4f8ff;
}
.buy-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.buy-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8px;
  margin-top: 18px;
}
.scan, .broke {
  width: 124px;
  height: 124px;
  margin: 0 auto 18px;
  position: relative;
}
.broke { display: grid; place-items: center; }
.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(140, 196, 255, 0.15) 74%, #d7ecff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  animation: scan-spin 1.05s linear infinite;
}
.scan-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 32%, #3d86dc, #14386a 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(20, 70, 140, 0.35);
}
.scan-core svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scan-beam {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 14px #9fd0ff;
  animation: scan-beam 1.35s ease-in-out infinite;
}
.broke-coin {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #3a2508;
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(160deg, #fff1c2, #f0c15a 42%, #c4842a);
  box-shadow: inset 0 0 0 6px rgba(255, 236, 180, 0.35), 0 14px 26px rgba(150, 80, 10, 0.35);
}
.broke.is-play .broke-coin {
  animation: coin-drop 0.62s cubic-bezier(0.2, 1.35, 0.36, 1) both, coin-shake 0.46s 0.62s ease both;
}
.broke-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 89px;
  height: 89px;
  margin: -44.5px 0 0 -44.5px;
  border-radius: 50%;
  border: 3px solid #ff5d6c;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}
.broke-stamp::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 3px;
  border-radius: 3px;
  background: #ff5d6c;
  transform: translateY(-50%) rotate(-18deg);
}
.broke.is-play .broke-stamp { animation: stamp-in 0.28s 0.98s ease both; }
.buy-scene.is-broke .buy-card { animation: dialog-in 0.34s ease, card-shake 0.42s 1.05s ease; }
.sent-card { padding-top: 26px; }
.sent-card .eyebrow { margin-bottom: 4px; }
.sent-mark {
  width: 108px;
  height: 108px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 18px rgba(40, 160, 90, 0.28));
}
.sent-scene.is-play .sent-mark { animation: sent-pop 0.46s cubic-bezier(0.2, 1.2, 0.32, 1) both; }
.sent-mark svg { width: 108px; height: 108px; overflow: visible; }
.sent-mark circle {
  fill: rgba(72, 196, 120, 0.12);
  stroke: #6ef0a4;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 189;
  stroke-dashoffset: 189;
  transform-origin: 36px 36px;
  transform: rotate(-90deg);
}
.sent-mark path {
  fill: none;
  stroke: #f4fff8;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
}
.sent-scene.is-play .sent-mark circle { animation: draw-ring 0.55s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.sent-scene.is-play .sent-mark path { animation: draw-check 0.34s 0.48s cubic-bezier(0.2, 0.85, 0.2, 1) forwards; }
.sent-sum {
  margin: 8px 0 0;
  color: #f4f8ff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.sent-scene.is-play .sent-sum { animation: rise 0.4s 0.28s ease both; }
.sent-who {
  margin: 8px 0 0;
  color: #d7e6ff;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.sent-scene.is-play .sent-who { animation: rise 0.4s 0.38s ease both; }
.sent-left {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(186, 214, 255, 0.12);
  color: var(--muted);
  font-weight: 700;
}
.sent-left strong {
  color: #f4f8ff;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.sent-scene.is-play .sent-left { animation: rise 0.4s 0.48s ease both; }
.sent-card .checkout { width: 100%; margin-top: 16px; }
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes sent-pop {
  0% { transform: scale(0.62); opacity: 0; }
  70% { transform: scale(1.06); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

@keyframes scan-spin { to { transform: rotate(360deg); } }
@keyframes scan-beam {
  0% { top: 24px; opacity: 0.15; }
  45% { opacity: 1; }
  100% { top: 98px; opacity: 0.15; }
}
@keyframes coin-drop {
  0% { transform: translateY(-36px) scale(0.72); opacity: 0; }
  70% { transform: translateY(5px) scale(1.06); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes coin-shake {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-9deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-3deg); }
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.35); }
  to { opacity: 1; transform: none; }
}
@keyframes card-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

:focus-visible {
  outline: 2px solid #8ebfff;
  outline-offset: 2px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-btn { flex: none; white-space: nowrap; padding: 0 14px; }
.admin-short { display: none; }
.admin-form { display: grid; gap: 8px; margin: 16px 0; }
.admin-form h2 { margin: 4px 0 6px; font-size: 20px; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
  color-scheme: dark;
}
.admin-form textarea { min-height: 110px; resize: vertical; font-family: inherit; }
#stock-files { padding: 10px; }
button:disabled { opacity: 0.55; cursor: default; }
.code-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.code-row strong { font-size: 28px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.code-row span { color: var(--muted); font-size: 14px; }
#goods-info .traits { margin: 10px 0 0; justify-content: center; }
#goods-info h2, #goods-codes h2, #goods-help h2 { text-align: center; }
.admin-list { display: grid; }
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.admin-row:first-child { border-top: 0; padding-top: 0; }
.admin-row p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.admin-row strong { overflow-wrap: anywhere; }
.account-slot { position: relative; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.account-btn.has-user { padding-left: 6px; }
.account-btn[aria-expanded="true"] { border-color: rgba(160, 204, 255, 0.55); background: rgba(40, 120, 220, 0.12); }
#account-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-balance {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: #d7e4f4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.account-chev {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: transform 0.2s ease;
}
.account-btn[aria-expanded="true"] .account-chev { transform: rotate(180deg); }
.account-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 188px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(10, 20, 38, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  transform-origin: top right;
  animation: menu-in 0.22s cubic-bezier(.2, .8, .2, 1);
}
.account-menu.is-leaving { animation: menu-out 0.16s ease forwards; }
.account-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.account-menu button:hover { background: rgba(90, 160, 255, 0.16); }
.mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-size: 13px;
  font-weight: 800;
  color: #0c1830;
  background: linear-gradient(180deg, #f7fbff, #c5d2e4);
}
.mini-avatar img, .hero-avatar img, .person-avatar img { width: 100%; height: 100%; object-fit: cover; animation: fade-in 0.22s ease; }
.account-btn:hover, .account-btn[aria-current="page"] { border-color: rgba(160, 204, 255, 0.55); }
.view-focus .search { visibility: hidden; }

.account { padding: 28px 0 12px; }
.account-card {
  max-width: 560px;
  margin-top: 8px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 28, 50, 0.94), rgba(8, 18, 34, 0.92));
  border: 1px solid rgba(186, 214, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.account-card h1 { font-size: 36px; }
.account-card .lede { margin-bottom: 18px; }
a.checkout { display: inline-flex; align-items: center; justify-content: center; }
.link-btn { width: 100%; margin-bottom: 8px; text-decoration: none; }
.link-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
#code-form { display: grid; gap: 8px; margin-top: 16px; }
#code-form label { font-size: 14px; color: var(--muted); }
#code {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 14px;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
}
#code:focus { outline: none; border-color: rgba(120, 176, 255, 0.55); box-shadow: 0 0 0 4px rgba(61, 130, 255, 0.15); }
.form-error { margin: 0; color: #ffb4b4; font-size: 14px; }
.form-error.is-ok { color: var(--silver); }
.profile-head { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.profile-head h1 { font-size: 32px; }
.avatar {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 26px;
  color: #0c1830;
  background: linear-gradient(180deg, #f7fbff, #c5d2e4);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 18px 0; }
.goods-dialog {
  width: min(520px, 100%);
  text-align: left;
}
#goods-info, #goods-codes, #goods-help {
  max-height: min(92dvh, 100%);
  overflow: auto;
}
#goods-info {
  padding: 16px 16px 14px;
}
#goods-info h2 {
  margin: 0 28px 6px;
  font-size: 22px;
}
#goods-info .traits { margin: 0 0 8px; }
#goods-info .phone-copy {
  gap: 1px;
  margin: 8px 0 4px;
  padding: 8px 12px 7px;
  border-radius: 16px;
}
#goods-info #acc-phone-num,
#goods-info #acc-key-value {
  font-size: 22px;
  line-height: 1.15;
}
#goods-info .acc-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
}
#goods-info .acc-place { margin: 6px 0 0; font-size: 14px; }
#goods-info .goods-facts {
  gap: 6px;
  margin: 8px 0;
}
#goods-info .goods-facts .fact {
  gap: 1px;
  padding: 6px 10px;
  border-radius: 12px;
}
#goods-info .goods-facts .fact span { font-size: 11px; }
#goods-info .goods-facts .fact strong { font-size: 14px; }
#goods-info .guide {
  margin: 0 0 10px;
  padding: 8px 10px;
}
#goods-info .guide-label { margin-bottom: 2px; font-size: 11px; }
#goods-info #acc-instruction { font-size: 13px; line-height: 1.35; }
.goods-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
#acc-code,
#acc-help,
#acc-session { grid-column: 1 / -1; width: 100%; }
html.tg-app #acc-session,
html.tg-app #bulk-zip { display: none !important; }
.goods-actions .checkout,
.goods-actions .ghost {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding: 0 14px;
  font-size: 15px;
}
#goods-help { width: min(400px, 100%); text-align: center; }
#goods-help h2 { text-align: center; }
#goods-help .auth-lead { margin-bottom: 14px; }
a.support-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}
a.support-row > span:last-child { min-width: 0; line-height: 1.25; }
.phone-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 16px 0 10px;
  padding: 18px 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(140, 186, 255, 0.32);
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(90, 150, 255, 0.24), transparent 68%),
    rgba(8, 18, 36, 0.55);
  color: inherit;
  font: inherit;
}
.phone-copy:disabled { opacity: 0.72; }
#acc-phone-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-align: center;
}
#acc-phone-hint {
  color: #9eb6d4;
  font-size: 12px;
  font-weight: 700;
}
.phone-copy.is-copied #acc-phone-hint { color: #b7f0c8; }
.acc-place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 800;
}
.acc-note {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.goods-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
.goods-facts .fact {
  display: grid;
  gap: 3px;
  justify-content: start;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}
.goods-facts .fact strong { text-align: left; font-size: 16px; }
.goods-facts .fact-wide { grid-column: 1 / -1; }
#goods-info .checkout { width: 100%; }
.code-row.is-copy { cursor: pointer; border-radius: 12px; padding: 12px 10px; }
.code-row.is-copied strong { color: #b7f0c8; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.fact span { color: var(--muted); }
.fact strong { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.ghost {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 700;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.ghost:hover { background: rgba(255, 255, 255, 0.06); }

.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
  overflow: auto;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 8, 16, 0.62);
  backdrop-filter: blur(10px);
  animation: fade-in 0.35s ease;
}
.auth-backdrop.is-leaving { animation: fade-out 0.28s ease forwards; }
.auth-dialog {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: auto;
  padding: 28px 24px 24px;
  text-align: center;
  border-radius: 26px;
  background: rgba(10, 20, 38, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  animation: dialog-in 0.46s cubic-bezier(.2, .8, .2, 1);
}
.auth-dialog.goods-dialog { width: min(520px, 100%); }
.offer-dialog { width: min(480px, 100%); text-align: left; }
.offer-dialog .eyebrow, .offer-dialog > h2, .offer-dialog .auth-lead, .offer-dialog .tg-hero { text-align: center; }
.offer-dialog .tg-hero { margin-left: auto; margin-right: auto; }
.offer-dialog .admin-form { margin: 0; }
.offer-nav { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px; }
#acc-key { margin-top: 8px; }
#acc-key-value { overflow-wrap: anywhere; }
.auth-dialog.is-leaving { animation: dialog-out 0.26s ease forwards; }
.auth-dialog.is-shaking { animation: shake 0.32s ease; }
.auth-dialog h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.auth-lead { margin: 0 0 18px; color: var(--muted); }
.auth-x { position: absolute; top: 14px; right: 14px; }
.tg-choice {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tg-choice img, .tg-hero {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.pay-methods { display: grid; gap: 10px; }
.pay-soon { font-size: 12px; font-weight: 700; color: var(--muted); }
.buy-pay { width: min(420px, 100%); text-align: left; }
.buy-pay .eyebrow, .buy-pay > h2, .buy-pay-sum { text-align: center; }
.buy-pay > h2 { font-size: 24px; margin-bottom: 4px; }
.buy-pay-sum {
  margin: 0 0 14px;
  color: var(--silver);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pay-list { display: grid; gap: 8px; }
.method-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 10px;
  align-items: center;
  column-gap: 12px;
  min-height: 58px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.method-row::after {
  content: "";
  width: 7px;
  height: 7px;
  justify-self: end;
  border-top: 2px solid rgba(214, 226, 245, 0.55);
  border-right: 2px solid rgba(214, 226, 245, 0.55);
  transform: rotate(45deg);
}
.method-row:hover { border-color: rgba(90, 176, 255, 0.55); background: rgba(40, 120, 220, 0.12); }
.method-row:disabled { opacity: 0.45; }
.pay-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pay-badge img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
}
.pay-badge img.is-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
#buy-balance .pay-badge {
  background: linear-gradient(180deg, #1f5a3e, #123022);
  border-color: rgba(160, 230, 186, 0.22);
}
.pay-mark {
  color: #d7f8e2;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.pay-name, .pay-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.pay-copy { display: grid; gap: 2px; min-width: 0; }
.pay-copy small {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-pay .asset-row { margin-bottom: 12px; }
.buy-pay .form-error { margin: 10px 0 0; }
@media (max-width: 760px) {
  .buy-pay { padding: 20px 14px 14px; }
  .buy-pay > h2 { font-size: 22px; }
  .method-row { min-height: 54px; padding-right: 12px; }
  .pay-name, .pay-copy strong { font-size: 15px; }
}
.tg-choice img.pay-ico, img.pay-ico {
  border-radius: 14px;
  background: transparent;
}
.asset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-row button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 800;
}
.asset-row button.is-on { box-shadow: 0 0 0 2px #5aa0ff; }
#crypto-form, #rub-form { display: grid; gap: 10px; }
#crypto-form label, #rub-form label { color: var(--muted); font-size: 14px; }
#crypto-amount, #rub-amount {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 28px;
  font-weight: 800;
}
#crypto-preview, #wait-sum { margin: 0; color: var(--silver); }
#pay-wait #wait-hero { border-radius: 50%; }
#pay-wait #pay-link { margin-top: 28px; margin-bottom: 0; }
#pay-check { width: 100%; margin-top: 10px; }
#pay-wait .hint { margin-top: 14px; }
.tg-choice:hover { transform: translateY(-2px); border-color: rgba(90, 176, 255, 0.55); background: rgba(40, 120, 220, 0.12); }
.tg-hero {
  width: 88px;
  height: 88px;
  margin: 4px auto 16px;
  display: block;
  animation: floaty 3.2s ease-in-out infinite;
}
#auth-open .link-btn, #auth-code .checkout { width: 100%; margin-top: 8px; }
.channel-layer { z-index: 160; }
body.channel-lock { overflow: hidden; }
.channel-dialog { width: min(420px, 100%); }
.channel-dialog .auth-lead { margin-bottom: 6px; }
.channel-go {
  width: 100%;
  height: 54px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #49abff 0%, #1d8ae6 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(29, 138, 230, 0.34);
}
.channel-go img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.channel-dialog .checkout { width: 100%; margin-top: 10px; }
.channel-dialog .form-error { margin-top: 12px; }
#auth-code #code-form { margin-top: 8px; }
#auth-code #code { text-align: center; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes dialog-out {
  to { opacity: 0; transform: translateY(12px) scale(0.98); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 760px) {
  .top-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 6px 0;
  }
  .brand-side { flex: none; gap: 6px; }
  .brand { font-size: 18px; letter-spacing: -0.05em; }
  .sell-btn { height: 30px; padding: 0 8px 0 10px; gap: 4px; font-size: 12px; }
  .sell-caret { width: 12px; height: 12px; }
  .house { padding: 12px; }
  .house-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .peer-entry { padding: 14px; gap: 10px; }
  .peer-mark { width: 48px; height: 48px; }
  .peer-pills img { width: 28px; height: 28px; }
  .peer-open { width: 32px; height: 32px; }
  .peer-screen-head h2 { font-size: 26px; }
  .peer-filter { padding: 12px; }
  .peer-filter-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
  .peer-filter-tools { min-width: 0; }
  .peer-filter .peer-price { width: 100%; }
  .peer-stock { margin: 8px 0 0; }
  .actions { flex: none; }
  .account-btn { padding: 0 8px; }
  #account-label { max-width: 72px; }
  .header-balance { font-size: 12px; padding-left: 8px; }
  .search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0 8px;
    gap: 6px;
    border-radius: 10px;
  }
  .search svg { width: 15px; height: 15px; }
  .search input { font-size: 16px; }
  .search:focus-within { box-shadow: 0 0 0 2px rgba(61, 130, 255, 0.15); }
  .view-focus .search { display: none; }
  .place-grid { grid-template-columns: 1fr; }
  .balance-sum { font-size: 32px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .count { display: none; }
}

.place { padding: 8px 0 28px; }
html.route-pending #account { display: block !important; }
html.tg-desktop body {
  padding-top: var(--tg-pad-top);
  padding-bottom: var(--tg-pad-bottom);
}
html.tg-desktop .top { top: var(--tg-pad-top); }
html.tg-desktop .auth-layer,
html.tg-desktop .backdrop {
  top: var(--tg-pad-top);
  bottom: var(--tg-pad-bottom);
}
html.tg-desktop .drawer {
  top: calc(12px + var(--tg-pad-top));
  bottom: calc(12px + var(--tg-pad-bottom));
}
html.tg-desktop .toast { bottom: calc(22px + var(--tg-pad-bottom)); }
.place-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.side-card, .main-card {
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(14, 28, 50, 0.94), rgba(8, 18, 34, 0.92));
  border: 1px solid rgba(186, 214, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.side-card { text-align: center; }
.side-card h1, .main-card h1 { margin: 10px 0 0; font-size: 28px; overflow-wrap: anywhere; }
.rank { margin: 6px 0 14px; color: var(--muted); }
.wide { width: 100%; }
.side-card .wide + .wide, .side-card .wide { margin-top: 8px; }
.narrow { max-width: 520px; margin: 28px auto; }
.hero-avatar, .person-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  font-weight: 800;
  color: #143024;
  background: linear-gradient(180deg, #e9fff0, #7dcea0);
}
.hero-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  font-size: 36px;
  animation: pop 0.45s cubic-bezier(.2, .8, .2, 1);
}
.hero-avatar img, .person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.block-title { margin: 22px 0 10px; font-size: 16px; text-align: left; }
.people { display: grid; gap: 8px; max-height: 420px; overflow: auto; text-align: left; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  animation: person-in 0.45s cubic-bezier(.2, .8, .2, 1) both;
}
.person-avatar { width: 46px; height: 46px; flex: none; font-size: 16px; }
.person strong, .person small { display: block; }
.person strong { overflow-wrap: anywhere; }
.person small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.main-head h2 { margin: 0; font-size: 30px; text-align: left; overflow-wrap: anywhere; }
.presence { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 800; flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.on { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: pulse 2s ease-in-out infinite; }
.dot.off { background: #ff5d5d; box-shadow: 0 0 8px rgba(255, 93, 93, 0.65); }
.fact button {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.balance-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hold { margin-top: 10px; }
.hold-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 186, 92, 0.4);
  background: linear-gradient(180deg, rgba(255, 176, 64, 0.16), rgba(255, 140, 40, 0.06));
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.hold-kicker {
  color: #ffd7a1;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hold-clock {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: #ffe7c2;
}
.hold-chev {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}
.hold.is-open .hold-chev { transform: rotate(180deg); }
.hold-list {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}
.hold.is-open .hold-list { grid-template-rows: 1fr; }
.hold-sheet { overflow: hidden; }
.hold-lines { display: grid; gap: 6px; padding-top: 8px; }
.hold-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}
.hold-line strong, .hold-line span { white-space: nowrap; }
.hold-line span { color: var(--muted); font-variant-numeric: tabular-nums; }
.dock-hold .hold-line { font-size: 13px; padding: 7px 10px; }
.hold-note { margin: 8px 2px 0; color: var(--muted); font-size: 13px; }
.dock-hold .hold-toggle { padding: 8px 10px; font-size: 14px; }
.balance-sum {
  margin: 0;
  min-height: 1.15em;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.currency { position: relative; }
.currency-btn { display: inline-flex; align-items: center; gap: 6px; }
.currency-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.currency-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(8, 18, 34, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: dialog-in 0.28s ease;
}
.currency-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}
.currency-menu button.is-current, .currency-menu button:hover { background: rgba(90, 160, 255, 0.16); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.promo-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 8px;
  margin-top: 12px;
}
.promo-box input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.promo-box input::placeholder { letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--silver); }
.promo-box .checkout { width: 100%; min-width: 0; padding: 0 8px; }
.promo-box .form-error, .promo-box .promo-ok { grid-column: 1 / -1; margin: 0; }
.promo-ok { color: #8ee7b0; font-weight: 700; }
.promo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.promo-list { display: grid; gap: 10px; }
.promo-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.promo-card.is-off { opacity: 0.58; }
.promo-head, .promo-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.promo-head strong { font-size: 18px; letter-spacing: 0.08em; }
.promo-head span { color: #8ee7b0; font-weight: 800; }
.promo-meta { margin: 0; color: var(--silver); font-weight: 700; font-size: 14px; }
.promo-card .hint { margin: 0; }
.promo-card .ghost { width: 100%; }
.ref-jump { width: 100%; margin-top: 12px; }
.mail-form textarea { min-height: 160px; }
.mail-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  cursor: pointer;
}
#mail-preview {
  width: min(100%, 280px);
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.ref-page { display: grid; gap: 14px; padding-top: 18px; }
.ref-page h1 { margin-bottom: 0; }
.ref-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-rates div:first-child { grid-column: 1 / -1; }
#ref-hold { margin-top: 2px; }
#ref-hold .hold-line strong { white-space: normal; }
.ref-rates div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.ref-rates strong { font-size: 28px; letter-spacing: -0.04em; }
.ref-rates span { color: var(--silver); font-weight: 700; }
.ref-card { display: grid; gap: 8px; }
.ref-actions { display: grid; gap: 8px; margin-top: 6px; }
.ref-actions .checkout, .ref-actions .pay-send { width: 100%; }
.ref-links { display: grid; gap: 10px; }
.ref-link {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}
.ref-link span { color: var(--silver); font-size: 13px; font-weight: 800; }
.ref-link code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.ref-link.is-copied { border-color: rgba(142, 231, 176, 0.7); }
.dock-nav .dock-more-ico svg { stroke-linecap: round; stroke-linejoin: round; }
.pay-row .ghost, .pay-row .checkout, .pay-row .pay-send { width: 100%; }
.pay-send {
  min-height: 42px;
  border: 1px solid rgba(158, 196, 255, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(120, 168, 255, 0.28), rgba(36, 78, 150, 0.22));
  color: #e8f1ff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pay-send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#transfer-peer.is-found { color: #d5e6ff; }
#transfer-peer.is-bad { color: #ffb4b4; }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ledger-row small { grid-column: 1 / -1; color: var(--muted); }
.choice-stack { display: grid; gap: 10px; }
.done-stars { margin: 10px 0 0; font-size: 28px; font-weight: 800; }
.done-rub { margin: 4px 0 16px; color: var(--silver); font-size: 18px; }
#pay-done .checkout { width: 100%; }
#pay-amount { padding-top: 22px; }
#pay-amount .tg-hero { width: 72px; height: 72px; margin: 6px auto 10px; }
#pay-amount h2 { margin-bottom: 14px; }
#stars-form { display: grid; gap: 12px; min-width: 0; }
#stars-form .checkout, #stars-form .link-btn { width: 100%; margin: 0; }
#stars-input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
#stars-input:focus { outline: none; border-color: rgba(120, 176, 255, 0.55); box-shadow: 0 0 0 4px rgba(61, 130, 255, 0.15); }
#stars-preview { margin: 0; min-height: 24px; color: var(--silver); font-size: 16px; }
#choose-stars img, #pay-open .tg-hero, #pay-wait .tg-hero {
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
#pay-open .tg-hero, #pay-wait .tg-hero { width: 104px; height: 104px; }
.align-left { text-align: left; }
.align-left h2 { text-align: center; }
#edit-form { display: grid; gap: 8px; margin-top: 8px; }
#edit-form label { color: var(--muted); font-size: 14px; }
#nick-input {
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 14px;
}
#avatar-input { font-size: 14px; }
#edit-form .wide { margin: 4px 0; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes menu-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes person-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .intro, .account, .place, .person, .auth-dialog, .auth-backdrop, .mini-avatar img, .tg-hero, .hero-avatar, .balance-sum, .dot, .currency-menu, .sort-menu, .account-menu, .account-chev, .flow, .sort-btn svg, .dock-card, .dock-backdrop, .scan-ring, .scan-beam, .broke-coin, .broke-stamp, .buy-card, .buy-veil { animation: none; transition: none; }
  .card:hover, .tg-choice:hover { transform: none; }
}

@media (max-width: 760px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .top-inner { min-height: 0; }
  .deal-card { width: min(230px, 52vw); padding: 8px 10px 8px 8px; gap: 8px; }
  .deal-card img { width: 44px; height: 44px; }
  .promo-title { font-size: 14px; }
  .promo-price b { font-size: 16px; }
  .intro { padding: 18px 0 0; }
  h1 { font-size: 34px; }
  .lede { margin-top: 8px; font-size: 15px; }
  .market-shell { display: block; padding-top: 14px; }
  body.route-solo #shell { height: 0; min-height: 0; padding: 0; overflow: visible; }
  main.wrap, .foot { z-index: auto; }
  #account-slot { display: none; }
  .dock {
    position: fixed;
    inset: 0;
    z-index: 36;
    pointer-events: none;
  }
  .dock-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(3, 8, 16, 0.62);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }
  .dock-card {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    max-height: min(74dvh, 560px);
    overflow: auto;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.24, 1), visibility 0s linear 0.28s;
  }
  .dock-grab {
    display: block;
    width: 42px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
  }
  .dock-nav .dock-more { display: flex; }
  .dock.is-open { pointer-events: auto; }
  .dock.is-open .dock-backdrop { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.22s ease, visibility 0s; }
  .dock.is-open .dock-card {
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.24, 1), visibility 0s;
  }
  .dock-sum { font-size: 26px; }
  .tabbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 42;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom, 0px));
    background: #07111c;
    border-top: 1px solid rgba(186, 214, 255, 0.14);
  }
  .tabbar button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .tabbar button[aria-current="page"],
  .tabbar button[aria-expanded="true"] { color: #f4f7fb; }
  .tabbar svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .tab-face {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
  }
  .tab-face .tab-ico, .tab-avatar { grid-area: 1 / 1; }
  .tab-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }
  .tab-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .tab-face:has(.tab-avatar:not([hidden])) .tab-ico { visibility: hidden; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .stat-grid { grid-template-columns: 1fr; }
  .toolbar {
    display: block;
    margin: 16px 0 12px;
  }
  .count { margin-top: 10px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-sort { grid-column: 1 / -1; }
  .foot { margin-top: 36px; padding-top: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .cats {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 2px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 14px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .cat {
    min-height: 44px;
    padding: 0 16px;
    scroll-snap-align: start;
    flex: none;
  }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .rent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-art { height: 148px; }
  .card h2 { font-size: 20px; overflow-wrap: anywhere; }
  .price { font-size: 22px; }
  .card-body { padding: 14px 14px 14px; }
  .orb, .flow-b { display: none; }
  .flow { will-change: auto; }
  .flow-a { animation-duration: 48s; }
  .account-btn { max-width: min(210px, 52vw); min-width: 0; padding-right: 10px; }
  .admin-long { display: none; }
  .admin-short { display: inline; }
  .actions:has(#open-admin:not([hidden])) .account-btn { max-width: 46vw; }
  #account-label { max-width: 92px; }
  .actions, .account-slot, .search { min-width: 0; }
  .place-grid { grid-template-columns: 1fr; }
  .balance-sum { font-size: 32px; overflow-wrap: anywhere; }
  .hero-avatar { width: 92px; height: 92px; }
  .main-head, .balance-head, .foot-inner { flex-wrap: wrap; }
  .pay-row { grid-template-columns: 1fr 1fr; }
  .side-card, .main-card, .account-card { padding: 16px; border-radius: 20px; }
  .ghost, .checkout, .pay-send, .empty button { min-height: 48px; }
  .qty button { width: 40px; height: 40px; }
  .sheet, .drawer {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: 22px 22px 0 0;
    transform: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  html .sheet.rent-sheet,
  html.tg-desktop .sheet.rent-sheet,
  html .sheet.rent-own,
  html.tg-desktop .sheet.rent-own {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    transform: none;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    max-height: min(92dvh, calc(100dvh - var(--tg-pad-top, 0px) - 8px));
    padding-bottom: 0;
    overflow: hidden;
  }
  html .sheet.peer-sheet,
  html.tg-desktop .sheet.peer-sheet {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    transform: none;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    max-height: min(92dvh, calc(100dvh - var(--tg-pad-top, 0px) - 8px));
    overflow: auto;
  }
  .rent-grab {
    display: block;
    position: absolute;
    left: 50%;
    top: 8px;
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-50%);
  }
  .rent-sheet-main {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sheet.rent-sheet .rent-photo,
  .sheet.rent-own .rent-photo { width: 92px; height: 92px; max-height: 92px; }
  .rent-facts { min-width: 0; }
  .rent-facts span { overflow-wrap: anywhere; }
  .rent-buy { align-items: center; min-width: 0; }
  .rent-price { font-size: 22px; }
  .rent-pills span { font-size: 11px; padding: 7px 4px; overflow-wrap: anywhere; }
  .rent-sheet-foot {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .rent-selects { grid-template-columns: 1fr 1fr; }
  .rent-sheet-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .drawer {
    height: min(88dvh, 100%);
    display: flex;
  }
  .sheet-art { height: 120px; }
  .sheet-row { align-items: stretch; flex-direction: column; }
  .sheet-row .card-actions { width: 100%; }
  .sheet-row .card-actions .checkout { flex: 1; width: auto; min-width: 0; }
  .auth-layer {
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .auth-dialog { border-radius: 22px; }
  #code, #nick-input { font-size: 16px; }
  main { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .admin-switch { grid-template-columns: 1fr; }
  #admin .narrow { margin-top: 4px; }
  .stat-grid, .user-grid { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 22px; }
  .stat-card.span-2 strong { font-size: 26px; }
  .admin-tabs { grid-template-columns: 1fr 1fr; }
  .admin-tabs button { font-size: 13px; padding: 0 4px; }
  .promo-box, .promo-fields { grid-template-columns: minmax(0, 1fr); }
  .admin-list { padding: 12px; }
  .admin-row { flex-direction: column; align-items: stretch; }
  .admin-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .admin-actions .ghost { width: 100%; padding: 0 6px; font-size: 14px; }
  .price-edit { grid-template-columns: 1fr; }
  .price-edit .checkout { width: 100%; }
  .pick-row, .admin-edit .pick-row { display: grid; grid-template-columns: 1fr; }
  .pick-row .trait { width: 100%; min-height: 48px; font-size: 15px; }
  .service-card { padding: 12px 6px; }
  .service-card > span { font-size: 13px; }
  .service-card img { width: 46px; height: 46px; }
  .service-faces img { width: 36px; height: 36px; }
}

@media (hover: none) {
  .card:active { border-color: rgba(160, 204, 255, 0.55); }
}

input, textarea, select {
  font-size: 16px;
}

html:has(#buy-scene:not([hidden])),
html:has(#sent-scene:not([hidden])),
html:has(#sheet:not([hidden])),
html:has(#drawer:not([hidden])),
html:has(#auth-layer:not([hidden])),
html:has(#desk-layer:not([hidden])),
html:has(#goods-layer:not([hidden])),
html:has(#dock.is-open),
html:has(#rent-sheet:not([hidden])),
html:has(#rent-own:not([hidden])),
html:has(#peer-sheet:not([hidden])),
html:has(#peer-ask:not([hidden])),
html:has(#warranty-ask:not([hidden])),
html:has(#sell-dialog:not([hidden])),
html:has(#bulk-layer:not([hidden])) {
  overflow: hidden;
}

@media (min-width: 761px) {
  body.route-solo #shell { display: none; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .intro { padding-top: 12px; }
  h1 { font-size: 30px; }
  .card-art { height: 96px; }
  .top-inner { padding-top: 8px; padding-bottom: 8px; }
}

.way-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.way-picks button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.way-picks button.is-on {
  color: #1a1206;
  border-color: transparent;
  background: linear-gradient(180deg, #ffe7bf, #e7b56a);
}
.bill-list { display: grid; gap: 10px; margin-top: 8px; }
.bill-admin {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.bill-admin strong { font-size: 16px; }
.bill-admin .bill-meta { color: var(--muted); font-size: 13px; }
.bill-page { max-width: 480px; margin: 12px auto 28px; }
.bill-card {
  border: 1px solid rgba(255, 225, 176, 0.28);
  border-radius: 28px;
  padding: 22px 20px 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 196, 92, 0.18), transparent 42%),
    rgba(12, 16, 28, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.bill-card h1 { margin: 10px 0 0; font-size: 32px; letter-spacing: -0.03em; }
.bill-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.bill-status.is-open { color: #ffe1b0; background: rgba(255, 196, 92, 0.14); }
.bill-status.is-paid { color: #bff5cf; background: rgba(72, 196, 120, 0.16); }
.bill-detail {
  margin: 10px 0 0;
  color: var(--muted);
  white-space: pre-wrap;
}
.bill-sum {
  margin: 14px 0 0;
  font-size: 42px;
  font-weight: 760;
  letter-spacing: -0.04em;
  color: #ffe1b0;
}
.bill-card .pay-list { margin-top: 18px; }
.bill-card #bill-assets { display: grid; gap: 10px; margin-top: 12px; }
.bill-card #bill-assets[hidden] { display: none; }
.bill-go { display: flex; margin-top: 12px; text-decoration: none; }
#bill-admin-link { white-space: pre-wrap; word-break: break-all; }
.bill-go[hidden] { display: none; }
#bill-wait { margin-top: 10px; }
@media (max-width: 760px) {
  .bill-card { padding: 18px 14px 14px; border-radius: 22px; }
  .bill-card h1 { font-size: 26px; }
  .bill-sum { font-size: 34px; }
}
.peer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 14px; }
.peer-bar p { margin: 0; color: var(--muted); line-height: 1.45; }
.peer-bar .checkout { width: auto; min-width: 180px; flex: none; }
.peer-filter {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(186, 214, 255, 0.18);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(80, 140, 230, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.peer-filter-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
}
.peer-filter-tools { display: contents; }
.peer-stock {
  margin: 0;
  padding-bottom: 8px;
  color: #d7e6fb;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
#peer-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
#peer-sort button { height: 36px; min-height: 36px; padding: 0 14px; }
.peer-extra {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(186, 214, 255, 0.14);
}
.peer-extra[hidden] { display: none; }
.peer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.peer-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(186, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-weight: 700;
}
.peer-chips .peer-chip-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}
.peer-chips button[aria-pressed="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #102033;
  border-color: transparent;
}
.peer-filter .peer-price { display: grid; grid-template-columns: 128px 128px; gap: 8px; margin: 0; }
.peer-filter .peer-price label { gap: 4px; }
.peer-filter .peer-price label span {
  color: #9eb4cc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.peer-filter .peer-price input { min-height: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
#peer-origin button { border-radius: 8px; }
#peer-origin button[aria-pressed="true"] {
  background: #3ecf8e;
  color: #062015;
  border-color: transparent;
}
.peer-price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.peer-price label, .peer-form label, .seller-box label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.peer-price input, .peer-form input, .seller-line input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}
.peer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(186, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.peer-row > img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; flex: none; }
.peer-row > img.is-mark { width: 28px; height: 28px; object-fit: contain; }
.peer-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.peer-copy strong { overflow-wrap: anywhere; }
.peer-copy small { color: var(--muted); }
.peer-row .checkout, .peer-row .ghost { width: auto; min-width: 132px; flex: none; }
.peer-form { display: grid; gap: 12px; margin-top: 12px; }
.peer-form textarea, .peer-price input, .peer-form input, .seller-line input {
  width: 100%;
}
.peer-form textarea {
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  resize: vertical;
}
.peer-file {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(186, 214, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.peer-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.peer-file span { color: var(--silver); font-size: 14px; font-weight: 700; }
.peer-kind-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}
.peer-kind-list button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  padding: 12px 8px;
  border-radius: 16px;
  text-align: center;
  color: inherit;
  border: 1px solid rgba(186, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}
.peer-kind-list img { width: 40px; height: 40px; object-fit: contain; }
.peer-back { width: auto; min-height: 36px; padding: 0 12px; }
.sheet-top { display: flex; align-items: center; gap: 10px; }
.sheet-top h2 { margin: 0; flex: 1; min-width: 0; }
.seller-box { display: grid; gap: 8px; margin: 14px 0; }
.seller-line { display: flex; gap: 8px; align-items: center; }
.seller-line .checkout { width: auto; min-width: 132px; }
.card, .peer-card { cursor: pointer; }
.peer-card-name h3 { cursor: pointer; }
button.peer-seller {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lot-screen { display: grid; gap: 14px; }
.lot-bar {
  display: flex;
  align-items: center;
  padding: 0 2px;
  background: none;
  border: 0;
}
.lot-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.lot-back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lot-sheet {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(186, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.lot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.lot-head h1, .lot-profile h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.lot-status, .lot-wait, .lot-profile p { margin: 6px 0 0; color: #9fd0ff; font-size: 14px; font-weight: 800; }
.lot-price {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #4b95ff, #1d5ed0);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.lot-price .price, .lot-price strong { color: #fff; font-size: 22px; }
.lot-price s { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.lot-price .price-off { color: #d7ffe8; font-style: normal; font-size: 12px; }
.lot-block {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(186, 214, 255, 0.1);
}
.lot-block h2, .lot-goods > h2 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lot-copy { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lot-stats, .lot-meters { display: grid; gap: 8px; }
.lot-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lot-meters { grid-template-columns: 1fr 1fr; }
.lot-stats div, .lot-meters div {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}
.lot-stats b, .lot-meters b { display: block; font-size: 22px; letter-spacing: -0.04em; }
.lot-meters b { font-size: 34px; }
.lot-stats span, .lot-meters span { color: var(--muted); font-size: 12px; font-weight: 700; }
.lot-seller {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lot-seller i, .lot-profile i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8eb6ff, #1d4ed8);
  color: #fff;
  font-style: normal;
  font-weight: 800;
}
.lot-seller strong { display: block; color: var(--ink); font-size: 16px; }
.lot-seller span { color: #9fd0ff; font-size: 13px; font-weight: 700; }
.lot-actions, .lot-share { display: flex; flex-wrap: wrap; gap: 8px; }
.lot-actions .checkout { flex: 1 1 180px; min-height: 48px; }
.lot-share { justify-content: flex-start; align-items: center; gap: 10px; margin-top: -4px; }
.lot-share-toggle, .lot-share-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  min-height: 28px;
  padding: 0;
}
.lot-share-links { display: flex; flex-wrap: wrap; gap: 12px; }
.lot-share-links[hidden] { display: none !important; }
.lot-share-links button { text-decoration: underline; text-underline-offset: 3px; }
.lot-since { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.lot-profile i img, .lot-seller i img, .peer-seller i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 18px;
}
.pager .ghost { width: auto; min-width: 108px; min-height: 42px; }
.pager .ghost:disabled { opacity: 0.4; }
.pager span { min-width: 64px; text-align: center; color: var(--muted); font-weight: 800; }
.avatar-pick { display: grid; gap: 8px; margin-top: 14px; }
.avatar-pick > span { font-weight: 800; }
.avatar-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-modes .ghost { width: auto; min-height: 40px; padding: 0 14px; }
.avatar-modes .ghost[aria-pressed="true"] {
  background: rgba(75, 149, 255, 0.18);
  color: #d7e8ff;
}
.lot-profile { display: grid; justify-items: center; gap: 6px; text-align: center; }
.lot-profile .lot-since { color: var(--muted); font-weight: 700; }
.lot-profile i { width: 84px; height: 84px; font-size: 34px; }
.lot-goods { display: grid; gap: 8px; }
.lot-goods > h2 { font-size: 13px; }
.lot-origins { display: flex; flex-wrap: wrap; gap: 8px; }
.lot-origin {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(186, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-weight: 700;
}
.lot-origin[aria-pressed="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #102033;
  border-color: transparent;
}
.lot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(186, 214, 255, 0.2);
  background: rgba(7, 16, 32, 0.8);
  color: inherit;
  text-align: left;
}
.lot-row strong { overflow-wrap: anywhere; }
.lot-row span { grid-column: 1; color: var(--muted); font-size: 13px; font-weight: 700; }
.lot-row b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 7px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #4b95ff, #1d5ed0);
  color: #fff;
  white-space: nowrap;
}
.lot-empty { margin: 0; color: var(--muted); font-weight: 700; }
@media (max-width: 760px) {
  .lot-sheet { padding: 16px; border-radius: 20px; }
  .lot-head { flex-direction: column; }
  .lot-head h1, .lot-profile h1 { font-size: 26px; }
  .lot-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lot-price { align-self: flex-start; }
}
.peer-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(70, 130, 220, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(16, 30, 52, 0.96), rgba(8, 16, 32, 0.94));
}
.peer-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.peer-card-mark { width: 40px; height: 40px; object-fit: contain; }
.peer-card-name { min-width: 0; }
.peer-card-name h3 { margin: 0; font-size: 16px; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.peer-card-fresh { margin: 3px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.peer-card-price {
  padding: 7px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #4b95ff, #1d5ed0);
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.peer-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.peer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #d5e4f8;
  background: rgba(255, 255, 255, 0.05);
}
.peer-badge img { width: 16px; height: 12px; object-fit: cover; border-radius: 2px; }
.peer-badge svg { width: 14px; height: 14px; fill: currentColor; }
.peer-badge.is-good { background: #143828; color: #8dffb0; }
.peer-badge.is-bad { background: #3a1c22; color: #ffb4b4; }
.peer-badge.is-neutral { background: rgba(255, 255, 255, 0.06); color: #b7c6d8; }
.peer-badge.is-mark {
  background: rgba(226, 236, 252, 0.16);
  color: #f5f8ff;
  border-color: rgba(236, 242, 255, 0.34);
}
.peer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.peer-stats div {
  min-width: 0;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}
.peer-stats b { display: block; font-size: 15px; letter-spacing: -0.03em; }
.peer-stats span { color: var(--muted); font-size: 11px; font-weight: 700; }
.peer-origin { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.peer-origin legend { color: var(--muted); font-size: 13px; font-weight: 700; }
.peer-origin-list { display: flex; flex-wrap: wrap; gap: 8px; }
.peer-origin-list button {
  flex: 1 1 92px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(186, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-weight: 800;
}
.peer-origin-list button[aria-pressed="true"] {
  background: linear-gradient(180deg, #f5f8fc, #c9d4e4);
  color: #102033;
  border-color: transparent;
}
.peer-ask-actions { display: grid; gap: 8px; margin-top: 18px; }
.peer-ask-actions .ghost, .peer-ask-actions .checkout { width: 100%; }
#peer-ask[hidden],
#warranty-ask[hidden] { display: none; }
#warranty-ask { z-index: 100; }
.warranty-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 0;
  font-weight: 700;
  cursor: pointer;
}
.warranty-skip input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #3ecf8e;
  cursor: pointer;
}
.admin-origins {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}
.admin-origins h3 { margin: 0; font-size: 16px; }
.admin-origins .hint { margin: 0; }
.admin-origin-form { display: flex; gap: 8px; align-items: center; }
.admin-origin-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}
.admin-origin-form .checkout { width: auto; min-width: 120px; }
.admin-origin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}
.admin-origin-row .ghost { width: auto; min-height: 36px; padding: 0 12px; }
.admin-origin-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.admin-origin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7e6fb;
  font-size: 13px;
  font-weight: 700;
}
.admin-origin-check input { width: 16px; height: 16px; accent-color: #8eb6ff; }
.peer-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.peer-seller { display: flex; align-items: center; gap: 8px; min-width: 0; color: #d7e6fb; font-weight: 800; }
.peer-seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  min-height: 24px;
  margin: 0;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
}
.stars svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}
.stars > b { font-size: 13px; letter-spacing: -0.03em; color: inherit; }
.stars.is-hero { min-height: 36px; padding: 0 12px 0 6px; gap: 6px; }
.stars.is-hero svg { width: 26px; height: 26px; }
.stars.is-hero > b { font-size: 16px; }
.stars em { color: inherit; opacity: 0.72; font-style: normal; font-size: 12px; font-weight: 700; }
.lot-seller .stars { margin-left: auto; }
.peer-seller i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(90, 150, 255, 0.22);
  color: #e7f1ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.peer-card-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.peer-card-actions .checkout { width: auto; min-width: 112px; height: 44px; }
.peer-card-actions .heart { width: 44px; height: 44px; }
#peer-topup { width: auto; min-height: 40px; margin-top: 8px; padding: 0 14px; }
#peer-board[hidden] { display: none; }
@media (max-width: 760px) {
  .peer-bar { align-items: stretch; flex-direction: column; }
  .peer-bar .checkout, .peer-row .checkout, .peer-row .ghost { width: 100%; }
  .peer-row { align-items: stretch; flex-wrap: wrap; }
  .seller-line { flex-direction: column; align-items: stretch; }
  .seller-line .checkout { width: 100%; }
  .peer-filter { padding: 12px; }
  .peer-filter-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
  .peer-filter-tools { min-width: 0; }
  .peer-filter .peer-price { width: 100%; }
  .peer-stock { margin: 8px 0 0; }
  .peer-chips button { min-height: 32px; padding: 0 10px; font-size: 13px; }
  .peer-screen-head { gap: 6px; }
  .peer-screen-head h2 { font-size: 22px; }
  .peer-card { gap: 6px; margin-bottom: 8px; padding: 10px; border-radius: 16px; }
  .peer-card-head { gap: 8px; }
  .peer-card-mark { width: 28px; height: 28px; }
  .peer-card-name h3 { font-size: 15px; }
  .peer-card-fresh { margin-top: 1px; font-size: 11px; }
  .peer-card-price { padding: 4px 8px; border-radius: 10px; font-size: 13px; }
  .peer-badge { min-height: 24px; padding: 0 8px; font-size: 12px; gap: 4px; }
  .peer-card-about {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .peer-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .peer-stats div { padding: 5px 2px; border-radius: 10px; }
  .peer-stats b { font-size: 13px; }
  .peer-stats span { font-size: 10px; line-height: 1.15; }
  .peer-card-foot { flex-direction: row; align-items: center; gap: 8px; }
  .peer-seller { font-size: 13px; }
  .peer-seller i { width: 22px; height: 22px; font-size: 11px; }
  .peer-card-actions { width: auto; }
  .peer-card-actions .checkout { flex: none; height: 36px; min-width: 88px; }
  .peer-card-actions .heart { width: 36px; height: 36px; }
  .peer-card-actions .heart svg { width: 16px; height: 16px; }
}

.market-filter,
.peer-extra {
  display: grid;
  gap: 8px;
}
#catalog:has(#tg-filter:not([hidden])) .filters {
  margin: 0;
  padding: 8px 8px 0;
  gap: 8px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
  box-shadow: none;
}
#catalog:has(#tg-filter:not([hidden])) .filter-field,
#catalog:has(#tg-filter:not([hidden])) .filter-sort { gap: 4px; }
#catalog:has(#tg-filter:not([hidden])) .filter-field span,
#catalog:has(#tg-filter:not([hidden])) .filter-sort > span {
  color: #9eb4cc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
#catalog:has(#tg-filter:not([hidden])) .filter-field input,
#catalog:has(#tg-filter:not([hidden])) .sort-btn {
  height: 34px;
  border-radius: 10px;
  font-size: 14px;
}
#catalog:has(#tg-filter:not([hidden])) #tg-filter {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.market-filter {
  margin: 0 0 14px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.96), rgba(8, 18, 34, 0.94));
}
.mf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}
#tg-filter .mf-grid { grid-template-columns: minmax(0, 1.3fr) 252px 280px; }
.peer-extra .mf-grid { grid-template-columns: minmax(0, 1fr) 252px minmax(220px, 1.1fr); }
.mf-field {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}
.mf-field > span {
  height: 16px;
  line-height: 16px;
  white-space: nowrap;
}
.mf-field > span,
.bulk-count {
  color: #9eb4cc;
  font-size: 12px;
  font-weight: 700;
}
.mf-combo { position: relative; min-width: 0; max-width: 100%; }
.mf-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 36px;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(186, 214, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.mf-box:focus-within {
  border-color: rgba(120, 176, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 130, 255, 0.12);
}
.mf-box input,
.bulk-count input {
  flex: 1 1 88px;
  width: auto;
  min-width: 72px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
}
.mf-box input:focus,
.bulk-count input:focus { outline: none; box-shadow: none; }
.bulk-count input {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(186, 214, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 12px;
}
.mf-menu {
  position: absolute;
  z-index: 6;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 196px;
  overflow: auto;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(186, 214, 255, 0.22);
  background: #0b1628;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.mf-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.mf-menu button[aria-selected="true"],
.mf-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.mf-menu img,
.mf-pick img { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; }
.mf-picks { display: contents; }
.mf-picks:empty { display: none; }
.mf-pick {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 0;
  background: rgba(142, 182, 242, 0.18);
  color: #e8f1ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.mf-pick b { font-weight: 800; line-height: 1; opacity: 0.7; }
.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid rgba(186, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.seg button {
  min-width: 0;
  min-height: 0;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c5d5e8;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg button[aria-pressed="true"] {
  background: #3ecf8e;
  color: #062015;
}
#tg-filter .checkout,
#peer-bulk {
  width: auto;
  height: 34px;
  justify-self: start;
  padding: 0 14px;
  font-size: 13px;
}
#peer-origin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 6px;
  min-height: 36px;
  min-width: 0;
}
#peer-origin button {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 36px;
  white-space: nowrap;
}
.bulk-dialog { width: min(460px, 100%); text-align: left; }
.bulk-dialog .eyebrow,
.bulk-dialog h2,
.bulk-dialog .auth-lead { text-align: center; }
.bulk-count { display: grid; gap: 8px; margin: 0 0 10px; }
.bulk-sum { margin: 0 0 12px; text-align: center; font-weight: 800; }
.bulk-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}
.bulk-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8eb6f2, #f5f8fc);
}
#bulk-log {
  display: grid;
  gap: 6px;
  max-height: 220px;
  margin-top: 12px;
  overflow: auto;
}
.bulk-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}
.bulk-line.is-ok { color: #d7ffe4; }
.bulk-line.is-bad { color: #ffd0d0; }
.bulk-end { display: grid; gap: 8px; margin-top: 14px; }
.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(186, 214, 255, 0.18);
  background: rgba(16, 32, 56, 0.72);
}
.batch-bar p { margin: 0; font-weight: 700; }
.batch-bar .ghost { flex: none; }
@media (max-width: 980px) {
  #tg-filter .mf-grid,
  .peer-extra .mf-grid { grid-template-columns: minmax(0, 1fr) 252px; }
  .peer-extra .mf-grid .mf-field:last-child,
  #tg-filter .mf-grid .mf-field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mf-grid,
  #tg-filter .mf-grid,
  .peer-extra .mf-grid { grid-template-columns: 1fr; gap: 12px; }
  .peer-extra .mf-grid .mf-field:last-child,
  #tg-filter .mf-grid .mf-field:last-child { grid-column: auto; }
  .mf-field > span { height: auto; }
  .seg { height: 44px; }
  .mf-box { min-height: 44px; height: auto; }
  .seg button { height: 40px; line-height: 40px; font-size: 14px; }
  .mf-box input { height: 42px; font-size: 16px; }
  #peer-origin { min-height: 44px; gap: 8px; }
  #peer-origin button { height: 40px; min-height: 40px; line-height: 40px; font-size: 14px; }
  #tg-filter .checkout,
  #peer-bulk { width: 100%; height: 44px; }
  .peer-filter-top { grid-template-columns: 1fr; align-items: stretch; }
  .peer-filter-tools { display: grid; gap: 10px; }
  .peer-filter .peer-price { width: 100%; grid-template-columns: 1fr 1fr; }
  .peer-filter .peer-price input { height: 44px; min-height: 44px; font-size: 16px; }
  #peer-sort { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #peer-sort button { width: 100%; height: 40px; min-height: 40px; justify-content: center; padding: 0 8px; }
  .peer-stock { padding: 0; }
  .batch-bar { align-items: stretch; flex-direction: column; }
}
