/* Шрифт Inter — с самого сайта (раньше Google Fonts блокировал отрисовку страниц). Переменная толщина 400–900 */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ESQ SHOP — стиль по макету Figma (тёмная тема, неон #00ff88 → #00d4ff) */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f1423;
  --field: #1a1f2e;
  --glass: rgba(20, 25, 40, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --muted-3: #4b5563;
  --green: #00ff88;
  --cyan: #00d4ff;
  --purple: #b366ff;
  --red: #ff5c7a;
  --amber: #ffc04d;
  --grad: linear-gradient(90deg, #00ff88, #00d4ff);
  --grad-text: linear-gradient(90deg, #00ff88, #00d4ff, #b366ff, #00ff88);
  --glow: 0 0 25px rgba(0, 255, 136, 0.35);
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Ничто не должно расширять страницу вбок: на телефоне это даёт «тряску» влево-вправо при прокрутке */
html { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* старые браузеры без clip */
  overflow-x: clip;   /* clip не делает body прокручиваемым — закреплённая шапка продолжает работать */
  position: relative;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
.ic { width: 1em; height: 1em; flex: none; }

/* ---------- Фон: сетка, ромбы, светящиеся пятна ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; transform: translateZ(0); }
.bg-grid {
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(26, 31, 46, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 31, 46, 0.55) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-diamonds {
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%2300ff88' fill-opacity='0.1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
/* Светящиеся пятна фона: радиальный градиент вместо filter: blur(120px) — тот же вид без пересчёта размытия на каждом кадре */
.orb {
  position: fixed; width: 48rem; height: 48rem; margin: -12rem 0 0 -12rem; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0.1; will-change: opacity; transform: translateZ(0);
}
.orb-green { top: 18%; left: 18%; background: radial-gradient(closest-side, var(--green), transparent); animation: orb 10s ease-in-out infinite; }
.orb-purple { bottom: 15%; right: 18%; margin: 0 -12rem -12rem 0; background: radial-gradient(closest-side, var(--purple), transparent); animation: orb 12s ease-in-out infinite reverse; }
@keyframes orb {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.15; }
}

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); flex: none; transition: transform .2s; }
.brand:hover { color: var(--green); transform: scale(1.05); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #05140c;
  display: grid; place-items: center;
  box-shadow: 0 10px 25px -5px rgba(0, 255, 136, 0.3), 0 0 20px rgba(0, 255, 136, 0.4);
}
.brand-mark svg { width: 19px; height: 24px; }
.brand-name { font-weight: 900; font-size: 20px; letter-spacing: -0.05em; }
.brand-sm .brand-mark { width: 30px; height: 30px; }
.brand-sm .brand-mark svg { width: 14px; height: 18px; }
.brand-sm .brand-name { font-size: 16px; }

.search { position: relative; flex: 1; max-width: 32rem; margin: 0 auto; }
.search input {
  width: 100%; background: var(--field); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 9px 16px 9px 40px; font: inherit; font-size: 14px; outline: none;
  transition: border-color .3s;
}
.search input:focus { border-color: rgba(0, 255, 136, 0.5); }
.search input::placeholder { color: var(--muted-2); }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }

.nav { display: flex; align-items: center; gap: 24px; flex: none; }
.nav a {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255, 255, 255, 0.7); transition: color .2s, transform .2s;
}
.nav a:hover { color: var(--green); transform: translateY(-1px); }

.user-area { display: flex; align-items: center; gap: 12px; flex: none; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 255, 136, 0.08); border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--green); font-weight: 800; font-size: 13px; white-space: nowrap;
}
.balance-chip:hover { color: var(--green); background: rgba(0, 255, 136, 0.14); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--green); color: var(--green);
  display: grid; place-items: center; background: rgba(0, 255, 136, 0.06);
  box-shadow: 0 10px 25px -5px rgba(0, 255, 136, 0.3);
  transition: transform .2s;
}
.avatar .ic { width: 24px; height: 24px; }
.avatar:hover { color: var(--green); transform: scale(1.05); }

/* ---------- Каркас ---------- */
.container { position: relative; z-index: 10; max-width: 1152px; margin: 0 auto; padding: 24px 16px 48px; min-height: 70vh; }
.footer { position: relative; z-index: 10; border-top: 1px solid var(--line); margin-top: 32px; }
.footer-inner { max-width: 1152px; margin: 0 auto; padding: 24px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
.footer-inner p { margin: 0; }

h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- Заголовки ---------- */
.hero { text-align: center; margin: 8px 0 28px; }
.hero-title {
  font-size: clamp(34px, 6vw, 56px); font-weight: 900; font-style: italic;
  letter-spacing: -0.05em; line-height: 1.05;
  background: var(--grad-text); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-move 5s linear infinite; padding: 0 .1em;
}
@keyframes grad-move { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-sub { margin-top: 8px; color: var(--muted); font-weight: 700; font-size: 15px; }

.section-head { text-align: center; margin: 44px 0 16px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .2em; opacity: .6; }

.page-title { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; margin-bottom: 6px; }
.page-title .accent { color: var(--green); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
  color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
}
.back-link:hover { color: var(--green); }
.back-link .ic { width: 18px; height: 18px; transition: transform .2s; }
.back-link:hover .ic { transform: translateX(-3px); }

/* ---------- Кнопки ---------- */
.btn, .btn-small, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .3s, background .2s, opacity .2s;
}
.btn {
  background: var(--grad); color: #04110b !important;
  font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  padding: 11px 30px; border-radius: var(--r-sm);
  box-shadow: 0 10px 20px -8px rgba(0, 255, 136, 0.45);
}
.btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 136, 0.45); color: #04110b; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn-block { width: 100%; padding: 16px; border-radius: var(--r); font-size: 14px; }
.btn-small {
  background: rgba(255, 255, 255, 0.06); color: var(--text) !important;
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 7px 14px; font-size: 13px; font-weight: 700;
}
.btn-small:hover { border-color: rgba(0, 255, 136, 0.45); background: rgba(0, 255, 136, 0.08); }
.btn-small.danger, .danger { background: rgba(255, 92, 122, 0.12); border-color: rgba(255, 92, 122, 0.35); color: #ff9db0 !important; }
.btn-small.danger:hover { background: rgba(255, 92, 122, 0.2); }
.btn-ghost { background: none; color: var(--muted) !important; font-weight: 700; font-size: 13px; padding: 6px 0; }
.btn-ghost:hover { color: var(--green) !important; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--muted); white-space: nowrap; align-self: flex-start;
}
.badge.ok { background: rgba(0, 255, 136, 0.12); color: var(--green); }
.badge.wait { background: rgba(255, 192, 77, 0.14); color: var(--amber); }
.badge.off { background: rgba(255, 92, 122, 0.14); color: var(--red); }
.badge-hot {
  position: absolute; top: 16px; right: 24px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #04110b;
  padding: 6px 16px; border-radius: 999px;
  font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: -0.01em;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
  animation: pulse 3s ease-in-out infinite;
}
.badge-hot .ic { width: 14px; height: 14px; fill: currentColor; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- Bento: категории ---------- */
.bento { display: flex; flex-direction: column; gap: 24px; }
.bento-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  position: relative; overflow: hidden; display: flex; color: var(--text);
  background: rgba(20, 25, 40, 0.86);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s, border-color .3s;
}
.cat-card:hover { color: var(--text); transform: translateY(-2px) scale(1.005); border-color: rgba(0, 255, 136, 0.25); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), transparent);
  transition: opacity 1s;
}
.cat-card:hover::after { opacity: 1; }
.cat-card.hot {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%);
  border-color: rgba(0, 255, 136, 0.4); border-radius: var(--r-xl);
}
.cat-body { position: relative; z-index: 2; padding: 28px; display: flex; flex-direction: column; width: 100%; }
.cat-media { height: 140px; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }
.cat-media img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm);
  filter: drop-shadow(0 20px 50px rgba(0, 255, 136, 0.3));
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.cat-card:hover .cat-media img { transform: scale(1.08) rotate(3deg) translateY(-8px); }
.cat-media.placeholder { border-radius: var(--r-sm); background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(179, 102, 255, 0.1)); color: var(--green); }
.cat-media.placeholder .ic { width: 56px; height: 56px; opacity: .8; }
.cat-icon { color: var(--green); margin-bottom: 12px; }
.cat-icon .ic { width: 28px; height: 28px; }
.cat-title { font-size: 24px; font-weight: 900; letter-spacing: -0.05em; word-spacing: 0.22em; line-height: 1.05; margin-bottom: 8px; text-transform: uppercase; }
.cat-desc { color: var(--muted); opacity: .75; font-size: 14px; line-height: 1.35; margin: 0; }
.cat-cta { margin-top: auto; padding-top: 18px; }

/* Баннер на всю ширину */
.cat-card.banner .cat-body { flex-direction: row; align-items: center; gap: 32px; padding: 36px; }
.cat-card.banner .cat-text { flex: 1; min-width: 0; }
.cat-card.banner .cat-icon .ic { width: 40px; height: 40px; }
.cat-card.banner .cat-title { font-size: clamp(30px, 4.6vw, 52px); }
.cat-card.banner .cat-desc { font-size: 17px; max-width: 36rem; }
.cat-card.banner .cat-cta { padding-top: 26px; }
.cat-card.banner .cat-media { flex: 1; height: auto; margin: 0; justify-content: flex-end; }
.cat-card.banner .cat-media img { height: auto; max-height: 280px; object-fit: contain; border-radius: 25px; }
.cat-card.banner:hover .cat-media img { transform: scale(1.06) rotate(1.5deg) translateY(-6px); }
.cat-glow { position: absolute; inset: -6rem; background: linear-gradient(90deg, rgba(0, 255, 136, 0.05), transparent, rgba(0, 212, 255, 0.05)); filter: blur(80px); opacity: .4; pointer-events: none; }

/* ---------- Карточки товаров ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.p-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; color: var(--text);
  background: linear-gradient(135deg, rgba(30, 35, 55, 0.94) 0%, rgba(20, 25, 40, 0.94) 100%);
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.p-card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(0, 255, 136, 0.5); box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2), 0 0 30px rgba(0, 212, 255, 0.1); }
.p-img { position: relative; height: 128px; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2)); }
.p-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.05); }
.p-img.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(179, 102, 255, 0.12)); color: var(--green); }
.p-img.placeholder .ic { width: 44px; height: 44px; opacity: .8; }
.p-badge { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--grad); color: #04110b; font-weight: 800; font-size: 10px; padding: 2px 8px; border-radius: 999px; }
.p-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.p-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.p-meta .ic { width: 12px; height: 12px; }
.p-meta .auto { color: var(--green); }
.p-title { font-size: 17px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.p-desc { color: var(--muted); font-size: 12px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 10px; }
.p-price strong { font-size: 20px; font-weight: 800; color: var(--green); }
.p-price s { font-size: 12px; color: var(--muted-2); }
.p-card .btn { padding: 8px 14px; font-size: 11px; border-radius: 9px; width: 100%; }
.p-card.soldout { opacity: .6; }

/* ---------- Карусель «Топ предложения» ---------- */
.carousel { position: relative; padding: 8px 0; overflow-x: clip; overflow-y: visible; }
.carousel-stage { position: relative; height: 520px; perspective: 2000px; display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.carousel-card {
  position: absolute; width: 300px; max-width: 80vw;
  transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .5s;
  transform-style: preserve-3d;
}
.carousel-card .p-card { cursor: pointer; }
/* Размытие фона под 3D-трансформацией при резкой прокрутке рисуется с задержкой («блюр на пару секунд») — в карусели фон сплошной */
.carousel-card { will-change: transform, opacity; backface-visibility: hidden; }
.carousel-card .p-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(135deg, #1b2032 0%, #141a29 100%); }
.carousel-card:not(.is-center) .p-img img { filter: brightness(.7); }
.carousel-card:not(.is-center) .btn { visibility: hidden; }
.carousel-card.is-center .p-card { border: 2px solid rgba(0, 255, 136, 0.5); box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2), 0 0 30px rgba(0, 212, 255, 0.1); }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.carousel-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background .3s, transform .3s;
}
.carousel-nav button:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
.carousel-nav .ic { width: 16px; height: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.carousel-dots button { height: 8px; width: 8px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.3); transition: width .3s, background .3s; padding: 0; }
.carousel-dots button.active { width: 32px; background: var(--grad); }
/* Без JS — обычная лента с прокруткой */
.carousel:not(.is-ready) .carousel-stage { height: auto; perspective: none; display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 16px; overflow-x: auto; justify-content: start; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel:not(.is-ready) .carousel-card { position: static; width: auto; scroll-snap-align: start; }
.carousel:not(.is-ready) .carousel-nav, .carousel:not(.is-ready) .carousel-dots { display: none; }

/* ---------- Оформление заказа (как модальное окно в макете) ---------- */
.checkout {
  position: relative; max-width: 34rem; margin: 0 auto; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: 0 0 100px rgba(0, 255, 136, 0.15);
}
.checkout::before {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0); background-size: 24px 24px;
}
.checkout-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 32px 32px 0; }
.icon-tile { width: 42px; height: 42px; flex: none; border-radius: var(--r-sm); background: var(--grad); color: #04110b; display: grid; place-items: center; }
.icon-tile .ic { width: 20px; height: 20px; fill: currentColor; }
.checkout-head h1 { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
.kicker { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; margin-top: 4px; }
.checkout-body { position: relative; z-index: 1; padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.checkout-img { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.checkout-img img { width: 100%; max-height: 220px; object-fit: cover; }
.checkout-desc { color: var(--muted); font-size: 14px; line-height: 1.55; }
.info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--r);
}
.info-row .safe { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.info-row .safe .ic { width: 20px; height: 20px; color: var(--green); }
.info-row .total { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.info-row .total span { margin-right: auto; font-size: 11px; color: var(--muted-2); text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.info-row .total strong { font-size: 20px; font-weight: 900; white-space: nowrap; }
.info-row .total s { font-size: 12px; color: var(--muted-2); margin-right: 6px; }
.fineprint { text-align: center; font-size: 11px; color: var(--muted-3); margin: 0; padding: 0 12px; }
.delivery-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.delivery-note .ic { width: 18px; height: 18px; color: var(--green); margin-top: 1px; }

/* ---------- Карточки и формы (вход, кабинет, админка) ---------- */
.card {
  position: relative; background: rgba(20, 25, 40, 0.86);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px;
}
.card h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 14px; }
.card h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 14px; }
.card h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 10px; }
.narrow { max-width: 440px; margin: 24px auto; }
.auth-card { padding: 32px; border-radius: var(--r-xl); background: var(--bg-2); border-color: var(--line-2); box-shadow: 0 0 100px rgba(0, 255, 136, 0.12); }

form.stack { display: flex; flex-direction: column; gap: 16px; }
/* Капча Cloudflare: пока проверка идёт в фоне, блок пустой и не добавляет отступ; окошко — только когда нужно */
.ts-box { margin-top: -16px; min-height: 0; }
.ts-box.is-shown { margin-top: 0; }
.ts-box .cf-turnstile { width: 100%; }
.ts-box iframe { border-radius: 10px; }
form.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
input, textarea, select {
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: normal; text-transform: none;
  color: var(--text); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 13px 18px; width: 100%; outline: none; transition: border-color .3s, background .3s;
}
input:focus, textarea:focus, select:focus { border-color: rgba(0, 255, 136, 0.5); background: rgba(255, 255, 255, 0.07); }
input::placeholder, textarea::placeholder { color: var(--muted-3); }
select option { background: var(--bg-2); }
textarea { resize: vertical; }
form.inline input { width: auto; max-width: 200px; }
.code-input { font-size: 26px; font-weight: 900; letter-spacing: .5em; text-align: center; padding: 14px; }

.flash { position: relative; z-index: 10; padding: 13px 18px; border-radius: var(--r); margin-bottom: 20px; font-size: 14px; font-weight: 600; border: 1px solid; }
.flash-ok { background: rgba(0, 255, 136, 0.08); border-color: rgba(0, 255, 136, 0.3); color: var(--green); }
.flash-error { background: rgba(255, 92, 122, 0.08); border-color: rgba(255, 92, 122, 0.3); color: #ff9db0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted-2); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }

.balance-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%); border-color: rgba(0, 255, 136, 0.35); }
.balance-card .label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; }
.price { font-weight: 900; font-size: 20px; }
.price.big { font-size: 34px; letter-spacing: -0.03em; }
.order { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.order:first-of-type { border-top: 0; }
.order-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.delivery { background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(0, 255, 136, 0.2); padding: 12px; border-radius: var(--r-sm); white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--green); margin: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.tabs a:hover, .tabs a.active { color: var(--green); border-color: rgba(0, 255, 136, 0.45); background: rgba(0, 255, 136, 0.06); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .ic { width: 42px; height: 42px; color: var(--green); opacity: .7; margin: 0 auto 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-row-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-row-form input, .admin-row-form select { width: auto; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
.thumb { width: 64px; height: 24px; object-fit: cover; border-radius: 6px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
  .nav { display: none; }
}
@media (max-width: 860px) {
  .bento-row { grid-template-columns: 1fr; }
  .cat-card.banner .cat-body { flex-direction: column; text-align: center; padding: 28px 22px; }
  .cat-card.banner .cat-icon { margin-left: auto; margin-right: auto; }
  .cat-card.banner .cat-desc { margin: 0 auto; }
  .cat-card.banner .cat-media { justify-content: center; width: 100%; }
  .badge-hot { top: 14px; right: 50%; translate: 50% 0; }
  .cat-card.banner .cat-body { padding-top: 64px; }
}
@media (max-width: 720px) {
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .user-area { margin-left: auto; }
  .brand-name { font-size: 18px; }
  .balance-chip span { font-size: 12px; }
  .checkout-head { padding: 24px 20px 0; }
  .checkout-body { padding: 20px; }
  .card { padding: 18px; }
  .auth-card { padding: 24px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .info-row { flex-direction: column; align-items: stretch; }
  .info-row .total { text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .orb { width: 32rem; height: 32rem; margin: -8rem 0 0 -8rem; }
  .orb-purple { margin: 0 -8rem -8rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Быстрые автопополнения (вверху главной) ---------- */
.quick { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin: 4px 0 32px; scroll-margin-top: 90px; }
.quick-tabs {
  display: grid; grid-template-columns: repeat(2, 64px); grid-auto-rows: 64px; gap: 10px; align-content: center;
  padding: 14px; background: rgba(20, 25, 40, 0.86);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.quick-tab {
  position: relative; display: grid; place-items: center; border-radius: 18px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform .2s, border-color .2s, background .2s, box-shadow .3s;
}
.quick-tab svg { width: 32px; height: 32px; }
.quick-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quick-tab:hover { transform: translateY(-2px); border-color: rgba(0, 255, 136, 0.35); }
.quick-tab.active { background: rgba(0, 255, 136, 0.08); border: 2px solid var(--green); box-shadow: 0 0 22px rgba(0, 255, 136, 0.28); }
.q-steam, .q-steam:hover { color: #66c0f4; }
.q-stars, .q-stars:hover { color: #ffc04d; }
.q-playstation, .q-playstation:hover { color: #4b8dff; }
.q-roblox, .q-roblox:hover { color: #e9edf5; }

.quick-panel {
  position: relative; padding: 20px 24px 22px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.10) 0%, rgba(0, 212, 255, 0.06) 100%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 136, 0.3); border-radius: var(--r-lg);
}
.quick-panel[hidden] { display: none; }
.quick-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quick-head h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.quick-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--green); background: rgba(0, 255, 136, 0.1); padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.quick-badge .ic { width: 12px; height: 12px; }
.quick-soon { font-size: 11px; font-weight: 800; color: var(--amber); background: rgba(255, 192, 77, 0.12); padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

.quick-fields { display: grid; grid-template-columns: 1.25fr 1fr auto; gap: 12px; align-items: stretch; }
.q-field {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 66px; padding: 10px 52px 10px 18px; margin: 0;
  background: rgba(10, 14, 26, 0.65); border: 1px solid var(--line-2); border-radius: var(--r);
  text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--text); transition: border-color .3s;
}
.q-field:focus-within { border-color: rgba(0, 255, 136, 0.5); }
.q-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.q-field input, .q-field select {
  background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 18px; font-weight: 800; color: var(--text); width: 100%;
}
.q-field input:focus, .q-field select:focus { background: transparent; }
.q-field select { font-size: 15px; font-weight: 700; cursor: pointer; }
.q-field select:disabled { color: var(--muted-2); cursor: default; }
.q-field input::placeholder { color: var(--muted-3); font-weight: 600; }
.q-field input[type=number] { -moz-appearance: textfield; }
.q-field input::-webkit-outer-spin-button, .q-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-ico {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: var(--text); border: 0; font: 800 14px var(--font); cursor: pointer;
}
.q-unit { cursor: default; color: var(--green); background: rgba(0, 255, 136, 0.1); }
.q-hint {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px);
  padding: 10px 14px; background: var(--bg-2); border: 1px solid rgba(0, 255, 136, 0.3); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500; color: var(--muted); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.q-hint[hidden] { display: none; }
.quick-buy {
  border: 0; cursor: pointer; font: 900 16px var(--font); color: #04110b; white-space: nowrap;
  padding: 0 30px; min-height: 66px; border-radius: var(--r); background: var(--grad);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3); transition: transform .2s, box-shadow .3s;
}
.quick-buy:hover { transform: scale(1.03); box-shadow: 0 0 40px rgba(0, 255, 136, 0.45); }
.quick-buy:active { transform: scale(.98); }
.quick-note { margin: -4px 0 0; font-size: 12px; color: var(--muted-2); }

@media (max-width: 860px) {
  .quick { grid-template-columns: 1fr; }
  .quick-tabs { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 58px; padding: 10px; }
  .quick-fields { grid-template-columns: 1fr 1fr; }
  .quick-buy { grid-column: 1 / -1; min-height: 58px; }
}
@media (max-width: 520px) {
  .quick-fields { grid-template-columns: 1fr; }
  .quick-panel { padding: 18px 16px; }
}

/* ---------- Страница заказа ---------- */
.order-page { max-width: 40rem; }
.order-page .checkout-head { flex-wrap: wrap; }
.order-badge { margin-left: auto; align-self: center; font-size: 12px; padding: 6px 12px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.timeline li::before {
  content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px;
  background: rgba(255, 255, 255, 0.1); z-index: 0;
}
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.current::before { background: var(--grad); }
.timeline .dot {
  position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid rgba(255, 255, 255, 0.15); color: #04110b;
}
.timeline .dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.timeline li.done .dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(0, 255, 136, 0.35); }
.timeline li.current .dot { border-color: var(--green); animation: pulse 2s ease-in-out infinite; }
.timeline li.bad .dot { background: var(--red); box-shadow: none; }
.timeline li.done .t-label { color: var(--text); font-weight: 700; }
.t-time { font-size: 11px; color: var(--muted-2); }

.status-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); border: 1px solid; }
.status-box > .ic { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.status-box b { display: block; font-size: 15px; margin-bottom: 4px; }
.status-box p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.status-box p:last-child { margin-bottom: 0; }
.status-box.ok { background: rgba(0, 255, 136, 0.07); border-color: rgba(0, 255, 136, 0.3); color: var(--green); }
.status-box.wait { background: rgba(255, 192, 77, 0.06); border-color: rgba(255, 192, 77, 0.3); color: var(--amber); }
.status-box.bad { background: rgba(255, 92, 122, 0.06); border-color: rgba(255, 92, 122, 0.3); color: #ff9db0; }
.status-box b { color: var(--text); }
.spinner { width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 50%; border: 3px solid rgba(255, 192, 77, 0.25); border-top-color: var(--amber); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.delivery-wrap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.delivery-wrap .delivery { width: 100%; }
.info-list { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.info-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.info-list > div:first-child { border-top: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); }
.order-row:first-of-type { border-top: 0; }
.order-row:hover { color: var(--text); }
.order-row:hover .order-title { color: var(--green); }
.order-title { font-weight: 700; }
@media (max-width: 520px) {
  /* Телефон: шкала остаётся горизонтальной и компактной — чат с оператором виден без прокрутки */
  .timeline { gap: 2px; }
  .timeline li { gap: 4px; font-size: 10.5px; line-height: 1.2; }
  .timeline li::before { top: 10px; }
  .timeline .dot { width: 22px; height: 22px; }
  .timeline .dot .ic { width: 12px; height: 12px; }
  .timeline .t-time { font-size: 9.5px; }
  .order-badge { margin-left: 0; }
  .info-list > div { flex-direction: column; gap: 2px; }
  .info-list dd { text-align: left; }
}

/* ---------- Баннер-картинка во всю ширину (главная категория на главной) ---------- */
.cat-card.image-banner {
  display: block; padding: 0; border-radius: var(--r-xl);
  border: 1px solid rgba(0, 255, 136, 0.35); box-shadow: 0 0 40px rgba(0, 255, 136, 0.12);
}
.image-banner img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.image-banner:hover img { transform: scale(1.02); }
.image-banner-cta { position: absolute; z-index: 2; left: 9%; bottom: 9%; padding: 13px 38px; font-size: 14px; }
.image-banner:hover .image-banner-cta { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 136, 0.45); }
@media (max-width: 720px) {
  .image-banner-cta { position: static; display: flex; margin: 12px; }
}

/* ---------- Два баннера-картинки в ряд под главным ---------- */
.banner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.image-banner.small { border-radius: var(--r-lg); }
.image-banner.small img { aspect-ratio: 2.3 / 1; object-fit: cover; object-position: center; }
.image-banner.small .image-banner-cta { left: auto; right: 5%; bottom: 9%; padding: 10px 28px; font-size: 13px; }
@media (max-width: 720px) {
  .banner-row { grid-template-columns: 1fr; gap: 16px; }
  .image-banner.small .image-banner-cta { margin: 10px 12px 12px; }
}

/* ---------- Подпись категории на баннере (слева сверху) ---------- */
.image-banner-label {
  position: absolute; z-index: 2; top: 18px; left: 18px; max-width: calc(100% - 36px);
  padding: 8px 16px; border-radius: 12px;
  background: rgba(10, 14, 26, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #fff; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.image-banner.small .image-banner-label { top: 14px; left: 14px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
@media (max-width: 720px) {
  .image-banner-label { top: 10px; left: 10px; padding: 5px 10px; font-size: 13px; border-radius: 9px; }
  .image-banner.small .image-banner-label { top: 10px; left: 10px; font-size: 12px; }
}

/* ---------- Квадратные карточки категорий и фильтр «Игры / Сервисы» ---------- */
.tiles-block { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.kind-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.kind-btn {
  font: 800 13px var(--font); text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
  padding: 10px 22px; border-radius: 999px; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  transition: color .2s, border-color .2s, background .2s, box-shadow .3s;
}
.kind-btn:hover { color: var(--text); border-color: rgba(0, 255, 136, 0.45); }
.kind-btn[aria-pressed="true"] { color: #04110b; background: var(--grad); border-color: transparent; box-shadow: 0 0 22px rgba(0, 255, 136, 0.35); }
/* Компактные значки подряд слева, без растягивания по сетке */
.tiles-grid { display: flex; flex-wrap: wrap; gap: 18px 16px; }
.cat-tile { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); text-align: center; }
.cat-tile:hover { color: var(--text); }
.cat-tile-img {
  width: 92px; height: 92px; overflow: hidden; border-radius: 22px; display: block;
  background: var(--bg-2); border: 1px solid var(--line-2);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.cat-tile:hover .cat-tile-img { transform: translateY(-3px); border-color: rgba(0, 255, 136, 0.55); box-shadow: 0 10px 26px rgba(0, 255, 136, 0.2); }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--green); background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(179, 102, 255, 0.1)); }
.cat-tile-icon .ic { width: 44%; height: 44%; opacity: .8; }
.cat-tile-name { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--muted); transition: color .2s; }
.cat-tile:hover .cat-tile-name { color: var(--green); }
.cat-tile[hidden] { display: none; }
@media (max-width: 520px) {
  .tiles-grid { gap: 14px 12px; }
  .cat-tile { width: 76px; }
  .cat-tile-img { width: 76px; height: 76px; border-radius: 18px; }
  .cat-tile-name { font-size: 11px; }
}

/* Главный баннер ниже на ~25%: обрезаем картинку сверху и снизу поровну */
.image-banner:not(.small) img { aspect-ratio: 1920 / 501; object-fit: cover; object-position: center; }
.image-banner:not(.small) .image-banner-cta { left: auto; right: 2.5%; bottom: 11%; }

/* Тарифы VPN */
.plan-lines { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.plan-lines li { display: flex; gap: 6px; align-items: flex-start; }
.plan-lines .ic { width: 13px; height: 13px; color: var(--green); margin-top: 2px; flex: none; }
.vpn-plan form { margin: 0; }

/* Логотип магазина (картинка) в шапке и подвале */
.brand-mark { background: none; border-radius: 12px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-sm .brand-mark { border-radius: 9px; }

/* ---------- Магазин Fortnite (подкатегория «В-баксы подарком») ---------- */
@font-face { font-family: "FN Futura"; src: url("/assets/fonts/futura-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
.fn-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 8px; position: sticky; top: 64px; z-index: 20; padding: 12px 0; background: linear-gradient(180deg, var(--bg) 70%, rgba(10, 14, 26, 0)); }
.fn-timer { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fn-timer .ic { width: 15px; height: 15px; color: var(--green); }
.fn-timer b { color: var(--text); font-variant-numeric: tabular-nums; }
.fn-group { margin: 18px 0 30px; }
.fn-group[hidden] { display: none; }
.fn-group-title { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 12px; }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.fn-card { border-radius: 14px; overflow: hidden; background: #232423; border: 1px solid rgba(255, 255, 255, 0.06); transition: transform .25s, box-shadow .25s, border-color .25s; }
.fn-card:hover { transform: translateY(-4px); border-color: rgba(0, 255, 136, 0.5); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 255, 136, 0.15); }
.fn-thumb { position: relative; aspect-ratio: 1 / 1; background-size: cover; background-position: center; overflow: hidden; }
.fn-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fn-card:hover .fn-thumb img { transform: scale(1.06); }
.fn-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 8px 6px;
  background: rgba(25, 25, 25, 0.82); color: #fff; text-align: center;
  font-family: "FN Futura", var(--font); font-weight: 700; font-size: 13px; line-height: 1.15; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fn-name small { display: block; margin-top: 2px; font-family: var(--font); font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.65); overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.fn-tag { position: absolute; top: 7px; right: 7px; padding: 3px 7px; border-radius: 8px; background: rgba(10, 14, 26, 0.8); color: #fff; font-size: 10px; font-weight: 800; }
.fn-price { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: #232423; font-family: "FN Futura", var(--font); }
.fn-price img { width: 22px; height: 22px; flex: none; }
.fn-price b { font-size: 17px; color: #fff; }
.fn-price s { font-size: 12px; color: var(--muted-2); }
.fn-rub { margin-left: auto; font-family: var(--font); font-size: 12px; font-weight: 800; color: var(--green); white-space: nowrap; }
@media (max-width: 720px) {
  .fn-toolbar { top: 108px; }
  .fn-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; }
  .fn-name { font-size: 11px; padding: 6px 6px 5px; }
  .fn-price b { font-size: 15px; }
  .fn-price img { width: 18px; height: 18px; }
}

/* ---------- Подарок Fortnite: окно покупки ---------- */
button.fn-card { display: block; width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.fn-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.fn-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fn-modal[hidden] { display: none; }
.fn-modal-back { position: absolute; inset: 0; background: rgba(4, 6, 12, 0.78); backdrop-filter: blur(6px); }
.fn-modal-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 22px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.fn-modal-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.fn-modal-x:hover { color: var(--text); }
.fn-m-item { display: flex; align-items: center; gap: 14px; padding-right: 36px; margin-bottom: 18px; }
.fn-m-thumb { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; }
.fn-m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fn-m-name { font-family: "FN Futura", var(--font); font-weight: 700; font-size: 18px; text-transform: uppercase; line-height: 1.15; }
.fn-m-price { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: "FN Futura", var(--font); }
.fn-m-price b { font-size: 16px; }
.fn-m-price span { margin-left: 6px; font-family: var(--font); font-weight: 800; color: var(--green); font-size: 14px; }
.fn-m-h { font-size: 16px; font-weight: 900; margin: 0 0 12px; }
.fn-m-text { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.fn-m-text b { color: var(--text); }
.fn-steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.fn-steps li { counter-increment: s; position: relative; padding: 12px 12px 12px 52px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.fn-steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04110b; font-weight: 900; font-size: 14px; }
.fn-steps b { display: block; font-size: 14px; margin-bottom: 3px; }
.fn-steps span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.fn-modal form { display: grid; gap: 12px; margin-bottom: 8px; }
.fn-m-err { margin: 0; color: var(--red); font-size: 13px; }
.fn-res-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fn-res-head .fn-m-h { margin: 0; }
.fn-res-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.fn-res[data-state="ready"] .fn-res-ic { background: rgba(0, 255, 136, 0.15); color: var(--green); }
.fn-res[data-state="cooldown"] .fn-res-ic { background: rgba(255, 192, 77, 0.15); color: var(--amber); }
.fn-res[data-state="waiting"] .fn-res-ic { background: rgba(0, 212, 255, 0.15); color: var(--cyan); }
.fn-cd { margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 192, 77, 0.08); border: 1px solid rgba(255, 192, 77, 0.3); color: var(--muted); font-size: 14px; }
.fn-cd[hidden] { display: none; }
.fn-cd b { color: var(--amber); font-variant-numeric: tabular-nums; }
.fn-accs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.fn-accs li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 13px; }
.fn-accs li span { color: var(--muted); white-space: nowrap; }
.fn-accs li.ok span { color: var(--green); }
.fn-accs li.wait span { color: var(--amber); }
.fn-accs li.bad span { color: var(--red); }
.fn-m-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fn-m-actions [hidden] { display: none; }
.fn-m-loading { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 18px 0 4px; color: var(--muted); font-size: 14px; }
.fn-m-loading[hidden] { display: none; }
.fn-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--green); animation: fn-spin .8s linear infinite; }
@keyframes fn-spin { to { transform: rotate(360deg); } }
body.fn-lock { overflow: hidden; }
.fn-res[data-blocked="1"] .fn-res-ic { background: rgba(255, 92, 122, 0.15); color: var(--red); }
.fn-res[data-blocked="1"] [data-fn-res-msg] { color: #ff9db0; }

/* ---------- Админка · Fortnite ---------- */
.fna-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.fna-note { margin-top: 12px; font-size: 13px; }
.fna-note b { color: var(--text); }
.fna-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fna-head h2 { margin: 0; }
.fna-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fna-actions form { margin: 0; }
.fna-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.fna-stats div, .fna-acc-nums div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.fna-stats span, .fna-acc-nums span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fna-stats b { font-size: 22px; }
.fna-stats small { color: var(--muted-2); font-size: 12px; }
.fna-acc { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; }
.fna-acc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fna-name { font-size: 17px; margin-right: 8px; }
.fna-id { font-size: 12px; margin-top: 4px; word-break: break-all; }
.fna-acc-nums { display: flex; gap: 8px; }
.fna-acc-nums div { padding: 8px 12px; min-width: 96px; }
.fna-acc-nums b { font-size: 17px; }
.fna-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; margin: 0; }
.fna-meta dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fna-meta dd { margin: 2px 0 0; font-size: 14px; }
.fna-slots { font-size: 13px; margin: 0; }
.fna-slots span { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px; border-radius: 8px; background: rgba(255, 192, 77, 0.1); color: var(--amber); }
.fna-err { margin: 0; color: #ff9db0; font-size: 13px; }
.fna-device { padding: 16px; margin-bottom: 14px; border-radius: var(--r); border: 1px solid rgba(0, 255, 136, 0.35); background: rgba(0, 255, 136, 0.05); }
.fna-device h3 { margin-top: 0; }
.fna-device ol { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.fna-device a { word-break: break-all; color: var(--cyan); }
.fna-code { font-size: 20px; letter-spacing: .12em; color: var(--green); }
.fna-log { white-space: pre-wrap; font-size: 13px; padding: 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); color: var(--muted); margin: 0; }

/* ---------- Админка · история подарков ---------- */
.fna-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
.fna-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fna-filter select, .fna-filter input { width: auto; flex: 1 1 200px; }
.fng { border-top: 1px solid var(--line); }
.fng summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 14px; }
.fng summary::-webkit-details-marker { display: none; }
.fng summary:hover .fng-item { color: var(--green); }
.fng-code { font-weight: 800; min-width: 64px; }
.fng-item { font-weight: 700; flex: 1 1 180px; }
.fng-nick { color: var(--cyan); }
.fng-vb { font-weight: 800; }
.fng-date { font-size: 12px; }
.fng[open] summary { color: var(--text); }
.fng-body { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 0 0 16px; }
.fng-body .fna-meta, .fng-body .fna-err, .fng-body .fna-actions { grid-column: 2; }
.fng-thumb { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; grid-row: span 3; }
.fng-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) {
  .fng-body { grid-template-columns: 1fr; }
  .fng-body .fna-meta, .fng-body .fna-err, .fng-body .fna-actions { grid-column: 1; }
  .fng-thumb { grid-row: auto; }
}
/* ---------- Страница заказа · подарок Fortnite ---------- */
.gift-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.gift-card .fng-thumb { width: 84px; height: 84px; grid-row: auto; flex: none; }
.gift-card b { display: block; font-family: "FN Futura", var(--font); font-size: 17px; text-transform: uppercase; }
.gift-card .fn-m-price { margin-top: 6px; }
.gift-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.gift-card p b { display: inline; font-family: var(--font); font-size: 13px; text-transform: none; color: var(--text); }

/* ---------- Главная: всё помещается на один экран (без блока-заголовка) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 721px) {
  .quick { margin-bottom: 20px; }
  .bento { gap: 16px; }
  .banner-row { gap: 16px; }
  .tiles-block { margin-top: 0; }
  /* Высота баннеров подстраивается под высоту окна: виджет + баннеры + плитки = один экран */
  .bento > .image-banner:not(.small) img { aspect-ratio: auto; height: clamp(150px, calc((100vh - 510px) * 0.55), 292px); }
  .bento .image-banner.small img { aspect-ratio: auto; height: clamp(120px, calc((100vh - 510px) * 0.45), 239px); }
}

/* ---------- Иконки вкладок виджета и одиночная форма (страница Roblox) ---------- */
.quick-tab img { width: 34px; height: 34px; object-fit: contain; display: block; }
.quick.quick-solo { grid-template-columns: 1fr; }
.q-stars img { width: 31px; height: 31px; }

/* ---------- Виджет: переключатель Stars ⇄ Premium и фиолетовый режим Premium ---------- */
.quick-head { min-height: 30px; }
.q-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-left: auto; padding: 3px;
  border-radius: 999px; background: rgba(10, 14, 26, 0.65); border: 1px solid var(--line-2);
}
.q-switch::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--grad); box-shadow: 0 0 16px rgba(0, 255, 136, 0.35);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.q-switch[data-on="premium"]::before {
  transform: translateX(100%);
  background: linear-gradient(90deg, #b366ff, #7c5cff); box-shadow: 0 0 16px rgba(179, 102, 255, 0.45);
}
.q-switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 4px 14px; min-width: 76px;
  font: 800 12px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); transition: color .18s;
}
.q-switch[data-on="stars"] [data-switch="stars"] { color: #04110b; }
.q-switch[data-on="premium"] [data-switch="premium"] { color: #fff; }

@keyframes q-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.quick-panel[data-group="stars"]:not([hidden]) { animation: q-panel-in .22s ease; }

/* Premium: та же плашка, но фиолетовая */
.quick-panel.q-premium {
  background: linear-gradient(135deg, rgba(179, 102, 255, 0.16) 0%, rgba(124, 92, 255, 0.08) 100%);
  border-color: rgba(179, 102, 255, 0.45);
}
.q-premium .quick-badge { color: #d3a6ff; background: rgba(179, 102, 255, 0.14); }
.q-premium .q-field:focus-within { border-color: rgba(179, 102, 255, 0.6); }
.q-premium .q-hint { border-color: rgba(179, 102, 255, 0.4); }
.q-premium .quick-buy { background: linear-gradient(90deg, #b366ff, #7c5cff); color: #fff; box-shadow: 0 0 30px rgba(179, 102, 255, 0.35); }
.q-premium .quick-buy:hover { box-shadow: 0 0 40px rgba(179, 102, 255, 0.55); }
.quick.is-premium .quick-tab.active { background: rgba(179, 102, 255, 0.1); border-color: #b366ff; box-shadow: 0 0 22px rgba(179, 102, 255, 0.35); }
.quick-tab.active { transition: transform .2s, border-color .25s, background .25s, box-shadow .3s; }
@media (max-width: 560px) {
  .q-switch { margin-left: 0; }
  .q-switch button { min-width: 64px; padding: 4px 10px; }
}

/* ---------- Виджет: выпадающие списки в стиле сайта ---------- */
.q-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.q-field:has(.q-select) { cursor: pointer; }
.q-field.is-disabled { cursor: default; }
.q-select {
  display: block; width: 100%; padding: 0 26px 0 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 700 15px var(--font); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.q-select:disabled { color: var(--muted-2); cursor: default; }
.q-select:focus-visible { outline: none; }
.q-field:has(.q-select:focus-visible) { border-color: rgba(0, 255, 136, 0.5); }
/* Стрелка справа, поворачивается при открытии */
.q-field:has(.q-select)::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s, margin-top .2s, border-color .2s; pointer-events: none;
}
.q-field.is-open::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--green); }
.q-field.is-open { border-color: rgba(0, 255, 136, 0.5); }

.q-options {
  position: absolute; z-index: 40; left: -1px; right: -1px; top: calc(100% + 8px);
  display: flex; flex-direction: column; gap: 2px; padding: 6px; max-height: 264px; overflow-y: auto;
  background: rgba(15, 20, 35, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 255, 136, 0.28); border-radius: var(--r);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 255, 136, 0.08);
  animation: q-options-in .16s ease; cursor: default; scrollbar-width: thin;
}
.q-options[hidden] { display: none; }
@keyframes q-options-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.q-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 11px 12px 11px 34px; border: 0; border-radius: 10px; background: none; cursor: pointer; position: relative;
  font: 600 14px var(--font); color: var(--text); text-align: left; transition: background .15s, color .15s;
}
.q-option b { font-weight: 800; color: var(--muted); white-space: nowrap; }
.q-option:hover, .q-option:focus-visible { background: rgba(0, 255, 136, 0.08); outline: none; }
.q-option[aria-selected="true"] { color: var(--green); background: rgba(0, 255, 136, 0.06); }
.q-option[aria-selected="true"] b { color: var(--green); }
.q-option[aria-selected="true"]::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
/* Открытый список поверх баннеров ниже */
.quick-panel.has-open { z-index: 30; }

/* Premium — фиолетовые акценты */
.q-premium .q-field.is-open, .q-premium .q-field:has(.q-select:focus-visible) { border-color: rgba(179, 102, 255, 0.6); }
.q-premium .q-field.is-open::after { border-color: #b366ff; }
.q-premium .q-options { border-color: rgba(179, 102, 255, 0.4); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(179, 102, 255, 0.12); }
.q-premium .q-option:hover, .q-premium .q-option:focus-visible { background: rgba(179, 102, 255, 0.12); }
.q-premium .q-option[aria-selected="true"] { color: #d3a6ff; background: rgba(179, 102, 255, 0.1); }
.q-premium .q-option[aria-selected="true"] b { color: #d3a6ff; }

/* ---------- Подвал: документы-соглашения ---------- */
.footer-inner { padding-bottom: 12px; }
.footer-docs { max-width: 1152px; margin: 0 auto; padding: 0 16px 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; }
.footer-docs a { color: var(--muted-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.15); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.footer-docs a:hover { color: var(--green); text-decoration-color: rgba(0, 255, 136, 0.5); }
.footer-docs { padding-bottom: 10px; }
.footer-legal { max-width: 1152px; margin: 0 auto; padding: 0 16px 24px; font-size: 12px; color: var(--muted-3); }
.footer-support { margin-left: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.footer-support-text { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-weight: 700; line-height: 1.2; }
.footer-support-text small { font-size: 11px; font-weight: 500; color: var(--muted-2); }
.footer-tg { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: #2aabee; box-shadow: 0 0 18px rgba(42, 171, 238, .35); transition: transform .2s, box-shadow .2s; }
.footer-tg svg { margin-left: -2px; }
.footer-support:hover .footer-tg { transform: scale(1.08); box-shadow: 0 0 26px rgba(42, 171, 238, .6); }
.admin-check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-size: 12px; text-transform: none; letter-spacing: normal; color: var(--muted); white-space: nowrap; }
.admin-check input { width: auto; }

/* Квадратные логотипы в карточках подкатегорий — целиком, как иконка приложения */
.cat-media.square img { width: 140px; height: 140px; flex: none; object-fit: cover; border-radius: 30px; filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45)); }

/* Плитки на главной: на широком экране все в один ряд (плитка сжимается, но не больше 92px) */
@media (min-width: 721px) {
  .tiles-grid { flex-wrap: nowrap; gap: 18px 14px; }
  .cat-tile { width: min(92px, calc((100% - (var(--n, 10) - 1) * 14px) / var(--n, 10))); flex: none; min-width: 0; }
  .cat-tile-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; }
  .cat-tile-name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
}

/* Плитки на главной — два ровных ряда по --n штук (перекрывает правило «в один ряд» выше) */
@media (min-width: 721px) {
  .tiles-grid { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 92px)); justify-content: start; gap: 16px 16px; flex-wrap: wrap; }
  .cat-tile { width: auto; }
  .cat-tile-img { width: 100%; }
  .cat-tile-name { font-size: 12px; }
}

/* ---------- Чат по заказу ---------- */
.order-instruction { padding: 14px 16px; border-radius: var(--r); background: rgba(0, 212, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.28); }
.order-instruction b { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; color: var(--cyan); }
.order-instruction b .ic { width: 16px; height: 16px; }
.order-instruction p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.chat { display: flex; flex-direction: column; border-radius: var(--r-lg); background: rgba(10, 14, 26, 0.55); border: 1px solid var(--line-2); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { font-size: 15px; }
.chat-sub { font-size: 12px; margin-left: auto; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.chat-log { height: 360px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.chat-empty { margin: auto; color: var(--muted-2); font-size: 14px; text-align: center; }
.chat-msg { max-width: 80%; display: flex; flex-direction: column; gap: 3px; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; }
.chat-who { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.chat-body { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.chat-msg.mine .chat-body { background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), rgba(0, 212, 255, 0.16)); border: 1px solid rgba(0, 255, 136, 0.3); border-bottom-right-radius: 6px; }
.chat-msg.theirs .chat-body { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.chat-time { font-size: 11px; color: var(--muted-3); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 14px; line-height: 1.4; }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; display: grid; place-items: center; background: var(--grad); color: #04110b; box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
.chat-send .ic { width: 20px; height: 20px; }
.chat-closed { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Админка · заказы ---------- */
.ao-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ao-filters .kind-btn { text-decoration: none; }
.ao-list { display: flex; flex-direction: column; }
.ao-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ao-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1.4fr) minmax(0, 1fr) 90px 100px; gap: 12px; align-items: center; color: var(--text); font-size: 14px; }
.ao-main:hover .ao-name { color: var(--green); }
.ao-code { font-weight: 800; }
.ao-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-email { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-price { font-weight: 800; text-align: right; }
.ao-date { font-size: 12px; text-align: right; }
.ao-unread { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; }
.ao-status { margin: 0; flex: none; }
.badge-select { width: auto; padding: 6px 10px; font-size: 12px; font-weight: 800; border-radius: 999px; cursor: pointer; }
.badge-select.ok { color: var(--green); border-color: rgba(0, 255, 136, 0.35); }
.badge-select.wait { color: var(--amber); border-color: rgba(255, 192, 77, 0.35); }
.badge-select.off { color: var(--red); border-color: rgba(255, 92, 122, 0.35); }
.ao-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ao-layout .chat-log { height: 520px; }
.ao-side { display: flex; flex-direction: column; gap: 16px; }
.ao-toggle-form { margin: 0; }
.ao-toggle { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: normal; }
.ao-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ao-toggle i { position: relative; width: 50px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); transition: background .2s; flex: none; }
.ao-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ao-toggle input:checked + i { background: var(--green); box-shadow: 0 0 16px rgba(0, 255, 136, 0.4); }
.ao-toggle input:checked + i::after { transform: translateX(22px); }
.ao-toggle input:focus-visible + i { outline: 2px solid var(--green); outline-offset: 2px; }
.ao-toggle.is-disabled { opacity: .5; cursor: default; }
.ao-info { margin: 0; display: flex; flex-direction: column; }
.ao-info > div { padding: 10px 0; border-top: 1px solid var(--line); }
.ao-info dt { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.ao-info dd { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ao-info dd b { color: var(--text); }
.ao-email-full, .ao-pre { word-break: break-all; }
.ao-status-form { margin: 0; }
.admin-instr { width: 100%; margin-top: 6px; }
.admin-instr summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.admin-instr textarea { margin-top: 6px; width: 100%; font-size: 13px; }
@media (max-width: 900px) {
  .ao-layout { grid-template-columns: 1fr; }
  .ao-main { grid-template-columns: 70px 1fr; }
  .ao-email, .ao-date { display: none; }
  .ao-price { text-align: left; }
}

/* ---------- Чат: медиафайлы ---------- */
.chat-attach { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s; margin: 0; }
.chat-attach:hover { color: var(--green); border-color: rgba(0, 255, 136, 0.45); }
.chat-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chat-attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-attach-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 255, 136, 0.06); border: 1px solid rgba(0, 255, 136, 0.25); font-size: 13px; }
.chat-attach-preview[hidden] { display: none; }
.chat-attach-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attach-preview button { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.chat-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); max-width: 280px; }
.chat-media img, .chat-media video { display: block; max-width: 100%; max-height: 320px; object-fit: contain; }
.chat-media a { display: block; }
.chat-send.is-busy { opacity: .5; pointer-events: none; }

/* ---------- Отзывы ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, 0.14); }
.stars svg.on { fill: #ffc04d; filter: drop-shadow(0 0 6px rgba(255, 192, 77, 0.45)); }
.review-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(255, 192, 77, 0.08), rgba(179, 102, 255, 0.06)); border: 1px solid rgba(255, 192, 77, 0.3); }
.review-box > b { font-size: 16px; }
.review-box p { margin: 0; font-size: 14px; }
.review-box.done p { color: var(--text); }
.review-done-row { display: flex; align-items: center; gap: 10px; }
.review-done-row .stars svg { width: 22px; height: 22px; }
.review-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.review-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-stars label { cursor: pointer; margin: 0; }
.review-stars svg { width: 38px; height: 38px; fill: rgba(255, 255, 255, 0.12); transition: fill .15s, transform .15s, filter .15s; }
.review-stars label:hover svg, .review-stars label:hover ~ label svg, .review-stars input:checked ~ label svg { fill: #ffc04d; filter: drop-shadow(0 0 8px rgba(255, 192, 77, 0.5)); }
.review-stars label:hover svg { transform: scale(1.12); }
.review-stars input:focus-visible + label svg { outline: 2px solid #ffc04d; outline-offset: 2px; border-radius: 6px; }
.review-more { display: flex; flex-direction: column; gap: 12px; }
.review-more[hidden] { display: none; }
.review-more .btn { align-self: flex-start; }
.rv-summary { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; margin-bottom: 20px; }
.rv-avg { display: flex; flex-direction: column; gap: 6px; }
.rv-avg b { font-size: 44px; line-height: 1; font-weight: 900; }
.rv-avg .stars svg { width: 22px; height: 22px; }
.rv-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.rv-bar { display: grid; grid-template-columns: 14px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.rv-bar i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rv-bar i b { display: block; height: 100%; background: #ffc04d; border-radius: 999px; }
.rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rv-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-avatar { flex: none; width: 46px; height: 46px; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--green); }
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-avatar .ic { width: 22px; height: 22px; }
.rv-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-src.rv-src-dc { color: #8b93ff; background: rgba(88, 101, 242, .18); }
.rv-src-dc .rv-tip a { color: #8b93ff; }
.rv-src.rv-src-dc i { background: rgba(88, 101, 242, .35); }
.rv-src i { display: inline-grid; place-items: center; width: 12px; height: 12px; margin-left: 2px; border-radius: 50%; background: rgba(42, 171, 238, .3); font-style: normal; font-size: 9px; font-weight: 800; }
.rv-tip { position: absolute; z-index: 20; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 250px; padding: 10px 12px; border-radius: var(--r-sm);
  background: #141a2b; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.45; white-space: normal;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.rv-tip::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.rv-tip a { color: #2aabee; font-weight: 700; }
.rv-src:hover .rv-tip, .rv-src:focus-within .rv-tip, .rv-src:focus .rv-tip { opacity: 1; visibility: visible; }
.rv-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rv-src { position: relative; flex-shrink: 0; cursor: help; outline: none; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; color: #2aabee; background: rgba(42,171,238,.14); }
.rv-who .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-date { margin-left: auto; font-size: 12px; white-space: nowrap; }
.rv-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); white-space: normal; word-break: break-word; }
.rv-pages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.rv-pages { align-items: center; }
.rv-pages a { text-decoration: none; }
.rv-gap { padding: 0 2px; }
.rv-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; text-align: left; margin: 0 0 24px; }
.rv-total { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.rv-total b { font-size: clamp(34px, 5vw, 48px); font-weight: 900; font-style: italic; letter-spacing: -0.04em; line-height: 1; color: var(--text); white-space: nowrap; }
.rv-total b i { color: var(--green); font-style: italic; margin-left: 2px; }
.rv-total span { padding-left: 14px; border-left: 2px solid var(--green); font-size: 12px; font-weight: 800; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rv-jump { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
.rv-jump input { width: 76px; padding: 9px 12px; border-radius: 999px; font-size: 13px; text-align: center; -moz-appearance: textfield; }
.rv-jump input::-webkit-outer-spin-button, .rv-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ao-review { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-sm); background: rgba(255, 192, 77, 0.06); border: 1px solid rgba(255, 192, 77, 0.25); font-size: 14px; }
.ao-review p { margin: 0; }
.ao-review form { margin: 0; }

/* ---------- Кабинет ---------- */
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.acc-head .page-title { margin-bottom: 6px; }
.acc-head .muted { margin: 0; }
.acc-head form { margin: 6px 0 0; }
.acc-pages { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-top: 16px; border-top: 1px solid var(--line); }
.acc-pages a { text-decoration: none; min-width: 42px; text-align: center; padding: 8px 14px; }

/* ---------- Админка: возврат по заказу ---------- */
.ao-refund { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: rgba(255, 92, 122, 0.05); border: 1px solid rgba(255, 92, 122, 0.28); scroll-margin-top: 90px; }
.ao-refund > b { font-size: 14px; }
.ao-refund-sum { font-size: 13px; }
.ao-refund-sum b { color: var(--text); }
.ao-refund form { margin: 0; gap: 10px; }
.ao-refund label { font-size: 11px; }
.ao-refund .btn-small { align-self: flex-start; }
.ao-refund p { margin: 0; }
.ao-refund-btn { flex: none; padding: 6px 12px; font-size: 12px; }

/* ---------- Админка: дашборд продаж ---------- */
.dash-filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-filters .kind-btn { text-decoration: none; }
.dash-cat { margin: 0; }
.dash-cat select { width: auto; min-width: 200px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.dash-stats b { font-size: 24px; }
.dash-up { color: var(--green); font-weight: 800; }
.dash-down { color: var(--red); font-weight: 800; }
.dash-chart { position: relative; display: flex; gap: 8px; margin: 4px 0 8px; padding: 14px 12px 8px 8px; border-radius: var(--r); background: rgba(10, 14, 26, 0.5); border: 1px solid var(--line); }
.dc-y { display: flex; flex-direction: column; justify-content: space-between; height: 240px; margin-top: -7px; padding-bottom: 22px; text-align: right; flex: none; min-width: 34px; }
.dc-y span { font: 600 11px var(--font); color: var(--muted-2); line-height: 14px; }
.dc-plot { position: relative; flex: 1; min-width: 0; }
.dc-grid { position: absolute; left: 0; right: 0; top: 0; height: 226px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.dc-grid i { display: block; height: 1px; background: rgba(255, 255, 255, 0.07); }
.dc-bars { position: relative; display: flex; align-items: flex-end; height: 226px; }
.dc-bar { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.dc-bar b { display: block; width: 70%; max-width: 34px; border-radius: 4px 4px 0 0; background: rgba(0, 255, 136, 0.75); transition: background .15s; }
.dc-bar:hover, .dc-bar.is-active { background: rgba(255, 255, 255, 0.04); }
.dc-bar:hover b, .dc-bar.is-active b { background: #00ffa0; }
.dc-bar:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.dc-x { display: flex; height: 22px; align-items: flex-end; }
.dc-x span { flex: 1; min-width: 0; text-align: center; font: 600 11px var(--font); color: var(--muted-2); white-space: nowrap; overflow: visible; }
.dc-tip { position: absolute; top: 0; z-index: 5; min-width: 150px; padding: 9px 11px; border-radius: 10px; background: #151a28; border: 1px solid rgba(0, 255, 136, 0.35); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); font-size: 12px; line-height: 1.5; color: var(--text); pointer-events: none; }
.dc-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.dc-tip span { color: var(--muted); }
@media (max-width: 640px) {
  .dash-chart { padding: 12px 8px 6px 4px; gap: 6px; }
  .dc-y { height: 200px; min-width: 28px; }
  .dc-grid, .dc-bars { height: 186px; }
  .dc-x span.minor { visibility: hidden; }
  .dc-x span { font-size: 10px; }
  .dc-bar b { width: 76%; }
}
.dash-cats { display: flex; flex-direction: column; }
.dash-catrow { display: grid; grid-template-columns: minmax(120px, 180px) 1fr 70px 110px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; }
.dash-catrow:hover span:first-child { color: var(--green); }
.dash-catrow i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dash-catrow i b { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.dash-catrow > b { text-align: right; }
.dash-catrow .muted { font-size: 12px; text-align: right; }
.dash-pending { color: var(--text); }
.dash-pending:hover b { color: var(--green); }
@media (max-width: 640px) {
  .dash-catrow { grid-template-columns: 1fr 90px; }
  .dash-catrow i, .dash-catrow .muted { display: none; }
}

/* Дашборд: выпадающий список категорий в стиле сайта */
.dash-filters { position: relative; z-index: 6; }
.q-field.dash-select { min-height: 42px; min-width: 240px; padding: 8px 44px 8px 18px; border-radius: 999px; background: rgba(10, 14, 26, 0.65); }
.q-field.dash-select .q-select { font-size: 14px; font-weight: 800; }
.q-field.dash-select::after { right: 18px; }
.q-field.dash-select .q-options { min-width: 260px; max-height: 360px; border-radius: 16px; }
@media (max-width: 560px) { .q-field.dash-select { min-width: 0; width: 100%; } .dash-cat { width: 100%; } }

/* ---------- Админка: каталог ---------- */
.cat-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 16px; font-size: 14px; font-weight: 700; }
.cat-crumbs a { color: var(--muted); }
.cat-crumbs a:last-child { color: var(--text); }
.cat-crumbs span { color: var(--muted-3); }
.cat-edit { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.cat-edit-media { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-edit-main { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
.cat-rename { display: flex; gap: 10px; align-items: flex-end; margin: 0; }
.cat-rename label { flex: 1; }
.cat-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-edit-actions form { margin: 0; }
.cat-upload { margin: 0; }
.cat-upload label { position: relative; display: block; width: 150px; height: 150px; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--bg-2); border: 1px dashed var(--line-2); margin: 0; }
.cat-upload img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.cat-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cat-upload-empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted-2); }
.cat-upload-empty .ic { width: 34px; height: 34px; }
.cat-upload-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: none; color: #fff; background: rgba(10, 14, 26, 0.78); opacity: 0; transition: opacity .2s; }
.cat-upload label:hover .cat-upload-hint, .cat-upload label:focus-within .cat-upload-hint { opacity: 1; }
.cat-upload label:hover img { filter: brightness(.7); }
.cat-upload label:hover { border-color: rgba(0, 255, 136, 0.55); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 14px; }
.cat-box { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
.cat-box:hover { border-color: rgba(0, 255, 136, 0.5); transform: translateY(-2px); }
.cat-box.is-off { opacity: .5; }
.cat-box-img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--muted-2); }
.cat-box-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-box b { font-size: 14px; line-height: 1.25; }
.cat-add { margin-top: 6px; }
.cat-add > summary { list-style: none; display: inline-flex; cursor: pointer; }
.cat-add > summary::-webkit-details-marker { display: none; }
.cat-add[open] > summary { margin-bottom: 14px; }
.prod-list { display: flex; flex-direction: column; }
.prod-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.prod-row:first-child { border-top: 0; }
.prod-row.is-off .prod-form, .prod-row.is-off .cat-upload { opacity: .55; }
.prod-row .cat-upload label { width: 96px; height: 96px; border-radius: 14px; }
.prod-form { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prod-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 10px; }
.prod-more summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.prod-more[open] { display: flex; flex-direction: column; gap: 10px; }
.prod-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.prod-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.prod-side form { margin: 0; }
.prod-codes > summary { list-style: none; cursor: pointer; }
.prod-codes > summary::-webkit-details-marker { display: none; }
.prod-codes form { margin-top: 8px; width: 240px; }
@media (max-width: 760px) {
  .prod-row { grid-template-columns: 72px 1fr; }
  .prod-row .cat-upload label { width: 72px; height: 72px; }
  .prod-side { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; }
  .prod-fields { grid-template-columns: 1fr 1fr; }
  .prod-name { grid-column: 1 / -1; }
}

/* Магазин Fortnite: фильтры без подложки (и не прилипают к шапке — без фона они наезжали бы на карточки) */
.fn-toolbar { position: static; background: none; padding: 4px 0 8px; }

/* ---------- Spotify: тарифы ---------- */
.sp-options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sp-options form { margin: 0; }
.sp-opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); font: 700 14px var(--font); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.sp-opt b { color: var(--green); font-weight: 900; white-space: nowrap; }
.sp-opt:hover { border-color: rgba(30, 215, 96, 0.6); background: rgba(30, 215, 96, 0.08); transform: translateY(-1px); }
.sp-opt:disabled { opacity: .5; cursor: default; transform: none; }
.sp-opt:disabled b { color: var(--muted); font-weight: 700; }
.sp-activate { background: linear-gradient(90deg, #1ed760, #1db954); color: #04110b !important; box-shadow: 0 0 30px rgba(30, 215, 96, 0.35); }
.status-box[hidden] { display: none; }

/* ---------- GodXPay: окна покупки Spotify / ChatGPT ---------- */
.gx-cond { margin: 0 0 22px; }
.gx-m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-right: 40px; margin-bottom: 16px; }
.gx-m-head b { font-size: 17px; font-weight: 900; }
.gx-m-head span { color: var(--green); font-weight: 900; white-space: nowrap; }
[data-gx-modal] .status-box { margin-bottom: 14px; }
.gx-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; margin: 0; }
.gx-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.gx-check.is-err { border-color: rgba(255, 92, 122, 0.6); }
.gx-session { width: 100%; min-height: 96px; resize: vertical; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.gx-session:focus { outline: none; border-color: rgba(0, 255, 136, 0.5); }
.gx-acc { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 255, 136, 0.07); border: 1px solid rgba(0, 255, 136, 0.25); font-size: 13px; color: var(--muted); }
.gx-acc b { color: var(--text); }
.gx-acc[hidden], .fn-m-err[hidden] { display: none; }
.fn-steps a { color: var(--green); }
.gx-resubmit { display: grid; gap: 10px; padding: 18px; margin-top: 14px; }
.gx-resubmit > b { font-size: 15px; }
.gx-resubmit p { margin: 0; }
.gx-resubmit a { color: var(--green); }
.prod-move { display: flex; gap: 6px; }
.prod-move .btn-small { min-width: 38px; justify-content: center; font-size: 16px; padding-left: 0; padding-right: 0; }
.prod-move .btn-small:disabled { opacity: .35; cursor: default; }
.timeline li.current .t-label { color: var(--green); font-weight: 800; }

/* ---------- Согласия при регистрации и входе ---------- */
.consent-form { display: grid; gap: 10px; }
.consent-check { font-weight: 500; font-size: 13px; color: var(--muted); }
.consent-check a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.consent-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.consent-sum b { font-size: 20px; color: var(--green); }
/* ---------- Админка: рассылки ---------- */
.mail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.mail-stats .card { display: grid; gap: 6px; padding: 16px 18px; }
.mail-stats b { font-size: 26px; font-weight: 900; }
.mail-form textarea { min-height: 180px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mail-test { flex: 1 1 220px; }
.stack .gx-check, .gx-check.consent-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.consent-check input[type=checkbox] { flex: none; width: 18px; height: 18px; padding: 0; margin: 2px 0 0; accent-color: var(--green); }
.consent-check span { line-height: 1.45; }
.consent-ads { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: -2px 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); cursor: pointer; }
.consent-ads input[type=checkbox] { flex: none; width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--green); }
.consent-ads a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.auth-forgot { align-self: flex-end; margin-top: -6px; font-size: 13px; color: var(--muted); }
.auth-forgot:hover { color: var(--green); }

/* ---------- Админка: позиции из API ---------- */
.api-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.api-item { display: grid; gap: 6px; align-content: start; }
.api-item .cat-upload label { width: 100%; height: auto; aspect-ratio: 1; }
.api-item b { font-size: 14px; line-height: 1.3; }

/* ---------- Гифты Steam ---------- */
.sg-search { position: relative; display: flex; align-items: center; margin: 0 0 14px; }
.sg-search .ic { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); }
.sg-search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 15px var(--font); }
.sg-search input:focus { outline: none; border-color: rgba(0, 255, 136, 0.5); }
.sg-caption { margin: 0 0 10px; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sg-card { display: grid; gap: 8px; padding: 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .15s; }
.sg-card:hover { border-color: rgba(0, 255, 136, 0.45); transform: translateY(-2px); }
.sg-card-img { display: block; aspect-ratio: 460 / 215; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.sg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-card b { font-size: 14px; line-height: 1.3; }
.sg-game { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 22px; align-items: center; margin-bottom: 18px; }
.sg-cover { aspect-ratio: 460 / 215; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.sg-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-buy { display: grid; gap: 14px; max-width: 760px; }
.sg-editions { display: grid; gap: 8px; }
.sg-ed { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.sg-ed:has(input:checked) { border-color: rgba(0, 255, 136, 0.6); background: rgba(0, 255, 136, 0.06); }
.sg-ed input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; flex: none; }
.sg-ed-name { flex: 1; font-weight: 700; }
.sg-ed-price { color: var(--green); font-weight: 900; white-space: nowrap; }
.sg-ed.is-off { opacity: .45; cursor: default; }
.sg-ed.is-off .sg-ed-price { color: var(--muted); font-weight: 600; }
.sg-hint { margin: -6px 0 0; }
@media (max-width: 720px) { .sg-game { grid-template-columns: 1fr; } }
.sg-buy .sg-ed { flex-direction: row !important; align-items: center !important; text-align: left; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); margin: 0; }
.sg-buy .sg-ed-name { text-transform: none; letter-spacing: 0; }
/* Карточки подкатегорий: кнопка «Перейти» всегда внизу, на одной линии у соседних карточек */
.cat-card:not(.banner) .cat-body { height: 100%; display: flex; flex-direction: column; }
.cat-card:not(.banner) .cat-text { flex: 1; display: flex; flex-direction: column; }
.cat-card:not(.banner) .cat-cta { margin-top: auto; }
/* ---------- Steam: смена региона ---------- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; max-width: 760px; }
.region-tile { display: grid; justify-items: center; gap: 8px; padding: 22px 18px 18px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); text-align: center; transition: border-color .2s, transform .15s; }
.region-tile:hover { border-color: rgba(0, 255, 136, 0.4); transform: translateY(-2px); }
.region-flag { display: grid; place-items: center; width: 72px; height: 48px; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); margin-bottom: 4px; }
.region-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.region-flag .ic { width: 32px; height: 32px; color: var(--muted); }
.region-tile b { font-size: 18px; font-weight: 900; }
.region-price { color: var(--green); font-weight: 900; font-size: 17px; margin-bottom: 6px; }
.sg-pages { margin-top: 22px; border-top: 0; }
.sg-pages[hidden] { display: none; }
.sg-dots { align-self: center; color: var(--muted); padding: 0 4px; }

/* ---------- Мобильные игры ---------- */
.mr-panel .mr-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.mr-panel .mr-inputs { display: contents; }
.mr-panel .q-field[hidden] { display: none; }
.mr-panel .quick-buy { min-height: 56px; }
/* Картинки карточек категорий целиком, без обрезки (широкие баннеры подкатегорий Fortnite и т. п.) */
.cat-card:not(.banner) .cat-media:not(.square) img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
/* ---------- Fortnite: В-баксы на аккаунт ---------- */
.vb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; max-width: 900px; }
.vb-tile { display: grid; justify-items: center; gap: 4px; padding: 24px 16px 18px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; text-align: center; transition: border-color .2s, transform .15s, box-shadow .2s; }
.vb-tile:hover { border-color: rgba(0, 255, 136, 0.45); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); color: var(--text); }
.vb-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 8px 18px rgba(0, 200, 255, 0.35)); }
.vb-amount { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.vb-label { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.vb-price { display: inline-block; padding: 8px 16px; border-radius: 12px; background: var(--grad); color: #04110b; font-weight: 900; font-size: 15px; }
.checkout-desc a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
/* ---------- Brawl Stars ---------- */
.bs-group { font-size: 20px; font-weight: 900; margin: 6px 0 14px; }
.bs-grid { margin-bottom: 28px; }
.bs-icon { width: 64px; height: 64px; filter: drop-shadow(0 8px 18px rgba(0, 255, 136, 0.25)); }
.bs-icon.is-pass { width: 96px; height: 64px; }
.bs-tile .vb-amount { font-size: 24px; }
.bs-icon.is-cr { width: 128px; height: 88px; object-fit: contain; margin-bottom: 4px; }
.em-tile { grid-column: span 2; }
.em-row { display: flex; justify-content: center; gap: 2px; margin-bottom: 8px; }
.em-row img { width: 64px; height: 64px; object-fit: contain; transition: transform .2s; }
.em-tile:hover .em-row img:nth-child(odd) { transform: rotate(-6deg) scale(1.06); }
.em-tile:hover .em-row img:nth-child(even) { transform: rotate(6deg) scale(1.06); }
@media (max-width: 520px) { .em-tile { grid-column: span 1; } .em-row img { width: 48px; height: 48px; } }
/* Пасс и эмодзи в одной строке */
.bs-duo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.bs-duo .bs-section { flex: 0 0 auto; max-width: 100%; }
.bs-duo .bs-section-pass .bs-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 200px; }
.bs-duo .bs-section-emote .bs-grid { grid-template-columns: 416px; }
.bs-duo .em-tile { grid-column: auto; }
@media (max-width: 720px) { .bs-duo .bs-section { width: 100%; } .bs-duo .bs-section-pass .bs-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .bs-duo .bs-section-emote .bs-grid { grid-template-columns: 1fr; } }
.p-img.square { height: auto; aspect-ratio: 1; }
/* ---------- Dead by Daylight: покупка игры ---------- */
.dbd-buy { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dbd-plat { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; vertical-align: middle; border-radius: 9px; overflow: hidden; }
.dbd-plat img { width: 100%; height: 100%; object-fit: cover; }
.dbd-epic { grid-template-columns: minmax(0, 280px); }
@media (max-width: 860px) { .dbd-buy { grid-template-columns: 1fr; } }
/* ---------- Duolingo ---------- */
.duo-plan { margin-bottom: 30px; }
.duo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; padding-left: 14px; border-left: 4px solid #58cc02; }
.duo-max .duo-head { border-left-color: #7c4dff; }
.duo-head h2 { margin: 0; font-size: 22px; font-weight: 900; }
.duo-head p { margin: 0; color: var(--muted); font-size: 14px; }
.duo-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); }
.duo-super .p-price strong { color: #58cc02; }
.duo-max .p-price strong { color: #8f74ff; }
/* ---------- Подсказки поиска в шапке ---------- */
.search input::-webkit-search-cancel-button { display: none; }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #121826; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); max-height: 70vh; overflow-y: auto; }
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text, #fff); text-decoration: none; font-weight: 700; font-size: 14px; }
.search-suggest a:hover, .search-suggest a.active { background: rgba(0,255,136,.1); color: var(--green); }
.search-suggest img, .search-suggest .ss-ph { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.06); }
.search-suggest .ss-empty { padding: 12px 10px; color: var(--muted); font-size: 14px; }
/* ---------- Админка → Desslyhub ---------- */
.dh-refresh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dh-top-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; margin: 6px 0 16px; }
.dh-top-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.dh-top-fields small { font-weight: 400; font-size: 12px; }
.dh-table td, .dh-table th { padding: 9px 10px; vertical-align: middle; }
.dh-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; white-space: nowrap; }
.dh-table tr + tr td { border-top: 1px solid var(--line); }
.dh-in { width: 90px; padding: 7px 10px; border-radius: 10px; font-size: 13px; }
.dh-markups > .btn { margin-top: 14px; }
.dh-profit b { color: var(--green); display: block; }
.dh-profit small { color: var(--muted); font-size: 12px; }
.dh-profit.neg b { color: #ff7a93; }
.dh-head td { background: rgba(255, 255, 255, 0.04); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dh-one { margin: 4px 0 16px; }
.dh-one input { width: 140px; }
.dh-one input[name="q"] { width: 260px; max-width: 100%; }
.dh-games { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-cat-stats { margin: 4px 0 18px; }
.dh-sold b { display: block; }
.dh-sold small { color: var(--muted); font-size: 12px; }
.dh-hit td:first-child { box-shadow: inset 3px 0 0 var(--green); }
/* ---------- Админка → GodXPay: проверка категорий ---------- */
.gx-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.gx-badge.ok { background: rgba(0, 255, 136, 0.12); color: var(--green); }
.gx-badge.warn { background: rgba(255, 192, 77, 0.12); color: var(--amber); }
.gx-badge.fail { background: rgba(255, 92, 122, 0.14); color: #ff7a93; }
.gx-check-form { display: inline-block; margin: 0; }
.gx-check-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.gx-check-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.gx-checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.gx-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.gx-checks li > b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.gx-checks li.ok > b { background: rgba(0, 255, 136, 0.15); color: var(--green); }
.gx-checks li.warn > b { background: rgba(255, 192, 77, 0.15); color: var(--amber); }
.gx-checks li.fail > b { background: rgba(255, 92, 122, 0.18); color: #ff7a93; }
.gx-checks li div { display: flex; flex-direction: column; gap: 2px; }
.gx-checks li span { color: var(--muted); font-size: 13px; }
/* ---------- Дашборд: прибыль ---------- */
.dash-metric { margin: 0 0 10px; }
.dash-catrow { grid-template-columns: minmax(120px, 180px) 1fr minmax(150px, 230px) 110px; }
@media (max-width: 640px) { .dash-catrow { grid-template-columns: 1fr auto; } .dash-catrow i { display: none; } }
.api-rows > summary { margin-bottom: 10px; }
/* ---------- Промокод в формах оплаты: неприметная ссылка ---------- */
.promo { margin: 8px 0 4px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* В плашках пополнения ссылка не занимает место: прижата справа в зазоре над полями и кнопкой оплаты, высота плашки не меняется */
.quick-fields, .mr-panel .mr-fields { position: relative; }
/* Уровень строки заголовка «Пополнить Steam» (по центру), справа; у Stars/Premium — левее переключателя */
.quick-panel .promo { position: absolute; right: 0; bottom: calc(100% + 22px); margin: 0; z-index: 3; justify-content: flex-end; max-width: 100%; font-size: 12px; line-height: 13px; }
.quick-panel[data-group="stars"] .promo { right: 204px; }
.quick-panel .promo-row { position: absolute; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 12px; background: #121826; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.promo-link { color: #7aa7ff; text-decoration: none; font-weight: 600; }
.promo-link:hover { color: #a5c3ff; }
.promo-link b { color: var(--green); }
.promo-x { margin-left: 4px; color: var(--muted); font-weight: 700; }
.promo-row { display: inline-flex; gap: 6px; align-items: center; }
.promo-row[hidden] { display: none; }
.promo .promo-in { width: 140px; padding: 6px 10px; border-radius: 9px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.promo-ok { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.promo-ok:hover { border-color: rgba(0, 255, 136, 0.45); color: var(--green); }
.promo-msg { color: var(--muted); font-size: 12px; }
.promo-msg.bad { color: #ff7a93; }
.promo-old { opacity: .55; font-weight: 500; margin-right: 2px; }
.promo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.promo-scope summary { cursor: pointer; font-size: 14px; margin: 4px 0 8px; }
.promo-scope-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; padding: 10px 0; }
.promo-form .row-actions, .card > .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Телефон/планшет: кнопка оплаты — отдельной строкой внизу, ссылка — в зазоре прямо над ней */
@media (max-width: 860px) {
  .quick-panel .promo { bottom: calc(58px + 1px); line-height: 11px; }
  .quick-panel.mr-panel .promo { bottom: calc(56px + 1px); }
  .quick-panel[data-group="stars"] .promo { right: 0; }
}
.promo-msg:empty { display: none; }
.promo-first { margin: 4px 0 2px; font-size: 13px; white-space: normal; }
.promo-actions { white-space: nowrap; }
.promo-actions, .promo-actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.promo-costnote { align-self: center; margin: 0; }
/* ---------- Окно «Активация промокода» (плашки пополнения) ---------- */
html.modal-open { overflow: hidden; }
.promo-modal { z-index: 120; }
.promo-modal-box { max-width: 420px; padding: 26px 22px 22px; text-align: center; }
.promo-modal-box h3 { margin: 4px 0 18px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.promo-modal-in { width: 100%; height: 54px; padding: 0 16px; border-radius: 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.promo-modal-in::placeholder { text-transform: none; letter-spacing: 0; }
.promo-modal-msg { min-height: 18px; margin: 8px 2px 10px; font-size: 13px; color: var(--muted); text-align: left; }
.promo-modal-msg.bad { color: #ff7a93; }
.promo-modal-btn { height: 54px; font-size: 15px; }
.promo-modal-btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 520px) { .promo-modal { align-items: flex-end; padding: 0; } .promo-modal-box { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); } }

/* ---------- Аккаунты Fortnite (витрина и страница аккаунта) ---------- */
.fa-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 18px; }
.fa-search { flex: 1 1 260px; display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-2); }
.fa-search .ic { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.fa-search input { flex: 1; width: auto; min-width: 0; margin: 0; border: 0; box-shadow: none; border-radius: 0; background: transparent; padding: 11px 0; font-size: 14px; color: var(--text); outline: none; }
.fa-toolbar select { width: auto; padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.fa-count { font-size: 13px; margin-left: auto; }
.fa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fa-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--glass); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .25s, border-color .25s, box-shadow .25s; }
.fa-card[hidden] { display: none; }
.fa-card:hover { transform: translateY(-4px); border-color: rgba(0, 255, 136, .45); box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 24px rgba(0, 255, 136, .12); }
.fa-cover { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #0d111d; }
.fa-cover .fa-cos-img { border-radius: 0; }
.fa-cos-empty { aspect-ratio: 1 / 1; background: #161b2a; }
.fa-more-skins { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 14, 26, .85); font-size: 12px; font-weight: 800; }
.fa-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.fa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fa-head b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.fa-vb { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.fa-vb img { flex: none; }
.fa-names { margin: -4px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.fa-stats b { color: var(--text); }
.fa-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fa-tags span { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .06); }
.fa-tags .fa-tag-ok { color: var(--green); background: rgba(0, 255, 136, .1); }
.fa-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.fa-price { font-size: 20px; font-weight: 900; color: var(--green); }
.fa-go { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fa-go .ic { width: 14px; height: 14px; }
.fa-cos { min-width: 0; }
.fa-cos-img { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; }
.fa-cos-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fa-cos-shop { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: #111; font-size: 10px; font-weight: 900; }
.fa-cos-name { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-page { display: flex; flex-direction: column; gap: 22px; }
.fa-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.fa-hero-cover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fa-hero-info { display: flex; flex-direction: column; gap: 12px; }
.fa-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.fa-title { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 900; font-style: italic; letter-spacing: -.03em; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.fa-vb-lg { font-size: .62em; font-style: normal; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.fa-hero-info .fa-names { white-space: normal; font-size: 14px; margin: 0; }
.fa-buy { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; padding: 18px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.fa-buy-price { display: flex; flex-direction: column; gap: 2px; }
.fa-buy-price b { font-size: 34px; font-weight: 900; color: var(--green); line-height: 1; }
.fa-buy-price .muted { font-size: 12px; }
.fa-get { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.fa-get li { display: flex; gap: 8px; align-items: flex-start; }
.fa-get .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--green); }
.fa-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.fa-specs div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.fa-specs span { font-size: 12px; }
.fa-specs b { font-size: 15px; }
.fa-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.fa-tabs .kind-btn .muted { margin-left: 4px; }
.fa-cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.fa-cos-grid[hidden] { display: none; }
.fa-note p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .fa-hero { grid-template-columns: 1fr; gap: 18px; }
  .fa-grid { grid-template-columns: 1fr; }
  .fa-cos-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; }
  .fa-count { margin-left: 0; }
}

.fa-codes { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid rgba(0, 255, 136, .25); }
.fa-codes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.fa-codes-head > div { flex: 1 1 280px; }
.fa-codes-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.fa-codes-head b .ic { width: 18px; height: 18px; color: var(--green); }
.fa-codes-head p { margin: 4px 0 0; font-size: 13px; }
.fa-code-out { display: flex; flex-direction: column; gap: 8px; }
.fa-code-out[hidden], .fa-code-err[hidden] { display: none; }
.fa-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fa-code { font-size: 32px; font-weight: 900; letter-spacing: .12em; color: var(--green); font-variant-numeric: tabular-nums; word-break: break-all; }
.fa-code a { font-size: 16px; letter-spacing: 0; color: var(--green); }
.fa-code-out details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.fa-code-out pre { white-space: pre-wrap; font-size: 12px; max-height: 260px; overflow: auto; padding: 10px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .25); }
.fa-code-err { margin: 0; font-size: 13px; color: var(--amber); }

/* ---------- Аккаунты Supercell ---------- */
.bs-r { background: linear-gradient(160deg, #3a4a63, #1c2433); }
.bs-common { background: linear-gradient(160deg, #8ea9c4, #4b6079); }
.bs-rare { background: linear-gradient(160deg, #4fd96a, #217a37); }
.bs-super_rare, .bs-superrare { background: linear-gradient(160deg, #3fa1ff, #1b4f9c); }
.bs-epic { background: linear-gradient(160deg, #c65bff, #6a1fa3); }
.bs-mythic { background: linear-gradient(160deg, #ff5a6e, #9c1d33); }
.bs-legendary { background: linear-gradient(160deg, #ffe14a, #c98a00); }
.bs-ultra_legendary, .bs-ultralegendary { background: linear-gradient(160deg, #ff9a3c, #b33c00); }
.bs-power { position: absolute; left: 5px; bottom: 5px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 6px; background: rgba(10, 14, 26, .82); font-size: 11px; font-weight: 900; color: #fff; }
.sc-cover { position: relative; aspect-ratio: 2 / 1; background: #0d111d center / cover no-repeat; display: flex; align-items: flex-end; }
.fa-hero > .sc-cover { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; }
.sc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 26, 0) 35%, rgba(10, 14, 26, .9)); }
.sc-cover-stat { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; }
.sc-cover-stat b { font-size: 40px; font-weight: 900; font-style: italic; line-height: 1; }
.sc-cover-stat span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sc-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 16px 18px; border-radius: var(--r-lg); text-decoration: none; color: var(--text);
  background: linear-gradient(90deg, rgba(0, 255, 136, .12), rgba(0, 212, 255, .08)); border: 1px solid rgba(0, 255, 136, .35); transition: transform .2s, box-shadow .2s; }
.sc-banner:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.sc-banner-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(0, 255, 136, .15); color: var(--green); }
.sc-banner-ic .ic { width: 22px; height: 22px; }
.sc-banner-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-banner-txt b { font-size: 16px; }
.sc-banner-txt span { font-size: 13px; color: var(--muted); }
.sc-banner > .ic { flex: none; width: 20px; height: 20px; color: var(--green); }
.sc-accounts { margin-top: 28px; scroll-margin-top: 90px; }
.sc-accounts .fa-toolbar { margin-top: 0; }

/* Гемы Supercell — одной строкой (на телефоне листаются вбок), чтобы ниже был виден список аккаунтов */
.bs-section-gems .bs-grid { display: flex; flex-wrap: nowrap; gap: 10px; max-width: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.bs-section-gems .bs-tile { flex: 1 0 128px; min-width: 128px; padding: 14px 8px 12px; gap: 2px; scroll-snap-align: start; }
.bs-section-gems .bs-tile:hover { transform: translateY(-2px); }
.bs-section-gems .bs-icon { width: 44px; height: 44px; margin-bottom: 4px; }
.bs-section-gems .bs-icon.is-cr { width: 64px; height: 44px; }
.bs-section-gems .bs-tile .vb-amount { font-size: 18px; }
.bs-section-gems .vb-label { font-size: 11px; margin-bottom: 6px; }
.bs-section-gems .vb-price { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
@media (max-width: 720px) { .bs-section-gems .bs-tile { flex: 0 0 112px; min-width: 112px; } }

/* Компактнее над аккаунтами: пропуски тоже одной строкой, меньше отступы */
.bs-section-pass .bs-grid, .bs-duo .bs-section-pass .bs-grid { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; max-width: none; padding-bottom: 6px; }
.bs-section-pass .bs-tile { flex: 0 0 170px; padding: 14px 10px 12px; gap: 2px; }
.bs-section-pass .bs-icon.is-pass { width: 72px; height: 48px; margin-bottom: 4px; }
.bs-section-pass .bs-icon.is-cr { width: 84px; height: 58px; }
.bs-section-pass .bs-tile .vb-amount { font-size: 18px; }
.bs-section-pass .vb-label { font-size: 11px; margin-bottom: 6px; }
.bs-section-pass .vb-price { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.bs-section-gems .bs-grid, .bs-section-pass .bs-grid { margin-bottom: 16px; }
.bs-group { margin: 4px 0 10px; }
.sc-accounts { margin-top: 10px; }
@media (max-width: 720px) {
  .bs-section-pass .bs-tile { flex: 0 0 112px; }
  .bs-duo .bs-section-pass .bs-grid { grid-auto-flow: unset; }
}
.fa-code.fa-code-none { font-size: 15px; letter-spacing: 0; font-weight: 700; color: var(--amber); }

/* ---------- Аккаунты Valorant / World of Tanks ---------- */
.vl-skin { background: linear-gradient(160deg, #2a3442, #151b26); }
.vl-skin img { object-fit: contain; padding: 10%; }
.vl-select { background: linear-gradient(160deg, #3b6a9c, #1b2c44); }
.vl-deluxe { background: linear-gradient(160deg, #1f8f7c, #0f3b35); }
.vl-premium { background: linear-gradient(160deg, #b8457f, #4a1834); }
.vl-ultra { background: linear-gradient(160deg, #d9b64a, #5a4612); }
.vl-exclusive { background: linear-gradient(160deg, #e0864a, #5c2a10); }
.vl-agent { background: linear-gradient(160deg, #ff4655, #5c1a22); }
.wt-tank { background: linear-gradient(160deg, #3d4535, #1c2018); }
.wt-tank img { object-fit: contain; padding: 6%; }
.wt-prem { background: linear-gradient(160deg, #8a6a24, #2e230b); }
.wt-top { box-shadow: inset 0 0 0 2px rgba(255, 176, 64, .55); }

/* Контакты в подвале: почта поддержки и Telegram */
.footer-contacts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.footer-contacts .footer-support { margin-left: 0; }
.footer-mail { background: var(--green); color: #04110b; box-shadow: 0 0 18px rgba(0, 255, 136, .3); }
.footer-support:hover .footer-mail { box-shadow: 0 0 26px rgba(0, 255, 136, .55); }
@media (max-width: 600px) { .footer-contacts { margin-left: 0; width: 100%; justify-content: space-between; } }

/* ---------- Админка: рефералы ---------- */
.ref-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.ref-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ref-link code, .ref-code { padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.ref-off { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--amber); background: rgba(255, 192, 77, .12); vertical-align: middle; }
.ref-row-off td { opacity: .55; }
.ref-table td { vertical-align: top; }
.ref-copy { margin-left: 4px; }

/* Плавающая кнопка «Возникли вопросы?» на странице заказа — ведёт к менеджеру в Telegram */
.tg-help {
  position: fixed; left: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  border-radius: 999px; background: rgba(14, 18, 30, 0.92); border: 1px solid rgba(41, 169, 235, 0.35);
  color: #e6ebf2; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tg-help:hover { color: #fff; transform: translateY(-2px); border-color: #29a9eb; box-shadow: 0 12px 34px rgba(41, 169, 235, 0.3); }
.tg-help-icon {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #29a9eb; color: #fff; padding-right: 2px;
}
.tg-help-text { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; line-height: 1.25; }
.tg-help-text small { font-weight: 500; font-size: 12px; color: #8fa0b5; }
@media (max-width: 600px) {
  .tg-help { left: 12px; bottom: 12px; padding-right: 12px; gap: 8px; }
  .tg-help-icon { width: 40px; height: 40px; }
  .tg-help-text { font-size: 13px; }
  .tg-help-text small { display: none; }
}

/* Админка → Чаты */
.tab-badge { display: inline-block; min-width: 18px; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 16px; }
.ch-list { display: flex; flex-direction: column; }
.ch-row { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-top: 1px solid var(--line); border-radius: 12px; color: var(--text); transition: background .15s; }
.ch-row:hover { background: rgba(255, 255, 255, 0.035); color: var(--text); }
.ch-row.is-unread { background: rgba(0, 255, 136, 0.045); }
.ch-row.is-unread:hover { background: rgba(0, 255, 136, 0.08); }
.ch-avatar { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--green); background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.25); }
.ch-online { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #5b6475; border: 2px solid var(--bg, #0a0e1a); }
.ch-online.is-on { background: var(--green); box-shadow: 0 0 6px rgba(0, 255, 136, 0.6); }
.ch-online.inline { position: static; display: inline-block; width: 8px; height: 8px; border: 0; margin-right: 5px; vertical-align: 1px; }
.ch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ch-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ch-email { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 55%; }
.ch-order { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ch-msg { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-row.is-unread .ch-msg { color: var(--text); font-weight: 600; }
.ch-row:hover .ch-email { color: var(--green); }
.ch-you { color: var(--green); font-weight: 700; }
.ch-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ch-time { font-size: 12px; }
.ch-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.ch-dot { display: inline-grid; place-items: center; border-radius: 999px; flex: none; }
.ch-dot.is-unread { min-width: 22px; height: 22px; padding: 0 7px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.18); }
.ch-dot.is-waiting { width: 12px; height: 12px; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.18); }
.ch-status { font-size: 11px; }
@media (max-width: 600px) {
  .ch-row { gap: 10px; padding: 10px 4px; }
  .ch-avatar { width: 36px; height: 36px; font-size: 15px; }
  .ch-top { flex-direction: column; gap: 1px; }
  .ch-email { max-width: 100%; }
  .ch-status { display: none; }
}

/* Окна покупки на телефоне: панель снизу на всю ширину, высота по видимой области (с учётом панелей браузера и клавиатуры), прокрутка внутри */
@media (max-width: 520px) {
  .fn-modal { align-items: flex-end; padding: 0; }
  .fn-modal-box { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}

/* Формы быстрой покупки: длинное название в списке не распирает форму, а обрезается многоточием (Minecraft и др.) */
.quick > *, .quick-fields > *, .q-field, .q-select { min-width: 0; }

/* Магазин Fortnite на телефоне: фильтры — одна строка с прокруткой пальцем (раньше 11 кнопок занимали полэкрана),
   компактная шапка — скины видны сразу при открытии */
@media (max-width: 720px) {
  .hero-compact { margin-bottom: 4px; }
  .hero-compact .hero-title { font-size: 30px; }
  .hero-compact .hero-sub { font-size: 13px; margin-top: 4px; }
  .fn-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; padding: 0 0 6px; }
  .fn-toolbar .kind-filter { min-width: 0; max-width: calc(100% + 32px); }
  .fn-toolbar .kind-filter {
    flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 4px 16px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  }
  .fn-toolbar .kind-filter::-webkit-scrollbar { display: none; }
  .fn-toolbar .kind-btn { flex: none; padding: 8px 14px; font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
  .fn-toolbar .fn-timer { font-size: 12px; }
  .fn-group-title { margin-top: 10px; }
}
