/* ============ 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: 11px; font-family: "Sora"; font-weight: 800; font-size: 19px; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #0a0a12; font-size: 20px; font-weight: 800;
  box-shadow: 0 8px 20px -6px rgba(124,92,255,.7);
}
.brand__accent { color: var(--accent-2); }
.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: 72px 0 46px; }
.hero__content { max-width: 720px; }
.hero__eyebrow {
  display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2);
  background: rgba(33,212,253,.08); border: 1px solid rgba(33,212,253,.2);
}
.hero__title { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; font-weight: 800; margin: 18px 0 0; letter-spacing: -.02em; }
.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: 18px 0 0; max-width: 560px; }
.hero__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 40px; }
.stat b { font-family: "Sora"; font-size: 26px; font-weight: 800; display: block; }
.stat span { color: var(--muted-2); font-size: 13px; }

/* ============ 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: 20px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); border-color: #34384d; box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.card:hover .card__img { transform: scale(1.06); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, 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); }
.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: 15px 16px 17px; 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: 15.5px; font-weight: 600; line-height: 1.3; }
.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: 4px; }
.price { display: flex; align-items: baseline; gap: 7px; }
.price__now { font-family: "Sora"; font-size: 19px; font-weight: 700; }
.price__old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.card__buy {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad-soft); border: 1px solid rgba(124,92,255,.3);
  color: var(--accent); display: grid; place-items: center; transition: .2s;
}
.card:hover .card__buy { background: var(--grad); color: #0a0a12; border-color: transparent; }
.card__buy svg { width: 17px; height: 17px; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }

/* ============ 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; }

.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: 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: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adminform__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ============ 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 { font-size: 12px; font-weight: 600; color: var(--good); }
.card__stock--out { color: var(--bad); }
.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%; } }
