/* ============ Tokens ============ */
:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --panel: #12141d;
  --panel-2: #161924;
  --border: #232636;
  --border-soft: #1b1e2b;
  --text: #eef1f8;
  --muted: #99a0b5;
  --muted-2: #6b7186;
  --accent: #7c5cff;
  --accent-2: #21d4fd;
  --accent-3: #ff4d67;
  --good: #2dd4a7;
  --warn: #f7b733;
  --bad: #ff5470;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  --grad: linear-gradient(135deg, #7c5cff 0%, #21d4fd 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(33,212,253,.12));
}

/* ============ Base ============ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(900px 600px at 8% 6%, rgba(33,212,253,.10), transparent 55%),
    linear-gradient(180deg, #07080d 0%, #06070b 45%, #050609 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: "Sora", sans-serif; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ============ Background FX ============ */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(1000px 720px at 50% -4%, #000 0%, transparent 72%);
  mask-image: radial-gradient(1000px 720px at 50% -4%, #000 0%, transparent 72%);
  opacity: .55;
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(130px); pointer-events: none; will-change: transform;
}
.bg-glow--1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(124,92,255,.95), transparent 70%); top: -180px; right: -100px; opacity: .34; animation: drift1 24s ease-in-out infinite; }
.bg-glow--2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(33,212,253,.9), transparent 70%); top: 300px; left: -170px; opacity: .24; animation: drift2 28s ease-in-out infinite; }
.bg-glow--3 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(236,72,153,.75), transparent 70%); bottom: -180px; right: 10%; opacity: .15; animation: drift3 32s ease-in-out infinite; }

.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 125% at 50% 38%, transparent 52%, rgba(0,0,0,.5) 100%);
}
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-42px,32px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(44px,-30px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,-22px); } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 "Inter", sans-serif; cursor: pointer; border: 0;
  padding: 11px 18px; border-radius: 12px; transition: .2s ease; white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--primary { background: var(--grad); color: #0a0a12; box-shadow: 0 10px 26px -8px rgba(124,92,255,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(124,92,255,.7); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #2f3346; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn__badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--grad); color: #0a0a12; font: 700 11px/18px "Inter";
  text-align: center;
}

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,8,12,.7);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 13px; font-family: "Sora"; font-weight: 800; font-size: 20px; letter-spacing: -.025em; }
.brand__mark {
  position: relative;
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(33,212,253,.12));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px -10px rgba(124,92,255,.55), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.brand__mark::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(33,212,253,.6) 80deg, transparent 160deg, rgba(124,92,255,.6) 240deg, transparent 320deg);
  animation: brandSpin 6s linear infinite; opacity: .55; pointer-events: none;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 2px; border-radius: 11px;
  background: radial-gradient(circle at 30% 25%, rgba(124,92,255,.55), rgba(10,12,22,.95) 75%);
}
.brand__mark img { position: relative; z-index: 2; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(33,212,253,.45)); }
@keyframes brandSpin { to { transform: rotate(360deg); } }

.brand__text { position: relative; line-height: 1; color: #fff; }
.brand__accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: gradShift 5s linear infinite alternate;
}
.brand:hover .brand__mark { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(124,92,255,.75); }
.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav__link {
  padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; transition: .18s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav__link.is-active { color: var(--text); background: var(--grad-soft); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.nav-open .burger span:nth-child(2) { opacity: 0; }
.header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { padding: 84px 0 56px; position: relative; }
.hero.container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__content { max-width: 720px; position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2);
  background: linear-gradient(180deg, rgba(33,212,253,.12), rgba(124,92,255,.08));
  border: 1px solid rgba(33,212,253,.25);
  box-shadow: 0 0 0 1px rgba(33,212,253,.04), 0 14px 30px -18px rgba(33,212,253,.55);
}
.hero__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px 2px rgba(33,212,253,.7); animation: heroDot 1.6s ease-in-out infinite; }
@keyframes heroDot { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.4); opacity: .55 } }
.hero__title { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; font-weight: 800; margin: 18px 0 0; letter-spacing: -.025em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 20px 0 0; max-width: 560px; }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.btn__arrow { display: inline-block; margin-left: 8px; transition: transform .25s ease; }
.hero__cta .btn:hover .btn__arrow { transform: translateX(4px); }
.hero__stats { display: flex; gap: 36px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); }
.stat b { font-family: "Sora"; font-size: 26px; font-weight: 800; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted-2); font-size: 13px; letter-spacing: .02em; }

/* Hero visual: logo orb + rings + floating chips */
.hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero__orb {
  width: 260px; height: 260px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(ellipse at 30% 30%, rgba(124,92,255,.55), rgba(33,212,253,.18) 55%, transparent 70%);
  box-shadow: 0 30px 80px -20px rgba(124,92,255,.55), 0 0 80px rgba(33,212,253,.25) inset;
  animation: floatY 6s ease-in-out infinite;
}
.hero__orb::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, transparent, rgba(33,212,253,.7), transparent, rgba(124,92,255,.7), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: heroSpin 8s linear infinite;
}
.hero__orb img { width: 65%; height: 65%; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(124,92,255,.55)); position: relative; z-index: 2; }
@keyframes heroSpin { to { transform: rotate(360deg); } }
.hero__ring { position: absolute; border: 1px dashed rgba(124,92,255,.18); border-radius: 50%; pointer-events: none; }
.hero__ring--1 { width: 360px; height: 360px; animation: heroSpin 28s linear infinite; }
.hero__ring--2 { width: 460px; height: 460px; border-style: solid; border-color: rgba(33,212,253,.08); animation: heroSpin 50s linear infinite reverse; }
.hero__chip {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text);
  background: linear-gradient(180deg, rgba(20,22,34,.95), rgba(15,16,24,.85));
  border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(124,92,255,.12);
  animation: floatY 5.5s ease-in-out infinite;
  white-space: nowrap;
}
.hero__chip--1 { top: 8%;  left: -6%;  animation-delay: -1s; }
.hero__chip--2 { top: 45%; right: -10%; animation-delay: -2.6s; }
.hero__chip--3 { bottom: 6%; left: 6%; animation-delay: -3.8s; }

/* ============ Catalog ============ */
.catalog { padding: 24px 0 80px; }
.catalog__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-title { font-size: 28px; font-weight: 700; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; width: min(380px, 100%);
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; transition: .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.search svg { width: 18px; height: 18px; color: var(--muted-2); flex-shrink: 0; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 14.5px; }
.search input::placeholder { color: var(--muted-2); }

.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted); transition: .18s;
}
.chip:hover { color: var(--text); border-color: #2f3346; }
.chip.is-active { color: #0a0a12; background: var(--grad); border-color: transparent; }

/* ============ Grid + Card ============ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: linear-gradient(180deg, var(--panel) 0%, rgba(15,16,24,.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(135deg, rgba(124,92,255,.55), rgba(33,212,253,.55) 50%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 22px 50px -22px rgba(124,92,255,.55), 0 8px 18px -10px rgba(0,0,0,.6); }
.card:hover::before { opacity: 1; }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img { transform: scale(1.08); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7,8,12,.85) 100%);
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em; backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 6px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge--good { color: var(--good); background: rgba(45,212,167,.12); border: 1px solid rgba(45,212,167,.3); }
.badge--warn { color: var(--warn); background: rgba(247,183,51,.12); border: 1px solid rgba(247,183,51,.3); }
.badge--new  { color: var(--accent-2); background: rgba(33,212,253,.12); border: 1px solid rgba(33,212,253,.3); }
.badge--bad  { color: var(--bad); background: rgba(255,84,112,.12); border: 1px solid rgba(255,84,112,.3); }
.card__fav {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(7,8,12,.5); border: 1px solid var(--border); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(-4px); transition: .2s;
}
.card:hover .card__fav { opacity: 1; transform: translateY(0); }
.card__fav svg { width: 16px; height: 16px; }

.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: 12px; font-weight: 600; color: var(--accent-2); letter-spacing: .03em; text-transform: uppercase; }
.card__title { font-family: "Sora"; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.card__desc { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 7px; }
.price__now { font-family: "Sora"; font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; }
.price__old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.card__buy {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid rgba(124,92,255,.32);
  color: var(--accent); display: grid; place-items: center; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.card:hover .card__buy { background: var(--grad); color: #0a0a12; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(33,212,253,.7); transform: translateX(2px); }
.card__buy svg { width: 17px; height: 17px; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }

/* ---- Catalog skeleton (shown while catalog.php is still loading) ---- */
.games--skeleton .game--skel {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}
.game--skel .game__media { aspect-ratio: 4/5; width: 100%; }
.game--skel .game__name { height: 14px; margin: 12px 14px 14px; width: 70%; border-radius: 6px; }
.skel {
  position: relative;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s linear infinite;
}
.skel--line { display: block; }
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Hide the mobile slide-out nav block when it has no items (visitors don't
   need an empty dark stripe between the logo and the user chip). */
.header .nav:empty { display: none; }

/* Aggressive cleanup: hide ANY empty containers that look like buttons/links
   inside the header or the admin panel. Some renders leave behind a wrapper
   for the "Админка" button when the user isn't admin, etc. */
.header__inner .btn:empty,
.header__inner a:empty,
.header__inner > *:empty,
.header__actions > *:empty,
.admin__main .admin__panel:empty,
.admin__tabs > *:empty,
.admin .btn:empty { display: none !important; }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,5,9,.75); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; width: min(620px, 100%); background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px);} to { opacity: 1; transform: none; } }
.modal__media { aspect-ratio: 16/8; overflow: hidden; position: relative; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(7,8,12,.6); border: 1px solid var(--border); color: #fff; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(8px);
}
.modal__body { padding: 22px 24px 26px; }
.modal__cat { color: var(--accent-2); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.modal__title { font-size: 23px; font-weight: 700; margin: 8px 0 12px; }
.modal__desc { color: var(--muted); line-height: 1.65; font-size: 14.5px; }
.modal__row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ============ Footer ============ */
.footer {
  position: relative; margin-top: 70px;
  background: linear-gradient(180deg, transparent, rgba(124,92,255,.05) 60%, rgba(33,212,253,.04));
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent);
  opacity: .6;
}
.footer__top {
  display: flex; justify-content: space-between; gap: 50px; padding: 54px 0 38px; flex-wrap: wrap;
}
.footer__brandcol { max-width: 340px; }
.footer__brandcol .brand { margin-bottom: 16px; }
.footer__tag { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; line-height: 1.6; }
.footer__socials { display: flex; gap: 10px; }
.social {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.social:hover {
  transform: translateY(-3px); color: #0a0a12; background: var(--grad); border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(124,92,255,.6);
}

.footer__cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer__col h4 {
  font-size: 13px; margin-bottom: 16px; color: var(--text); text-transform: uppercase; letter-spacing: .06em;
  position: relative; padding-bottom: 10px;
}
.footer__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.footer__col a {
  display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 11px;
  transition: color .18s ease, transform .18s ease;
}
.footer__col a:hover { color: var(--text); transform: translateX(3px); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 32px; border-top: 1px solid var(--border-soft); color: var(--muted-2); font-size: 13px;
}
.footer__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__meta a { color: var(--muted-2); transition: color .18s; }
.footer__meta a:hover { color: var(--text); }
.footer__secure { display: inline-flex; align-items: center; gap: 7px; color: var(--good); }
.footer__secure svg { color: var(--good); }

@media (max-width: 720px) {
  .footer__top { gap: 34px; padding: 40px 0 28px; }
  .footer__cols { gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .header__inner { flex-wrap: wrap; gap: 0 14px; }
  .burger { display: flex; margin-left: auto; }
  .nav, .header__actions { display: none; flex-basis: 100%; }
  .header.nav-open .nav {
    display: flex; flex-direction: column; gap: 2px; width: 100%;
    padding: 8px 0 6px; border-top: 1px solid var(--border-soft); margin-top: 8px;
  }
  .header.nav-open .nav__link { padding: 13px 14px; border-radius: 10px; font-size: 15px; }
  .header.nav-open .nav__link::after { display: none; }
  .header.nav-open .header__actions {
    display: flex; flex-wrap: wrap; gap: 10px; width: 100%; padding-bottom: 14px;
  }
  .header.nav-open .header__actions .btn { flex: 1 1 130px; }
  .header.nav-open .user-chip { flex: 1 1 100%; justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 28px; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 13px; }
  .hero { padding: 48px 0 30px; }
  .card__body { padding: 12px 12px 14px; }
}

/* ============ Sections / tiles / breadcrumbs ============ */
.section { padding: 30px 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); transition: .22s ease; display: block;
}
.tile:hover { transform: translateY(-5px); border-color: #34384d; box-shadow: var(--shadow); }
.tile__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); position: relative; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,8,12,.9)); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; z-index: 2; }
.tile__title { font-family: "Sora"; font-size: 16px; font-weight: 700; }
.tile__sub { color: var(--muted); font-size: 12.5px; }

/* ============ Premium game grid (home) ============ */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.game {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.game::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; z-index: 3;
  background: conic-gradient(from 140deg, rgba(124,92,255,.85), rgba(33,212,253,.85), rgba(124,92,255,.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.game:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 26px 56px -22px rgba(124,92,255,.65), 0 6px 18px -10px rgba(0,0,0,.7); }
.game:hover::before { opacity: 1; }
.game__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-2); }
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .35s ease; }
.game:hover .game__media img { transform: scale(1.08); filter: saturate(1.08); }
.game__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,12,0) 35%, rgba(7,8,12,.55) 65%, rgba(7,8,12,.96) 100%); }
.game__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; }
.game__count {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, rgba(20,22,34,.85), rgba(15,16,24,.7));
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.6);
}
.game__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.game__title { font-family: "Sora"; font-size: 19px; font-weight: 700; line-height: 1.18; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.game__go {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #0a0a12;
  background: var(--grad); box-shadow: 0 8px 20px -10px rgba(33,212,253,.7);
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.game:hover .game__go { opacity: 1; transform: translateY(0); }
.game__go .ico { width: 14px; height: 14px; }
@media (max-width: 1024px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .games { grid-template-columns: repeat(2, 1fr); gap: 14px; } .game__title { font-size: 16px; } .game__body { padding: 14px 14px 16px; } }
@media (max-width: 420px) { .games { grid-template-columns: 1fr 1fr; gap: 11px; } .game__media { aspect-ratio: 4/5; } .game__title { font-size: 14px; } .game__go { font-size: 11px; padding: 5px 10px; opacity: 1; transform: none; } .game__count { font-size: 10.5px; padding: 5px 10px; } }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--muted); transition: .15s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs__sep { color: var(--muted-2); }
.crumbs__cur { color: var(--text); font-weight: 600; }

/* ============ User chip ============ */
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }
.user-chip__av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #0a0a12; font: 700 13px/28px "Inter"; text-align: center; }
.user-chip__name { font-size: 13.5px; font-weight: 600; }

/* ============ Auth ============ */
.auth { display: grid; place-items: center; padding: 60px 0 90px; }
.auth__card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.auth__tabs { display: flex; gap: 6px; background: var(--bg-2); border-radius: 12px; padding: 4px; }
.auth__tab { flex: 1; padding: 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; text-align: center; cursor: pointer; transition: .15s; }
.auth__tab.is-active { background: var(--panel); color: var(--text); }
.auth__form { margin-top: 22px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.form-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); color: var(--text); font-size: 14px; }
.form-field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }

/* ============ Premium Payment Methods ============ */
.payment-methods {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, 
    rgba(124,92,255,.06) 0%, 
    rgba(33,212,253,.04) 50%, 
    rgba(124,92,255,.03) 100%
  );
  border: 1px solid rgba(124,92,255,.15);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.payment-methods::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(124,92,255,.6) 20%, 
    rgba(33,212,253,.6) 50%, 
    rgba(124,92,255,.6) 80%, 
    transparent
  );
  opacity: 0.8;
}

.payment-methods::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(124,92,255,.03), transparent 60%);
  pointer-events: none;
}

.payment-methods__title {
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 2;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.payment-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(255,255,255,.08) 0%, 
    rgba(255,255,255,.02) 100%
  );
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 80px;
  backdrop-filter: blur(20px);
}

.payment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: all .3s ease;
}

.payment-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 340deg, rgba(255,255,255,.1) 360deg);
  opacity: 0;
  transition: opacity .3s ease;
  animation: cardSpin 6s linear infinite;
  pointer-events: none;
}

@keyframes cardSpin {
  to { transform: rotate(360deg); }
}

.payment-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 40px -16px rgba(124,92,255,.3),
    0 8px 24px -8px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.payment-card:hover::after {
  opacity: 1;
}

.payment-card:active {
  transform: translateY(-2px) scale(1.01);
  transition: all .1s ease;
}

.payment-card--primary {
  background: linear-gradient(135deg, 
    rgba(255,215,0,.12) 0%, 
    rgba(255,193,7,.08) 50%,
    rgba(251,191,36,.06) 100%
  );
}

.payment-card--primary::before {
  background: linear-gradient(135deg, 
    rgba(255,215,0,.4) 0%, 
    rgba(255,193,7,.6) 50%,
    rgba(251,191,36,.4) 100%
  );
}

.payment-card--primary:hover {
  box-shadow: 
    0 20px 40px -16px rgba(255,193,7,.4),
    0 8px 24px -8px rgba(255,215,0,.2),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.payment-card--primary:hover::before {
  opacity: 1;
}

.payment-card--secondary {
  background: linear-gradient(135deg, 
    rgba(16,185,129,.12) 0%, 
    rgba(5,150,105,.08) 50%,
    rgba(4,120,87,.06) 100%
  );
}

.payment-card--secondary::before {
  background: linear-gradient(135deg, 
    rgba(16,185,129,.4) 0%, 
    rgba(5,150,105,.6) 50%,
    rgba(4,120,87,.4) 100%
  );
}

.payment-card--secondary:hover {
  box-shadow: 
    0 20px 40px -16px rgba(16,185,129,.4),
    0 8px 24px -8px rgba(5,150,105,.2),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.payment-card--secondary:hover::before {
  opacity: 1;
}

.payment-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.payment-card:disabled::before,
.payment-card:disabled::after {
  opacity: 0 !important;
}

.payment-card__icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 20px -8px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition: all .3s ease;
}

.payment-card:hover .payment-card__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 12px 28px -8px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.3);
}

.payment-card--primary .payment-card__icon {
  background: linear-gradient(135deg, 
    rgba(255,215,0,.2) 0%, 
    rgba(255,193,7,.15) 100%
  );
  border-color: rgba(255,215,0,.3);
  box-shadow: 
    0 8px 20px -8px rgba(255,193,7,.3),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.payment-card--secondary .payment-card__icon {
  background: linear-gradient(135deg, 
    rgba(16,185,129,.2) 0%, 
    rgba(5,150,105,.15) 100%
  );
  border-color: rgba(16,185,129,.3);
  box-shadow: 
    0 8px 20px -8px rgba(16,185,129,.3),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.payment-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-card__name {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  text-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.payment-card__desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .payment-methods {
    padding: 20px;
    margin-top: 20px;
  }
  
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .payment-card {
    padding: 18px 20px;
    min-height: 72px;
    gap: 14px;
  }
  
  .payment-card__icon {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  
  .payment-card__name {
    font-size: 15px;
  }
  
  .payment-card__desc {
    font-size: 12px;
  }
  
  .payment-methods__title {
    font-size: 16px;
    margin-bottom: 16px;
  }
}ackground: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.auth__tab { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 14px "Inter"; cursor: pointer; transition: .18s; }
.auth__tab.is-active { background: var(--grad); color: #0a0a12; }
.auth__form { display: flex; flex-direction: column; gap: 14px; }
.auth__hint { color: var(--muted-2); font-size: 12.5px; text-align: center; margin: 2px 0 0; }
.auth__hint b { color: var(--accent-2); }
.auth__divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12.5px; margin: 20px 0 16px; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth__note { color: var(--muted-2); font-size: 11.5px; line-height: 1.5; margin: 12px 0 0; text-align: center; }
.btn--tg { width: 100%; background: #29a9eb; color: #fff; }
.btn--tg:hover { background: #2b9fd8; transform: translateY(-2px); }

/* ============ Fields ============ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px;
  color: var(--text); font: 500 14px "Inter"; outline: 0; transition: .18s; width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.field select { appearance: none; cursor: pointer; }

/* ============ Admin ============ */
.admin { padding: 34px 0 80px; }
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin__layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.admin__side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 90px; }
.admin__tab { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font: 600 14px "Inter"; cursor: pointer; transition: .18s; }
.admin__tab b { font-size: 12px; background: var(--bg-2); padding: 2px 9px; border-radius: 999px; color: var(--muted); }
.admin__tab:hover { color: var(--text); border-color: #2f3346; }
.admin__tab.is-active { background: var(--grad-soft); border-color: rgba(124,92,255,.4); color: var(--text); }
.admin__tab.is-active b { background: var(--grad); color: #0a0a12; }

.admin__panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.admin__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.admin__panel-head h3 { font-size: 18px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 13px 16px; color: var(--muted-2); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.ta-right { text-align: right; white-space: nowrap; }
.empty-cell { text-align: center; color: var(--muted-2); padding: 30px; }
.tcell { display: flex; align-items: center; gap: 11px; }
.tthumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.mini { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; cursor: pointer; font-size: 14px; transition: .15s; }
.mini:hover { border-color: #34384d; transform: translateY(-1px); }
.mini--bad:hover { border-color: var(--bad); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot--good { background: var(--good); box-shadow: 0 0 7px var(--good); }
.dot--warn { background: var(--warn); box-shadow: 0 0 7px var(--warn); }
.dot--new { background: var(--accent-2); box-shadow: 0 0 7px var(--accent-2); }

/* admin form modal */
.modal__body--form { padding: 24px 24px 22px; position: relative; max-height: 85vh; overflow-y: auto; }
.modal__close--inline { position: absolute; top: 16px; right: 16px; }
.adminform { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adminform__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* grouped sections in the product form */
.form-section { border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px 18px; background: var(--bg-2); display: flex; flex-direction: column; gap: 13px; }
.form-section__title { font: 700 12px "Inter"; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }

/* currency price input row */
.price-input { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.price-input input[type="number"] { flex: 1 1 140px; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; color: var(--text); font: 600 14px "Inter"; outline: 0; transition: border-color .18s; }
.price-input input[type="number"]:focus { border-color: var(--accent); }
.price-input select { flex: 0 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; color: var(--text); font: 600 13.5px "Inter"; outline: 0; cursor: pointer; }
.price-input .btn { flex: 0 0 auto; white-space: nowrap; }

/* per-duration plan editor */
/* ===== Plans editor: compact table + drawer ===== */
.plans2 { display: flex; flex-direction: column; gap: 12px; }
.plans2__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.plans2__quick { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.plans2__quicklbl { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.qchip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font: 700 12.5px "Inter"; cursor: pointer; transition: .15s; }
.qchip:hover { border-color: var(--accent); color: var(--text); }
.plans2__table { width: 100%; }
.plans2__table tbody tr { cursor: pointer; }
.plans2__table tbody tr:hover { background: rgba(255,255,255,.03); }
.plans2__auto { color: var(--muted-2); font-style: italic; }

/* plan drawer (modal) */
.pd .field { margin-bottom: 4px; }
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; }
.pd-head .form-section__title { margin: 0; }
.pd-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pd-price { display: flex; flex-direction: column; gap: 4px; }
.pd-price__c { font-size: 12px; font-weight: 700; color: var(--text); }
.pd-req { color: var(--bad); font-style: normal; }
.pd-price input { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; color: var(--text); font: 600 14px "Inter"; outline: 0; transition: border-color .18s; }
.pd-price input:focus { border-color: var(--accent); }
.pd-price__hint { font-size: 10.5px; color: var(--muted-2); }
.pd textarea#pdKeys { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font: 500 13px "Inter"; outline: 0; resize: vertical; }
.pd textarea#pdKeys:focus { border-color: var(--accent); }
@media (max-width: 560px) {
  .pd-prices { grid-template-columns: 1fr; }
  .plans2__bar { gap: 8px; }
  .plans2__bar > .btn { width: 100%; justify-content: center; }
}

/* platform picker (admin) */
.plat-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.plat-pick { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font: 600 13px "Inter"; cursor: pointer; transition: .15s; }
.plat-pick:hover { border-color: #34384d; color: var(--text); }
.plat-pick.is-on { background: var(--grad-soft); border-color: rgba(124,92,255,.5); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }

/* platform filter chips (game page) */
.plat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.plat-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font: 600 13.5px "Inter"; cursor: pointer; transition: .15s; }
.plat-chip:hover { border-color: #34384d; color: var(--text); }
.plat-chip.is-active { background: var(--grad); border-color: transparent; color: #0a0a12; }

/* per-plan stock badge on the product page */
.pdp-plan { position: relative; }
.pdp-plan__stock { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.pdp-plan.is-out { opacity: .45; cursor: not-allowed; }
.pdp-plan.is-out .pdp-plan__stock { color: var(--bad); }

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200;
  padding: 13px 20px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
.toast--good { border-color: rgba(45,212,167,.5); }
.toast--bad { border-color: rgba(255,84,112,.5); }
.toast--warn { border-color: rgba(247,183,51,.5); }

@media (max-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .admin__layout { grid-template-columns: 1fr; }
  .admin__side { flex-direction: row; overflow-x: auto; position: static; }
  .admin__tab { flex: 0 0 auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 13px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ Free / Digital tags + delivery ============ */
.card__tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #06251c; background: linear-gradient(135deg, #2dd4a7, #21d4fd);
  box-shadow: 0 6px 16px -6px rgba(45,212,167,.6);
}
.card__tag--digi { color: #0a0a12; background: linear-gradient(135deg, #b794ff, #7c5cff); box-shadow: 0 6px 16px -6px rgba(124,92,255,.6); }
.price__now--free { color: var(--good); }

.delivery {
  margin-top: 18px; padding: 16px; border-radius: 14px;
  background: rgba(45,212,167,.07); border: 1px solid rgba(45,212,167,.3);
}
.delivery__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--good); margin-bottom: 10px; }
.delivery__text { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }

/* ============ Telegram widget + checkbox field ============ */
.tg-widget { display: flex; justify-content: center; margin-bottom: 12px; min-height: 0; }
.tg-widget:empty { display: none; }
.field--check { flex-direction: row; align-items: center; gap: 10px; padding-top: 26px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.field--check > span { font-size: 14px; color: var(--text); }

/* ============ Telegram bot login: spinner + waiting ============ */
.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent-2);
  animation: spin .8s linear infinite; flex-shrink: 0;
}
.spinner--lg { width: 38px; height: 38px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tg-wait {
  display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 12px 14px;
  border-radius: 12px; background: rgba(41,169,235,.08); border: 1px solid rgba(41,169,235,.3);
  color: var(--muted); font-size: 13px; line-height: 1.4;
}
.tg-wait b { color: var(--text); }

/* ============ Account / My purchases ============ */
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.user-chip { cursor: pointer; transition: .18s; text-decoration: none; }
.user-chip:hover { border-color: #34384d; background: var(--panel-2); }

.acc { padding: 34px 0 80px; }
.acc__profile {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(33,212,253,.07));
  border: 1px solid var(--border); border-radius: 20px; margin-bottom: 18px;
}
.acc__avatar {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad); color: #0a0a12; font: 800 28px "Sora"; flex-shrink: 0;
  box-shadow: 0 12px 28px -10px rgba(124,92,255,.7);
}
.acc__id { flex: 1; min-width: 160px; }
.acc__name { font-family: "Sora"; font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc__contact { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.acc__role { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.acc__role--admin { color: #0a0a12; background: var(--grad); border-color: transparent; }
.acc__balance { text-align: right; padding: 0 18px; }
.acc__balance span { display: block; color: var(--muted-2); font-size: 12px; }
.acc__balance b { font-family: "Sora"; font-size: 22px; }

.acc__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.stat-card__label { color: var(--muted-2); font-size: 12.5px; }
.stat-card__val { display: block; font-family: "Sora"; font-size: 26px; font-weight: 800; margin-top: 6px; }

.orders { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.order {
  display: flex; gap: 16px; padding: 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; transition: .18s;
}
.order:hover { border-color: #34384d; }
.order__img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.order__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.order__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order__title { font-family: "Sora"; font-size: 15.5px; font-weight: 600; }
.order__price { font-family: "Sora"; font-weight: 700; font-size: 16px; white-space: nowrap; }
.order__price--free { color: var(--good); }
.order__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order__date { color: var(--muted-2); font-size: 12.5px; }
.order__chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.order__chip--digi { color: var(--accent); border-color: rgba(124,92,255,.4); background: rgba(124,92,255,.1); }
.order__status { position: static; }
.order__delivery { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(45,212,167,.06); border: 1px solid rgba(45,212,167,.25); }
.order__deltext { color: var(--muted); font-size: 13px; margin: 0 0 10px; line-height: 1.5; }

.acc__empty { text-align: center; padding: 50px 20px; background: var(--panel); border: 1px dashed var(--border); border-radius: 18px; }
.acc__empty-icon { font-size: 40px; margin-bottom: 12px; }
.acc__empty h4 { font-size: 18px; margin-bottom: 6px; }
.acc__empty p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

@media (max-width: 600px) {
  .acc__stats { grid-template-columns: 1fr; }
  .acc__balance { text-align: left; padding: 0; }
  .order__img { width: 64px; height: 64px; }
}

/* ============ Unique keys / stock ============ */
.card__stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--good); padding: 4px 10px; border-radius: 999px; background: rgba(45,212,167,.1); border: 1px solid rgba(45,212,167,.28); align-self: flex-start; }
.card__stock--out { color: var(--bad); background: rgba(255,84,112,.1); border-color: rgba(255,84,112,.28); }
.modal__stock { display: inline-block; margin: 12px 0 0; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--good); background: rgba(45,212,167,.1); border: 1px solid rgba(45,212,167,.3); }
.modal__stock--out { color: var(--bad); background: rgba(255,84,112,.1); border-color: rgba(255,84,112,.3); }
.stock-note { color: var(--muted-2); font-size: 12px; }

.delivery__sublabel { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.delivery__shared { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.delivery__keyrow { margin-bottom: 4px; }
.keybox {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: #0a0c12; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.keybox code { font-family: ui-monospace, "Courier New", monospace; font-size: 15px; font-weight: 700; color: var(--accent-2); letter-spacing: .5px; word-break: break-all; }
.keybox__copy { flex-shrink: 0; background: var(--grad); color: #0a0a12; border: 0; border-radius: 8px; padding: 7px 12px; font: 600 12.5px "Inter"; cursor: pointer; }
.keybox__copy:hover { opacity: .9; }
.keybox--sm { padding: 8px 11px; }
.keybox--sm code { font-size: 13.5px; }
.keybox__label { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; }

/* ============ Admin: user management ============ */
.btn--bad { background: rgba(255,84,112,.12); color: var(--bad); border: 1px solid rgba(255,84,112,.4); }
.btn--bad:hover:not(:disabled) { background: rgba(255,84,112,.2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.search--sm { height: 40px; width: min(280px, 60vw); }
.idcell { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); background: var(--bg-2); padding: 3px 8px; border-radius: 7px; }

.mu-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mu-av { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #0a0a12; font: 800 22px "Sora"; }
.mu-name { font-family: "Sora"; font-size: 19px; font-weight: 700; }
.mu-id { color: var(--muted-2); font-size: 12.5px; font-family: ui-monospace, monospace; margin-top: 3px; }

.mu-balance { margin: 16px 0; padding: 16px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(124,92,255,.3); }
.mu-balance__cur { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.mu-balance__cur b { font-family: "Sora"; font-size: 20px; color: var(--text); }
.mu-balance__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mu-balance__row input { flex: 1; min-width: 120px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: var(--text); font: 500 14px "Inter"; outline: 0; }
.mu-balance__row input:focus { border-color: var(--accent); }

.mu-orders { margin-top: 18px; }
.mu-order { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.mu-order:last-child { border-bottom: 0; }
.mu-order img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.mu-order__t { font-size: 13.5px; font-weight: 600; }
.mu-order__m { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.muted-empty { color: var(--muted-2); font-size: 13.5px; padding: 8px 0; }

/* ============ Inline icons ============ */
.ico { vertical-align: -2px; flex-shrink: 0; }
.delivery__sublabel .ico, .card__stock .ico, .keybox__label .ico { vertical-align: -2px; }

/* ============ Motion / animations ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes glowPulse { 0%,100% { opacity: .5; } 50% { opacity: .8; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Page-level entrance */
#app > section { animation: fadeUp .42s cubic-bezier(.22,.61,.36,1) both; }

/* Hero staggered reveal */
.hero__eyebrow { animation: fadeUp .5s ease both .04s; }
.hero__title   { animation: fadeUp .55s ease both .12s; }
.hero__sub     { animation: fadeUp .55s ease both .2s; }
.hero__cta     { animation: fadeUp .55s ease both .28s; }
.hero__stats   { animation: fadeUp .55s ease both .36s; }

/* Animated gradient on accent text */
.grad-text { background-size: 200% auto; animation: gradShift 5s linear infinite alternate; }

/* Ambient glow drift is defined in the background section */

/* Brand mark subtle float */
.brand__mark { animation: floatY 4s ease-in-out infinite; }

/* Cards & tiles staggered fade-in */
.grid > .card, .tiles > .tile { animation: fadeIn .45s ease both; }
.grid > .card:nth-child(1), .tiles > .tile:nth-child(1) { animation-delay: .03s; }
.grid > .card:nth-child(2), .tiles > .tile:nth-child(2) { animation-delay: .07s; }
.grid > .card:nth-child(3), .tiles > .tile:nth-child(3) { animation-delay: .11s; }
.grid > .card:nth-child(4), .tiles > .tile:nth-child(4) { animation-delay: .15s; }
.grid > .card:nth-child(5), .tiles > .tile:nth-child(5) { animation-delay: .19s; }
.grid > .card:nth-child(6), .tiles > .tile:nth-child(6) { animation-delay: .23s; }
.grid > .card:nth-child(7), .tiles > .tile:nth-child(7) { animation-delay: .27s; }
.grid > .card:nth-child(8), .tiles > .tile:nth-child(8) { animation-delay: .31s; }
.grid > .card:nth-child(n+9) { animation-delay: .35s; }

/* Orders / stat cards entrance + lift */
.orders > .order { animation: fadeIn .4s ease both; }
.orders > .order:nth-child(2) { animation-delay: .05s; }
.orders > .order:nth-child(3) { animation-delay: .1s; }
.orders > .order:nth-child(n+4) { animation-delay: .14s; }
.stat-card { transition: transform .2s ease, border-color .2s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: #34384d; }

/* Button micro-interaction */
.btn { transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease; }
.btn:active { transform: translateY(0) scale(.97); }

/* Nav link animated underline */
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

/* Smooth image fade-in on load */
.card__img, .tile__media img { opacity: 0; animation: fadeIn .4s ease forwards; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card__img, .tile__media img { opacity: 1 !important; }
}

/* ============ Platform tags ============ */
.plats { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.plat {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); letter-spacing: .02em;
}
.plats--lg { margin: 14px 0 0; }
.plats--lg .plat { font-size: 12px; padding: 5px 12px; color: var(--text); border-color: #2f3346; }

/* ============ Support chat widget ============ */
.sup-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #0a0a12; display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(124,92,255,.7); transition: transform .22s ease, box-shadow .22s ease;
}
.sup-fab:hover { transform: translateY(-3px) scale(1.04); }
.sup-fab.is-open { transform: scale(.92); opacity: .85; }
.sup-fab__badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--bad); color: #fff; font: 700 11px/20px "Inter"; text-align: center;
  border: 2px solid var(--bg);
}
.sup-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 90;
  width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); animation: supUp .26s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes supUp { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.sup-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(33,212,253,.1)); border-bottom: 1px solid var(--border);
}
.sup-head__t { display: flex; align-items: center; gap: 9px; font-family: "Sora"; font-weight: 700; font-size: 15px; }
.sup-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.sup-close { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: .18s; }
.sup-close:hover { background: rgba(255,255,255,.1); }

.sup-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sup-empty { margin: auto; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.55; padding: 10px; display: flex; flex-direction: column; gap: 14px; align-items: center; }

.sup-msg { display: flex; flex-direction: column; max-width: 82%; }
.sup-msg--me { align-self: flex-end; align-items: flex-end; }
.sup-msg--admin { align-self: flex-start; align-items: flex-start; }
.sup-bubble { padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.sup-msg--me .sup-bubble { background: var(--grad); color: #0a0a12; border-bottom-right-radius: 5px; font-weight: 500; }
.sup-msg--admin .sup-bubble { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 5px; }
.sup-time { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; }

.sup-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.sup-input input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px;
  color: var(--text); font: 500 14px "Inter"; outline: 0; transition: border-color .18s;
}
.sup-input input:focus { border-color: var(--accent); }
.sup-send { width: 42px; flex-shrink: 0; border: 0; border-radius: 11px; background: var(--grad); color: #0a0a12; cursor: pointer; display: grid; place-items: center; transition: .18s; }
.sup-send:hover { opacity: .9; }

/* Admin support */
.sup-convs { display: flex; flex-direction: column; }
.sup-conv {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 18px; background: none; border: 0; border-bottom: 1px solid var(--border-soft); color: var(--text); transition: background .15s;
}
.sup-conv:last-child { border-bottom: 0; }
.sup-conv:hover { background: rgba(255,255,255,.03); }
.sup-conv__av { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #0a0a12; font: 700 16px "Sora"; flex-shrink: 0; }
.sup-conv__main { flex: 1; min-width: 0; }
.sup-conv__top { display: flex; justify-content: space-between; gap: 10px; }
.sup-conv__time { color: var(--muted-2); font-size: 12px; flex-shrink: 0; }
.sup-conv__prev { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sup-conv__badge { background: var(--bad); color: #fff; font: 700 11px/20px "Inter"; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; text-align: center; flex-shrink: 0; }
.sup-thread { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 14px; margin: 6px 0 14px; border-bottom: 1px solid var(--border); }
.sup-input--admin { border-top: 0; padding: 0; }

@media (max-width: 560px) {
  .sup-panel { right: 12px; left: 12px; width: auto; bottom: 86px; }
  .sup-fab { right: 16px; bottom: 16px; }
}

/* ============ Roles / read-only user view ============ */
.role-pill {
  font-size: 12.5px; font-weight: 600; color: var(--warn);
  background: rgba(247,183,51,.12); border: 1px solid rgba(247,183,51,.3);
  padding: 7px 14px; border-radius: 999px;
}
.mu-info { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 6px; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted-2); font-size: 13px; }
.info-row b { color: var(--text); font-size: 13.5px; font-weight: 600; text-align: right; word-break: break-word; }

/* ============ Admin: stats + profit calculator ============ */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat-card--good .stat-card__val { color: var(--good); }
.stat-card--bad .stat-card__val { color: var(--bad); }
.num-pos { color: var(--good); font-weight: 600; }
.num-neg { color: var(--bad); font-weight: 600; }

.calc__body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.calc__inputs { display: flex; flex-direction: column; gap: 13px; }
.calc__result {
  background: linear-gradient(135deg, rgba(124,92,255,.1), rgba(33,212,253,.06));
  border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.calc__big { font-family: "Sora"; font-size: 32px; font-weight: 800; line-height: 1; }
.calc__big span { font-size: 14px; font-weight: 600; color: var(--muted); }
.calc__rows { display: flex; flex-direction: column; }
.calc__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.calc__row:last-child { border-bottom: 0; }
.calc__row b { color: var(--text); }

@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .calc__body { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr; } }

/* ============ Image upload field ============ */
.imgfield__row { display: flex; gap: 14px; align-items: flex-start; }
.imgfield__preview { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; }
.imgfield__preview img { width: 100%; height: 100%; object-fit: cover; }
.imgfield__ph { color: var(--muted-2); font-size: 11px; }
.imgfield__ctrls { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.imgfield__btn { align-self: flex-start; cursor: pointer; }
.imgfield__url { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; color: var(--text); font: 500 13.5px "Inter"; outline: 0; transition: border-color .18s; }
.imgfield__url:focus { border-color: var(--accent); }
.imgfield__hint { font-size: 11px; color: var(--muted-2); }

/* ============ Product: duration plans, video, features ============ */
.modal__sub { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 10px; }
.plans-sel { display: flex; gap: 10px; flex-wrap: wrap; }
.plan-opt {
  flex: 1 1 calc(50% - 5px); min-width: 120px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 11px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: .18s; font: 600 13px "Inter";
}
.plan-opt span { font-size: 13px; }
.plan-opt b { font-family: "Sora"; font-size: 16px; color: var(--text); }
.plan-opt:hover { border-color: #34384d; transform: translateY(-1px); }
.plan-opt.is-active { border-color: var(--accent); background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }

.vid { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--border); }
.vid iframe, .vid video { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }

.feat { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.feat li { position: relative; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.feat li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }

.price__from { color: var(--muted-2); font-size: 12px; margin-right: 2px; }

@media (max-width: 540px) { .feat { grid-template-columns: 1fr; } .plan-opt { flex-basis: 100%; } }

/* ============ Currency / language switcher ============ */
.intl { position: relative; }
.intl__btn {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font: 600 13.5px "Inter"; transition: .18s; white-space: nowrap;
}
.intl__btn:hover { background: rgba(255,255,255,.08); border-color: #2f3346; }
.intl__chev { opacity: .55; }
.intl__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 200px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px;
  box-shadow: var(--shadow); animation: fadeUp .16s ease both;
}
.intl__grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: 4px 6px 8px; }
.intl__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.intl__opts:last-child { margin-bottom: 0; }
.intl__opt {
  flex: 1 1 calc(50% - 3px); padding: 9px 10px; border-radius: 9px; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--muted); cursor: pointer; font: 600 13px "Inter"; transition: .15s; text-align: left;
}
.intl__opt b { color: var(--text); margin-right: 2px; }
.intl__opt:hover { border-color: #34384d; color: var(--text); }
.intl__opt.is-active { background: var(--grad-soft); border-color: rgba(124,92,255,.45); color: var(--text); }

/* ============ Product screenshot gallery ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery__item { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery__item:hover img { transform: scale(1.06); }

/* ============================================================
   PRODUCT PAGE (#/p/:id)
   ============================================================ */
.pdp__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.pdp__media { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.pdp__stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); aspect-ratio: 16 / 10; }
.pdp__stage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pdp__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pdp__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-thumb { width: 84px; height: 60px; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; padding: 0; transition: .18s; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: #34384d; transform: translateY(-2px); }
.pdp-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,92,255,.35); }

.pdp__buy { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.pdp__meta { color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pdp__title { font-family: "Sora"; font-size: 26px; font-weight: 800; line-height: 1.2; margin: 0; }
.pdp__label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.pdp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; max-height: 232px; overflow-y: auto; padding: 2px; }
.pdp-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 13px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: .16s; }
.pdp-plan__days { font: 600 13px "Inter"; }
.pdp-plan__price { font-family: "Sora"; font-size: 17px; color: var(--text); }
.pdp-plan:hover { border-color: #34384d; transform: translateY(-2px); }
.pdp-plan.is-active { border-color: var(--accent); background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.pdp__pricerow { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.pdp__price { font-family: "Sora"; font-size: 30px; font-weight: 800; }
.pdp__buybtn { width: 100%; justify-content: center; }
.pdp-stock { font-size: 13px; font-weight: 600; color: var(--good); display: inline-flex; align-items: center; gap: 6px; }
.pdp-stock--out { color: var(--bad); }
.pdp__trust { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 12.5px; }
.pdp__trust span { display: inline-flex; align-items: center; gap: 6px; }

.pdp__details { margin-top: 36px; display: flex; flex-direction: column; gap: 26px; max-width: 880px; }
.pdp-block__t { font-family: "Sora"; font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.pdp-block__text { color: var(--muted); line-height: 1.7; font-size: 14.5px; white-space: pre-line; }
.feat--lg li { font-size: 14px; }

.lightbox { display: grid; place-items: center; padding: 8px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; display: block; }

/* ---- product page tabs ---- */
.pdp-tabs { display: flex; gap: 6px; margin: 34px 0 18px; padding: 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); overflow-x: auto; }
.pdp-tab { flex: 0 0 auto; padding: 11px 18px; border-radius: 11px; border: 0; background: transparent; color: var(--muted); font: 600 14px "Inter"; cursor: pointer; white-space: nowrap; transition: .16s; }
.pdp-tab:hover { color: var(--text); }
.pdp-tab.is-active { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124,92,255,.4); }
.pdp-panel { display: none; animation: fadeIn .25s ease both; }
.pdp-panel.is-active { display: block; }
.pdp-empty { padding: 40px 20px; text-align: center; color: var(--muted-2); border: 1px dashed var(--border); border-radius: 16px; }

/* media slider */
.pdp-slider { position: relative; }
.pdp-slider__stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16/9; }
.pdp-slide { position: absolute; inset: 0; display: none; }
.pdp-slide.is-active { display: block; }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; background: #000; cursor: zoom-in; }
.pdp-slide .vid { aspect-ratio: auto; height: 100%; border: 0; border-radius: 0; }
.pdp-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(7,8,12,.6); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: .16s; z-index: 2; }
.pdp-slider__nav:hover { background: rgba(7,8,12,.85); border-color: var(--accent); }
.pdp-slider__nav--prev { left: 14px; }
.pdp-slider__nav--next { right: 14px; }
.pdp-slider__dots { display: flex; gap: 7px; justify-content: center; margin-top: 12px; }
.pdp-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; transition: .16s; padding: 0; }
.pdp-dot.is-active { background: var(--accent); width: 22px; border-radius: 5px; }

/* system requirements cards */
.pdp-reqgroup { display: flex; align-items: center; gap: 9px; font: 700 12px "Inter"; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; }
.pdp-reqgroup:first-child { margin-top: 4px; }
.pdp-reqgroup__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px var(--accent); }
.pdp-reqgroup__count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted-2); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); }
.pdp-reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pdp-req { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.pdp-req__label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 7px; }
.pdp-req__val { font: 600 14.5px "Inter"; color: var(--text); }
.pdp-feat { max-width: 880px; }

/* features: meta header + grouped cards */
.pdp-feat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pdp-fmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp-fmeta__upd { font-size: 12.5px; color: var(--muted-2); }
.pdp-fmeta__ver { font: 700 12px "Inter"; color: var(--accent-2); padding: 3px 10px; border-radius: 999px; background: rgba(33,212,253,.1); border: 1px solid rgba(33,212,253,.3); }
.pdp-fgroup { font: 700 12px "Inter"; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; display: flex; align-items: center; gap: 9px; }
.pdp-fgroup::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px var(--accent); }
.pdp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pdp-feat-card { display: flex; gap: 12px; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pdp-feat-card:hover { transform: translateY(-3px); border-color: rgba(124,92,255,.45); box-shadow: 0 14px 30px -18px rgba(124,92,255,.6); }
.pdp-feat-card__ic { font-size: 22px; line-height: 1; flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--grad-soft); border: 1px solid rgba(124,92,255,.25); }
.pdp-feat-card__t { font: 700 14.5px "Inter"; color: var(--text); }
.pdp-feat-card__d { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
@media (max-width: 860px) { .pdp-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pdp-feats { grid-template-columns: 1fr; } }

/* admin: features editor */
.fx { display: flex; flex-direction: column; gap: 14px; }
.fx-meta { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.fx-groups { display: flex; flex-direction: column; gap: 12px; }
.fx-group { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fx-group__head { display: flex; gap: 8px; align-items: center; }
.fx-group__act, .fx-item__act { display: flex; gap: 6px; flex-shrink: 0; }
.fx-items { display: flex; flex-direction: column; gap: 8px; }
.fx-item { display: flex; gap: 8px; align-items: center; }
.fx-in { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; color: var(--text); font: 500 13.5px "Inter"; outline: 0; transition: border-color .15s; }
.fx-in:focus { border-color: var(--accent); }
.fx-gname { flex: 1 1 auto; font-weight: 700; }
.fx-ic { flex: 0 0 52px; text-align: center; }
.fx-t { flex: 1 1 160px; min-width: 0; }
.fx-d { flex: 2 1 200px; min-width: 0; }
.fx-group__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-bottom { display: flex; gap: 10px; flex-wrap: wrap; }
.fx-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-tpl { display: flex; gap: 11px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer; transition: .15s; }
.fx-tpl:hover { border-color: var(--accent); transform: translateY(-2px); }
.fx-tpl__ic { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--grad-soft); flex-shrink: 0; }
.fx-tpl__b { display: flex; flex-direction: column; gap: 2px; }
.fx-tpl__b b { font-size: 13.5px; }
.fx-tpl__b i { font-size: 12px; color: var(--muted); font-style: normal; }
@media (max-width: 600px) {
  .fx-meta { grid-template-columns: 1fr; }
  .fx-item { flex-wrap: wrap; }
  .fx-t, .fx-d { flex: 1 1 100%; }
  .fx-tpls { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pdp-reqs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pdp-reqs { grid-template-columns: 1fr; }
  .pdp-tabs { margin-top: 24px; }
}

/* ---- admin: gallery preview thumbs ---- */
.galprev { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.galprev:empty { display: none; }
.galthumb { position: relative; width: 76px; height: 56px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.galthumb img { width: 100%; height: 100%; object-fit: cover; }
.galthumb__x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 6px; border: 0; background: rgba(7,8,12,.7); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
.galthumb__x:hover { background: var(--bad); }

/* ---- admin: full-page product editor ---- */
.pe { max-width: 860px; }
.pe-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.pe-top__title { flex: 1 1 auto; margin: 0; }
.pe-form { display: flex; flex-direction: column; gap: 18px; }
.pe-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@media (max-width: 560px) {
  .pe-top { gap: 10px; }
  .pe-top__title { flex: 1 1 100%; order: 3; font-size: 20px; }
  .pe-actions { flex-direction: column-reverse; }
  .pe-actions .btn { width: 100%; justify-content: center; }
}

/* ---- admin: tabbed product form ---- */
.modal__body--tabs { max-width: 720px; }
.aform-tabs { display: flex; gap: 6px; margin-bottom: 16px; padding: 5px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-2); overflow-x: auto; }
.aform-tab { flex: 0 0 auto; padding: 9px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: 600 13px "Inter"; cursor: pointer; white-space: nowrap; transition: .16s; }
.aform-tab:hover { color: var(--text); }
.aform-tab.is-active { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124,92,255,.4); }
.aform-panel { display: none; flex-direction: column; gap: 14px; }
.aform-panel.is-active { display: flex; }

@media (max-width: 920px) {
  .pdp__grid { grid-template-columns: 1fr; gap: 20px; }
  .pdp__media, .pdp__buy { position: static; top: auto; }
}
@media (max-width: 560px) {
  .pdp__title { font-size: 21px; }
  .pdp__price { font-size: 25px; }
  .pdp__buy { padding: 18px 16px 20px; border-radius: 16px; }
  .pdp-plans { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 200px; }
  .pdp-thumb { width: 66px; height: 48px; }
}

/* ============================================================
   MOBILE POLISH (overrides; loaded last so it wins)
   ============================================================ */
@media (max-width: 900px) {
  .container { width: 92%; }
  .section { padding: 22px 0; }
  .section-title { font-size: 22px; }
}

/* ---- Header / mobile menu ---- */
@media (max-width: 860px) {
  .header__inner { min-height: 62px; }
  .brand { font-size: 18px; gap: 11px; }
  .brand__mark { width: 38px; height: 38px; border-radius: 12px; }
  .header.nav-open { box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); background: rgba(7,8,12,.98); }
  .header.nav-open .header__actions { gap: 10px; padding: 10px 0 16px; }

  /* currency + language at the top of the menu, full width */
  .header.nav-open .intl { width: 100%; order: -1; }
  .header.nav-open .intl__btn { width: 100%; justify-content: center; height: 48px; }
  /* the dropdown flows in-line (not floating) so it never overlaps the buttons below */
  .header.nav-open .intl__menu {
    position: static; width: 100%; margin-top: 8px; box-shadow: none;
    animation: none; background: var(--bg-2);
  }
  .header.nav-open .intl__opt { flex: 1 1 calc(33.333% - 4px); text-align: center; padding: 11px 8px; }

  .header.nav-open .btn { height: 48px; flex: 1 1 calc(50% - 5px); }
  .header.nav-open .user-chip { height: 48px; flex: 1 1 100%; justify-content: center; }
}

/* ---- Hero ---- */
@media (max-width: 980px) {
  .hero.container { grid-template-columns: 1fr; gap: 18px; }
  .hero__visual { min-height: 320px; }
  .hero__orb { width: 220px; height: 220px; }
  .hero__ring--1 { width: 300px; height: 300px; }
  .hero__ring--2 { width: 380px; height: 380px; }
  .hero__chip { font-size: 12px; padding: 8px 12px; }
}
@media (max-width: 760px) {
  .hero { padding: 28px 0 18px; }
  .hero__visual { display: none; }            /* mobile: pure clean hero, no orb noise */
  .hero__eyebrow { font-size: 11px; padding: 6px 12px; letter-spacing: .03em; }
  .hero__title { font-size: clamp(28px, 8.5vw, 40px); line-height: 1.08; }
  .hero__sub { font-size: 15px; line-height: 1.55; margin-top: 14px; }
  .hero__cta { gap: 10px; margin-top: 22px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero__stats { gap: 18px; margin-top: 24px; padding-top: 18px; justify-content: space-between; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }
}

/* ---- Tiles & cards grid ---- */
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__title { font-size: 14px; }
  .card__desc { font-size: 12px; -webkit-line-clamp: 2; }
  .card__body { padding: 11px 12px 13px; gap: 6px; }
  .price__now { font-size: 17px; }
  .catalog__head { gap: 12px; }
  .search { width: 100%; }
}
@media (max-width: 380px) { .grid, .tiles { grid-template-columns: 1fr; } }

/* ---- Product modal as bottom sheet on phones ---- */
@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__card { width: 100%; max-height: 94vh; overflow-y: auto; border-radius: 20px 20px 0 0; animation: sheetUp .28s cubic-bezier(.22,.61,.36,1) both; }
  .modal__media { aspect-ratio: 16 / 9; }
  .modal__body { padding: 18px 16px 24px; }
  .modal__title { font-size: 20px; }
  .modal__row { flex-direction: column; align-items: stretch; gap: 12px; }
  .modal__row .btn { width: 100%; justify-content: center; }
  .plan-opt { flex-basis: calc(50% - 5px); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .feat { grid-template-columns: 1fr; }
  .modal__close { top: 10px; right: 10px; }
}
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* admin form modal stays centered + scrollable on mobile */
@media (max-width: 640px) {
  .modal__body--form { max-height: 92vh; }
}

/* ---- Account ---- */
@media (max-width: 600px) {
  .acc__profile { gap: 14px; padding: 18px; }
  .acc__avatar { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
  .acc__balance { text-align: left; padding: 0; width: 100%; order: 3; }
  .order { gap: 12px; }
  .order__img { width: 60px; height: 60px; }
  .order__top { flex-direction: column; gap: 4px; }
}

/* ---- Admin ---- */
@media (max-width: 860px) {
  .admin__layout { grid-template-columns: 1fr; }
  .admin__side { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; position: static; -webkit-overflow-scrolling: touch; }
  .admin__tab { flex: 0 0 auto; white-space: nowrap; }
  .admin__head { flex-direction: column; align-items: flex-start; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .modal__body--form { padding: 20px 16px; }
  .sup-conv__prev { max-width: 60vw; }
  .form-section { padding: 14px 13px 15px; border-radius: 14px; }
  .price-input { gap: 8px; }
  .price-input input[type="number"] { flex: 1 1 100%; }
  .price-input select { flex: 1 1 auto; }
  .price-input .btn { flex: 1 1 100%; }
}

/* ---- Footer ---- */
@media (max-width: 720px) {
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__cols { gap: 34px; width: 100%; }
  .footer__col { flex: 1 1 40%; }
}

/* ---- Support chat full-width sheet ---- */
@media (max-width: 560px) {
  .sup-panel { left: 10px; right: 10px; width: auto; bottom: 84px; height: min(70vh, 540px); }
  .sup-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* Bigger tap targets + no accidental zoom on inputs */
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 42px; }
}


/* ============ Monobank payment modal ============ */
.mono__sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.mono__amt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 12px; }
.mono__amt > span { font-size: 12.5px; color: var(--muted-2); }
.mono__amt > b { font-family: "Sora"; font-size: 30px; font-weight: 800; color: var(--text); }
.mono__warn { font-size: 12.5px; color: var(--warn); background: rgba(247,183,51,.08); border: 1px solid rgba(247,183,51,.25); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; line-height: 1.5; }
.mono__jar { width: 100%; justify-content: center; margin-bottom: 10px; }
.mono__card { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mono__status { display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; padding: 14px; border-radius: 12px; background: rgba(124,92,255,.06); border: 1px solid rgba(124,92,255,.2); font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.acc__balance + .btn { white-space: nowrap; }

.mono__cancel { display: block; margin: 12px auto 0; }
#monoTimer { color: var(--accent-2); }

/* ============ Payment page ============ */
.pay { max-width: 560px; margin: 0 auto; }
.paycard { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.pay__title { font-family: "Sora"; font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.pay--ok { text-align: center; }
.pay__ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; font-size: 32px; color: #0a0a12; background: var(--good); font-weight: 800; box-shadow: 0 10px 30px -10px var(--good); }
.pay__deliv { margin: 14px 0 18px; color: var(--muted); }
.pay__deliv .keybox { justify-content: center; }


/* ============ Account: security & notifications ============ */
.acc__security { margin-top: 36px; }
.sec__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sec-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.sec-card__head { display: flex; flex-direction: column; gap: 4px; }
.sec-card__head b { font-family: "Sora"; font-size: 15.5px; }
.sec-card__sub { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sec-form { display: flex; flex-direction: column; gap: 11px; }
.sec-field { display: flex; flex-direction: column; gap: 6px; }
.sec-field span { font-size: 12.5px; color: var(--muted-2); }
.sec-field input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font: inherit;
}
.sec-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.sec-status { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; align-self: flex-start; }
.sec-status--on  { color: var(--good); background: rgba(45,212,167,.12); border: 1px solid rgba(45,212,167,.3); }
.sec-status--off { color: var(--muted-2); background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.sec-hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.sec-qr { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 12px; }
.sec-qr img { width: 200px; height: 200px; }
.sec-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sec-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.sec-toggle span { font-size: 14px; }


/* ============ Admin: products UI (filters + list + per-row menu) ============ */
.admin__panel--prods { padding-bottom: 8px; }
.prod-filter {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 18px 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.prod-filter::-webkit-scrollbar { height: 6px; }
.prod-filter::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.prod-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.prod-chip b { font-weight: 700; color: var(--muted-2); font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.04); }
.prod-chip:hover { color: var(--text); border-color: #2f3346; }
.prod-chip.is-active { color: #0a0a12; background: var(--grad); border-color: transparent; }
.prod-chip.is-active b { color: rgba(0,0,0,.7); background: rgba(0,0,0,.12); }

.prod-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 4px 18px 14px; border-bottom: 1px solid var(--border-soft);
}
.prod-toolbar__search {
  display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 38px; flex: 1 1 220px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
}
.prod-toolbar__search svg { color: var(--muted-2); flex-shrink: 0; }
.prod-toolbar__search input { background: none; border: 0; outline: 0; color: var(--text); flex: 1; font-size: 13.5px; }
.prod-sort {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font: inherit; padding: 0 12px; height: 38px; font-size: 13px;
}

.prod-list { padding: 6px 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.prod-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.015);
  border: 1px solid transparent; transition: .15s;
}
.prod-row:hover { background: rgba(124,92,255,.05); border-color: var(--border-soft); }
.prod-row.is-hidden { opacity: .55; }
.prod-row__main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.prod-row__img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.prod-row__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prod-row__title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.prod-row__title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-tag { color: #fbbf24; font-size: 14px; }
.hide-tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255,84,112,.12); color: var(--bad); letter-spacing: .03em; text-transform: uppercase; }
.prod-row__meta { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 12.5px; }
.prod-row__meta .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--good { background: var(--good); }
.dot--warn { background: var(--warn); }
.dot--bad  { background: var(--bad); }
.dot--new  { background: var(--accent-2); }
.prod-row__plans { display: flex; gap: 5px; margin-top: 2px; }
.pdot {
  display: inline-flex; align-items: center; padding: 2px 8px 2px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; gap: 5px; line-height: 1;
}
.pdot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pdot--ok   { color: var(--good); background: rgba(45,212,167,.1);  border: 1px solid rgba(45,212,167,.25); }
.pdot--bad  { color: var(--bad);  background: rgba(255,84,112,.1);  border: 1px solid rgba(255,84,112,.25); }
.pdot--mute { color: var(--muted-2); background: rgba(255,255,255,.03); border: 1px solid var(--border); }

.prod-row__side { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.prod-row__price { font-family: "Sora"; font-weight: 700; font-size: 15px; }
.prod-row__stock { font-size: 12px; color: var(--muted-2); }
.prod-row__stock.is-low { color: var(--warn); }
.prod-row__stock.is-out { color: var(--bad); font-weight: 700; }

.prod-row__act { display: flex; gap: 6px; align-items: center; position: relative; }
.prod-menu-btn { font-size: 18px; line-height: 1; }
.prod-menu {
  position: absolute; top: 100%; right: 0; margin-top: 6px; z-index: 30;
  min-width: 170px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
}
.prod-menu button {
  display: block; width: 100%; padding: 9px 12px; text-align: left; background: none; border: 0;
  border-radius: 8px; color: var(--text); cursor: pointer; font: 500 13.5px "Inter";
}
.prod-menu button:hover { background: rgba(255,255,255,.05); }
.prod-menu__bad { color: var(--bad) !important; }

@media (max-width: 720px) {
  .prod-toolbar { padding: 4px 12px 12px; gap: 8px; }
  .prod-toolbar__search { flex: 1 1 100%; }
  .prod-sort, .prod-toolbar .btn { flex: 1 1 calc(50% - 4px); }
  .prod-filter { padding: 4px 12px 10px; }
  .prod-row { grid-template-columns: 1fr auto; padding: 10px 12px; gap: 10px; }
  .prod-row__img { width: 40px; height: 40px; }
  .prod-row__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; padding-top: 4px; border-top: 1px dashed var(--border-soft); }
  .prod-row__act { grid-column: 1 / -1; justify-content: flex-end; }
  .prod-menu { min-width: 140px; }
}

/* ============ Admin: dashboard ============ */
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.dash-card {
  padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.dash-card span { font-size: 12.5px; color: var(--muted-2); letter-spacing: .02em; text-transform: uppercase; }
.dash-card b { font-family: "Sora"; font-size: 26px; font-weight: 800; }
.dash-card i { font-size: 12.5px; color: var(--muted); font-style: normal; }
.dash-card--good i { color: var(--good); }
.dash-card--warn i { color: var(--warn); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-list { padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.dash-item {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: .15s;
}
.dash-item:hover { background: rgba(124,92,255,.05); border-color: var(--border-soft); }
.dash-item__img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.dash-item__b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-item__b b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-item__m { font-size: 12px; color: var(--muted-2); display: flex; gap: 8px; }
.dash-item__p { font-family: "Sora"; font-weight: 700; font-size: 14px; text-align: right; }
.dash-pill { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.dash-pill--ok { background: rgba(45,212,167,.12); color: var(--good); }
.num-warn { color: var(--warn); }
.num-pos  { color: var(--good); }
.num-neg  { color: var(--bad); }
.dash-item--low.is-critical { background: rgba(255,84,112,.06); border-color: rgba(255,84,112,.25); }

@media (max-width: 980px) {
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .dash-card b { font-size: 22px; }
  .dash-item { grid-template-columns: auto 1fr auto; }
  .dash-item__p { grid-column: 2 / 3; text-align: left; }
  .dash-item .btn { grid-column: 1 / -1; }
}


.admin__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc__cur { font-size: 12.5px; color: var(--muted-2); }


/* Admin users — inline settings badges + ticket counter */
.ubadge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font: 700 10.5px/1.4 "Inter"; letter-spacing: .04em; margin-right: 4px;
}
.ubadge--ok   { color: var(--good);    background: rgba(45,212,167,.12); border: 1px solid rgba(45,212,167,.28); }
.ubadge--tg   { color: #29a9eb;        background: rgba(41,169,235,.12); border: 1px solid rgba(41,169,235,.3); }
.ubadge--mute { color: var(--muted-2); background: rgba(255,255,255,.04); border: 1px solid var(--border); }

.utickets {
  display: inline-block; min-width: 26px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255,84,112,.12); color: var(--bad); font-weight: 800; font-size: 12px; text-align: center;
}
.utickets--zero { background: rgba(255,255,255,.03); color: var(--muted-2); }


/* New status palette (Safe / Update / Risk / Ban) — keeps old keys (good/warn/bad/new) as aliases. */
.dot--safe   { background: var(--good); }
.dot--update { background: var(--warn); }
.dot--risk   { background: #ff8a3c; }
.dot--ban    { background: var(--bad); }
.badge--safe   { color: var(--good); background: rgba(45,212,167,.12); border: 1px solid rgba(45,212,167,.3); }
.badge--update { color: var(--warn); background: rgba(247,183,51,.12); border: 1px solid rgba(247,183,51,.3); }
.badge--risk   { color: #ff8a3c; background: rgba(255,138,60,.12); border: 1px solid rgba(255,138,60,.35); }
.badge--ban    { color: var(--bad); background: rgba(255,84,112,.12); border: 1px solid rgba(255,84,112,.3); }

/* Menu opens upward when there's not enough room below the trigger */
.prod-menu--up { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 8px; }

/* ===== Admin products: better mobile layout ===== */
@media (max-width: 720px) {
  .prod-toolbar { gap: 10px; padding: 8px 12px 14px; }
  .prod-toolbar__search { height: 44px; flex: 1 1 100%; }
  .prod-toolbar__search input { font-size: 15px; }
  .prod-sort { height: 44px; flex: 1 1 100%; font-size: 14px; }
  .prod-toolbar .btn { flex: 1 1 calc(50% - 5px); padding: 12px 14px; font-size: 14px; }
  .prod-filter { padding: 4px 12px 12px; gap: 7px; }
  .prod-chip { padding: 9px 14px; font-size: 13.5px; }

  .prod-list { padding: 6px 10px 16px; gap: 10px; }
  .prod-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "img info"
      "side side"
      "act  act";
    gap: 10px 12px; padding: 14px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  }
  .prod-row:hover { background: var(--panel); }
  .prod-row__main { grid-area: img / img / info / info; display: contents; }
  .prod-row__img { grid-area: img; width: 56px; height: 56px; border-radius: 10px; }
  .prod-row__info { grid-area: info; gap: 6px; }
  .prod-row__title { font-size: 15px; }
  .prod-row__title b { font-size: 15px; }
  .prod-row__meta { font-size: 12.5px; gap: 8px; }
  .prod-row__plans { flex-wrap: wrap; gap: 6px; }
  .pdot { padding: 4px 9px 4px 7px; font-size: 11px; }

  .prod-row__side {
    grid-area: side; display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0 0; border-top: 1px dashed var(--border-soft); text-align: left;
  }
  .prod-row__price { font-size: 18px; }
  .prod-row__stock { font-size: 13px; }
  .prod-row__stock.is-out, .prod-row__stock.is-low { font-weight: 700; }

  .prod-row__act { grid-area: act; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .prod-row__act .mini {
    height: 42px; padding: 0 18px; min-width: 0; font-size: 14px; font-weight: 600;
    border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad-soft); border: 1px solid rgba(124,92,255,.3); color: var(--text);
  }
  .prod-row__act .prod-menu-btn { width: 42px; padding: 0; font-size: 22px; }
  .prod-menu { min-width: 200px; right: 0; }
  .prod-menu button { padding: 12px 14px; font-size: 14px; }
}


/* Edit button: icon-only on desktop, icon + label on mobile */
.mini__lbl { display: none; }
@media (max-width: 720px) {
  .mini__lbl { display: inline; }
}


/* Mobile bottom-sheet for the row action menu — eliminates overflow at the page bottom */
.prod-menu__backdrop {
  position: fixed; inset: 0; background: rgba(4,5,9,.65); backdrop-filter: blur(4px);
  z-index: 9998; animation: fadeIn .18s ease both;
}
.prod-menu.prod-menu--sheet {
  position: fixed !important; top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
  margin: 0 !important; min-width: 0 !important; max-width: none;
  border-radius: 18px 18px 0 0; padding: 10px 12px calc(env(safe-area-inset-bottom, 8px) + 14px);
  background: var(--panel-2); border: 1px solid var(--border); border-bottom: none;
  box-shadow: 0 -20px 50px -10px rgba(0,0,0,.7);
  z-index: 9999; animation: sheetUp .22s cubic-bezier(.2,.8,.2,1) both;
  display: flex; flex-direction: column;
}
.prod-menu.prod-menu--sheet::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 4px;
  background: var(--border); margin: 4px auto 10px;
}
.prod-menu.prod-menu--sheet button {
  padding: 16px 14px; font-size: 15px; border-radius: 12px;
  text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; font: 500 15px "Inter";
}
.prod-menu.prod-menu--sheet button:hover { background: rgba(255,255,255,.05); }
.prod-menu.prod-menu--sheet button.prod-menu__bad { color: var(--bad); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }


/* Admin broadcast panel */
.bcast { padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.bcast textarea {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text); font: 14px/1.5 "Inter", sans-serif; padding: 12px 14px; resize: vertical; min-height: 130px;
}
.bcast textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.bcast-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bcast-list li { padding: 12px 14px; border-radius: 11px; background: rgba(124,92,255,.06); border: 1px solid var(--border-soft); color: var(--text); font-size: 13.5px; line-height: 1.6; }
.bcast-list code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }


/* ============ Spin (wheel of fortune) ============ */
.spin { padding: 30px 0 60px; }
.spin__card {
  max-width: 600px; margin: 0 auto; padding: 30px 24px 36px;
  background: linear-gradient(180deg, rgba(15,16,28,.95), rgba(8,9,15,.95));
  border: 1px solid rgba(255,216,102,.18); border-radius: 24px;
  box-shadow: 0 40px 100px -30px rgba(124,92,255,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
  text-align: center;
  position: relative; overflow: hidden;
}
.spin__card::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(124,92,255,.18), transparent, rgba(33,212,253,.18), transparent);
  animation: spinHalo 16s linear infinite;
  pointer-events: none; z-index: 0;
}
.spin__card > * { position: relative; z-index: 1; }
@keyframes spinHalo { to { transform: rotate(360deg); } }

.spin__sub { color: var(--muted); margin: 10px 0 26px; font-size: 14.5px; }
.spin__sub b { color: #ffd866; }

.spin__wheel-wrap {
  position: relative; display: inline-block; padding: 22px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124,92,255,.25), rgba(0,0,0,0) 60%);
}
.spin__wheel-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,216,102,.55), transparent, rgba(33,212,253,.55), transparent);
  filter: blur(22px); opacity: .9; z-index: 0;
  animation: ringRotate 6s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.spin__wheel {
  display: block; position: relative; z-index: 1;
  filter: drop-shadow(0 22px 50px rgba(124,92,255,.5));
  transition: transform 0s;
  transform: rotate(0deg);
}
.spin__wheel .spin__lamp {
  animation: lampBlink 1.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px #ffd866);
}
@keyframes lampBlink { from { opacity: .35; } to { opacity: 1; } }
.spin__card.is-spinning .spin__wheel .spin__lamp { animation-duration: 0.4s; }
.spin__card.is-celebrating .spin__wheel .spin__lamp { animation-duration: 0.25s; }

.spin__pointer {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 26px solid #ffd866;
  filter: drop-shadow(0 4px 16px rgba(255,216,102,.85));
  z-index: 3;
}
.spin__card.is-celebrating .spin__pointer { animation: pointerBounce .35s ease-out 6 alternate; }
@keyframes pointerBounce { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(6px); } }

.spin__cta { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 0; }
.spin__cta .btn { width: 100%; justify-content: center; }
.spin__blockers { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.spin__blk {
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px;
  background: rgba(255,84,112,.08); border: 1px solid rgba(255,84,112,.25); color: var(--bad);
}
.spin__result { margin-top: 22px; }
.spin__prize {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 20px 36px; border-radius: 18px;
  background: linear-gradient(135deg, #ffd866 0%, #ff8a3c 50%, #ff5470 100%);
  color: #1a0f00;
  box-shadow: 0 22px 50px -15px rgba(255,138,60,.7), 0 0 0 1px rgba(255,255,255,.2) inset;
  animation: prizePop .5s cubic-bezier(.2,1.6,.3,1) both;
}
.spin__prize b { font-family: "Sora"; font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.spin__prize span { font-size: 12.5px; opacity: .85; font-weight: 600; }
@keyframes prizePop { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
.spin__bal { color: var(--muted); margin-top: 14px; }
.spin__bal b { color: var(--text); }

/* Confetti burst */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti__bit {
  position: absolute; top: 38%;
  width: 10px; height: 14px; border-radius: 2px;
  transform: translate(-50%, -50%);
  animation: confettiFall var(--dur, 2.5s) ease-in var(--delay, 0s) forwards;
  opacity: 0;
}
@keyframes confettiFall {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); }
}

@media (max-width: 540px) {
  .spin__card { padding: 22px 14px 28px; border-radius: 20px; }
  .spin__wheel { width: 280px !important; height: 280px !important; }
  .spin__wheel-wrap { padding: 14px; }
  .spin__prize b { font-size: 32px; }
}


/* Requirement card: single-line fact (no value separator written by admin) */
.pdp-req--solo .pdp-req__label { font-size: 14px; color: var(--text); font-weight: 600; padding: 4px 0; }


.req-tpls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 6px; }


/* Header: spin icon button with optional pulsing badge */
.icon-btn--spin {
  width: 46px; height: 46px; padding: 0; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(33,212,253,.16));
  border-color: rgba(255,216,102,.35);
  box-shadow: 0 10px 26px -10px rgba(124,92,255,.6), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.icon-btn--spin::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,216,102,.55) 90deg, transparent 180deg, rgba(124,92,255,.5) 270deg, transparent 360deg);
  animation: brandSpin 5s linear infinite; opacity: .7; pointer-events: none;
}
.icon-btn--spin::after {
  content: ""; position: absolute; inset: 2px; border-radius: 11px;
  background: radial-gradient(circle at 30% 25%, rgba(124,92,255,.55), rgba(10,12,22,.9) 75%);
  pointer-events: none;
}
.icon-btn--spin img {
  position: relative; z-index: 2;
  width: 76%; height: 76%; margin: 12% auto; display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(255,216,102,.6));
}
.icon-btn--spin .icon-btn__badge { background: var(--grad); color: #0a0a12; font-weight: 800; z-index: 3; }
.icon-btn--pulse { animation: spinPulse 1.8s ease-in-out infinite; }
@keyframes spinPulse {
  0%, 100% { box-shadow: 0 10px 26px -10px rgba(124,92,255,.6), 0 0 0 0 rgba(255,216,102,.55); }
  50%      { box-shadow: 0 10px 26px -10px rgba(124,92,255,.6), 0 0 0 10px rgba(255,216,102,0); }
}

/* Header: labeled "Колесо удачи" button (replaces the tiny icon-only variant). */
.btn--spin {
  position: relative; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 8px 12px;
  height: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(33,212,253,.08));
  border: 1px solid rgba(124,92,255,.25);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}

.btn--spin::before {
  content: ""; 
  position: absolute; 
  top: -50%; 
  left: -10%; 
  right: -10%; 
  bottom: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,216,102,.3) 90deg, transparent 180deg, rgba(124,92,255,.3) 270deg, transparent 360deg);
  animation: brandSpin 8s linear infinite; 
  opacity: .4; 
  pointer-events: none;
}

.btn--spin > * { 
  position: relative; 
  z-index: 2; 
}

.btn-spin__icon {
  width: 20px; 
  height: 20px; 
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255,216,102,.5));
}

.btn-spin__label { 
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.btn-spin__badge {
  position: absolute; 
  top: -6px; 
  right: -6px; 
  z-index: 10;
  min-width: 16px; 
  height: 16px; 
  padding: 0 4px; 
  border-radius: 8px;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  font-size: 10px; 
  font-weight: 700; 
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-3) 0%, #ff6b7d 100%);
  box-shadow: 
    0 2px 8px -2px rgba(255, 77, 103, 0.5),
    0 0 0 2px var(--bg);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.15);
    box-shadow: 
      0 4px 12px -2px rgba(255, 77, 103, 0.7),
      0 0 0 2px var(--bg),
      0 0 8px rgba(255, 77, 103, 0.3);
  }
}

.btn--spin:hover {
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(33,212,253,.12));
  border-color: rgba(124,92,255,.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(124,92,255,.25);
}

.btn--spin.icon-btn--pulse { 
  animation: spinPulse 1.8s ease-in-out infinite; 
}

@media (max-width: 860px) {
  .header.nav-open .btn--spin {
    flex: 1 1 100%; 
    justify-content: center; 
    height: 42px;
    padding: 10px 16px;
  }
  
  .btn-spin__icon { 
    width: 22px; 
    height: 22px; 
  }
  
  .btn-spin__label {
    font-size: 14px;
  }
}


/* Product features — clean list view (replaces the card grid) */
.pdp-flist { list-style: none; padding: 0; margin: 8px 0 18px; display: flex; flex-direction: column; gap: 2px; }
.pdp-flist__row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px; border-radius: 11px; transition: background .15s ease;
}
.pdp-flist__row:hover { background: rgba(124,92,255,.06); }
.pdp-flist__check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: #0a0a12; background: var(--grad);
  box-shadow: 0 4px 10px -4px rgba(124,92,255,.55);
  margin-top: 1px;
}
.pdp-flist__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pdp-flist__text b { font-weight: 600; color: var(--text); font-size: 14.5px; line-height: 1.45; }
.pdp-flist__d { color: var(--muted); font-size: 13px; line-height: 1.5; }


/* Out-of-stock catalog card */
.card--out { opacity: .72; }
.card--out .card__img { filter: grayscale(.55) brightness(.85); }
.card--out .card__buy { background: rgba(255,84,112,.1); border-color: rgba(255,84,112,.35); color: var(--bad); }
.card--out:hover .card__buy { background: rgba(255,84,112,.18); color: var(--bad); }


.spin__countdown {
  margin-top: 16px; padding: 14px 18px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(124,92,255,.1), rgba(33,212,253,.06));
  border: 1px solid rgba(124,92,255,.25); color: var(--muted);
}
.spin__countdown b {
  display: inline-block; font-family: "Sora"; font-size: 22px; font-weight: 800;
  margin-left: 8px; color: #ffd866; letter-spacing: .04em;
  text-shadow: 0 0 14px rgba(255,216,102,.45);
}


/* Featured product crown */
.card__crown {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd866, #ff8a3c);
  color: #1a0f00;
  box-shadow: 0 8px 18px -6px rgba(255,138,60,.8);
  animation: crownFloat 3.6s ease-in-out infinite;
}
@keyframes crownFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-2px) rotate(4deg); } }
.card--featured { border-color: rgba(255,216,102,.35); }
.card--featured:hover { box-shadow: 0 22px 50px -22px rgba(255,138,60,.55), 0 8px 18px -10px rgba(0,0,0,.6); }


/* ============ Tickets ============ */
.ticket-row { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px; transition: .15s; }
.ticket-row:hover { border-color: rgba(124,92,255,.5); transform: translateY(-1px); }
.order__chip--closed { background: rgba(255,80,80,.12); color: #ff8a8a; border-color: rgba(255,80,80,.25); }
.order__chip--new { background: var(--grad); color: #0a0a12; font-weight: 800; }

.tkthread { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 12px; max-height: 50vh; overflow-y: auto; }
.tkb { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-soft); }
.tkb__h { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tkb__h b { color: var(--text); font-weight: 700; }
.tkb__body { font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.tkb--user { background: rgba(124,92,255,.08); border-color: rgba(124,92,255,.25); align-self: flex-end; max-width: 90%; }
.tkb--staff { background: rgba(33,212,253,.08); border-color: rgba(33,212,253,.25); align-self: flex-start; max-width: 90%; }
.tkb--sys { background: rgba(255,255,255,.03); text-align: center; font-style: italic; color: var(--muted); align-self: center; }

.tkreply { margin-top: 14px; }
.tkreply textarea {
  width: 100%; resize: vertical; min-height: 70px; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 10px;
  color: var(--text); font: inherit;
}
.tkreply textarea:focus { outline: none; border-color: rgba(124,92,255,.6); }


/* ============ Admin tickets layout ============ */
.tklayout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; min-height: 60vh; }
.tklist { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; overflow: auto; max-height: 72vh; }
.tkpane { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px; max-height: 72vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.tkpane__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.adm-select, .adm-input {
  background: var(--bg-2); border: 1px solid var(--border-soft); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font: inherit;
}
.adm-input:focus, .adm-select:focus { outline: none; border-color: rgba(124,92,255,.6); }
@media (max-width: 760px) {
  .tklayout { grid-template-columns: 1fr; }
}


/* ============ Terms of Service page ============ */
.terms-page {
  max-width: 820px; margin: 0 auto; padding: 48px 0 80px;
}
.terms-page__hero {
  text-align: center; margin-bottom: 42px;
}
.terms-page__badge {
  display: inline-block; padding: 5px 14px; border-radius: 30px;
  background: rgba(124,92,255,.15); border: 1px solid rgba(124,92,255,.35);
  color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.terms-page__hero h1 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 10px;
}
.terms-page__hero p {
  color: var(--muted); font-size: 14.5px;
}
.terms-section {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 16px;
}
.terms-section h2 {
  font-size: 17px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px; color: var(--text);
}
.terms-section h2 .tsnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700;
  background: rgba(124,92,255,.2); color: var(--accent); flex-shrink: 0;
}
.terms-section p, .terms-section li {
  font-size: 14px; color: var(--muted); line-height: 1.72; margin: 0 0 8px;
}
.terms-section ul, .terms-section ol {
  padding-left: 18px; margin: 0 0 8px;
}
.terms-section li { margin-bottom: 5px; }
.terms-section strong { color: var(--text); font-weight: 600; }
.terms-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.terms-section a:hover { opacity: .8; }
.terms-page__updated {
  text-align: center; color: var(--muted-2); font-size: 12.5px; margin-top: 32px;
}
.terms-page__back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 13.5px; margin-bottom: 28px;
  transition: color .15s;
}
.terms-page__back:hover { color: var(--text); }

/* ============ Premium ToS consent checkbox ============ */
.tos-consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, 
    var(--panel) 0%, 
    rgba(18,20,29,.98) 100%
  );
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 
    0 4px 16px -8px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.tos-consent::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(124,92,255,.2) 0%, 
    rgba(33,212,253,.15) 50%,
    rgba(124,92,255,.1) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}

.tos-consent:hover {
  background: linear-gradient(135deg, 
    var(--panel-2) 0%, 
    rgba(22,24,35,.98) 100%
  );
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px -8px rgba(124,92,255,.25),
    0 4px 12px -4px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.tos-consent:hover::before {
  opacity: 1;
}

.tos-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(124,92,255,.3));
  transition: all .2s ease;
}

.tos-consent input[type="checkbox"]:checked {
  filter: drop-shadow(0 2px 8px rgba(124,92,255,.6));
}

.tos-consent__label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
  transition: color .2s ease;
}

.tos-consent:hover .tos-consent__label {
  color: var(--text);
}

.tos-consent__label a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all .25s ease;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tos-consent__label a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  border-radius: 1px;
  transition: width .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(33,212,253,.4);
}

.tos-consent__label a:hover::after {
  width: 100%;
}

/* Focus state */
.tos-consent:focus-within {
  border-color: rgba(124,92,255,.4);
  box-shadow: 
    0 0 0 3px rgba(124,92,255,.1),
    0 8px 24px -8px rgba(124,92,255,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.tos-consent:focus-within::before {
  opacity: 0.7;
}

/* Error state */
.tos-consent[style*="outline"] {
  border-color: var(--bad) !important;
  background: linear-gradient(135deg, 
    rgba(255,84,112,.08) 0%, 
    var(--panel) 100%
  ) !important;
  animation: luxuryShake 0.6s ease-in-out;
}

.tos-consent[style*="outline"]::before {
  background: linear-gradient(135deg, 
    rgba(255,84,112,.4) 0%, 
    rgba(255,84,112,.2) 100%
  ) !important;
  opacity: 1 !important;
}

@keyframes luxuryShake {
  0%, 100% { transform: translateY(-2px) translateX(0); }
  25% { transform: translateY(-2px) translateX(-3px); }
  75% { transform: translateY(-2px) translateX(3px); }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .tos-consent {
    padding: 16px 18px;
    gap: 12px;
    margin-top: 18px;
  }
  
  .tos-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
  
  .tos-consent__label {
    font-size: 13px;
  }
}


/* ============ Contacts page ============ */
.contacts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 20px 22px;
  text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s;
}
.contact-card:hover { border-color: rgba(124,92,255,.5); transform: translateY(-2px); }
.contact-card--ticket { cursor: default; }
.contact-card--ticket:hover { transform: none; border-color: var(--border-soft); }
.contact-card__icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-card__icon--tg { background: rgba(33,212,253,.12); color: #21d4fd; }
.contact-card__icon--chan { background: rgba(124,92,255,.12); color: var(--accent); }
.contact-card__icon--ticket { background: rgba(45,212,167,.12); color: var(--good); }
.contact-card__body h3 { font-size: 15px; font-weight: 700; margin: 0 0 5px; }
.contact-card__body p { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.contact-card__link {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
}
.contact-card__btn { margin-top: 2px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-radius: 10px; overflow: hidden; }
.faq-q {
  padding: 13px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--panel-2); color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 18px; color: var(--accent); font-weight: 400; }
.faq-item.is-open .faq-q::after { content: '−'; }
.faq-a {
  display: none; padding: 12px 16px; font-size: 13.5px; color: var(--muted);
  line-height: 1.65; background: var(--bg-2); border-top: 1px solid var(--border-soft);
}
.faq-a a { color: var(--accent); text-decoration: underline; }
.faq-item.is-open .faq-a { display: block; }

/* ============ Pricing page ============ */
.pricing-wrap { display: flex; flex-direction: column; gap: 24px; }
.pricing-group__title {
  font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.pricing-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pricing-row__img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pricing-row__title {
  font-size: 14.5px; font-weight: 600; color: var(--text);
  text-decoration: none; display: block; margin-bottom: 3px;
}
.pricing-row__title:hover { color: var(--accent); }
.pricing-row__range { font-size: 13px; color: var(--muted); }
.pricing-row__range b { color: var(--text); }
.pricing-row__plans { display: flex; flex-wrap: wrap; gap: 6px; }
.pricing-plan {
  display: flex; flex-direction: column; align-items: center;
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 6px 12px; min-width: 72px;
}
.pricing-plan__days { font-size: 11px; color: var(--muted); }
.pricing-plan__price { font-size: 13.5px; font-weight: 700; color: var(--text); }

/* Payment methods block on pricing page */
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; background: var(--panel-2); border-radius: 12px;
}
.pay-method__icon { font-size: 24px; flex-shrink: 0; width: 40px; text-align: center; }
.pay-method b { display: block; font-size: 14px; margin-bottom: 3px; }
.pay-method p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

@media (max-width: 640px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .pricing-row { flex-direction: column; align-items: flex-start; }
}
