/* =========================
   ITQueens — Clean CSS Pack
   ========================= */

/* ---------- Design Tokens ---------- */
:root{
  /* spacing/sizing */
  --page-width: 1280px;
  --page-wide: 1480px;
  --gutter: 16px;
  --edge: 12px;
  --header-h: 64px;
  --radius: 16px;
  --qt-width: 152px;          /* 3 иконки × 44 + 2 промежутка × 10 */
  --sbw: clamp(0px, calc(100vw - 100dvw), 30px);

  /* colors */
  --bg: #0b0b10;
  --panel: #14141c;
  --text: #e8e8f0;
  --muted: #a6a6ad;
  --accent: #ff2ea6;
  --accent2: #7c5cff;
  --ok: #2dd4bf;
  --border: rgba(255,255,255,.10);

  /* fonts */
  --font-main: 'Rubik','Nunito Sans','Plus Jakarta Sans',system-ui,sans-serif;

  /* scrollbar */
  --scroll-w: 10px;
  --scroll-line: 2px;
}

/* ---------- Base / Reset ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; overflow-x:hidden; }
body{
  margin:0; color:var(--text); background:var(--bg);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; letter-spacing:.1px;
}
h1,h2,h3,h4,h5,h6{
  margin:0; line-height:1.2; font-family:var(--font-main); font-weight:700; letter-spacing:.2px;
}
.muted, small{ opacity:.85; font-weight:400; color:var(--muted); }

/* ---------- Layout ---------- */
.container,
.container--wide{
  margin-inline:auto; padding-inline:var(--gutter); width:100%;
}
.container{     max-width:var(--page-width); }
.container--wide{ max-width:var(--page-wide); }
.band{ padding-block:18px; }

.grid{
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
}

/* ---------- Buttons / Chips ---------- */
.btn{
  display:inline-block; text-decoration:none; font-weight:700;
  padding:11px 16px; border-radius:14px; color:#0b0b10;
  background:linear-gradient(90deg,var(--accent),#b86bff);
}
.btn-ghost{
  display:inline-block; text-decoration:none; font-weight:700;
  padding:9px 14px; border-radius:12px; color:#fff;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
}
.chip{
  display:inline-flex; align-items:center; gap:8px; padding:0 14px;
  height:44px; border-radius:12px; background:var(--accent2); color:#fff;
  text-decoration:none; font-weight:700; line-height:1;
}
.chip--danger{ background:#ff4d6d; }
.price,.promo-new,.countdown,.header__online b{ font-weight:700; letter-spacing:0; color:var(--ok); }

/* ---------- Brand ---------- */
.brand{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
}
.brand__mark{
  width:16px; height:16px; border-radius:4px;
  background:conic-gradient(from 0deg,#ff69c9,#6ad7ff,#ff69c9);
  box-shadow:0 0 10px #ff69c980;
}
.brand__text{
  font-weight:900; letter-spacing:.2px; line-height:1; text-transform:lowercase;
  background:linear-gradient(90deg,#ff69c9 0%,#b86bff 45%,#6ad7ff 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.brand__text .short{ display:none; }

/* ---------- Header ---------- */
.header{
  position:sticky; top:0; z-index:100; height:var(--header-h);
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(11,11,16,.75);
  border-bottom:1px solid var(--border);
}
.header__row{
  position:relative; display:flex; align-items:center; gap:12px; height:var(--header-h);
  /* резерв под quick-tools справа */
  padding-right: calc(var(--qt-width) + max(var(--gutter), env(safe-area-inset-right)));
}
.nav{ display:flex; gap:8px; align-items:center; }
.spacer{ flex:1; }

/* email в шапке */
.email{
  max-width: clamp(180px, 28vw, 420px);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  color:#cfc7ff; opacity:.9; font-size:.9rem; margin-right:8px;
}

/* ---------- Quick Tools (иконки справа) ---------- */
.quick-tools{
  position:absolute; top:10px;
  right:max(var(--gutter), env(safe-area-inset-right));
  display:flex; gap:10px; align-items:center; z-index:5;
}
.qt-btn{
  width:44px; min-width:44px; height:44px; padding:0; border:1px solid rgba(255,255,255,.10);
  border-radius:12px; background:linear-gradient(145deg,#13131b,#0d0d14);
  color:#e9ecff; font-size:19px; line-height:1; cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  transition:transform .12s ease, filter .2s ease;
}
.qt-btn:hover{ transform:translateY(-1px); filter:brightness(1.06); }
.qt-item{ appearance:none; border:0; cursor:pointer; border-radius:10px; padding:8px 10px; font-weight:800; color:#e6e9ff; background:rgba(255,255,255,.06); }
.qt-item:hover{ background:rgba(255,255,255,.12); }
.qt-item.is-active{ background:linear-gradient(90deg,#3aa6ff,#7c5cff); color:#fff; }
.qt-lang{ position:relative; }
.qt-popover{
  position:absolute; top:48px; right:0; display:none; gap:6px;
  background:linear-gradient(145deg,#13131b,#0b0b10); border:1px solid rgba(255,255,255,.12);
  border-radius:12px; padding:8px; box-shadow:0 14px 28px rgba(0,0,0,.45);
}
.qt-lang[aria-expanded="true"] .qt-popover{ display:grid; }

/* ---------- Online pill ---------- */
.header__online{
  display:inline-flex; align-items:center; gap:8px;
  height:44px; padding:0 10px; border-radius:12px;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  color:#cfe7ff; font-weight:700; line-height:1; user-select:none;
}
.header__online .dot{
  width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 10px var(--ok);
}
.header__online .lbl{ display:inline; }

/* ---------- Footer (base) ---------- */
.site-footer{
  margin-top:28px;
  background: radial-gradient(1200px 280px at 50% 0, rgba(124,92,255,.08), transparent 60%), var(--bg);
  border-top:1px solid var(--border);
}
.site-footer .container{ padding-block:24px; }
.footer-bottom{
  margin-top:18px; padding-top:12px; border-top:1px dashed rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:14px;
}

/* ---------- Footer: legal blocks ---------- */
.footer-legal{ display:grid; gap:18px; }
.footer-legal h3{
  margin:0; font-size:18px; letter-spacing:.2px;
  background:linear-gradient(90deg,#8be1ff,#ff69c9);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.footer-legal p{ margin:0; }
.pill-row{ display:flex; flex-wrap:wrap; gap:10px; }
.pill{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10);
  color:#e9ecff; font-weight:600;
}
.pill.is-active{
  background:linear-gradient(90deg,#3aa6ff,#7c5cff); border-color:transparent; color:#fff;
  box-shadow:0 6px 18px rgba(122,95,255,.25);
}
.legal-grid{ display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.legal-card{
  background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.legal-card .title{
  font-weight:800; color:#ffd1e8; display:flex; align-items:center; gap:8px; margin-bottom:6px;
}
.legal-card .src{ color:#aab1c8; font-size:13px; margin-top:8px; }
.legal-note{
  margin-top:8px; padding:12px 14px; border-radius:12px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10); font-weight:700;
}

/* ---------- Footer Hero (Femida left) ---------- */
.site-footer--hero{
  /* geometry */
  --femidaW: clamp(420px, 32vw, 560px);
  --femidaGap: clamp(22px, 3.5vw, 56px);
  --safeL: max(var(--edge,16px), env(safe-area-inset-left));
  --safeR: max(var(--edge,16px), env(safe-area-inset-right));

  position:relative; margin-top:28px; padding: clamp(36px,6vw,70px) 0 28px;
  border-top:none; overflow:hidden;
  background:
    radial-gradient(1200px 300px at 50% 0, rgba(124,92,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(9,9,14,0) 0, rgba(9,9,14,.75) 40%, #0b0b10 100%);
}
.site-footer--hero::before{
  content:""; position:absolute; inset:0 0 auto 0; height:2px;
  background:linear-gradient(90deg,#6ad7ff,#ff69c9); opacity:.6; filter:blur(.3px);
}
/* soft mask over Femida */
.site-footer--hero::after{
  content:""; position:absolute; inset:0 auto 0 0;
  width: calc(var(--femidaW) + 6vw);
  background: linear-gradient(90deg, rgba(11,11,16,.88) 0%, rgba(11,11,16,.55) 60%, rgba(11,11,16,0) 100%);
  pointer-events:none;
}

/* artwork (left) */
.sf-art{
  position:absolute; left: var(--safeL); bottom:0; width:var(--femidaW); pointer-events:none;
}
.sf-art img{
  display:block; width:100%; height:auto; opacity:.46;
  filter: brightness(1.05) drop-shadow(0 18px 42px rgba(0,0,0,.55));
}

/* content (right) */
.sf-content{
  position:relative; z-index:1; margin-inline:0;
  margin-left: calc(var(--safeL) + var(--femidaW) + var(--femidaGap));
  width: calc(100vw - (var(--safeL) + var(--femidaW) + var(--femidaGap)) - var(--safeR));
  max-width: min(1200px, 100vw); padding-left:0; padding-right:var(--safeR); box-sizing:border-box;
}
.sf-kicker{
  display:inline-block; font-weight:800; letter-spacing:.2px; padding:6px 10px; border-radius:999px;
  color:#0b0b10; background:linear-gradient(90deg,#8be1ff,#ff69c9);
}
.sf-title{
  margin:12px 0 6px; font-size: clamp(32px, 3.6vw, 44px); line-height:1.15; font-weight:900;
  background:linear-gradient(90deg,#e6e9ff,#c4d9ff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.sf-sub{ margin:8px 0 14px; color:#cfd6ff; }
.sf-pills{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 18px; }
.sf-pill{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  color:#e9ecff; font-weight:700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 14px rgba(124,92,255,.25);
}
.sf-pill i{ font-style:normal; }
.sf-cta{
  display:inline-flex; align-items:center; gap:10px; padding:12px 16px; border-radius:14px; font-weight:900;
  color:#0b0b10; text-decoration:none; background:linear-gradient(90deg,#ff2ea6,#7c5cff,#3aa6ff);
  box-shadow:0 14px 30px rgba(124,92,255,.30);
}
.sf-cta:hover{ filter:brightness(1.06); }
.sf-countries{ margin-top:36px; }
.sf-countries h3{ margin-bottom:10px; font-size:16px; color:#9fb0ff; }
.sf-country-list{ display:flex; flex-wrap:wrap; gap:10px; }
.sf-country-list span{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  border-radius:999px; padding:8px 12px; color:#cfd6ff; font-weight:600; font-size:14px;
}
.sf-country-list .active{
  background:linear-gradient(90deg,#3aa6ff,#7c5cff); color:#fff; box-shadow:0 0 18px rgba(122,95,255,.3);
}

/* ---------- Scrollbar (WebKit + Firefox) ---------- */
*::-webkit-scrollbar{ width:var(--scroll-w); height:var(--scroll-w); }
*::-webkit-scrollbar-button{ display:none; width:0; height:0; }
*::-webkit-scrollbar-track{ background:transparent; }
*::-webkit-scrollbar-thumb{
  border: calc((var(--scroll-w) - var(--scroll-line)) / 2) solid transparent;
  border-radius:999px; background-clip:padding-box;
  background-image: linear-gradient(180deg,#7c5cff 0%,#a27dff 45%,#ff2ea6 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
*::-webkit-scrollbar-thumb:hover{ filter:brightness(1.1); }
html,body,*{ scrollbar-width:thin; scrollbar-color:#7c5cff transparent; }

/* ---------- Chat Hero (mobile) ---------- */
@media (max-width:560px){
  .chat-head{
    display:grid; grid-template-columns:56px 1fr;
    grid-template-areas:"media title" "media tags" "media stats" "media actions";
    gap:10px 12px; padding:12px;
  }
  .chat-head .ch-media{ grid-area:media; }
  .chat-head .ch-body{ grid-area:title; }
  .chat-head .ch-tags{ grid-area:tags; }
  .chat-head .up-row{ grid-area:stats; }
  .chat-hero + .ch-back{ display:none; }
  .chat-head .ch-back{ grid-area:actions; justify-self:start; margin-top:2px; }

  .ch-media img{ width:56px; height:56px; border-radius:12px; }
  .ch-title{ font-size:20px; line-height:1.1; margin:0 0 6px; word-break:break-word; }

  .ch-tags{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .tag{ padding:7px 10px; font-size:14px; justify-content:start; }
  .tag.now{ font-weight:900; }

  .up-row{ display:grid; grid-auto-flow:row; gap:8px; margin:6px 0 0; }
  .up-chip,.up-ask{
    width:100%; justify-content:center; text-align:center;
    padding:8px 10px; border-radius:10px; font-size:14px;
  }
  .up-chip small,.up-row .muted{ font-size:12px; }
  .chat-note.wait-reply{ font-size:12px; }
  .ch-back{ padding:10px 12px; border-radius:10px; font-weight:800; white-space:nowrap; }
}
@media (max-width:380px){ .ch-tags{ grid-template-columns:1fr; } }

/* ---------- Burger + Mobile Header ---------- */
.burger{
  width:44px; height:44px; border:0; border-radius:12px; margin-right:0px;
  display:grid; place-items:center; cursor:pointer;
  background:linear-gradient(145deg,#13131b,#0d0d14);
  color:#e9ecff; box-shadow:0 8px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
}
.burger-ico path{ stroke:#e9ecff; stroke-width:2.4; stroke-linecap:round; fill:none; }
.burger:hover{ filter:brightness(1.06); transform:translateY(-1px); }

@media (max-width:720px){
  .nav{ display:none; }
  .burger{ display:grid; }
  .header__row{ align-items:center; padding-top:0; }
  .brand,.header__online{ display:inline-flex; align-items:center; height:40px; }
  .header__online{ gap:6px; padding:0 8px; }
  .quick-tools{ top:0 !important; bottom:0 !important; right:10px; display:flex; align-items:center; gap:8px; }
}

@media (max-width:640px){
  .brand{ gap:8px; }
  .brand__mark{ width:14px; height:14px; }
  .brand__text .full{ display:none; }
  .brand__text .short{ display:inline; }
  .email{ display:none; }
  :where(.chip,.qt-btn,.header__online){ height:40px; border-radius:10px; }
  .qt-btn{ width:40px; min-width:40px; font-size:18px; }
  .qt-popover{ top:44px; }
  .chip{ padding:0 12px; }
  .header__online{ gap:6px; padding:0 8px; }
}

@media (max-width:390px){
  .burger{ width:38px; height:40px; border-radius:10px; }
  .qt-btn{ width:36px; height:36px; font-size:16px; }
  .qt-popover{ top:42px; }
  .header__online b{ font-size:13px; font-weight:800; }
}

@media (max-width:380px){
  .header__row{ flex-wrap:wrap; row-gap:6px; }
  .quick-tools{ margin-left:auto; gap:6px; }
  .header__online{ padding:6px 8px; }
  .header__online b{ font-size:13px; font-weight:800; }
}

@media (max-width:360px){
  .header__online .dot{ display:none; }
  .header__online{ padding:6px 7px; }
}

/* скрываем подпись "Онлайн" на узких */
@media (max-width:480px){ .header__online .lbl{ display:none; } }

/* сверх-узкие (Fold/SE) мелкие подправки */
@media (max-width:350px){
  .header__row{ justify-content:space-between; gap:4px; }
  .brand{ margin-left:2px; }
  .header__online{ transform:translateY(1px); }
  .quick-tools{ right:6px; }
  .burger{ width:38px; height:38px; }
}

/* ---------- Drawer (Off-canvas) ---------- */
.header{ --hdr: var(--header-h,64px); }
.drawer{
  position:fixed; inset: var(--hdr) auto 0 0; height:calc(100dvh - var(--hdr));
  width:min(86vw,340px);
  background:linear-gradient(145deg,#13131b,#0b0b10);
  border:1px solid rgba(255,255,255,.10); border-left:none;
  border-radius:0 18px 18px 0;
  box-shadow:0 24px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  transform:translateX(-14px) translateZ(0); opacity:0; pointer-events:none;
  transition: transform .28s cubic-bezier(.22,.9,.28,1), opacity .22s ease-out;
}
.drawer::after{
  content:""; position:absolute; top:0; right:-1px; bottom:0; width:1px;
  background:linear-gradient(180deg,#6ad7ff,#ff69c9); opacity:.35; filter:blur(.3px);
}
.drawer.show{ transform:translateX(0); opacity:1; pointer-events:auto; }

.drawer-mask{
  position:fixed; inset: var(--hdr) 0 0 0;
  background:rgba(0,0,0,.55); backdrop-filter:blur(2px);
  transition:opacity .2s ease; opacity:0;
}
.drawer.show + .drawer-mask{ opacity:1; }
.drawer-mask[hidden]{ display:none; }

.drawer__item{
  display:block; padding:12px 14px; border-radius:12px; font-weight:800; text-decoration:none; color:#e9ecff;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.drawer__item:hover{ filter:brightness(1.06); transform:translateY(-1px); }
@media (max-width:390px){ .drawer{ width:88vw; border-radius:0 16px 16px 0; } }

/* Drawer: chat-pan */
.drawer-chatpan{
  margin-top:12px; padding-top:10px; border-top:1px dashed rgba(255,255,255,.10);
  display:grid; gap:12px;
}
.chatpan-head{ display:flex; align-items:center; gap:10px; margin-bottom:2px; }
.chatpan-head .kicker{
  font-weight:900; letter-spacing:.2px; padding:6px 10px; border-radius:999px;
  background:linear-gradient(90deg,#8be1ff,#ff69c9); color:#0b0b10;
}

/* ---------- Dialog Card (.dlg) ---------- */
.dlg{
  position:relative; display:grid; grid-template-columns:64px 1fr auto; gap:12px; align-items:center;
  padding:12px 14px; border-radius:16px; text-decoration:none; color:#e9ecff;
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(124,92,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.35);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.dlg:hover{ transform:translateY(-1px); filter:brightness(1.04); }
.dlg::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
  /*background: conic-gradient(from var(--angle,0deg), var(--c1,#7c5cff), var(--c2,#ff2ea6), var(--c1,#7c5cff));*/
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.35; pointer-events:none; animation: dlgSpin 9s linear infinite;
}
.dlg::after{
  content:""; position:absolute; inset:-8px; border-radius:18px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c1,#7c5cff) 40%, transparent), transparent 70%);
  filter: blur(8px); opacity:.35; pointer-events:none;
}
@keyframes dlgSpin{ to{ --angle:360deg; } }

.dlg__avatar{
  width:60px; height:60px; border-radius:14px; overflow:hidden; display:grid; place-items:center;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);

  /* tech ring */
  --ringW:2px; --ringGlow:10px; --ringOpacity:.92; --ringSpeed:6s;
  position:relative; isolation:isolate;
}
.dlg__avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.dlg__avatar::before{
  content:""; position:absolute; inset:0; padding:var(--ringW); border-radius:inherit;
  background: conic-gradient(from var(--ringAngle,0deg),
    #00e5ff 0%, #7c5cff 18%, #ff2ea6 36%, #ffd166 54%, #00e5ff 72%, #7c5cff 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:var(--ringOpacity); pointer-events:none; z-index:1;
  animation: itqRingSpin var(--ringSpeed) linear infinite;
}
.dlg__avatar::after{
  content:""; position:absolute; inset: calc(var(--ringW) * -2); border-radius:inherit;
  background: radial-gradient(closest-side, color-mix(in oklab, #00e5ff 22%, transparent), transparent 70%);
  filter: blur(var(--ringGlow)); opacity:.45; pointer-events:none; z-index:0;
  animation: itqRingPulse 3.6s ease-in-out infinite alternate;
}
@keyframes itqRingSpin{ to{ --ringAngle:360deg; } }
@keyframes itqRingPulse{ from{ filter:blur(calc(var(--ringGlow)*.8)); opacity:.35; } to{ filter:blur(calc(var(--ringGlow)*1.1)); opacity:.55; } }

.dlg__body{ min-width:0; }
.dlg__title{ display:block; font-weight:900; line-height:1.1; margin-bottom:2px; font-size:16px; }
.dlg__msg{
  display:block; font-size:13px; color:#cfd6ff; opacity:.95;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.dlg__msg.is-typing::after{ content:"▍"; display:inline-block; margin-left:2px; animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.dlg__badge{
  justify-self:end; align-self:start; white-space:nowrap; font-weight:800; font-size:12px; line-height:1;
  padding:7px 10px; border-radius:10px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  color:#e6e9ff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.dlg__badge.now{
  background:linear-gradient(90deg,#3aa6ff,#7c5cff); border-color:transparent; color:#fff;
  box-shadow:0 6px 18px rgba(122,95,255,.25);
}

/* variants */
.dlg--neon{ --c1:#3aa6ff; --c2:#ff2ea6; }
.dlg--neon .dlg__avatar{ border-radius:100%; }
.dlg--neon .dlg__title{
  text-shadow:0 0 6px color-mix(in oklab, var(--c1) 55%, transparent),
              0 0 16px color-mix(in oklab, var(--c2) 45%, transparent);
}
.dlg--active{
    margin: 15px;
  --c1:#00e59a; --c2:#34d6ff;
  /*background:
    radial-gradient(140% 140% at 0% 0%, rgba(0,255,170,.18), transparent 55%),
    linear-gradient(180deg, rgba(7,44,32,.92), rgba(12,54,40,.92));
  border-color:rgba(0,255,170,.35);*/
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,255,170,.22);
}
.dlg--active::before{ inset:-2px; padding:2px; opacity:.9; }
.dlg--active::after{ opacity:.55; filter:blur(10px); }
.dlg--active .dlg__avatar{ --ringSpeed:4.2s; --ringOpacity:.98; --ringGlow:12px; }
.dlg--active .dlg__avatar::after{
  background: radial-gradient(closest-side, color-mix(in oklab, #00ffaa 26%, transparent), transparent 70%);
}
.dlg--active .dlg__badge{
  background:linear-gradient(90deg,#00e59a,#34d6ff); border-color:transparent; color:#062218; font-weight:900;
  box-shadow:0 8px 22px rgba(0,255,170,.28);
}
.dlg--active .dlg__title{
  text-shadow:0 0 6px rgba(0,255,170,.45), 0 0 18px rgba(52,214,255,.35);
}

/* reduce motion */
@media (prefers-reduced-motion:reduce){
  .dlg::before, .dlg--neon .dlg__avatar::before,
  .dlg__avatar::before, .dlg__avatar::after{ animation:none; }
}

/* ---------- Responsive bits not covered above ---------- */
@media (max-width:820px){ .legal-grid{ grid-template-columns:1fr; } }
@media (max-width:860px){
  .sf-art{ position:relative; left:50%; transform:translateX(-50%); width:70vw; opacity:.28; margin-bottom:18px; }
  .site-footer--hero::after{ display:none; }
  .sf-content{ margin-left:0; width:auto; max-width:none; padding:0 16px; }
  .sf-title{ font-size: clamp(22px, 5vw, 30px); }
  .sf-countries{ margin-top:24px; }
}


/* --- Фемида: слева --- */
.sf-art{
  position:absolute;
  left: clamp(8px,3vw,48px);
  bottom:0;
  width:min(520px,38vw);
  pointer-events:none;
}
.sf-art img{
  display:block;
  width:100%; height:auto;
  opacity:.30;
  filter:drop-shadow(0 16px 40px rgba(0,0,0,.6));
}

/* если крутит JS — не крутим CSS-анимациями */
.dlg__avatar.ring-js::before,
.dlg__avatar.ring-js::after{
  animation: none;
}


/* === Auto mini-deals under Online === */
.deal-stream{
  position: fixed; /* якорим к экрану, а JS кладёт точно под Online */
  inset: auto auto auto 0;
  top: calc(var(--header-h) + 6px);
  z-index: 120; 
  pointer-events: none; /* нельзя кликнуть/закрыть */
}

.deal-toast{
  display:inline-flex; align-items:center; gap:10px;
  max-width: min(88vw, 520px);
  margin-left: 0; /* JS подставит X */
  padding:10px 12px;
  border-radius:12px;
  font-weight:800; line-height:1.25;
  color:#e9ecff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(124,92,255,.18), transparent 55%),
    linear-gradient(145deg,#12121a,#0d0d14);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 36px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(6px) saturate(120%);
  animation: dealIn .35s cubic-bezier(.2,.9,.2,1), dealLife 7.2s linear forwards;
  will-change: transform, opacity;
}
.deal-toast + .deal-toast{ margin-top:10px; } /* на всякий случай, если очередь */

.deal-ico{
  width:28px; height:28px; border-radius:10px;
  display:grid; place-items:center; font-size:16px;
  background: linear-gradient(90deg,#3aa6ff,#7c5cff);
  box-shadow: 0 6px 18px rgba(122,95,255,.35);
}
.deal-title{ font-weight:900; }
.deal-sub{ font-weight:700; color:#cfd6ff; opacity:.95; }
.deal-price{ color:#ffd166; font-weight:900; }
.deal-profit{ color:var(--ok); font-weight:900; }

/* вход/выход */
@keyframes dealIn{ from{ transform:translateY(-8px); opacity:0 } to{ transform:translateY(0); opacity:1 } }
@keyframes dealLife{
  0%{ opacity:1 } 86%{ opacity:1 } 100%{ opacity:0; transform:translateY(-6px) }
}

/* мобильные — чуть компактнее */
@media (max-width:560px){
  .deal-toast{ max-width: min(92vw, 520px); padding:9px 10px; }
  .deal-ico{ width:26px; height:26px; border-radius:8px; font-size:15px; }
}

 /* ==== BURGER (только мобилки) ==== */
.burger{
  display:none;
  width:35px;height:40px;border:0;border-radius:12px;
  background:linear-gradient(145deg,#13131b,#0d0d14);
  color:#e9ecff; cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  margin-right:0px;
}
.burger span{ display:block; width:22px; height:2px; background:#e9ecff; margin:4px auto; border-radius:2px; }
@media (max-width:720px){
  .burger{ display:grid; place-items:center; }
  /* сами чипы навигации прячем — их заменит бургер */
  .nav{ display:none; }
}
@media (max-width:720px){
  .burger{ display:grid; place-items:center; width:38px; height:40px; border-radius:10px; margin-left:10px; }
}
.burger-ico{ display:block; }


/* ==== DRAWER (слева), выезжающий панель === */
.drawer{
  position: fixed; inset: 0 auto 0 0;
  width: 310px; max-width: 82vw;
  background: linear-gradient(145deg,#13131b,#0b0b10);
  border-right:1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 2000;
  
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.drawer.show{ transform: translateX(0); }

.drawer__nav{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.drawer__item{
  display:block; padding:12px 14px; border-radius:12px; font-weight:800;
  text-decoration:none; color:#e9ecff;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10);
}
.drawer__item:hover{ filter:brightness(1.06); }
.drawer__item.danger{ background:#ff4d6d; border-color:transparent; color:#0b0b10; }

.drawer__email{
  margin-top:10px; padding:10px 12px; border-radius:12px; font-weight:700;
  color:#cfc7ff; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* затемняющая подложка */
.drawer-mask{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 1990;
}
.drawer-mask[hidden]{ display:none; }

/* Чуть уменьшим бургер на очень маленьких экранах */
@media (max-width:390px){
  .burger{ width:38px;height:40px;border-radius:10px; }
}

/* === FIX: quick-tools всегда по центру по вертикали === */
.header__row{ position:relative; } /* якорь */

.quick-tools{
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));

  /* вместо top:10/11/14 — растягиваем по высоте строки */
  top: 0 !important;
  bottom: 0 !important;

  /* и центрируем содержимое по вертикали */
  display: flex;
  align-items: center;
  gap: 10px;

  /* на всякий случай убираем прошлые трансформации */
  transform: none !important;
}

/* мобилки — только правый отступ компактнее, центрирование то же */
@media (max-width:640px){
  .quick-tools{
    right: 10px;
  }
}

/* очень узкие — меньше зазоров/кнопки */
@media (max-width:390px){
  .quick-tools{ right: max(8px, env(safe-area-inset-right)); gap: 6px; }
  .qt-btn{ width:36px; height:36px; font-size:16px; border-radius:10px; }
  .qt-popover{ top: 42px; }
}
/* === Центровка элементов слева (бургер, логотип, онлайн) на мобильных === */
@media (max-width: 720px) {
 .header__row { align-items: center; padding-top: 0; }
  .burger,
  .brand,
  .header__online {
    display: inline-flex;
    align-items: center;
  }

  /* чтобы онлайн не «провисал» — задаём минимальную высоту */
  .header__online {
    height: 40px;
  }
}

/* ===== Drawer extras (dlx-*) ===== */
.dlx-close{
  position: sticky; top: 8px; margin-left: 8px; z-index: 5;
  display: inline-grid; place-items:center;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #e9ecff; font-weight: 800; cursor: pointer;
}
.dlx-close:hover{ filter: brightness(1.05); }

/* Gift hero */
.dlx-gift-hero{ position: relative;   overflow: hidden;
  background: radial-gradient(120% 90% at 10% 10%, #1b1630 0%, #0b0b10 60%), linear-gradient(145deg,#151522,#0b0b10);
  border: 1px solid rgba(255,255,255,.08);
}
.dlx-gift-wrap{ margin-top:-45px; display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px; align-items: center; }
.dlx-gift-img{ width: 90px; height: 90px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.dlx-gift-text .dlx-gift-kicker{ font-weight: 700; opacity: .9; }
.dlx-gift-text .dlx-gift-title{ margin: 6px 0 10px; font-size: 18px; font-weight: 800; }

/* звездный фон */
.dlx-gift-bg{
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(2px 2px at 10% 20%, #ffd94d 60%, transparent 61%) repeat,
    radial-gradient(2px 2px at 30% 80%, #ffd94d 60%, transparent 61%) repeat,
    radial-gradient(2px 2px at 70% 30%, #ffd94d 60%, transparent 61%) repeat,
    radial-gradient(2px 2px at 90% 60%, #ffd94d 60%, transparent 61%) repeat;
  background-size: 180px 220px, 220px 260px, 200px 240px, 240px 300px;
  animation: dlxStars 12s linear infinite;
  opacity: .35;
}
@keyframes dlxStars{
  0%{ transform: translateY(0) }
  100%{ transform: translateY(-60px) }
}

/* Chat block spacing (используем существующие .dlg стили из твоего CSS) */
.dlx-chat{ margin: 14px 0; }

/* Investors block */
.dlx-invest{ margin: 12px 0 6px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg,#12121a,#0b0b10);
}
.dlx-invest-head{ display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items:center; margin-bottom: 10px; }
.dlx-invest-img{ border-radius: 10px; }
.dlx-invest-cta{
  display:inline-block; margin-top:10px; padding:10px 12px; border-radius:12px;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); color:#e9ecff; text-decoration:none; font-weight:800;
}
.dlx-invest-cta:hover{ filter:brightness(1.06); }

/* Countdown (common) */
.dlx-timer{
  position: relative; z-index:1;
  display:flex; gap:10px; flex-wrap:wrap;
  padding:10px 12px; border-radius:12px;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10);
      justify-content: space-around;
}
.dlx-timer[data-style="mini"]{ padding:8px 10px; gap:8px; }
.dlx-timer-item{ display:flex; flex-direction:column; align-items:center; min-width:54px; }
.dlx-timer-item b{ font-size:20px; line-height:1; font-weight:800; }
.dlx-timer[data-style="mini"] .dlx-timer-item b{ font-size:16px; }
.dlx-timer-item span{ opacity:.8; font-size:12px; }




/* Чуть компактнее заголовок подарка и зазоры карточек */
.dlx-gift-title{ line-height: 1.15; }
.dlx-gift-hero, .dlx-chat, .dlx-invest{  }

/* Мини-таймер: равномерные колонки и легкий тон */
.dlx-timer{ gap: 12px; }
.dlx-timer-item{ min-width: 56px; }
.dlx-timer-item span{ opacity:.75; }

/* Кнопка закрытия: фиксированная позиция при прокрутке */
.dlx-close{
  position: sticky; top: 8px;
  margin-left: 8px; margin-bottom: 8px;
}

 

 /* --- EXPO star + sparks (scoped) --- */
.dlx-expo-title{
  display:inline-flex; align-items:center; gap:.5rem;
  line-height:1.15;
}
.dlx-expo-star{ width:20px; height:20px; display:inline-flex; }
.dlx-expo-star svg{ width:100%; height:100%; }
.dlx-expo-star .s{
  fill:#FFD84D; stroke:#FFB800; stroke-width:.9;
 
}
@keyframes dlxTwinkle { 0%,100%{transform:scale(1);opacity:.9}
  50%{transform:scale(1.18);opacity:1} }
.dlx-expo-star{ animation: dlxTwinkle 1.9s ease-in-out infinite; }

/* контейнер фоновых искр внутри карточки EXPO */
.dlx-gift-hero .dlx-expo-sparks{
  position:absolute; inset:0; pointer-events:none; overflow:hidden;
}

/* общие параметры искры */
.dlx-expo-sparks span{
  position:absolute; font-size:14px; color:#FFD84D; opacity:.8;
  filter: drop-shadow(0 0 6px rgba(255,216,77,.8));
  animation: dlxSparkFloat linear infinite;
}

/* разные позиции/скорости — без JS */
.dlx-expo-sparks span:nth-child(1){ top:6%;  left:10%; animation-duration:7s; }
.dlx-expo-sparks span:nth-child(2){ top:18%; left:72%; animation-duration:9s; }
.dlx-expo-sparks span:nth-child(3){ top:32%; left:28%; animation-duration:8.5s; }
.dlx-expo-sparks span:nth-child(4){ top:46%; left:84%; animation-duration:7.6s; }
.dlx-expo-sparks span:nth-child(5){ top:58%; left:14%; animation-duration:10s; }
.dlx-expo-sparks span:nth-child(6){ top:66%; left:58%; animation-duration:8s; }
.dlx-expo-sparks span:nth-child(7){ top:78%; left:36%; animation-duration:9.4s; }
.dlx-expo-sparks span:nth-child(8){ top:88%; left:80%; animation-duration:7.8s; }

@keyframes dlxSparkFloat{
  0%   { transform: translateY(12px) scale(.9) rotate(0deg);   opacity:.0; }
  10%  { opacity:.85; }
  50%  { transform: translateY(-12px) scale(1.05) rotate(10deg); }
  100% { transform: translateY(12px)  scale(.9)  rotate(0deg);  opacity:.0; }
}

/* чуть темнее фон карточки EXPO, чтобы звёзды были виднее */
.dlx-gift-hero .dlx-expo-wrap{ position:relative; }
.dlx-gift-hero .dlx-expo-bg{
  background: radial-gradient(1200px 500px at 60% 10%,
    rgba(255,216,77,.16), transparent 60%) ,
    var(--panel-bg, linear-gradient(145deg,#13131b,#0b0b10));
}
