/* Marsi Shop. Фиолетовая ночь: спокойный фон, лиловый — действие и цифры, золото — только звёзды. */
:root {
  --bg: #140b24;
  --panel: #1b1030;
  --field: #211538;
  --line: #33244f;
  --ink: #f1ecfb;
  --muted: #c0b4e0;  /* второстепенный текст: контраст ~9:1 на фоне, читается и на тусклом экране */
  --accent: #7c5cff;
  --accent-hover: #8d71ff;
  --lilac: #b9a4ff;
  --star: #f0c04f;
  --danger: #f2858f;
  --ok: #6fcf97;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --h: 44px;
  --r: 10px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* неоновая ночь как на артах магазина: розовое и синее свечение + россыпь звёзд */
  background:
    radial-gradient(2px 2px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 9%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 42%, rgba(255, 220, 140, 0.55), transparent 60%),
    radial-gradient(2px 2px at 30% 66%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 74%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 88%, rgba(255, 220, 140, 0.45), transparent 60%),
    radial-gradient(900px 600px at 92% -8%, rgba(255, 79, 216, 0.30), transparent 62%),
    radial-gradient(800px 700px at -10% 38%, rgba(92, 108, 255, 0.28), transparent 60%),
    radial-gradient(900px 700px at 70% 105%, rgba(160, 80, 255, 0.30), transparent 60%),
    linear-gradient(180deg, #1c0d3a 0%, #170a30 55%, #1a0b36 100%);
}
html { background: #170a30; }
.wrap { width: min(1120px, 100% - 32px); margin-left: auto; margin-right: auto; }
main { flex: 1; }
a { color: var(--lilac); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 17px; font-weight: 600; margin: 32px 0 10px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.small, .empty { color: var(--muted); }

/* ── Шапка ── */
.top { border-bottom: 1px solid var(--line); background: rgba(20, 10, 40, 0.45); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.nav { display: flex; gap: 26px; flex: 1; justify-content: center; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.account a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.account a:hover { border-color: var(--lilac); }

.flash { margin-top: 16px; color: var(--danger); font-size: 14px; }
.flash p { margin: 0; }

/* ── Счётчики ── */
/* одна строка доверия над формой — не перетягивает внимание с покупки */
.proofline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 12px; color: var(--muted); font-size: 14px; }
.proofline b { color: var(--ink); font-variant-numeric: tabular-nums; }
.proofline a { color: var(--lilac); }
.stars-ico { color: var(--star) !important; }

/* ── Форма покупки ── */
.buy-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: start; }
.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.16), rgba(255, 79, 216, 0.06) 60%, rgba(20, 10, 40, 0.5));
  border: 1px solid rgba(185, 164, 255, 0.22);
  backdrop-filter: blur(10px);
}

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.field small { font-weight: 400; font-size: 13px; line-height: 1.5; }
.field input {
  width: 100%;
  height: var(--h);
  padding: 0 14px;
  font: 500 15px var(--font);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r);
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field input::placeholder { color: #7a6c9e; }
.field input:focus { outline: none; border-color: var(--lilac); }
.input-icon { position: relative; display: block; }
.input-icon input { padding-left: 40px; }
.input-icon .star { position: absolute; left: 14px; top: 50%; width: 16px; transform: translateY(-50%); fill: var(--star); }
.input-icon.at::before { content: "@"; position: absolute; left: 15px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 15px; font-weight: 500; }

.order-form h1 { font-size: 22px; margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
@media (max-width: 1100px) { .presets { grid-template-columns: repeat(4, 1fr); } }
.presets button {
  height: 34px;
  font: 600 13px var(--font);
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.presets button { white-space: nowrap; padding: 0 2px; }
.presets button span { color: var(--star); }
.presets button:hover { border-color: var(--lilac); }
.presets button[aria-pressed="true"] { border-color: transparent; background: linear-gradient(120deg, #7c5cff, #c35bff); color: #fff; }
.presets button[aria-pressed="true"] span { color: #ffe08a; }

.pay-methods #methods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.method {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.method input { margin: 0; accent-color: var(--accent); }
.method:has(input:checked) { border-color: var(--accent); background: rgba(124, 92, 255, 0.14); }
/* значок способа оплаты */
.m-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #fff; }
.m-mark svg { width: 20px; height: 20px; display: block; }
.m-mark[data-icon="cryptobot"], .m-mark[data-icon="card"], .m-mark[data-icon="balance"],
.method[data-kind="cryptobot"] .m-mark, .method[data-kind="card"] .m-mark, .method[data-kind="balance"] .m-mark { background: none; }
.m-mark[data-icon="cryptobot"] svg, .m-mark[data-icon="card"] svg, .m-mark[data-icon="balance"] svg,
.method[data-kind="cryptobot"] .m-mark svg, .method[data-kind="card"] .m-mark svg, .method[data-kind="balance"] .m-mark svg { width: 26px; height: 26px; }
.method .m-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.method .m-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.method .m-note { color: var(--muted); font-size: 12px; }
.method .m-sum { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.qty-warn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: rgba(255, 192, 80, 0.08);
  border: 1px solid rgba(255, 192, 80, 0.35);
  font-size: 14px;
}
.qty-warn[hidden] { display: none; }
.qty-warn b { color: #ffd27a; font-weight: 600; }
.qty-warn b::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; border: 1.5px solid #ffd27a; font-size: 11px; }
.warn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.warn-row .suggest { height: 32px; padding: 0 14px; font-size: 14px; border-color: rgba(185, 164, 255, 0.4); background: rgba(124, 92, 255, 0.18); border-radius: var(--r); }
.warn-row .suggest:hover { border-color: var(--lilac); }
#methods.is-off { opacity: 0.4; pointer-events: none; }
.sbp-note { margin: 6px 0 0; font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--muted); }

.pay-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 4px; }
.pay-row .summary { flex-direction: row; gap: 18px; }
.pay-row .summary div { flex-direction: column; }
.pay-row .summary dt { font-size: 12px; }
.pay-row .summary dd { font-size: 20px; line-height: 1.2; white-space: nowrap; }
.pay-row .summary div:last-child dd { font-size: 20px; }
.pay-row .summary dd .st { color: var(--star); font-style: normal; font-size: 16px; }

/* правая колонка: поддержка и условия при проблемах */
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.side .art { position: relative; top: auto; }
.info { padding: 18px 20px; border-radius: 16px; background: rgba(33, 21, 56, 0.7); border: 1px solid var(--line); }
.info h2 { margin: 0 0 8px; font-size: 16px; }
.info-link { margin: 10px 0 0; font-size: 14px; }
.info ul { margin: 0; padding-left: 18px; color: #d6ccf0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.support {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(42, 171, 238, 0.18), rgba(124, 92, 255, 0.14));
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: var(--ink);
}
.support:hover { border-color: #2aabee; color: var(--ink); }
.support-ico { width: 40px; height: 40px; border-radius: 50%; background: #2aabee; display: grid; place-items: center; color: #fff; flex: none; }
.support-ico svg { width: 22px; height: 22px; }
.support small { display: block; color: var(--muted); font-size: 13px; }

/* форма отзыва на странице заказа */
.review-box { margin-top: 28px; padding: 20px; border-radius: 16px; background: rgba(33, 21, 56, 0.7); border: 1px solid var(--line); }
.review-box h2 { margin: 0 0 6px; }
.review-box p { margin: 0 0 8px; }
.rating { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating input { position: absolute; opacity: 0; }
.rating label { font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--star); }
.rating input:focus-visible + label { outline: 2px solid var(--lilac); border-radius: 4px; }
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: 500 15px var(--font);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r);
  resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--lilac); }

/* отзывы */
.reviews { margin: 72px 0 0; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.reviews-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0; }
.reviews-head p { margin: 0; color: var(--muted); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.review-list li { padding: 18px; border-radius: 16px; background: rgba(33, 21, 56, 0.7); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.review-list p { margin: 0; }
.r-stars { color: var(--star); letter-spacing: 2px; }
.r-stars span { color: var(--line); }
.r-text { flex: 1; }
.r-who { color: var(--muted); font-size: 13px; }

/* копия кнопки оплаты у нижнего края на телефоне */
.mobile-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 11, 44, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-buy[hidden] { display: none; }
@media (min-width: 901px) { .mobile-buy { padding-left: max(16px, calc((100% - 1120px) / 2)); padding-right: max(16px, calc((100% - 1120px) / 2)); } }
.mobile-buy .buy:disabled { background: var(--field); }
.mobile-buy b { display: block; font-size: 18px; }
.mobile-buy small { color: var(--muted); font-size: 12px; }
.mobile-buy .buy { height: 44px; padding: 0 28px; background: linear-gradient(100deg, #7c5cff 0%, #c35bff 55%, #ff5fc8 100%); }

.summary { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.summary div { display: flex; justify-content: space-between; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary div:last-child dd { font-size: 20px; }

.hint { margin: 0; color: var(--muted); font-size: 13px; }
.hint:empty { display: none; }
.suggest {
  height: 26px;
  padding: 0 10px;
  font: 600 13px var(--font);
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.buy {
  height: 48px;
  padding: 0 18px;
  font: 700 15px var(--font);
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-form .buy { background: linear-gradient(100deg, #7c5cff 0%, #c35bff 55%, #ff5fc8 100%); box-shadow: 0 10px 30px -10px rgba(255, 95, 200, 0.6); }
.buy:hover { background: var(--accent-hover); color: #fff; }
.order-form .buy:hover { filter: brightness(1.08); background: linear-gradient(100deg, #7c5cff 0%, #c35bff 55%, #ff5fc8 100%); }
.order-form .buy:disabled { background: var(--field); box-shadow: none; }
.buy:disabled { background: var(--field); color: #6f6290; cursor: not-allowed; }
.buy.inline { display: inline-flex; }

.art { margin: 0; position: sticky; top: 88px; }
.art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 30px 90px -30px rgba(195, 91, 255, 0.75), 0 0 0 1px rgba(185, 164, 255, 0.25);
}
.art figcaption { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 3px solid #ff8fd8; }
.art figcaption b { font-size: 18px; }
.art figcaption span { color: var(--muted); }
/* единственная фоновая анимация — три звезды парят у картинки */
.float { position: absolute; color: var(--star); text-shadow: 0 0 18px rgba(255, 200, 80, 0.8); animation: float 6s ease-in-out infinite; pointer-events: none; }
.f1 { top: -18px; right: 8%; font-size: 40px; }
.f2 { top: 34%; left: -22px; font-size: 28px; animation-delay: -2s; }
.f3 { top: 52%; right: -16px; font-size: 22px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(8deg); } }

/* ── Как купить ── */
.how { margin: 96px 0 0; }
.how h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 28px; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.how li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(33, 21, 56, 0.7);
  border: 1px solid var(--line);
}
.how li::before {
  content: counter(step);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(120deg, #ffd56a, #ff8fd8 60%, #a98bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.how li:nth-child(2)::before { background-image: linear-gradient(120deg, #8fe3ff, #a98bff); }
.how li:nth-child(3)::before { background-image: linear-gradient(120deg, #ff8fd8, #ffb36b); }
.how li:nth-child(4)::before { background-image: linear-gradient(120deg, #7cf0b7, #8fe3ff); }
.how li b { font-weight: 700; font-size: 16px; }
.how li span { color: #d6ccf0; font-size: 14px; }

/* ── Внутренние страницы ── */
.page { max-width: 520px; padding: 40px 0; }
.crumb { margin: 0 0 12px; font-size: 13px; }
.crumb a { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; }
.row .field:first-child { flex: 1; }
.field.narrow { width: 100px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.price { margin: 0; font-weight: 600; font-size: 18px; }

.gift-form { display: flex; flex-direction: column; gap: 14px; }
.gift-grid { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gift {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--h);
  padding: 0 14px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.gift input { position: absolute; opacity: 0; }
.gift:has(input:checked) { border-color: var(--accent); }
.gift:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 2px; }
.gift-price { font-weight: 600; }

.status { margin: 0 0 8px; color: var(--muted); }
.status b { color: var(--ink); }
.status.is-paid b { color: var(--ok); }
.status p { margin: 0; }

.methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.methods form { margin: 0; }
.methods button {
  width: 100%;
  height: var(--h);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font: 500 15px var(--font);
  text-align: left;
  cursor: pointer;
}
.methods button:hover:not(:disabled) { border-color: var(--accent); }
.methods button:disabled { opacity: 0.45; cursor: not-allowed; }
.m-note { color: var(--muted); font-size: 13px; }
.m-sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-pay { margin-top: 16px; }

.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.orders td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.ok { color: var(--ok); }
.wait { color: var(--muted); }

.link { background: none; border: 0; padding: 0; color: var(--muted); font: 500 14px var(--font); cursor: pointer; }
.link:hover { color: var(--ink); }

.providers { display: flex; flex-direction: column; gap: 10px; }
.provider { height: var(--h); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.or { color: var(--muted); font-size: 13px; margin: 18px 0 10px; }

.foot { padding: 48px 0 28px; margin-top: 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
.foot p { margin: 0; }
.foot a { color: var(--lilac); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; align-items: baseline; }
.copy { color: var(--ink); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.demo-note { margin-top: 10px !important; color: var(--star); font-size: 13px; }

/* ── Аренда ── */
.rent { padding: 40px 0 0; }
.tabs { display: flex; gap: 6px; margin: 0 0 20px; }
.tabs a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.tabs a[aria-current="page"] { background: linear-gradient(120deg, #7c5cff, #c35bff); border-color: transparent; color: #fff; }
.field.search { max-width: 420px; margin-bottom: 18px; }
.search-row { display: flex; gap: 8px; align-items: flex-start; }
.search-row .field { flex: 1; }
.small-btn { height: var(--h); }

.collections { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.collections a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(33, 21, 56, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
}
.collections a:hover { border-color: var(--lilac); color: var(--ink); }
.collections img, .collections .ph { width: 56px; height: 56px; border-radius: 12px; flex: none; background: var(--field); }
.c-text { display: flex; flex-direction: column; min-width: 0; }
.c-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-text span { color: var(--muted); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: 0 0 12px; }
.filter { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 160px; }
.filter.wide-f { min-width: 260px; flex: 1; max-width: 360px; }
.filter.narrow-f { min-width: 0; width: 130px; }
.filter select, .filter input {
  height: 40px;
  padding: 0 12px;
  font: 500 14px var(--font);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r);
  -moz-appearance: textfield;
}
.filter select { padding-right: 30px; max-width: 240px; }
.filter select:focus, .filter input:focus { outline: none; border-color: var(--lilac); }
.filter input::placeholder { color: #7a6c9e; }
.filters .small-btn { height: 40px; }
.found { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.g-price small { color: var(--muted); font-weight: 500; }

.gifts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gifts-grid a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px 14px;
  border-radius: 16px;
  background: rgba(33, 21, 56, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
}
.gifts-grid a:hover { border-color: var(--lilac); color: var(--ink); }
.gifts-grid img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; margin-bottom: 8px; background: var(--field); }
.gifts-grid .attrs { color: var(--muted); font-size: 12px; }
.g-price { font-weight: 700; margin-top: 4px; }
.more-link { margin: 22px 0 0; }
.ghost-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }

.usernames { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.usernames a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--ink);
}
.usernames a:hover { border-color: var(--lilac); color: var(--ink); }
.u-days { color: var(--muted); font-size: 13px; }
.u-price { font-weight: 700; }

.rent-item { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 480px); gap: 40px; padding: 40px 0 0; align-items: start; }
.item-art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 30px 90px -30px rgba(195, 91, 255, 0.75); background: var(--field); }
.username-art {
  display: grid;
  place-items: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  background: radial-gradient(circle at 30% 20%, rgba(255, 143, 216, 0.35), transparent 60%), linear-gradient(140deg, #3a1f78, #1d0f3d);
  word-break: break-all;
  padding: 20px;
  text-align: center;
}
.traits { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.traits div { padding: 6px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line); }
.traits dt { font-size: 11px; color: var(--muted); }
.traits dd { margin: 0; font-weight: 600; font-size: 14px; }
.steps-note { font-size: 13px; color: var(--muted); line-height: 1.6; display: flex; flex-direction: column; gap: 8px; }
.renew-note { padding: 10px 12px; border-radius: var(--r); background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(185, 164, 255, 0.25); }
.rent-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 520px) { .rent-methods { grid-template-columns: 1fr; } }
.steps-note p { margin: 0; }
.steps-note b { color: var(--ink); }

/* ── Юридические страницы ── */
.legal { max-width: 720px; padding: 40px 0; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: #d6ccf0; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .buy-grid, .rent-item { grid-template-columns: 1fr; gap: 28px; }
  .item-art { max-width: 360px; }
  .how ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art { display: none; }
  .order-form { padding: 20px; }
  .top-row { flex-wrap: wrap; height: auto; padding: 14px 0 10px; row-gap: 8px; justify-content: space-between; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 20px; }
}
@media (max-width: 520px) {
  .presets { grid-template-columns: repeat(4, 1fr); }
  .band { gap: 24px; }
  .row { flex-direction: column; }
  .field.narrow { width: 100%; }
  .orders th:nth-child(3), .orders td:nth-child(3) { display: none; }
}
@media (max-width: 900px) { .side { position: static; } .side .art { display: none; } .review-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .how ol, .review-list { grid-template-columns: 1fr; }
  .pay-methods #methods { grid-template-columns: 1fr; }
  .pay-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .float { animation: none; } }

/* выданные звёзды и заказы — в правой колонке, под картинкой */
.main-col { display: flex; flex-direction: column; gap: 12px; }
.stat-card { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card .st { font-style: normal; color: var(--star); -webkit-text-fill-color: var(--star); font-size: 24px; }
.stat-card p {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(33, 21, 56, 0.7);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-card b {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #ffd56a, #ff8fd8 60%, #a98bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card p:nth-child(2) b { background-image: linear-gradient(100deg, #8fe3ff, #a98bff 60%, #ff8fd8); }
.stat-card span { color: var(--muted); font-size: 13px; }

/* ── Админка ── */
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 32px 0 0; align-items: start; }
.adm-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.adm-nav a { padding: 9px 12px; border-radius: var(--r); color: var(--muted); font-weight: 600; font-size: 14px; }
.adm-nav a:hover { color: var(--ink); background: rgba(124, 92, 255, 0.1); }
.adm-nav a[aria-current="page"] { color: var(--ink); background: rgba(124, 92, 255, 0.22); }
.adm-nav form { margin-top: 14px; padding-left: 12px; }
.adm-main h1 { font-size: 24px; }
.adm-card { padding: 20px 22px; border-radius: 16px; background: rgba(33, 21, 56, 0.7); border: 1px solid var(--line); margin-bottom: 14px; }
.adm-card h2 { margin: 0 0 12px; font-size: 16px; }
.tg-text { line-height: 1.7; }
.tg-text blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--lilac); background: rgba(124, 92, 255, 0.08); border-radius: 6px; }
.adm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.adm-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line); }
.adm-list form { margin: 0; }
.switch { min-width: 120px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.switch.is-on { background: rgba(111, 207, 151, 0.16); border-color: rgba(111, 207, 151, 0.5); color: var(--ok); }
.cfg-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.cfg-row:first-of-type { border-top: 0; }
.cfg-row label { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cfg-row small { color: var(--muted); font-size: 12px; }
.cfg-row input, .cfg-row select { height: 38px; padding: 0 10px; font: 500 14px var(--font); color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--r); }
.cfg-row .ghost-btn { height: 38px; background: none; cursor: pointer; font: 600 13px var(--font); }
.adm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0 0 18px; }
.adm-facts div { padding: 10px 14px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line); }
.adm-facts dt { font-size: 12px; color: var(--muted); }
.adm-facts dd { margin: 0; font-weight: 600; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 10px; }
.adm-actions .cfg-row { border: 0; padding: 0; grid-template-columns: auto 220px auto; }
.ghost-btn.danger { color: var(--danger); border-color: rgba(242, 133, 143, 0.4); }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .cfg-row, .adm-actions .cfg-row { grid-template-columns: 1fr; }
}

/* ── Промокод и рефка ── */
.promo-box { margin: 18px 0 4px; }
.promo-row { display: flex; gap: 8px; margin: 6px 0; }
.promo-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; font: 500 14px var(--font); color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--r); }
.promo-row input:focus { outline: none; border-color: var(--lilac); }
.promo-row .ghost-btn { height: 40px; background: none; cursor: pointer; font: 600 13px var(--font); white-space: nowrap; }
.lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.ref-facts { margin: 12px 0 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .lk-grid { grid-template-columns: 1fr; } }
.page.wide-page { max-width: 900px; }
.promo-field.is-locked input { opacity: 0.55; cursor: not-allowed; background: rgba(33, 21, 56, 0.5); border-style: dashed; }
.promo-field.is-locked small a { color: var(--lilac); }
.review-cta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.r-who a { color: var(--muted); }

/* ── NFT: купить / продать ─────────────────────────────────────────────── */
.sub-h { font-size: 20px; margin: 30px 0 14px; }
.rec-row { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gifts-grid .g-price small, .collections .c-text small { color: var(--muted); font-weight: 500; }
.more-link { display: flex; gap: 10px; flex-wrap: wrap; }
.sell-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 360px); gap: 32px; align-items: start; }
.sell-steps { margin: 22px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.sell-steps li + li { margin-top: 6px; }
.sell-result { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--panel); }
.sell-result img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; background: var(--field); }
.sell-result h2 { margin: 14px 0 4px; font-size: 20px; }
.sell-result .offer { font-size: 22px; margin: 6px 0; }
.sell-result .offer b { background: linear-gradient(120deg, #a58bff, #e08bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sell-result .buy { margin-top: 12px; }
@media (max-width: 860px) { .sell-grid { grid-template-columns: 1fr; } }
