/* ============================================================
   RADAR — design system / styles
   Mono ink+paper, gold for top signals. Mobile-first, GPU-only animation.
   ============================================================ */

/* ---------- tokens ---------- */
:root{
  --bg:#f3f4f7; --surface:#ffffff; --surface-2:#fbfbfd;
  --tile:#eef0f3; --tile-2:#e6e9ef;
  --ink:#14161b; --ink-soft:#33373f; --dim:#6b7280; --faint:#a4a9b4;
  --line:#e8eaef; --line-strong:#d9dce3;
  --brand:#14161b; --on-brand:#ffffff;
  --ink-panel:#15171c; --on-ink:#f5f6f8;
  --gold:#1f8a5b; --gold-bright:#23a06a; --gold-soft:#e3f4ec;
  --ok:#179a73; --off:#db5040; --info:#3461c9;
  --header-bg:rgba(248,249,251,.82);

  --sans:"Onest",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",monospace;

  --r:20px; --r-lg:26px; --r-sm:13px; --r-pill:999px;
  --ease:cubic-bezier(.22,1,.36,1); --ease2:cubic-bezier(.16,1,.3,1);
  --shadow-sm:0 1px 2px rgba(16,24,40,.05);
  --shadow:0 1px 2px rgba(16,24,40,.04),0 14px 30px -18px rgba(16,24,40,.22);
  --shadow-lg:0 30px 70px -28px rgba(16,24,40,.32);
  --tap:48px;
  /* V312 control geometry: one size per role, shared by header, forms and filters. */
  --control-h:46px; --control-h-sm:38px; --control-radius:13px; --control-radius-sm:11px;
  --field-h:46px; --filter-field-h:42px; --category-pill-h:44px;
  --filter-h:38px; --filter-h-mobile:38px; --filter-h-popup:34px; --page-tab-h:44px; --seg-h:36px;
  --safe-b:env(safe-area-inset-bottom,0px);
}
[data-theme="dark"]{
  --bg:#0c0d11; --surface:#16181e; --surface-2:#1b1e25;
  --tile:#1d2027; --tile-2:#262a33;
  --ink:#f0f1f4; --ink-soft:#cfd2d9; --dim:#969ba6; --faint:#595e6a;
  --line:#262a32; --line-strong:#343a45;
  --brand:#f0f1f4; --on-brand:#0c0d11;
  --ink-panel:#191c22; --on-ink:#f5f6f8;
  --gold:#35ba81; --gold-bright:#49cb92; --gold-soft:#11241b;
  --ok:#2bbd8f; --off:#e8675a; --info:#5a86ee;
  --header-bg:rgba(12,13,17,.78);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 1px 2px rgba(0,0,0,.4),0 16px 36px -20px rgba(0,0,0,.7);
  --shadow-lg:0 36px 80px -30px rgba(0,0,0,.8);
}

*{box-sizing:border-box}
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-size:15px; line-height:1.5;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  padding-bottom:calc(28px + var(--safe-b));
  overflow-x:hidden;
}
body.gated{ overflow:hidden; height:100vh; }
html.gate-pass-candidate .gate{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html.gate-pass-candidate body.gated{overflow:hidden!important}
a{ color:inherit; text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
button{ font-family:inherit; -webkit-tap-highlight-color:transparent; }
img{ max-width:100%; display:block; }
::selection{ background:var(--ink); color:var(--bg); }
input,textarea,select{ font-family:inherit; }

/* scrollbars */
*{ scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:var(--line-strong); border-radius:99px; border:3px solid var(--bg); }

.wrap{ max-width:1240px; margin:0 auto; padding:0 24px; }
.mono{ font-family:var(--mono); letter-spacing:-.01em; font-feature-settings:"ss01"; }
.eyebrow{ font-family:var(--mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--dim); font-weight:500; }
.dim{ color:var(--dim); }
.gold{ color:var(--gold); }
.nowrap{ white-space:nowrap; }
.muted-rule{ height:1px; background:var(--line); border:0; margin:0; }

/* ---------- icons ---------- */
.ic{ width:20px; height:20px; flex:none; stroke:currentColor; stroke-width:1.75; fill:none; stroke-linecap:round; stroke-linejoin:round; display:inline-block; vertical-align:middle; }
/* icon wrapper spans (data-ic is stripped after JS fills them) sit inline; keep them centered on the text */
.qn span:not(.cc), .cat-btn span, .dd-ic, .si, .tab-i span, .cr-title span, .cr-item span{ display:inline-flex; align-items:center; }
.ic.sm{ width:16px; height:16px; }
.cat-ico-img{ display:inline-block; width:20px; height:20px; background-size:contain; background-repeat:no-repeat; background-position:center; vertical-align:middle; }
.cat-ico-img.sm{ width:17px; height:17px; }
.dd-ic .cat-ico-img{ width:18px; height:18px; }
.cat-pill .cp-ic .cat-ico-img{ width:17px; height:17px; }
.ic.lg{ width:24px; height:24px; }
.ic-fill{ fill:currentColor; stroke:none; }

/* ---------- buttons ---------- */
:where(.btn,.icon-btn,.cat-btn,.acct-chip,.cat-pill,.fpill,.chip,.csel-btn,.csel-tab,.ex-swap,.cat-nav-arrow,.seg button,.auth-tabs .t){
  box-sizing:border-box; margin:0; line-height:1; -webkit-appearance:none; appearance:none;
}
.btn{
  height:var(--control-h); min-height:var(--control-h); padding:0 17px; border:1px solid var(--line-strong); border-radius:var(--control-radius);
  background:var(--surface); color:var(--ink); font-size:14px; font-weight:600;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; white-space:nowrap;
  transition:border-color .2s, transform .12s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:active{ transform:scale(.97); }
.btn.primary{ background:var(--brand); color:var(--on-brand); border-color:var(--brand); }
.btn.ghost{ background:transparent; border-color:transparent; }
.btn.ghost:hover{ background:var(--tile); }
.btn.sm{ height:var(--control-h-sm); min-height:var(--control-h-sm); padding:0 13px; border-radius:var(--control-radius-sm); font-size:13px; }
.btn.block{ width:100%; height:50px; min-height:50px; }
.btn .ic{ width:17px; height:17px; }
@media (hover:hover){
  .btn:hover{ border-color:var(--faint); }
  .btn.primary:hover{ box-shadow:0 8px 22px -8px color-mix(in oklab,var(--brand) 55%, transparent); }
}
.icon-btn{
  width:var(--control-h); min-width:var(--control-h); height:var(--control-h); border-radius:var(--control-radius); border:1px solid var(--line-strong);
  background:var(--surface); display:grid; place-items:center; color:var(--dim); cursor:pointer;
  transition:border-color .2s, color .2s, transform .12s var(--ease), background .2s;
}
.icon-btn:active{ transform:scale(.94); }
@media (hover:hover){ .icon-btn:hover{ color:var(--ink); border-color:var(--faint); } }

/* ---------- radar mark / logo ---------- */
.logo{ display:inline-flex; align-items:center; gap:11px; cursor:pointer; user-select:none; }
.wm{ display:inline-flex; align-items:center; font-weight:800; font-size:18px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink); line-height:1; padding-left:.04em; }
.wm b{ color:inherit; font-weight:800; }
.wm::after{ content:""; width:5px; height:5px; border-radius:50%; background:var(--gold); margin-left:.18em; flex:none; }
.mark{ position:relative; width:32px; height:32px; flex:none; color:var(--ink); }
.mark .mark-svg{ width:100%; height:100%; display:block; }
.m-cut{ stroke:var(--surface); }
.m-cut-f{ fill:var(--surface); }
.mark.lg{ width:40px; height:40px; }
@keyframes sweep{ to{ transform:rotate(360deg); } }

/* ---------- header (desktop) ---------- */
header{
  position:sticky; top:0; z-index:40; background:var(--header-bg);
  -webkit-backdrop-filter:saturate(1.6) blur(14px); backdrop-filter:saturate(1.6) blur(14px);
  border-bottom:1px solid var(--line);
}
.bar{ display:flex; align-items:center; gap:12px; height:70px; }
.cat-btn{
  height:var(--control-h); min-height:var(--control-h); border-radius:var(--control-radius); background:var(--brand); color:var(--on-brand); font-weight:600;
  border:0; padding:0 16px; display:inline-flex; align-items:center; gap:9px; cursor:pointer; font-size:14px; white-space:nowrap;
  transition:transform .12s var(--ease), box-shadow .2s;
}
.cat-btn:active{ transform:scale(.97); }
.search{ position:relative; flex:1; min-width:120px; }
.search input{
  width:100%; height:var(--control-h); min-height:var(--control-h); border:1px solid var(--line-strong); border-radius:var(--control-radius);
  background:var(--surface); color:var(--ink); padding:0 16px 0 44px; font-size:14.5px; outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.search input::placeholder{ color:var(--faint); }
.search input:focus{ border-color:var(--ink); box-shadow:0 0 0 4px color-mix(in oklab,var(--ink) 8%, transparent); }
.search .si{ position:absolute; left:15px; top:50%; transform:translateY(-50%); color:var(--faint); display:grid; place-items:center; }
.ac{
  position:absolute; top:54px; left:0; right:0; background:var(--surface); border:1px solid var(--line);
  border-radius:16px; overflow:hidden; z-index:5; box-shadow:var(--shadow-lg);
  opacity:0; transform:translateY(-6px) scale(.99); transform-origin:top; pointer-events:none;
  transition:opacity .18s var(--ease), transform .18s var(--ease);
}
.search.open .ac{ opacity:1; transform:none; pointer-events:auto; }
.ac a{ display:flex; align-items:center; gap:12px; padding:12px 15px; font-size:14px; border-bottom:1px solid var(--line); }
.ac a:last-child{ border-bottom:0; }
.ac .t{ color:var(--dim); font-size:12px; margin-left:auto; font-family:var(--mono); }
@media (hover:hover){ .ac a:hover{ background:var(--tile); } }

.quicknav{ display:flex; gap:24px; padding:2px 0 14px; overflow:auto; scrollbar-width:none; }
.quicknav::-webkit-scrollbar{ display:none; }
.qn{ font-size:14px; color:var(--dim); font-weight:500; white-space:nowrap; display:inline-flex; align-items:center; gap:7px; transition:color .2s; }
.qn .ic{ width:16px; height:16px; opacity:.7; }
@media (hover:hover){ .qn:hover{ color:var(--ink); } }
/* paid advertising links in header + home strip */
.navads{ display:inline-flex; gap:9px; align-items:center; margin-left:auto; padding-left:16px; border-left:1px solid var(--line); }
.navads-lbl{ font-family:var(--mono); font-size:9.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); flex:none; }
.qn.ad{ display:inline-flex; align-items:center; gap:7px; padding:5px 11px 5px 8px; border:1px solid var(--line); border-radius:999px; background:var(--tile); color:var(--ink-soft); font-weight:600; font-size:13px; }
@media (hover:hover){ .qn.ad:hover{ border-color:var(--gold); color:var(--ink); } }
.ad-mark{ font-size:8.5px; font-weight:800; letter-spacing:.06em; color:var(--gold); background:var(--surface); border:1px solid color-mix(in oklab,var(--gold) 35%,var(--line)); border-radius:5px; padding:1px 4px; line-height:1.3; }
.ad-dot{ width:7px; height:7px; border-radius:50%; background:var(--gold); }
.ad-logo{ width:18px; height:18px; border-radius:5px; background:var(--surface) center/cover no-repeat; flex:none; }
.adlinks-strip{ display:flex; align-items:center; gap:10px; overflow:auto; scrollbar-width:none; margin:18px 0 -6px; padding-bottom:2px; }
.adlinks-strip::-webkit-scrollbar{ display:none; }
.adlinks-strip .adlbl{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--faint); text-transform:uppercase; letter-spacing:.04em; flex:none; }
.adlinks-strip .adlbl .ic{ width:14px; height:14px; color:var(--gold); }
.adchip{ display:inline-flex; align-items:center; gap:8px; flex:none; padding:8px 14px 8px 10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:var(--shadow-sm); font-weight:700; font-size:13.5px; color:var(--ink); }
@media (hover:hover){ .adchip:hover{ border-color:var(--gold); transform:translateY(-1px); } }
.adchip{ transition:transform .15s, border-color .15s; }

/* category dropdown */
.dd{ position:relative; }
.dd-panel{
  position:absolute; top:54px; left:0; width:520px; max-width:92vw; background:var(--surface); border:1px solid var(--line);
  border-radius:18px; padding:10px; display:grid; grid-template-columns:1fr 1fr; gap:5px; z-index:20; box-shadow:var(--shadow-lg);
  max-height:min(74vh,560px); overflow-y:auto;
  opacity:0; transform:translateY(-8px) scale(.98); transform-origin:top left; pointer-events:none;
  transition:opacity .2s var(--ease), transform .2s var(--ease);
}
.dd.open .dd-panel{ opacity:1; transform:none; pointer-events:auto; }
.dd-head{ grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; padding:6px 12px 11px; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); border-bottom:1px solid var(--line); margin-bottom:4px; }
.dd-total{ font-family:var(--mono); font-weight:600; text-transform:none; letter-spacing:0; color:var(--dim); }
.dd-panel a{ display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:11px; font-size:14px; font-weight:500; }
.dd-panel a .dd-nm{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dd-panel a.main{ background:color-mix(in oklab,var(--gold) 9%,transparent); }
.dd-panel a.main .dd-ic{ background:var(--gold); color:#1a1408; }
.dd-ic{ width:32px; height:32px; border-radius:10px; background:var(--tile); display:grid; place-items:center; color:var(--ink-soft); }
.dd-ic .ic{ width:17px; height:17px; }
.dd-panel a .cc{ margin-left:auto; font-family:var(--mono); font-size:12px; color:var(--faint); }
@media (hover:hover){ .dd-panel a:hover{ background:var(--tile); } }

/* ---------- mobile top bar + bottom tabs ---------- */
.mtop{ display:none; }
.tabbar{ display:none; }
@media (max-width:899px){
  header{ display:none; }
  .mtop{
    display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:40; height:60px; padding:0 16px;
    background:var(--surface); border-bottom:1px solid var(--line); box-shadow:0 1px 0 var(--line);
  }
  .mtop .logo{ font-size:19px; }
  .mtop .spacer{ flex:1; }
  .tabbar{
    display:grid; grid-auto-flow:column; grid-auto-columns:1fr; position:fixed; left:0; right:0; bottom:0; z-index:45;
    background:var(--surface);
    border-top:1px solid var(--line-strong); padding:6px 6px calc(6px + var(--safe-b)); box-shadow:0 -8px 24px -16px rgba(0,0,0,.3);
  }
  .tab-i{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:6px 0;
    color:var(--faint); font-size:9.5px; font-weight:600; letter-spacing:.005em; border-radius:14px; position:relative;
    transition:color .2s; min-height:var(--tap);
  }
  .tab-i .ic{ width:22px; height:22px; transition:transform .2s var(--ease); }
  .tab-i.active{ color:var(--ink); }
  .tab-i.active .ic{ transform:translateY(-1px); }
  .tab-i.active::before{ content:""; position:absolute; top:2px; width:30px; height:3px; border-radius:99px; background:var(--gold); }
  body{ padding-bottom:calc(74px + var(--safe-b)); }
}

/* ---------- sections / heads ---------- */
section{ margin-top:54px; }
section:first-child{ margin-top:30px; }
.head{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:22px; }
.head h2{ font-size:29px; font-weight:800; letter-spacing:-.03em; margin:0; line-height:1.05; }
.head .sub{ color:var(--dim); font-size:14px; }
.cnt{ display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--dim); font-weight:500; }
.see-all{ flex:none; display:inline-flex; align-items:center; gap:5px; cursor:pointer; white-space:nowrap;
  font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:600;
  color:var(--gold-bright); padding:8px 13px; border-radius:999px;
  border:1px solid color-mix(in oklab,var(--gold-bright) 32%, var(--line)); background:color-mix(in oklab,var(--gold-bright) 8%, transparent);
  transition:background .15s, border-color .15s; }
.see-all .ic{ width:14px; height:14px; }
@media (hover:hover){ .see-all:hover{ background:color-mix(in oklab,var(--gold-bright) 15%, transparent); border-color:var(--gold-bright); } }
.live-dot{ width:8px; height:8px; border-radius:50%; background:var(--ok); position:relative; }
.live-dot::after{ content:""; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid var(--ok); opacity:.5; animation:pulse 2s var(--ease) infinite; }
@keyframes pulse{ 0%{ transform:scale(.6); opacity:.6; } 100%{ transform:scale(1.5); opacity:0; } }

/* view switching + reveal
   base = always visible; entrance animation only under no-preference, replays when a view activates */
.view{ display:none; }
.view.active{ display:block; }
@keyframes revealIn{ from{ transform:translateY(20px); } to{ transform:none; } }
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; }
  .mark::before{ display:none; }
}
@media (prefers-reduced-motion:no-preference){
  .view.active [data-reveal]{ animation:revealIn .6s var(--ease) backwards; }
  [data-reveal]:nth-child(2){ animation-delay:.05s; }
  [data-reveal]:nth-child(3){ animation-delay:.1s; }
  [data-reveal]:nth-child(4){ animation-delay:.15s; }
  [data-reveal]:nth-child(5){ animation-delay:.2s; }
  [data-reveal]:nth-child(6){ animation-delay:.25s; }
  [data-reveal]:nth-child(n+7){ animation-delay:.3s; }
}

/* ---------- hero ---------- */
.hero{ position:relative; margin-top:26px; border-radius:var(--r-lg); overflow:hidden; background:var(--ink-panel); color:var(--on-ink); padding:24px 30px; box-shadow:var(--shadow-lg); }
.hero .grid-bg{ position:absolute; inset:0; opacity:.5;
  background:
    radial-gradient(120% 120% at 85% -10%, color-mix(in oklab,var(--gold) 22%, transparent), transparent 55%),
    repeating-radial-gradient(circle at 88% 8%, transparent 0 34px, rgba(255,255,255,.045) 34px 35px); }
.hero-in{ position:relative; z-index:2; max-width:680px; display:flex; flex-direction:column; gap:16px; }
.hero .kicker{ display:inline-flex; align-items:center; gap:9px; font-family:var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.7); padding:7px 13px; border:1px solid rgba(255,255,255,.16); border-radius:99px; }
.hero h1{ font-size:27px; line-height:1.08; letter-spacing:-.025em; font-weight:800; margin:0; max-width:560px; text-wrap:balance; }
.hero h1 em{ font-style:normal; color:var(--gold-bright); }
.hero p{ font-size:16px; color:rgba(255,255,255,.78); margin:0 0 26px; max-width:480px; line-height:1.55; }
.hero-stats{ display:flex; gap:28px; flex-wrap:wrap; }
.hstat .n{ font-size:21px; font-weight:800; letter-spacing:-.02em; font-family:var(--mono); }
.hstat .l{ font-size:12.5px; color:rgba(255,255,255,.6); margin-top:2px; }
.hero-search{ margin-top:28px; display:flex; gap:10px; max-width:520px; }
.hero-search input{ flex:1; height:52px; border-radius:14px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.06); color:#fff; padding:0 18px; font-size:15px; outline:none; transition:border-color .2s, background .2s; }
.hero-search input::placeholder{ color:rgba(255,255,255,.5); }
.hero-search input:focus{ border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.1); }
.hero-search .btn{ background:var(--gold); border-color:var(--gold); color:#1a1408; height:52px; padding:0 22px; }

/* ---------- animated radar (hero centerpiece) ---------- */
.radar{ position:absolute; right:-46px; top:50%; transform:translateY(-50%); width:308px; height:308px; pointer-events:none; z-index:1; opacity:.92; --rdur:7s; }
.radar-face{ position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(circle at center, color-mix(in oklab,var(--gold) 9%, transparent) 0 2%, transparent 6%),
    repeating-radial-gradient(circle at center, transparent 0 38px, rgba(255,255,255,.05) 38px 39px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 50px rgba(0,0,0,.3); }
.radar-face::before, .radar-face::after{ content:""; position:absolute; background:rgba(255,255,255,.045); }
.radar-face::before{ left:50%; top:8%; bottom:8%; width:1px; transform:translateX(-.5px); }
.radar-face::after{ top:50%; left:8%; right:8%; height:1px; transform:translateY(-.5px); }
.radar-sweep{ position:absolute; inset:0; border-radius:50%; overflow:hidden; will-change:transform; animation:radarSweep var(--rdur) linear infinite; }
/* мягкий клин-луч + тонкая яркая ведущая грань */
.radar-sweep::before{ content:""; position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 0deg, color-mix(in oklab,var(--gold-bright) 26%, transparent) 0deg, color-mix(in oklab,var(--gold-bright) 6%, transparent) 26deg, transparent 64deg); }
.radar-sweep::after{ content:""; position:absolute; left:50%; top:8%; width:1.5px; height:42%; transform:translateX(-.75px); transform-origin:bottom center;
  background:linear-gradient(to top, color-mix(in oklab,var(--gold-bright) 85%, transparent), transparent); }
.radar-center{ position:absolute; left:50%; top:50%; width:6px; height:6px; border-radius:50%; background:var(--gold-bright); transform:translate(-50%,-50%); box-shadow:0 0 10px color-mix(in oklab,var(--gold-bright) 80%, transparent); z-index:3; }
.blip{ position:absolute; transform:translate(-50%,-50%); width:var(--bs,6px); height:var(--bs,6px); z-index:2; }
.blip .chip{ position:absolute; inset:0; border-radius:50%;
  background:var(--gold-bright); box-shadow:0 0 6px color-mix(in oklab,var(--gold-bright) 60%, transparent);
  opacity:0; transform:scale(.5); animation:blipDiscover var(--rdur) ease-out infinite;
  animation-delay:calc((var(--ang) / 360 - 1) * var(--rdur)); }
@keyframes radarSweep{ to{ transform:rotate(360deg); } }
@keyframes blipDiscover{ 0%{ opacity:0; transform:scale(.5); } 4%{ opacity:1; transform:scale(1.25); } 12%{ opacity:.95; transform:scale(1); } 40%{ opacity:.55; transform:scale(1); } 60%{ opacity:0; transform:scale(.85); } 100%{ opacity:0; transform:scale(.5); } }
.hero-dish{ display:none; }
@media (max-width:899px){ .hero{ padding:22px 20px; } .hero h1{ font-size:23px; }
  /* как раньше: радар выглядывает из правого верхнего угла, часть уходит за край */
  .radar{ position:absolute; right:-58px; top:-44px; transform:none; margin:0; width:190px; height:190px; opacity:.8; }
}
@media (prefers-reduced-motion: reduce){
  .radar-sweep{ animation:none; }
  .blip .chip{ animation:none; opacity:.85; transform:scale(1); }
}

/* trust strip */
.trust{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:18px; }
.trust .ti{ display:flex; align-items:center; gap:12px; padding:16px 18px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow-sm); }
.trust .ti .ic{ color:var(--ink); width:22px; height:22px; }
.trust .ti b{ display:block; font-size:14.5px; font-weight:700; }
.trust .ti span{ font-size:12.5px; color:var(--dim); }
@media (max-width:899px){ .trust{ grid-template-columns:1fr 1fr; } }

/* ---------- banners ---------- */
.bgrid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.bn{ aspect-ratio:345/150; border-radius:var(--r); background:var(--tile);
  border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  color:var(--faint); cursor:pointer; overflow:hidden; content-visibility:auto; contain-intrinsic-size:150px; transition:transform .18s var(--ease), background .2s, border-color .2s; }
.bn.has-ad-img{ border-color:transparent; background-color:var(--tile); }
/* Видео-баннер (GIF→MP4 от сервера): заполняет контейнер cover, легче гифки. */
.ad-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; pointer-events:none; background:var(--tile); }
/* iOS Safari: скрываем нативный play-оверлей/кнопку, чтобы видео-баннер выглядел как гифка. */
.ad-video::-webkit-media-controls,
.ad-video::-webkit-media-controls-start-playback-button,
.ad-video::-webkit-media-controls-play-button,
.ad-video::-webkit-media-controls-panel,
.ad-video::-webkit-media-controls-overlay-play-button{ display:none !important; -webkit-appearance:none; opacity:0; }
/* Любой контейнер с видео-баннером (.ad-video position:absolute) ОБЯЗАН быть relative+overflow,
   иначе абсолютное видео растягивается на ближайшего позиционированного предка (был баг:
   chat-баннер mp4 расползался на всю страницу). */
.bn.has-ad-img,.gbn.has-ad-img,.chat-bn.has-ad-img,.rfl-banner.has-ad-img,.shop-hero.has-ad-img{ position:relative; overflow:hidden; }
/* chat-side баннер с видео: фиксированное соотношение (не auto), иначе высота не ограничена. */
.chat-bn.chat-bn-side.has-ad-img{ aspect-ratio:300/470; }
.bn .bl{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
.bn .bd{ font-size:12px; color:var(--faint); }
@media (hover:hover){ .bn:hover{ transform:translateY(-3px); border-color:var(--faint); } }
@media (max-width:1100px){ .bgrid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:680px){ .bgrid{ grid-template-columns:1fr 1fr; gap:12px; } }

/* ---------- categories ----------
   The category component is intentionally defined in public-features.css,
   with device geometry isolated in mobile.css and desktop.css. */

/* announce */
.announce{ margin-top:18px; border-radius:var(--r-lg); background:var(--ink-panel); color:var(--on-ink); padding:32px 36px; display:flex; align-items:center; justify-content:space-between; gap:24px; overflow:hidden; position:relative; box-shadow:var(--shadow); }
.announce .grid-bg{ position:absolute; inset:0; opacity:.45; background:repeating-radial-gradient(circle at 12% 50%, transparent 0 30px, rgba(255,255,255,.05) 30px 31px); }
.announce h3{ margin:0 0 6px; font-size:25px; font-weight:800; letter-spacing:-.02em; position:relative; }
.announce-txt{ position:relative; flex:1 1 auto; }
.announce p{ margin:0; font-size:14.5px; opacity:.82; position:relative; }
.announce-cd{ position:relative; display:inline-flex; align-items:center; gap:9px; margin-top:16px; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); font-size:13px; color:rgba(255,255,255,.8); }
.announce-cd b{ font-family:var(--mono); font-weight:700; font-size:14px; letter-spacing:.04em; color:var(--gold-bright); }
.ac-dot{ width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 0 color-mix(in oklab,var(--gold) 70%, transparent); animation:acPulse 1.8s var(--ease) infinite; }
@keyframes acPulse{ 0%{ box-shadow:0 0 0 0 color-mix(in oklab,var(--gold) 55%, transparent); } 70%{ box-shadow:0 0 0 7px transparent; } 100%{ box-shadow:0 0 0 0 transparent; } }
.announce .btn{ position:relative; background:var(--gold); border-color:var(--gold); color:#1a1408; height:48px; padding:0 22px; flex:none; }
/* giveaway prize-wheel medallion */
.announce-ic{ position:relative; flex:none; width:66px; height:66px; display:grid; place-items:center; overflow:visible; filter:drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.ann-wheel{ position:absolute; inset:0; border-radius:50%; background:repeating-conic-gradient(from 0deg, var(--gold) 0 30deg, #23262f 30deg 60deg, var(--gold-bright) 60deg 90deg, #1b1e26 90deg 120deg); box-shadow:inset 0 0 0 2px color-mix(in oklab,var(--gold) 55%, transparent), 0 0 18px color-mix(in oklab,var(--gold) 30%, transparent); animation:annSpin 7s linear infinite; }
.ann-core{ position:absolute; inset:9px; border-radius:50%; display:grid; place-items:center; color:var(--gold-bright); background:radial-gradient(circle at 50% 35%, #2c3038, #14161d 80%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); z-index:2; }
.ann-core [data-ic]{ display:grid; place-items:center; }
.ann-core svg{ width:26px; height:26px; }
.ann-pointer{ position:absolute; top:-5px; left:50%; transform:translateX(-50%); width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:10px solid var(--gold-bright); z-index:3; filter:drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.ann-spark{ position:absolute; width:6px; height:6px; border-radius:50%; background:var(--gold-bright); box-shadow:0 0 8px 1px color-mix(in oklab,var(--gold) 80%, transparent); opacity:0; z-index:4; }
.ann-spark.s1{ top:-4px; right:-2px; animation:annTwinkle 2.4s var(--ease) infinite; }
.ann-spark.s2{ bottom:2px; left:-6px; animation:annTwinkle 2.4s var(--ease) .8s infinite; }
.ann-spark.s3{ bottom:-4px; right:6px; width:4px; height:4px; animation:annTwinkle 2.4s var(--ease) 1.5s infinite; }
@keyframes annSpin{ to{ transform:rotate(360deg); } }
@keyframes annTwinkle{ 0%,100%{ opacity:0; transform:scale(.4); } 45%{ opacity:1; transform:scale(1); } }
@media (prefers-reduced-motion:reduce){ .ann-wheel,.ann-spark{ animation:none; } .ann-spark{ opacity:.9; } }
@media (max-width:680px){ .announce{ flex-direction:column; align-items:flex-start; padding:26px 22px; } .announce .btn{ width:100%; } .announce-ic{ width:56px; height:56px; } .ann-core svg{ width:22px; height:22px; } }

/* ---------- subnav / chips / filter bar ---------- */
.catbar{ display:flex; flex-wrap:wrap; gap:11px; align-items:center; margin-bottom:16px; }
.catbar .search2{ flex:1; min-width:200px; position:relative; }
.catbar .search2 .si{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--faint); display:grid; place-items:center; }
.catbar .search2 input{ width:100%; height:var(--field-h); min-height:var(--field-h); border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--surface); color:var(--ink); padding:0 15px 0 42px; font-size:14.5px; outline:none; transition:border-color .2s; }
.catbar .search2 input:focus{ border-color:var(--ink); }
.subs{ display:flex; gap:9px; overflow:auto; scrollbar-width:none; margin-bottom:20px; padding-bottom:2px; }
.subs::-webkit-scrollbar{ display:none; }
.chip{ height:var(--filter-h); min-height:var(--filter-h); font-size:13.5px; line-height:1; color:var(--ink); padding:0 16px; border:1px solid var(--line-strong); border-radius:var(--r-pill); background:var(--surface); white-space:nowrap; cursor:pointer; transition:.2s; font-weight:600; display:inline-flex; align-items:center; justify-content:center; }
.chip.active{ background:var(--ink); color:var(--on-brand); border-color:var(--ink); }
@media (hover:hover){ .chip:hover{ border-color:var(--faint); } .chip.active:hover{ border-color:var(--ink); } }

/* category page: horizontal category selector strip (scales to many categories) */
.cat-nav{ position:relative; margin:26px 0 4px; }
.cat-select{ display:flex; flex-wrap:nowrap; gap:9px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; -webkit-overflow-scrolling:touch; -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 28px),transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 28px),transparent 100%); }
.cat-select::-webkit-scrollbar{ display:none; }
.cat-nav-arrow{ display:none; position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%; border:1px solid var(--line-strong); background:var(--surface); box-shadow:var(--shadow-sm); color:var(--ink); cursor:pointer; z-index:3; place-items:center; transition:border-color .15s, background .15s, opacity .15s; }
.cat-nav-arrow .ic{ width:18px; height:18px; }
.cat-nav-arrow.prev{ left:-6px; } .cat-nav-arrow.prev .ic{ transform:rotate(90deg); }
.cat-nav-arrow.next{ right:-6px; } .cat-nav-arrow.next .ic{ transform:rotate(-90deg); }
@media (hover:hover){
  .cat-nav-arrow.show{ display:grid; }
  .cat-nav-arrow:hover{ border-color:var(--faint); background:var(--tile); }
  .cat-nav:has(.cat-nav-arrow.prev.show) .cat-select{ -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%); }
}
.cat-pill{ flex:none; height:var(--category-pill-h); min-height:var(--category-pill-h); display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-size:13.5px; line-height:1; font-weight:600; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--r-pill); padding:0 15px 0 11px; white-space:nowrap; cursor:pointer; transition:border-color .2s, background .2s, color .2s; }
.cat-pill .cp-ic{ display:inline-flex; color:var(--dim); transition:color .2s; }
.cat-pill .cp-ic .ic{ width:17px; height:17px; }
.cat-pill.on{ background:var(--ink); border-color:var(--ink); color:var(--on-brand); }
.cat-pill.on .cp-ic{ color:var(--on-brand); }
@media (hover:hover){ .cat-pill:hover{ border-color:var(--faint); } .cat-pill.on:hover{ border-color:var(--ink); } }

/* category page: filter bar */
.cat-filters{ display:flex; flex-wrap:wrap; gap:9px; margin:0 0 16px; }
.cat-filters[hidden]{ display:none; }
.fpill{ height:var(--filter-h); min-height:var(--filter-h); display:inline-flex; align-items:center; justify-content:center; gap:7px; font:inherit; font-size:13px; line-height:1; font-weight:600; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--r-pill); padding:0 14px; cursor:pointer; transition:all .18s; }
.fpill .ic{ width:15px; height:15px; color:var(--dim); }
.fpill.on{ background:var(--gold-soft); border-color:color-mix(in oklab,var(--gold) 55%, var(--line-strong)); color:var(--gold-bright); }
.fpill.on .ic{ color:var(--gold-bright); }
@media (hover:hover){ .fpill:hover{ border-color:var(--faint); } }
@media (max-width:680px){
  .cat-nav{ margin:18px 0 2px; }
  .cat-select{ gap:7px; padding-bottom:4px; }
  .cat-pill{ font-size:12.5px; padding:0 13px 0 10px; }
  .cat-pill .cp-ic .ic{ width:15px; height:15px; }
  #view-catalog .head{ margin-top:10px !important; }
  .catbar{ gap:9px; margin-bottom:13px; }
  .catbar .search2{ min-width:0; flex:1 1 100%; }
  .catbar .search2 input{ height:var(--control-h); min-height:var(--control-h); }
  .catbar > .btn{ flex:none; }
  .cat-filters{ gap:7px; margin-bottom:13px; }
  .fpill{ font-size:12px; padding:0 12px; }
  .subs{ margin-bottom:16px; }
}

/* ---------- shop cards (wide) ---------- */
.shoplist{ display:flex; flex-direction:column; gap:16px; }
.shopcard{ position:relative; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); padding:22px 24px 22px 56px; box-shadow:var(--shadow-sm); display:grid; grid-template-columns:minmax(0,0.92fr) minmax(0,1.25fr); gap:26px; cursor:pointer; transition:transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.shopcard.no-mir{ grid-template-columns:1fr; }
.shopcard.top1{ box-shadow:0 0 0 1.5px #e3b53a, var(--shadow); border-color:transparent; }
.shopcard.top2{ box-shadow:0 0 0 1.5px #aab4c2, var(--shadow-sm); border-color:transparent; }
.shopcard.top3{ box-shadow:0 0 0 1.5px #cf935c, var(--shadow-sm); border-color:transparent; }
@media (hover:hover){ .shopcard:hover{ transform:translateY(-3px); box-shadow:var(--shadow); } .shopcard.top1:hover{ box-shadow:0 0 0 1.5px #e3b53a, var(--shadow-lg); } .shopcard.top2:hover{ box-shadow:0 0 0 1.5px #aab4c2, var(--shadow-lg); } .shopcard.top3:hover{ box-shadow:0 0 0 1.5px #cf935c, var(--shadow-lg); } }
.sc-rank{ position:absolute; top:22px; left:16px; display:flex; flex-direction:column; align-items:center; gap:2px; font-family:var(--mono); font-weight:700; font-size:13px; color:var(--faint); }
.sc-rank .ic{ width:22px; height:18px; }
/* gold / silver / bronze medal badges */
.sc-rank.medal-badge{ top:18px; left:14px; width:33px; height:40px; border-radius:11px; gap:0; color:#fff; box-shadow:var(--shadow-sm); overflow:hidden; font-size:12.5px; }
.sc-rank.medal-badge .ic{ width:15px; height:13px; margin-bottom:1px; }
.sc-rank.medal-badge.c1{ background:linear-gradient(158deg,#f8db7b 8%,#e3b53a 52%,#caa017 100%); color:#4a3a06; }
.sc-rank.medal-badge.c2{ background:linear-gradient(158deg,#f1f4f8 8%,#c3ccd7 52%,#9aa7b6 100%); color:#363f4c; }
.sc-rank.medal-badge.c3{ background:linear-gradient(158deg,#eeb682 8%,#cf935c 52%,#a9602e 100%); color:#fff; }
.sc-rank.medal-badge::after{ content:""; position:absolute; inset:0; background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.6) 50%,transparent 68%); transform:translateX(-130%); pointer-events:none; }
@media (hover:hover){ .shopcard:hover .sc-rank.medal-badge::after{ transition:transform .65s var(--ease); transform:translateX(130%); } }
@media (prefers-reduced-motion:reduce){ .sc-rank.medal-badge::after{ display:none; } }
.sc-main{ display:flex; gap:15px; min-width:0; }
.sc-head-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.sc-logo{ width:70px; height:70px; border-radius:19px; background:var(--ink); color:var(--on-brand); display:grid; place-items:center; font-size:27px; font-weight:800; flex:none; letter-spacing:-.02em; }
.sc-name{ font-size:19px; font-weight:800; letter-spacing:-.02em; display:flex; align-items:center; gap:7px; }
.ver{ color:var(--gold); display:inline-flex; }
.ver .ic{ width:17px; height:17px; }
.sc-rate{ display:flex; align-items:center; gap:8px; margin-top:5px; font-size:13.5px; color:var(--dim); }
.stars{ --fill:100%; position:relative; display:inline-block; font-size:13px; line-height:1; letter-spacing:1px; color:var(--line-strong); font-family:var(--sans); }
.stars::before{ content:"★★★★★"; }
.stars i{ position:absolute; left:0; top:0; width:var(--fill); overflow:hidden; color:var(--gold); white-space:nowrap; }
.stars i::before{ content:"★★★★★"; }
.sc-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.sc-chips .ch{ font-size:11.5px; color:var(--ink-soft); background:var(--tile); border-radius:7px; padding:4px 9px; font-weight:600; display:inline-flex; align-items:center; gap:5px; }
.sc-chips .ch .ic{ width:12px; height:12px; color:var(--dim); }
.sc-desc{ font-size:13.5px; color:var(--dim); line-height:1.5; margin:12px 0 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sc-desc-exp{ cursor:pointer; position:relative; transition:none; }
.sc-desc-exp:not(.open):hover{ opacity:.82; }
.sc-desc-exp.open{ -webkit-line-clamp:unset; display:block; overflow:visible; }
.sc-bottom{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); flex-wrap:wrap; }
.sc-bottom .pv{ font-size:12.5px; color:var(--dim); display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); white-space:nowrap; flex:none; }
.sc-bottom .pv .ic{ width:14px; height:14px; }
.sc-go{ height:44px; padding:0 18px; border:0; border-radius:var(--r-sm); background:var(--ink); color:var(--on-brand); font-weight:700; font-size:13.5px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; transition:transform .12s var(--ease), filter .15s; }
.sc-go .ic{ width:16px; height:16px; }
@media (hover:hover){ .sc-go:hover{ filter:brightness(1.12); } }
.sc-go:active{ transform:scale(.96); }

/* mirrors column inside shop card */
.mir-col{ border-left:1px solid var(--line); padding-left:22px; }
.mir-col h5{ margin:0 0 10px; font-size:12px; font-weight:700; display:flex; align-items:center; gap:7px; color:var(--ink); }
.mir-col h5 .ic{ width:15px; height:15px; color:var(--dim); }
.mir-col h5 .c{ margin-left:auto; font-family:var(--mono); font-size:11px; color:var(--faint); font-weight:500; }
.mir-link{ display:flex; align-items:center; gap:9px; font-family:var(--mono); font-size:12.5px; color:var(--ink-soft); padding:5px 0; }
.mir-link.off{ color:var(--bad,#d9534f); }
.sig{ display:inline-flex; align-items:flex-end; gap:1.5px; height:9px; }
.sig i{ width:2px; border-radius:1px; background:var(--ok); }
.sig i:nth-child(1){ height:3.5px; } .sig i:nth-child(2){ height:6px; } .sig i:nth-child(3){ height:9px; }
.sig.off i{ background:var(--bad,#d9534f); } .sig.off i:nth-child(2),.sig.off i:nth-child(3){ background:var(--bad,#d9534f); }
.mir-all{ display:block; width:100%; text-align:center; font-size:12px; color:var(--dim); padding:8px; border:1px solid var(--line); border-radius:10px; margin-top:8px; cursor:pointer; background:var(--surface); transition:.2s; font-weight:600; }
@media (hover:hover){ .mir-all:hover{ border-color:var(--faint); color:var(--ink); } }
.mir-all{ display:flex; align-items:center; justify-content:center; gap:7px; margin-top:2px; }
/* type-aware card extras */
/* exchanger coverage — показывает множество направлений (банки/фиат → крипта) */
.ex-ce{ display:flex; flex-direction:column; gap:8px; margin-top:14px; text-align:left; }
.ex-ce-row{ display:grid; grid-template-columns:78px 1fr; gap:10px; align-items:baseline; }
.ex-ce-k{ font-size:10.5px; font-weight:700; color:var(--faint); text-transform:uppercase; letter-spacing:.04em; }
.ex-ce-val{ font-size:13px; font-weight:600; color:var(--ink-soft); line-height:1.5; }
.ex-ce-val.coin{ font-family:var(--mono); font-weight:700; letter-spacing:.01em; color:var(--ink); }
.ex-ce-val .sep{ color:var(--faint); margin:0 3px; font-weight:400; }
.ex-ce-val .more{ color:var(--faint); font-weight:600; }
.ex-ce-foot{ display:flex; align-items:center; gap:9px; margin-top:2px; font-size:12px; color:var(--dim); }
.ex-ce-foot b{ color:var(--ink); font-weight:700; }
.ex-ce-foot .dot{ color:var(--line-strong); }
/* unified compact meta — same tidy look across every category */
.sc-meta{ display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 0; }
.sc-stat{ display:inline-flex; align-items:baseline; gap:6px; padding:5px 10px; background:var(--tile); border:1px solid var(--line); border-radius:9px; }
.sc-stat .ms-l{ font-size:10px; font-weight:700; color:var(--faint); text-transform:uppercase; letter-spacing:.04em; }
.sc-stat .ms-v{ font-size:12.5px; font-weight:700; color:var(--ink); }
.sc-avail{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--dim); font-family:var(--mono); }
.sc-avail .av-dot{ width:7px; height:7px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px color-mix(in oklab,var(--ok) 18%,transparent); flex:none; }
.sc-avail.down{ color:var(--bad,#d9534f); }
.sc-avail.down .av-dot{ background:var(--bad,#d9534f); box-shadow:none; }
.sc-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.sc-copy{ width:44px; height:44px; flex:none; border:1px solid var(--line); background:var(--surface); color:var(--dim); border-radius:var(--r-sm); display:grid; place-items:center; cursor:pointer; transition:border-color .15s var(--ease), color .15s var(--ease); }
.sc-copy .ic{ width:17px; height:17px; }
@media (hover:hover){ .sc-copy:hover{ border-color:var(--faint); color:var(--ink); } }
.sc-badge-more{ color:var(--faint); background:var(--tile); }
.sc-spec{ display:grid; grid-template-columns:repeat(auto-fit,minmax(108px,1fr)); gap:8px; margin:13px 0 2px; }
.sc-spec .sp{ background:var(--tile); border:1px solid var(--line); border-radius:11px; padding:8px 11px; }
.sc-spec .sp-k{ display:block; font-size:10.5px; color:var(--faint); letter-spacing:.02em; margin-bottom:3px; }
.sc-spec .sp-v{ display:block; font-size:13.5px; font-weight:700; color:var(--ink); letter-spacing:-.01em; }
.sc-tagrow{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:10px 0 2px; }
.sc-tagrow .tr-k{ font-size:11.5px; color:var(--faint); margin-right:2px; }
.sc-tagrow .tr-t{ font-family:var(--mono); font-size:11px; font-weight:600; color:var(--ink-soft); background:var(--tile); border:1px solid var(--line); border-radius:7px; padding:3px 8px; }
.sc-tagrow .tr-t.more{ color:var(--faint); }
/* shop card: cities + products — compact (counts, or the filtered value) */
.sc-cp{ display:flex; flex-wrap:wrap; gap:9px 20px; margin:13px 0 2px; }
.cp-item{ display:inline-flex; align-items:center; gap:9px; min-width:0; }
.cp-item .cp-ic{ width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex:none; }
.cp-item .cp-ic svg{ width:16px; height:16px; }
.cp-item .cp-ic.ci-city{ background:color-mix(in oklab,var(--info) 12%,transparent); color:var(--info); }
.cp-item .cp-ic.ci-prod{ background:var(--gold-soft,#e4f4ec); color:var(--gold); }
.cp-item .cp-lbl{ font-size:11px; font-weight:700; color:var(--faint); text-transform:uppercase; letter-spacing:.04em; }
.cp-item .cp-n{ font-weight:800; color:var(--ink); font-size:15px; font-family:var(--mono); }
.cp-item .cp-val{ font-weight:600; color:var(--ink); background:var(--tile); border:1px solid var(--line); border-radius:8px; padding:3px 10px; font-size:12.5px; }
.cp-row{ display:flex; align-items:flex-start; gap:9px; min-width:0; }
.cp-ic{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; flex:none; }
.cp-ic svg{ width:15px; height:15px; }
.cp-row.cp-city .cp-ic{ background:color-mix(in oklab,var(--info) 12%,transparent); color:var(--info); }
.cp-row.cp-prod .cp-ic{ background:var(--gold-soft,#e4f4ec); color:var(--gold); }
.cp-lbl{ font-size:11px; font-weight:700; color:var(--faint); text-transform:uppercase; letter-spacing:.04em; align-self:center; flex:none; width:54px; }
.cp-list{ display:flex; flex-wrap:wrap; gap:6px; flex:1; min-width:0; align-self:center; }
.cp-chip{ font-size:12px; font-weight:600; color:var(--ink-soft); background:var(--tile); border:1px solid var(--line); border-radius:8px; padding:3px 9px; }
.cp-chip.more{ color:var(--faint); }
/* aggregator mirror type badge in popup */
.mir-ty{ flex:none; font-size:10px; font-weight:700; padding:2px 7px; border-radius:6px; margin-right:2px; }
.mir-ty.t-clear{ color:var(--info,#2a6fdb); background:color-mix(in oklab,var(--info,#2a6fdb) 12%,transparent); }
.mir-ty.t-tor{ color:#7c3aed; background:#efe9fb; }
.mir-ty.t-tg{ color:#0e7aaf; background:#e2f1fb; }
.mirror .mir-u{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.mirror.clickable{ cursor:pointer; will-change:transform; transition:border-color .25s cubic-bezier(.22,1,.36,1), background-color .25s cubic-bezier(.22,1,.36,1), box-shadow .25s cubic-bezier(.22,1,.36,1), transform .18s cubic-bezier(.22,1,.36,1); }
.mirror.clickable:hover{ border-color:rgba(31,138,91,.55); background-color:rgba(31,138,91,.08); box-shadow:0 2px 14px rgba(31,138,91,.12); }
.mirror.clickable:active{ transform:translateY(1px) scale(.995); }
.mirror.clickable:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.mirror .mir-go{ flex:none; display:grid; place-items:center; color:var(--faint); margin-left:4px; transition:color .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1); }
.mirror.clickable:hover .mir-go{ color:var(--gold); transform:translateX(3px); }
/* type-aware filter grid */
.cat-filters-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; align-items:end; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--tile); margin-top:12px; }
.cat-filters-grid .ff{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.cat-filters-grid .ff label{ font-size:11.5px; font-weight:600; color:var(--dim); letter-spacing:.01em; }
.cat-filters-grid .ff > input{ height:var(--filter-field-h); min-height:var(--filter-field-h); border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); color:var(--ink); padding:0 12px; outline:none; font-size:13.5px; font-family:inherit; transition:border-color .15s, box-shadow .15s; }
@media (hover:hover){ .cat-filters-grid .ff > input:hover{ border-color:var(--faint); } }
.cat-filters-grid .ff > input:focus{ border-color:var(--ink); box-shadow:0 0 0 3px color-mix(in oklab, var(--ink) 8%, transparent); }
/* custom styled dropdown (matches site, no native square popup) */
.csel{ position:relative; }
.csel-btn{ width:100%; height:var(--filter-field-h); min-height:var(--filter-field-h); display:flex; align-items:center; gap:8px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); color:var(--ink); padding:0 10px 0 12px; font:inherit; font-size:13.5px; cursor:pointer; text-align:left; transition:border-color .15s, box-shadow .15s; }
.csel-btn .csel-val{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.csel-btn .csel-val.ph{ color:var(--dim); }
.csel-btn .ic{ width:18px; height:18px; color:var(--faint); flex:none; transition:transform .2s var(--ease); }
@media (hover:hover){ .csel-btn:hover{ border-color:var(--faint); } }
.csel.open .csel-btn{ border-color:var(--ink); box-shadow:0 0 0 3px color-mix(in oklab, var(--ink) 8%, transparent); }
.csel.open .csel-btn .ic{ transform:rotate(180deg); }
.csel-pop{ position:absolute; z-index:30; top:calc(100% + 6px); left:0; right:0; max-height:264px; overflow-y:auto; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-lg); display:flex; flex-direction:column; gap:2px; }
.csel-pop[hidden]{ display:none; }
.csel-opt[hidden]{ display:none; }
.csel-opt{ display:flex; align-items:center; width:100%; border:0; background:transparent; color:var(--ink); font:inherit; font-size:13.5px; text-align:left; padding:9px 11px; border-radius:8px; cursor:pointer; transition:background .12s; }
@media (hover:hover){ .csel-opt:hover{ background:var(--tile); } }
.csel-opt.on{ background:var(--ink); color:var(--on-brand); font-weight:600; }
.csel-grp{ font-size:10.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); padding:9px 11px 4px; }
.csel-grp:first-child{ padding-top:4px; }
/* exchange custom dropdowns — match bar height */
.ex-fld-sel{ flex:1; min-width:170px; }
.ex-selhost .csel-btn{ height:var(--control-h); min-height:var(--control-h); border-radius:12px; font-size:14px; }
.ex-selhost .csel-btn .csel-ava{ margin-right:2px; }
/* mini-popup: search + category tabs + list (exnode-style) */
.csel-ava{ width:24px; height:24px; border-radius:50%; flex:none; display:grid; place-items:center; font-size:11px; font-weight:800; font-family:var(--mono); color:#fff; text-transform:uppercase; }
.csel-ava.cat-crypto{ background:linear-gradient(140deg,#f7931a,#e8a33d); }
.csel-ava.cat-bank{ background:linear-gradient(140deg,#2a6fdb,#3b8ee8); }
.csel-ava.cat-cash{ background:linear-gradient(140deg,#1f8a5b,#27a36a); }
.csel-ava.cat-all{ background:var(--ink); color:var(--on-brand); }
.ex-pop{ padding:0; max-height:none; width:340px; max-width:88vw; }
.csel-pop-head{ position:sticky; top:0; background:var(--surface); padding:10px 10px 8px; border-bottom:1px solid var(--line); border-radius:14px 14px 0 0; z-index:2; }
.csel-search-wrap{ display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--line-strong); border-radius:11px; padding:0 11px; height:40px; margin:0 0 9px; transition:border-color .15s, box-shadow .15s; }
.csel-search-wrap:focus-within{ border-color:var(--ink); box-shadow:0 0 0 3px color-mix(in oklab, var(--ink) 9%, transparent); background:var(--surface); }
.csel-search-wrap > .ic{ width:15px; height:15px; color:var(--faint); flex:none; }
/* reset — beats global .ff input / .ex-fld input boxed styles so no double border */
.csel-search-wrap input.csel-search{ flex:1; min-width:0; height:auto; margin:0; border:0; background:transparent; outline:none; box-shadow:none; padding:0; border-radius:0; font:inherit; font-size:13.5px; color:var(--ink); }
/* Catalog filter dropdown search: one clean control, never an input inside another input. */
.cat-filters-grid .csel-pop.has-find{ padding:8px; gap:0; overflow:hidden; }
.csel-find-row{ display:flex; align-items:center; gap:9px; box-sizing:border-box; width:100%; height:42px; min-height:42px; margin:0 0 7px; padding:0 12px; overflow:hidden; background:var(--surface); border:1px solid var(--line-strong); border-radius:11px; box-shadow:none; transition:border-color .15s,box-shadow .15s; }
.csel-find-row:focus-within{ background:var(--surface); border-color:var(--ink); box-shadow:0 0 0 3px color-mix(in oklab,var(--ink) 7%,transparent); }
.csel-find-row > .ic{ width:16px; height:16px; color:var(--faint); flex:none; }
.cat-filters-grid .csel-find-row input.csel-search,
.csel-find-row input.csel-search{ box-sizing:border-box!important; flex:1 1 auto!important; min-width:0!important; width:100%!important; height:100%!important; min-height:0!important; max-height:none!important; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; outline:0!important; background:transparent!important; background-image:none!important; box-shadow:none!important; color:var(--ink)!important; font:inherit!important; font-size:14px!important; line-height:1.2!important; -webkit-appearance:none!important; appearance:none!important; }
.csel-find-row input.csel-search::placeholder{ color:var(--dim); opacity:1; }
.cat-filters-grid .csel-pop.has-find > .csel-list{ padding:0; max-height:240px; }
.cat-filters-grid .csel-pop.has-find .csel-opt{ min-height:42px; padding:9px 12px; border-radius:9px; }
.csel-tabs{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.csel-tab{ flex:none; height:var(--filter-h-popup); min-height:var(--filter-h-popup); display:inline-flex; align-items:center; justify-content:center; font:inherit; font-size:12.5px; line-height:1; font-weight:600; padding:0 12px; border-radius:999px; border:1px solid var(--line-strong); background:var(--surface); color:var(--dim); cursor:pointer; transition:all .15s; }
@media (hover:hover){ .csel-tab:hover{ border-color:var(--faint); color:var(--ink); } }
.csel-tab.on{ background:var(--ink); border-color:var(--ink); color:var(--on-brand); }
.csel-tab:disabled,.csel-tab[aria-disabled="true"]{opacity:.42;cursor:not-allowed;pointer-events:none}
.csel-list{ max-height:260px; overflow-y:auto; padding:6px; }
.ex-pop .csel-opt{ gap:10px; padding:8px 10px; }
.csel-opt-nm{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.csel-opt-code{ font-size:11.5px; color:var(--dim); font-family:var(--mono); }
.ex-pop .csel-opt.on .csel-opt-code{ color:color-mix(in oklab, var(--on-brand) 75%, transparent); }
.csel-empty{ padding:20px 12px; text-align:center; color:var(--dim); font-size:13px; }
.cat-filters-grid .fclear{ align-self:end; height:var(--filter-field-h); min-height:var(--filter-field-h); }
.btn .fcount{ display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--gold); color:#1b1d22; font-size:11px; font-weight:800; margin-left:2px; }
/* mini captcha (registration + review) */
.mini-cap{ display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line-strong); border-radius:12px; background:var(--surface); cursor:pointer; user-select:none; transition:border-color .15s; }
.mini-cap:hover{ border-color:var(--faint); }
.mini-cap .mc-box{ width:24px; height:24px; border:2px solid var(--line-strong); border-radius:6px; display:grid; place-items:center; flex:none; transition:all .15s; }
.mini-cap .mc-box svg{ width:16px; height:16px; fill:none; stroke:#1b1d22; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; opacity:0; transform:scale(.4); transition:all .18s; }
.mini-cap.on .mc-box{ background:var(--ok); border-color:var(--ok); }
.mini-cap.on .mc-box svg{ opacity:1; transform:scale(1); }
.mini-cap .mc-label{ font-size:14px; font-weight:600; color:var(--ink); }
.mini-cap .mc-brand{ margin-left:auto; display:flex; flex-direction:column; align-items:center; gap:3px; opacity:.7; }
.mini-cap .mc-brand .mark{ width:20px; height:20px; }
.mini-cap .mc-brand small{ font-family:var(--mono); font-size:8.5px; letter-spacing:.12em; color:var(--faint); }
.mini-cap.shake{ animation:capShake .4s; border-color:var(--bad,#d9534f); }
.auth-cap{ margin:6px 0 14px; }
@keyframes capShake{ 0%,100%{ transform:translateX(0); } 25%{ transform:translateX(-6px); } 75%{ transform:translateX(6px); } }
.ex-best{ display:inline-flex; align-items:center; gap:4px; margin-left:8px; font-size:10.5px; font-weight:700; color:#1b1d22; background:var(--gold); padding:2px 8px; border-radius:7px; vertical-align:middle; }
.ex-best .ic{ width:12px; height:12px; }
.ex-live{ color:var(--ok); font-weight:700; }
/* валюты обменника — две группы с ⇄ (в обе стороны) */
.ex-groups{ display:grid; grid-template-columns:1fr auto 1fr; gap:16px; align-items:center; border:1px solid var(--line); border-radius:14px; padding:18px; background:var(--surface); }
.exg{ min-width:0; }
.exg-h{ display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:700; color:var(--dim); text-transform:uppercase; letter-spacing:.03em; margin-bottom:11px; }
.exg-h .ic{ width:15px; height:15px; color:var(--faint); flex:none; }
.exg-chips{ display:flex; flex-wrap:wrap; gap:7px; }
.exg-chip{ font-size:12.5px; font-weight:600; color:var(--ink-soft); background:var(--tile); border:1px solid var(--line); border-radius:9px; padding:5px 11px; line-height:1.2; }
.exg-chip.coin{ font-family:var(--mono); font-weight:700; color:var(--ink); }
.exg-swap{ display:flex; flex-direction:column; align-items:center; gap:5px; color:var(--gold-bright,#caa12f); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; text-align:center; line-height:1.3; }
.exg-swap .ic{ width:26px; height:26px; padding:5px; border-radius:50%; background:color-mix(in oklab,var(--gold) 16%,transparent); }
@media (max-width:680px){
  .ex-groups{ grid-template-columns:1fr; gap:14px; padding:16px; }
  .exg-swap{ flex-direction:row; gap:8px; }
  .exg-swap .ic{ transform:rotate(90deg); }
}
/* таблица направлений обмена (детальная страница обменника) */
.dir-demo{ color:var(--dim); font-weight:700; font-size:11px; text-transform:none; letter-spacing:0; background:var(--tile); border:1px solid var(--line); padding:2px 8px; border-radius:7px; }
.dir-table{ border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.dir-head,.dir-row{ display:grid; grid-template-columns:1.1fr 1.1fr 1.5fr 1fr 0.9fr; gap:12px; align-items:center; padding:11px 16px; }
.dir-head{ background:var(--tile); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--dim); }
.dir-row{ border-top:1px solid var(--line); font-size:13.5px; }
.dir-row:hover{ background:var(--tile); }
.dir-c1,.dir-c2{ font-weight:600; color:var(--ink); }
.dir-rate{ font-family:var(--mono); font-size:12.5px; color:var(--ink-soft); }
.dir-res{ color:var(--ink-soft); }
.dir-min{ color:var(--dim); }
@media (max-width:680px){
  .dir-head{ display:none; }
  .dir-row{ grid-template-columns:1fr 1fr; gap:6px 12px; padding:13px 14px; }
  .dir-c1{ order:1; } .dir-c2{ order:2; text-align:right; }
  .dir-c1::before{ content:'Отдаёте'; }
  .dir-c2::before{ content:'Получаете'; }
  .dir-c1::before,.dir-c2::before{ display:block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--dim); margin-bottom:2px; }
  .dir-rate{ order:3; grid-column:1/-1; padding-top:6px; border-top:1px dashed var(--line); }
  .dir-res{ order:4; } .dir-min{ order:5; text-align:right; }
}
.ex-row{ cursor:pointer; }
@media (max-width:560px){ .cat-filters-grid{ grid-template-columns:1fr 1fr; padding:12px; gap:10px; } .cat-filters-grid .fclear{ grid-column:1/-1; } }
/* mirror availability — адаптивная раскладка по числу типов зеркал:
   1 тип → на всю ширину, 2 → две колонки, 3 → три. */
.mir-cols{ display:grid; grid-template-columns:repeat(3,1fr); }
.mir-cols.mir-n1{ grid-template-columns:1fr; }
.mir-cols.mir-n2{ grid-template-columns:repeat(2,1fr); }
.mir-cols.mir-n3{ grid-template-columns:repeat(3,1fr); }
.mir-col2{ padding:0 18px; border-left:1px solid var(--line); display:flex; flex-direction:column; min-width:0; }
.mir-col2:first-child{ border-left:1px solid var(--line); padding-left:26px; }
/* при одной колонке — без левой разделительной линии и лишних отступов */
.mir-cols.mir-n1 .mir-col2{ padding-left:0; padding-right:0; border-left:0; }
.mir-col2:last-child{ padding-right:0; }
.mir-col-h{ display:flex; align-items:center; gap:8px; margin-bottom:13px; }
.mc-ic{ color:var(--ink); display:inline-flex; }
.mc-ic .ic{ width:17px; height:17px; }
.mc-nm{ font-size:13.5px; font-weight:700; color:var(--ink); letter-spacing:-.01em; }
.mc-cnt{ margin-left:auto; font-family:var(--mono); font-size:11px; font-weight:600; color:var(--faint); background:var(--tile); border-radius:7px; padding:2px 7px; }
.mc-cnt.down{ color:var(--bad,#d9534f); }
.mir-list{ display:flex; flex-direction:column; gap:1px; flex:1; }
.mir-row{ display:flex; align-items:center; gap:9px; font-family:var(--mono); font-size:12.5px; color:var(--ink-soft); padding:4px 7px 4px 6px; min-width:0; border-radius:7px; cursor:pointer; transition:background .12s; margin:0 -7px; }
@media (hover:hover){ .mir-row:hover{ background:var(--tile); } .mir-row:hover .mir-cp{ opacity:1; } }
.mir-row .d{ width:7px; height:7px; border-radius:50%; background:var(--ok); flex:none; }
.mir-row.off{ color:var(--bad,#d9534f); }
.mir-row.off .d{ background:var(--bad,#d9534f); }
.mir-row .h{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
.mir-cp{ flex:none; width:26px; height:26px; border:0; background:var(--tile); color:var(--dim); display:grid; place-items:center; cursor:pointer; border-radius:7px; opacity:.85; transition:opacity .12s,color .12s,background .12s; }
.mir-cp .ic{ width:15px; height:15px; }
@media (hover:hover){ .mir-row:hover .mir-cp{ opacity:1; } .mir-cp:hover{ color:var(--ink); background:var(--line); } }
@media (hover:none){ .mir-cp{ opacity:1; } }
.mir-more{ margin-top:12px; height:38px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--dim); font-size:12.5px; font-weight:600; cursor:pointer; transition:.15s; width:100%; }
@media (hover:hover){ .mir-more:hover{ border-color:var(--faint); color:var(--ink); } }
@media (max-width:980px){ .shopcard{ grid-template-columns:1fr; } .shopcard .mir-cols{ grid-column:1/-1; border-top:1px solid var(--line); padding-top:18px; margin-top:2px; } }
/* mirror tabs — visible on mobile only, switch the displayed column */
.mir-tabs{ display:none; }
.mt-ic{ display:inline-flex; } .mt-ic .ic{ width:16px; height:16px; }
@media (max-width:640px){
  .mir-cols{ display:block; }
  .mir-tabs{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:12px; }
  .mir-tab{ min-height:48px; display:flex; flex-flow:row wrap; align-items:center; justify-content:center; gap:5px; padding:5px 6px; border:1px solid var(--line); border-radius:9px; background:var(--surface); cursor:pointer; font:inherit; color:var(--dim); transition:border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
  .mir-tab .mt-ic .ic{ width:12px !important; height:12px !important; }
  .mir-tab .mt-l{ font-size:11px; font-weight:700; letter-spacing:.01em; }
  .mir-tab .mt-c{ flex:0 0 100%; text-align:center; font-family:var(--mono); font-size:9.5px; font-weight:700; color:var(--faint); }
  .mir-tab .mt-c.down{ color:var(--bad,#d9534f); }
  .mir-tab.active{ border-color:var(--ink); background:var(--ink); color:var(--on-brand); }
  .mir-tab.active .mt-c, .mir-tab.active .mt-ic{ color:var(--on-brand); }
  .mir-col2{ display:none !important; padding:0 !important; border:0 !important; }
  .mir-col2.active{ display:flex !important; }
  .mir-col2 .mir-col-h{ display:none; }
}
/* detail-page mirrors: full stacked list on desktop, tabbed switcher on mobile */
.mir-d .mir-d-sec .mtype:first-child{ margin-top:14px; }
@media (max-width:640px){
  .mir-d .mir-d-sec{ display:none; }
  .mir-d .mir-d-sec.active{ display:block; margin-top:9px; }
  .mir-d .mir-d-sec .mtype{ display:none; }
  /* segmented control: tile track, white active pill (как в карточке) */
  .mir-d .mir-tabs{ margin:14px 0 0; gap:4px; background:var(--tile); padding:4px; border-radius:12px; }
  .mir-d .mir-tab{ border:0; background:transparent; padding:8px 6px; border-radius:9px; min-height:42px; gap:6px; color:var(--dim); }
  .mir-d .mir-tab.active{ background:var(--surface); box-shadow:var(--shadow-sm); color:var(--ink); }
  .mir-d .mir-tab .mt-l{ font-size:11.5px; }
  .mir-d .mir-tab .mt-c{ margin-top:0; }
  .mir-d .mir-tab.active .mt-c{ color:var(--gold); }
  /* compact rows */
  .mir-d .m-row{ padding:9px 11px; border:0; background:var(--surface-2); border-radius:10px; margin-bottom:3px; gap:9px; }
}
.m-row{ min-width:0; overflow:hidden; max-width:100%; }
.m-row .h{ flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mir-d, .mir-d .mir-d-sec{ min-width:0; max-width:100%; overflow:hidden; }
/* custom badges (admin-assigned, any text + color) */
.sc-badges{ display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.sc-badge{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:8px; letter-spacing:-.01em; line-height:1; }
.sc-badge .bdot{ width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.9; }
/* catalog ad slots (2 per tab) */
.cat-ads{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0 0 18px; }
@media (max-width:680px){ .cat-ads{ grid-template-columns:1fr; } }
.cat-ad{ display:flex; align-items:center; gap:11px; min-height:64px; padding:0 16px; border:1px solid var(--line); border-radius:14px; background:var(--tile); color:var(--ink); text-decoration:none;overflow:hidden; transition:border-color .15s, transform .15s; }
.cat-ad.has-img{ color:#fff; border-color:transparent; }
@media (hover:hover){ .cat-ad:hover{ border-color:var(--faint); transform:translateY(-1px); } }
.ca-mark{ font-family:var(--mono); font-size:9px; font-weight:800; letter-spacing:.1em; padding:3px 6px; border-radius:6px; background:color-mix(in oklab,var(--gold) 22%,transparent); color:var(--gold); flex:none; }
.cat-ad.has-img .ca-mark{ background:rgba(255,255,255,.22); color:#fff; }
.ca-txt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.ca-nm{ font-size:14.5px; font-weight:700; letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ca-sub{ font-size:12px; font-weight:500; opacity:.66; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cat-ad.has-img .ca-sub{ opacity:.82; }
.cat-ad.accent{ transition:transform .15s, box-shadow .2s; }
.ca-go{ flex:none; opacity:.6; display:inline-flex; }
/* ad placement zones (page + position) */
.adzone{ display:grid; grid-template-columns:1fr; gap:12px; margin:0 0 18px; }
.adzone .cat-ad{ min-height:72px; }
.adzone.adzone-side{ margin:0; }
.adzone.adzone-side .cat-ad{ min-height:0; aspect-ratio:300/600; align-items:flex-end; padding:18px; }
#az-home-top, #az-home-mid, #az-home-bottom{ margin-top:18px; }
.cat-ad img, .adzone img{ max-width:100%; }
@media (max-width:899px){
  .adzone.adzone-side{ order:-1; }
  .adzone.adzone-side .cat-ad{ aspect-ratio:728/120; align-items:center; padding:0 16px; }
}
@media (max-width:680px){
  .adzone{ gap:10px; margin-bottom:14px; }
  .adzone .cat-ad{ min-height:62px; }
}
.ca-go .ic{ width:18px; height:18px; }
/* catalog empty state (no results / empty favorites) */
.empty-state{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:56px 24px; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); }
.empty-state .ic{ width:40px; height:40px; color:var(--faint); margin-bottom:6px; }
.empty-state b{ font-size:17px; color:var(--ink); }
.empty-state span{ font-size:14px; color:var(--dim); max-width:340px; }
.empty-state .btn{ margin-top:14px; }
.shop-foot{ display:flex; align-items:center; justify-content:center; gap:8px; font-size:12.5px; color:var(--dim); margin-top:18px; }
.shop-foot .ic{ width:15px; height:15px; color:var(--ok); }
@media (max-width:980px){ .shopcard{ grid-template-columns:1fr 1fr; padding-left:22px; } .sc-rank{ position:static; flex-direction:row; margin-bottom:6px; }
  .sc-rank.medal-badge{ width:auto; height:auto; flex-direction:row; gap:6px; padding:5px 11px 5px 9px; border-radius:10px; align-self:flex-start; }
  .sc-rank.medal-badge .ic{ margin-bottom:0; }
  .sc-main{ grid-column:1/-1; } }
@media (max-width:680px){ .shopcard{ grid-template-columns:1fr; gap:14px; padding:18px 16px 16px; } .mir-col{ border-left:0; border-top:1px solid var(--line); padding-left:0; padding-top:16px; }
  /* rank medal → small corner badge (not a full-width bar) */
  .shopcard .sc-rank.medal-badge{ position:absolute; top:13px; left:13px; margin:0; z-index:3; width:auto; padding:4px 10px 4px 8px; border-radius:9px; }
  /* mobile hero: centered logo + name + chips */
  .shopcard .sc-main{ flex-direction:column; align-items:center; text-align:center; gap:10px; padding-top:4px; }
  .shopcard .sc-main > div:last-child{ width:100%; min-width:0; }
  .shopcard .sc-logo{ width:64px; height:64px; border-radius:18px; font-size:24px; }
  .shopcard .sc-name{ justify-content:center; font-size:17px; }
  .shopcard .sc-head-row{ justify-content:center; width:100%; }
  .shopcard .sc-rate{ justify-content:center; font-size:13px; }
  .shopcard .sc-chips{ justify-content:center; }
  .shopcard .sc-badges{ justify-content:center; }
  .shopcard .sc-desc{ text-align:center; -webkit-line-clamp:3; }
  /* exchanger coverage on the CARD — centered under hero */
  .shopcard .ex-ce{ align-items:center; gap:10px; margin-top:14px; }
  .shopcard .ex-ce-row{ display:flex; flex-direction:column; align-items:center; gap:4px; width:100%; text-align:center; }
  .shopcard .ex-ce-k{ padding-top:0; }
  .shopcard .ex-ce-val{ max-width:300px; }
  .shopcard .ex-ce-foot{ justify-content:center; margin-top:2px; }
  /* exchange/category stats → tidy equal-width grid that never overlaps */
  .sc-meta{ display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:7px; width:100%; margin-top:14px; }
  .sc-stat{ flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; padding:8px 11px; min-width:0; }
  .sc-stat .ms-l{ font-size:9.5px; }
  .sc-stat .ms-v{ font-size:12.5px; line-height:1.2; white-space:normal; overflow-wrap:normal; word-break:keep-all; }
  /* heart pinned top-right so hero stays clean */
  .shopcard .sc-fav{ position:absolute; top:14px; right:14px; align-self:auto; z-index:2; }
}

/* ---------- panels / reviews ---------- */
.panel{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); padding:22px; box-shadow:var(--shadow-sm); }
.review{ border-bottom:1px solid var(--line); padding:16px 0; }
.review:first-child{ padding-top:4px; } .review:last-child{ border-bottom:0; padding-bottom:4px; }
.r-top{ display:flex; align-items:center; gap:10px; }
.av{ width:36px; height:36px; border-radius:50%; background:var(--tile); display:grid; place-items:center; font-size:14px; font-weight:700; color:var(--ink-soft); flex:none; }
.r-who{ font-weight:700; font-size:14px; }
.r-date{ font-family:var(--mono); font-size:11.5px; color:var(--faint); margin-left:auto; }
.rev-shop{ font-size:12px; color:var(--ink); background:var(--tile); border-radius:8px; padding:4px 10px; font-weight:700; display:inline-flex; align-items:center; gap:6px; transition:background .2s; }
.rev-shop .ic{ width:13px; height:13px; }
@media (hover:hover){ .rev-shop:hover{ background:var(--tile-2); } }
.badge-role{ font-size:11px; color:var(--dim); background:var(--tile); border-radius:7px; padding:3px 9px; font-weight:600; }
.review p{ margin:9px 0 0; font-size:14px; color:var(--ink-soft); line-height:1.55; }
.helpful{ display:flex; gap:9px; margin-top:11px; }
.helpful .btn{ height:30px; min-height:30px; font-size:12px; padding:0 11px; border-radius:15px; gap:6px; width:auto; flex:0 0 auto; align-self:flex-start; }
.helpful .btn .ic{ width:14px; height:14px; }
.helpful-btn{ transition:color .15s, border-color .15s, background .15s; }
.helpful-btn.on{ color:var(--ok); border-color:color-mix(in oklab, var(--ok) 45%, transparent); background:color-mix(in oklab, var(--ok) 10%, transparent); }
.helpful-btn.on .ic{ fill:var(--ok); stroke:var(--ok); }

/* ---------- gate / captcha ---------- */
.gate{ position:fixed; inset:0; z-index:90; background:var(--bg); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; gap:22px; overflow:auto; }
.gate.hidden{ opacity:0; transform:scale(1.02); pointer-events:none; transition:opacity .5s var(--ease), transform .5s var(--ease); }
.gate .grid-bg{ position:fixed; inset:0; pointer-events:none; opacity:.6;
  background:radial-gradient(60% 60% at 50% 38%, color-mix(in oklab,var(--gold) 9%, transparent), transparent 70%),
  repeating-radial-gradient(circle at 50% 38%, transparent 0 44px, color-mix(in oklab,var(--ink) 4%, transparent) 44px 45px); }
.gcard{ width:100%; max-width:420px; border:1px solid var(--line); border-radius:26px; background:var(--surface); box-shadow:var(--shadow-lg); padding:32px 28px; text-align:center; position:relative; z-index:1; }
.gate .glogo{ display:flex; align-items:center; gap:11px; position:relative; z-index:1; }
.gate .glogo .mark{ width:36px; height:36px; }
.gate .glogo .wm{ font-size:20px; }
.gate h1{ font-size:24px; font-weight:800; letter-spacing:-.025em; margin:14px 0 6px; }
.gate .sub{ color:var(--dim); font-size:14px; margin:0 0 6px; }

/* radar-scan "I'm not a robot" check */
.rcheck{ display:flex; align-items:center; gap:14px; margin:22px auto 6px; max-width:360px; padding:15px 18px; border:1.5px solid var(--line-strong); border-radius:16px; background:var(--surface); cursor:pointer; transition:border-color .2s, box-shadow .2s; text-align:left; }
@media (hover:hover){ .rcheck:hover{ border-color:var(--faint); } }
.rcheck.scanning{ cursor:default; }
.rcheck.done{ border-color:color-mix(in oklab,var(--ok) 60%, transparent); box-shadow:0 0 0 4px color-mix(in oklab,var(--ok) 12%, transparent); cursor:default; }
.rbox{ position:relative; width:32px; height:32px; border-radius:9px; border:2px solid var(--line-strong); flex:none; display:grid; place-items:center; overflow:hidden; transition:border-color .25s, background .25s; }
.rcheck.done .rbox{ border-color:var(--ok); background:var(--ok); }
.rbox .scan{ position:absolute; inset:-30%; border-radius:50%; opacity:0; background:conic-gradient(from 0deg, color-mix(in oklab,var(--gold-bright) 85%, transparent), transparent 42%); }
.rcheck.scanning .rbox .scan{ opacity:1; animation:sweep .75s linear infinite; }
.rbox .tick{ width:18px; height:18px; stroke:#fff; stroke-width:2.6; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:26; stroke-dashoffset:26; }
.rcheck.done .rbox .tick{ stroke-dashoffset:0; transition:stroke-dashoffset .4s var(--ease) .05s; }
.rcheck .rlabel{ font-weight:700; font-size:15px; line-height:1.2; }
.rcheck .rsub{ font-size:12px; color:var(--dim); font-weight:400; margin-top:3px; }
.rcheck .rlogo{ margin-left:auto; display:flex; flex-direction:column; align-items:center; gap:3px; color:var(--faint); flex:none; }
.rcheck .rlogo .mark{ width:24px; height:24px; }
.rcheck .rlogo small{ font-family:var(--mono); font-size:7px; letter-spacing:.18em; }
.gate-status{ font-family:var(--mono); font-size:12px; color:var(--dim); margin-top:14px; min-height:18px; letter-spacing:.02em; display:flex; align-items:center; justify-content:center; gap:7px; }
.gate-status .ic{ width:15px; height:15px; }
.gate-status.ok{ color:var(--ok); }
.gbanners{ width:100%; max-width:480px; display:flex; flex-direction:column; gap:10px; position:relative; z-index:1; }
.gbn{ height:84px; border-radius:14px; background:var(--tile);
  border:1px solid var(--line); display:flex; flex-direction:row; align-items:center; justify-content:center; gap:8px; overflow:hidden;
  color:var(--faint); font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-align:center; cursor:pointer; transition:border-color .2s; }
.gbn.has-ad-img{ border-color:transparent; }
.gbn .ic{ width:18px; height:18px; opacity:.5; }
@media (hover:hover){ .gbn:hover{ border-color:var(--faint); } }

/* ---------- modals ---------- */
.modal{ position:fixed; inset:0; background:color-mix(in oklab,var(--ink) 42%, transparent); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); z-index:80; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; pointer-events:none; transition:opacity .25s var(--ease); }
.modal.open{ opacity:1; pointer-events:auto; }
.sheet{ width:100%; max-width:440px; background:var(--surface); border-radius:24px; padding:26px; box-shadow:var(--shadow-lg); transform:translateY(16px) scale(.98); transition:transform .3s var(--ease); max-height:90vh; overflow:auto; }
.modal.open .sheet{ transform:none; }
.sheet h3{ margin:8px 0 4px; font-size:20px; font-weight:800; letter-spacing:-.02em; }
.sheet .x{ position:absolute; top:18px; right:18px; }
.mirror{ display:flex; align-items:center; gap:11px; padding:13px 15px; border:1px solid var(--line); border-radius:13px; margin-bottom:9px; font-family:var(--mono); font-size:13px; }
.mirror .ping{ margin-left:auto; color:var(--dim); font-size:12px; }
.mirror .ping.ok{ color:var(--ok); }
.mirror .ping.off{ color:var(--bad,#d9534f); font-weight:600; }
.auth-tabs{ display:flex; gap:8px; margin:14px 0 16px; }
.auth-tabs .t{ flex:1; height:var(--control-h); min-height:var(--control-h); display:flex; align-items:center; justify-content:center; text-align:center; font-size:14px; line-height:1; font-weight:700; color:var(--dim); padding:0 14px; border:1px solid var(--line-strong); border-radius:12px; cursor:pointer; transition:.2s; }
.auth-tabs .t.active{ background:var(--ink); color:var(--on-brand); border-color:var(--ink); }
.field{ margin-bottom:13px; }
.field label{ display:block; font-size:12.5px; color:var(--dim); margin-bottom:7px; font-weight:600; }
.field input{ width:100%; height:48px; border:1px solid var(--line-strong); border-radius:13px; background:var(--surface); color:var(--ink); padding:0 15px; font-size:15px; outline:none; transition:border-color .2s; }
.field input:focus{ border-color:var(--ink); }
.lock{ font-family:var(--mono); font-size:11.5px; color:var(--faint); text-align:center; margin-top:12px; line-height:1.5; }
.field-wrap{ position:relative; }
.field-wrap .fic{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--faint); display:grid; place-items:center; }
.field-wrap input{ padding-left:42px; }
.field-wrap .eye{ position:absolute; right:8px; top:50%; transform:translateY(-50%); color:var(--faint); cursor:pointer; display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:transparent; border:0; }
@media (hover:hover){ .field-wrap .eye:hover{ color:var(--ink); } }
.auth-head{ display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.auth-div{ display:flex; align-items:center; gap:12px; color:var(--faint); font-size:11px; margin:18px 0; font-family:var(--mono); letter-spacing:.12em; text-transform:uppercase; }
.auth-div::before,.auth-div::after{ content:""; height:1px; background:var(--line); flex:1; }
.btn.tg{ background:#2aabee; border-color:#2aabee; color:#fff; }
.tg-widget{ display:flex; justify-content:center; }
.tg-widget:empty{ display:none; }
@media (hover:hover){ .btn.tg:hover{ box-shadow:0 8px 22px -8px rgba(42,171,238,.5); } }
.auth-foot{ text-align:center; font-size:13px; color:var(--dim); margin-top:16px; }
.auth-foot a{ color:var(--ink); font-weight:700; }
.forgot{ display:block; text-align:right; font-size:12.5px; color:var(--dim); margin:-4px 0 14px; }
@media (hover:hover){ .forgot:hover{ color:var(--ink); } }

/* settings sheet */
.set-row{display:grid;grid-template-columns:38px minmax(0,1fr) 112px;align-items:center;gap:13px;min-height:66px;padding:10px 0;border-bottom:1px solid var(--line)}
.set-row:last-child{border-bottom:0}.set-ic{width:38px;height:38px;flex:none;border-radius:11px;background:var(--tile);color:var(--ink);display:grid;place-items:center}.set-ic .ic{width:19px;height:19px}.set-row .k{min-width:0;font-weight:600;font-size:14.5px;line-height:1.25}.set-link{text-decoration:none;color:inherit;cursor:pointer}.set-link .btn{pointer-events:none}.set-row>.settings-action{box-sizing:border-box;width:112px;min-width:112px;height:38px;min-height:38px;padding:0 10px;justify-self:end;white-space:nowrap}.set-row .k small{display:block;color:var(--dim);font-size:12.5px;font-weight:400;line-height:1.35;margin-top:2px}
.seg{ display:inline-flex; background:var(--tile); border-radius:11px; padding:3px; gap:2px; }
.seg button{ height:var(--seg-h); min-height:var(--seg-h); display:inline-flex; align-items:center; justify-content:center; border:0; background:transparent; color:var(--dim); font-weight:600; font-size:13px; line-height:1; padding:0 12px; border-radius:9px; cursor:pointer; transition:.2s; }
.seg button.on{ background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }

/* ---------- detail page ---------- */
.crumb{ font-size:13px; color:var(--dim); margin-top:24px; display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.crumb .ic{ width:14px; height:14px; color:var(--faint); }
@media (hover:hover){ .crumb a:hover{ color:var(--ink); } }
.shop-hero{ position:relative; border-radius:var(--r-lg); overflow:hidden; background:var(--ink-panel); color:var(--on-ink); padding:30px 34px; display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:150px; margin-top:14px; box-shadow:var(--shadow); }
/* v356: видео-баннер карточки сервиса (mp4/webm) */
.shop-hero .shop-hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.shop-hero .shop-hero-shade{ position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(15,17,21,.88),rgba(15,17,21,.45)); }
.shop-hero.has-video .grid-bg,.shop-hero.has-video .ttl,.shop-hero.has-video .feats{ position:relative; z-index:2; }
.shop-hero .grid-bg{ position:absolute; inset:0; opacity:.5; background:repeating-radial-gradient(circle at 90% 30%, transparent 0 30px, rgba(255,255,255,.05) 30px 31px); }
.shop-hero.has-banner{ background-size:cover; background-position:center; }
.shop-hero.has-banner .grid-bg{ opacity:.18; }
.shop-hero .ttl{ font-size:34px; font-weight:800; letter-spacing:.04em; position:relative; }
.shop-hero .feats{ display:grid; grid-template-columns:1fr 1fr; gap:9px 22px; position:relative; }
.shop-hero .feats div{ display:flex; align-items:center; gap:9px; font-size:13.5px; opacity:.92; }
.shop-hero .feats .ic{ width:16px; height:16px; color:var(--gold-bright); }
.detail-grid{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; margin-top:20px; align-items:start; }
.detail-grid > *{ min-width:0; }
.d-col{ display:flex; flex-direction:column; gap:24px; min-width:0; }
.detail-grid .d-col{ grid-column:1; }
.detail-grid .aside{ grid-column:2; }
.d-head{ display:flex; gap:16px; align-items:center; }
.d-head > div{ min-width:0; }
.d-head-main{ flex:1; min-width:0; }
.d-logo{ width:72px; height:72px; border-radius:20px; background:var(--ink); color:var(--on-brand); display:grid; place-items:center; font-size:30px; font-weight:800; flex:none; }
.d-name{ font-size:26px; font-weight:800; letter-spacing:-.025em; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rank-badge{ display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:12px; font-weight:700; padding:5px 11px; border-radius:99px; color:#3a2d06; background:linear-gradient(158deg,#f8db7b 8%,#e3b53a 60%,#caa017 100%); }
.rank-badge .ic{ width:14px; height:14px; }
.tabs{ display:flex; align-items:stretch; gap:26px; min-height:var(--page-tab-h); margin:26px 0 18px; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab{ flex:0 0 auto; min-height:var(--page-tab-h); display:inline-flex; align-items:center; font-size:14.5px; line-height:1; color:var(--dim); padding:0; border-bottom:2px solid transparent; cursor:pointer; transition:.2s; font-weight:600; margin-bottom:-1px; white-space:nowrap; }
.tab.active{ color:var(--ink); border-color:var(--gold); }
.checklist{ list-style:none; padding:0; margin:0; }
.checklist li{ display:flex; gap:10px; padding:9px 0; font-size:14.5px; color:var(--ink-soft); align-items:flex-start; }
.checklist li .ic{ width:18px; height:18px; color:var(--ok); flex:none; margin-top:1px; }
.info-list{ border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.info-row{ display:flex; justify-content:space-between; gap:16px; padding:14px 16px; border-bottom:1px solid var(--line); font-size:14px; }
.info-row:last-child{ border-bottom:0; }
.info-row .k{ color:var(--dim); } .info-row .v{ font-weight:700; text-align:right; }
.aside{ position:sticky; top:90px; }
.mtype{ font-family:var(--mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); margin:18px 0 9px; }
.m-row{ display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:13px; margin-bottom:8px; font-family:var(--mono); font-size:12.5px; }
.m-row .ping{ margin-left:auto; color:var(--dim); font-size:11px; } .m-row .ping.ok{ color:var(--ok); } .m-row .ping.off{ color:var(--bad,#d9534f); font-weight:600; }
.m-row .cp{ color:var(--dim); cursor:pointer; display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:var(--surface-2,transparent); flex:none; } .m-row .cp .ic{ width:16px; height:16px; }
@media (hover:hover){ .m-row .cp:hover{ color:var(--ink); background:var(--line); } }
.rev-summary{ display:flex; align-items:center; gap:24px; margin-bottom:18px; }
.rev-big{ font-size:46px; font-weight:800; letter-spacing:-.02em; line-height:1; }
.rev-bars{ flex:1; }
.rev-bar{ display:flex; align-items:center; gap:10px; font-family:var(--mono); font-size:11.5px; color:var(--dim); margin:5px 0; }
.rev-bar .b{ flex:1; height:6px; border-radius:4px; background:var(--tile); overflow:hidden; }
.rev-bar .b i{ display:block; height:100%; background:var(--gold); border-radius:4px; }
.rev-bar-pct{ width:44px; text-align:right; color:var(--dim); }
.rev-bar-count{ width:30px; color:var(--faint); text-align:right; }
.rate-pick{ display:flex; gap:6px; font-size:28px; color:var(--line-strong); cursor:pointer; }
.rate-pick span{ transition:color .15s, transform .15s var(--ease); }
.rate-pick span.on{ color:var(--gold); }
@media (hover:hover){ .rate-pick span:hover{ transform:scale(1.15); } }
.liked{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.liked .lk{ font-size:12.5px; color:var(--dim); border:1px solid var(--line-strong); border-radius:var(--r-pill); padding:7px 13px; cursor:pointer; transition:.2s; font-weight:600; }
.liked .lk.on{ background:var(--ink); color:var(--on-brand); border-color:var(--ink); }
textarea{ width:100%; border:1px solid var(--line-strong); border-radius:13px; background:var(--surface); color:var(--ink); padding:13px 15px; font-size:14.5px; outline:none; resize:vertical; min-height:96px; transition:border-color .2s; }
textarea:focus{ border-color:var(--ink); }
/* detail head — rank badge to the corner, clearer rating row */
.d-head{ position:relative; }
.d-rank-corner{ align-self:flex-start; flex:none; }
.d-rate{ font-size:14.5px; gap:9px; }
.d-rate .stars{ font-size:15px; }
.d-rate b{ color:var(--ink); font-weight:800; }
.d-rev-c{ color:var(--dim); }
/* review emoji picker (TG-style, hidden behind a smiley) */
.rev-ta-wrap{ position:relative; }
.rev-ta-wrap textarea{ padding-right:46px; }
.rev-emoji-btn{ position:absolute; right:9px; bottom:9px; width:32px; height:32px; border:0; background:transparent; color:var(--faint); border-radius:8px; display:grid; place-items:center; cursor:pointer; transition:background .15s, color .15s; }
.rev-emoji-btn .ic{ width:20px; height:20px; }
@media (hover:hover){ .rev-emoji-btn:hover{ background:var(--tile); color:var(--ink); } }
.rev-emoji-btn.on{ color:var(--gold); background:var(--gold-soft); }
.rev-emoji-pop{ position:absolute; right:6px; bottom:50px; z-index:8; display:flex; flex-wrap:wrap; gap:4px; width:266px; max-width:calc(100% - 12px); max-height:200px; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:9px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); }
.rev-emoji-pop[hidden]{ display:none; }
.rev-emoji-pop .ree{ width:36px; height:36px; border:0; background:transparent; border-radius:9px; font-size:20px; line-height:1; cursor:pointer; display:grid; place-items:center; padding:0; }
@media (hover:hover){ .rev-emoji-pop .ree:hover{ background:var(--tile); } }
@media (max-width:980px){ .detail-grid{ display:flex; flex-direction:column; gap:18px; align-items:stretch; min-width:0; } .detail-grid .d-col{ display:contents; } .detail-grid .d-main,.detail-grid .aside,.detail-grid .d-tabs{ min-width:0; max-width:100%; overflow:hidden; } .detail-grid .d-main{ order:1; } .detail-grid .aside{ order:2; position:static; } .detail-grid .d-tabs{ order:3; } .shop-hero{ flex-direction:column; align-items:flex-start; } .shop-hero .ttl{ font-size:27px; } }
@media (max-width:680px){
  /* project page: logo + name on one row, the rest full width below */
  .d-head{ gap:13px; }
  .d-logo{ width:58px; height:58px; border-radius:16px; font-size:24px; }
  .d-name{ font-size:21px; }
  /* rank badge → в угол, чтобы не сжимал рейтинг */
  .d-rank-corner{ position:absolute; top:0; right:0; font-size:11px; padding:4px 9px; }
  .d-head-main .d-rate{ flex-wrap:nowrap; white-space:nowrap; }
  .shop-hero{ padding:18px 18px; gap:13px; justify-content:flex-start; }
  .shop-hero .ttl{ font-size:21px; word-break:break-word; }
  .shop-hero .feats{ gap:7px 16px; }
  .shop-hero .feats div{ font-size:12.5px; }
  .shop-hero .feats .ic{ width:14px; height:14px; }
}

/* ---------- news ---------- */
.news-item{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); overflow:hidden; margin-bottom:16px; cursor:pointer; transition:transform .18s var(--ease), box-shadow .2s; box-shadow:var(--shadow-sm); }
@media (hover:hover){ .news-item:hover{ transform:translateY(-2px); box-shadow:var(--shadow); } }
.news-item .nb{ aspect-ratio:1200/280; background:repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in oklab,var(--ink) 3%, transparent) 12px 24px), var(--tile); display:flex; align-items:center; justify-content:center; color:var(--faint); font-family:var(--mono); font-size:11px; letter-spacing:.14em; }
.news-body{ padding:18px 22px; }
.news-body .date{ font-family:var(--mono); font-size:11.5px; color:var(--faint); display:inline-flex; align-items:center; gap:7px; }
.news-body .tagn{ font-size:11px; font-weight:700; color:var(--gold); background:var(--gold-soft); padding:3px 9px; border-radius:7px; margin-left:8px; }
.news-body h3{ margin:9px 0 6px; font-size:19px; font-weight:800; letter-spacing:-.02em; }
.news-body p{ margin:0; font-size:14.5px; color:var(--dim); line-height:1.55; }
.news-full{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.news-item.open .news-full{ max-height:320px; }
.news-full p{ margin-top:12px; }

/* ---------- roulette ---------- */
.roul{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); padding:24px; box-shadow:var(--shadow-sm); }
.countdown{ display:flex; gap:10px; margin:16px 0; }
.cd-u{ font-family:var(--mono); font-size:26px; font-weight:700; background:var(--ink-panel); color:var(--on-ink); border-radius:14px; padding:12px 16px; min-width:64px; text-align:center; }
.cd-u small{ display:block; font-size:9px; letter-spacing:.12em; color:rgba(255,255,255,.5); font-weight:500; margin-top:4px; }
.prizes{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.prize{ background:var(--tile); border-radius:13px; padding:12px 16px; font-size:14px; display:flex; align-items:center; gap:9px; }
.prize .pn{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; font-family:var(--mono); font-weight:700; font-size:12px; color:#1a1408; }
.prize.p1 .pn{ background:linear-gradient(158deg,#f8db7b 8%,#e3b53a 60%,#caa017 100%); color:#3a2d06; } .prize.p2 .pn{ background:#cdd3dc; } .prize.p3 .pn{ background:#dba878; }
.prize b{ font-weight:700; }
.parts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.part{ display:flex; align-items:center; gap:8px; background:var(--tile); border-radius:var(--r-pill); padding:5px 13px 5px 5px; font-size:13px; font-weight:500; }
.part .av{ width:24px; height:24px; font-size:11px; background:var(--surface); }
.agree{ display:flex; gap:10px; align-items:center; margin:16px 0; font-size:14px; color:var(--dim); }
.agree input{ width:18px; height:18px; accent-color:var(--ink); }
.winner{ display:flex; align-items:center; gap:11px; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; font-weight:600; }
.winner:last-child{ border-bottom:0; }
.winner .medal{ display:inline-flex; align-items:center; gap:5px; font-family:var(--mono); font-weight:700; font-size:12px; }
.winner .medal.c1{ color:#cf9f2c; } .winner .medal.c2{ color:#8b94a3; } .winner .medal.c3{ color:#b06a36; }
.winner .medal .ic{ width:18px; height:15px; }
.winner .pz{ margin-left:auto; color:var(--dim); font-family:var(--mono); font-size:12.5px; font-weight:500; }

/* ---------- chat ---------- */
.chat-page{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); overflow:hidden; box-shadow:var(--shadow-sm); max-width:860px; }
.chat-window{ height:min(58vh,540px); overflow:auto; padding:18px; display:flex; flex-direction:column; gap:14px; }
.msg{ display:flex; gap:10px; align-items:flex-start; }
.msg > div{ min-width:0; display:flex; flex-direction:column; align-items:flex-start; max-width:min(460px,78%); }
.msg.mine > div{ align-items:flex-end; }
.msg .bubble{ background:var(--tile); border-radius:14px; border-top-left-radius:5px; padding:9px 14px; font-size:14px; line-height:1.45; width:fit-content; max-width:100%; word-break:break-word; }
.msg .who{ font-size:11.5px; color:var(--dim); margin-bottom:3px; font-weight:600; }
.chat-foot{ display:flex; gap:9px; padding:13px 16px; border-top:1px solid var(--line); }
.chat-foot input{ flex:1; min-width:0; height:46px; border:1px solid var(--line-strong); border-radius:12px; background:var(--surface); color:var(--ink); padding:0 14px; outline:none; }
.chat-foot .btn{ flex:none; }
.chat-send{ display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.chat-send .cs-ic{ width:18px; height:18px; display:none; flex:none; }
/* emoji picker */
.emoji-wrap{ position:relative; flex:none; }
.emoji-btn{ width:46px; height:46px; border:1px solid var(--line-strong); border-radius:12px; background:var(--surface); color:var(--dim); display:grid; place-items:center; cursor:pointer; transition:.15s; }
.emoji-btn:hover{ color:var(--ink); border-color:var(--faint); }
.emoji-btn .ic{ width:20px; height:20px; }
.emoji-pop{ position:absolute; bottom:54px; left:0; width:268px; max-height:240px; overflow-y:auto; -webkit-overflow-scrolling:touch; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); padding:10px; display:none; grid-template-columns:repeat(6,1fr); gap:3px; z-index:50; }
.emoji-pop.open{ display:grid; animation:emoRise .16s var(--ease); }
@keyframes emoRise{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.chat-foot input.shake{ animation:capShake .4s; border-color:var(--bad,#d9534f) !important; }
.emoji-pop .emo{ font-size:21px; line-height:1; padding:6px; text-align:center; border-radius:9px; cursor:pointer; transition:background .12s; }
.emoji-pop .emo:hover{ background:var(--tile); }
@media (max-width:560px){ .emoji-btn{ width:44px; height:44px; } .emoji-pop{ width:252px; max-width:calc(100vw - 64px); max-height:200px; bottom:52px; } .emoji-pop .emo{ font-size:18px; padding:6px 2px; } }
.chat-note{ font-family:var(--mono); font-size:11px; color:var(--faint); text-align:center; padding:0 0 14px; }
.msg.mine{ flex-direction:row-reverse; }
.msg.mine .who{ text-align:right; }
.msg.mine .bubble{ background:var(--ink); color:var(--on-brand); border-radius:14px; border-top-right-radius:5px; border-top-left-radius:14px; }
.msg.mine .av{ background:var(--gold); color:#1a1408; }

/* chat: two-column on desktop (chat + ad banner of equal height) */
.chat-layout{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:18px; align-items:stretch; }
.chat-layout .chat-page{ max-width:none; }
.chat-bn.chat-bn-side{ aspect-ratio:auto; }
.chat-bn{ aspect-ratio:300/470; border-radius:var(--r-lg); background:
    repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in oklab,var(--ink) 3%, transparent) 11px 22px), var(--tile);
  border:1px dashed var(--line-strong); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  color:var(--faint); cursor:pointer; transition:border-color .2s; text-decoration:none; }
.chat-bn .bl{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
.chat-bn .bd{ font-size:12px; color:var(--faint); }
@media (hover:hover){ .chat-bn:hover{ border-color:var(--faint); } }
.chat-side-panel{ padding:18px; }
.csp-head{ display:flex; align-items:center; gap:9px; font-weight:700; font-size:14.5px; }
.csp-head b{ margin-left:auto; color:var(--dim); font-weight:600; }
.csp-title{ font-weight:700; font-size:14.5px; margin-bottom:4px; }
.online-list{ display:flex; flex-direction:column; gap:3px; margin-top:14px; }
.online-user{ display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:500; padding:5px 0; }
.online-user .av{ width:30px; height:30px; font-size:12px; }
.online-user .od{ width:8px; height:8px; border-radius:50%; background:var(--ok); margin-left:auto; flex:none; }
.checklist.rules li{ font-size:13px; padding:7px 0; }
@media (max-width:900px){
  .chat-layout{ grid-template-columns:1fr; }
  .chat-aside{ position:static; flex-direction:column; }
  .chat-bn{ aspect-ratio:728/120; }
  .chat-bn.chat-bn-side,.chat-bn.chat-bn-side.has-ad-img{ aspect-ratio:728/120; order:-1; }
}
@media (max-width:560px){
  .chat-window{ height:auto; min-height:240px; max-height:46vh; padding:14px; gap:12px; }
  .chat-foot{ padding:10px 12px; gap:8px; }
  .chat-foot input{ height:44px; }
  .chat-foot .btn{ padding:0 15px; }
  /* компактная квадратная кнопка-самолётик на мобилке — инпут шире */
  .chat-foot .chat-send{ width:44px; min-width:44px; height:44px; padding:0; flex:none; border-radius:12px; }
  .chat-send .cs-tx{ display:none; }
  .chat-send .cs-ic{ display:block; }
  .msg > div{ max-width:82%; }
}

/* chat rules — full-width bar under chat + banner */
.chat-rules{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 22px; margin-top:16px; padding:14px 20px; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); box-shadow:var(--shadow-sm); }
.cr-title{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }
.cr-title [data-ic],.cr-title .ic{ color:var(--gold); }
.cr-item{ display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--dim); }
.cr-item .ic{ color:var(--ok); flex:none; }

/* news — full-width editorial grid (featured + 2-col) */
.news-banner{ position:relative; border-radius:var(--r-lg); overflow:hidden; background:var(--ink-panel); color:var(--on-ink); padding:24px 26px; margin-bottom:20px; display:flex; align-items:center; justify-content:space-between; gap:20px; cursor:pointer; background-size:cover; background-position:center; box-shadow:var(--shadow); transition:transform .18s var(--ease), box-shadow .2s; }
@media (hover:hover){ .news-banner:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); } }
.nb-eyebrow{ display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-bright); }
.nb-eyebrow .ic{ width:14px; height:14px; }
.nb-title{ font-size:21px; font-weight:800; letter-spacing:-.02em; margin:9px 0 5px; }
.nb-text{ font-size:13.5px; color:rgba(255,255,255,.72); line-height:1.5; max-width:60ch; }
.nb-cta{ flex:none; display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; color:var(--ink); background:var(--gold); padding:11px 18px; border-radius:var(--r-pill); white-space:nowrap; }
.nb-cta .ic{ width:15px; height:15px; }
.news-banner.static{ cursor:default; }
@media (max-width:680px){ .news-banner{ flex-direction:column; align-items:flex-start; padding:18px 18px 20px; gap:14px; } .nb-title{ font-size:18px; } .nb-cta{ width:100%; justify-content:center; } }
.news-feed{ width:100%; margin-inline:auto; }
.news-feed #newsList{ display:block; min-width:0; }
.news-feed #newsList .tg-post{ max-width:none; margin:0 0 14px; }
.news-feed-footer{ display:flex; justify-content:center; align-items:center; padding:8px 0 20px; }
.news-feed-footer .news-more{ min-width:190px; }
.news-state{ min-height:220px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; border:1px dashed var(--line-strong); border-radius:var(--r-lg); background:var(--surface); color:var(--dim); padding:30px; }
.news-state b{ color:var(--ink); font-size:16px; }
.news-state.is-error{ border-color:color-mix(in oklab,var(--bad) 35%,var(--line)); }

/* ---------- exchange ---------- */
.ex-bar{ display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:18px; }
.ex-bar .ex-fld:first-of-type, .ex-bar .ex-fld:nth-of-type(2){ flex:1; min-width:170px; }
.ex-swap{ flex:none; width:var(--field-h); min-width:var(--field-h); height:var(--field-h); border-radius:12px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); cursor:pointer; display:grid; place-items:center; transition:border-color .15s, background .15s, transform .15s; align-self:flex-end; }
.ex-swap-glyph{ display:block; font-size:20px; line-height:1; transform:translateY(-1px); }
@media (hover:hover){ .ex-swap:hover{ border-color:var(--ink); background:var(--tile); } }
.ex-swap:active{ transform:scale(.92) rotate(180deg); }
/* exchanger cards (default, no-filter view) */
.ex-cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.ex-card{ display:flex; flex-direction:column; gap:12px; border:1px solid var(--line); border-radius:18px; background:var(--surface); padding:16px 18px; cursor:pointer; transition:transform .15s, box-shadow .15s, border-color .15s; }
@media (hover:hover){ .ex-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); border-color:var(--line-strong); } }
.ex-card-h{ display:flex; align-items:center; gap:13px; }
.ex-card-h .lg{ width:46px; height:46px; border-radius:13px; background:var(--ink); color:var(--on-brand); display:grid; place-items:center; font-weight:800; font-size:15px; font-family:var(--mono); flex:none; }
.ex-card-id{ flex:1; min-width:0; }
.ex-card-nm{ font-weight:700; font-size:15px; display:flex; align-items:center; gap:6px; }
.ex-card-go{ flex:none; color:var(--faint); display:grid; place-items:center; }
.ex-card-go .ic{ width:18px; height:18px; }
.ex-card-chips{ display:flex; flex-wrap:wrap; gap:7px; }
.ex-card-chips .sc-chip{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; padding:4px 9px; border-radius:8px; background:var(--tile); color:var(--dim); }
.ex-card-chips .sc-chip .ic{ width:13px; height:13px; }
.ex-card-chips .sc-chip.muted{ opacity:.7; font-style:italic; }
.ex-empty{ display:flex; align-items:center; gap:14px; border:1px dashed var(--line-strong); border-radius:18px; background:var(--surface); padding:26px 22px; color:var(--ink); }
.ex-empty .ic{ width:26px; height:26px; color:var(--faint); flex:none; }
.ex-empty .dim{ font-size:13px; margin-top:3px; }
.ex-filters{ display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:18px; }
.ex-fld{ display:flex; flex-direction:column; gap:6px; }
.ex-fld label{ font-size:12px; color:var(--dim); font-weight:600; }
.ex-fld select,.ex-fld input{ height:var(--field-h); min-height:var(--field-h); border:1px solid var(--line-strong); border-radius:12px; background:var(--surface); color:var(--ink); padding:0 13px; font-size:14px; outline:none; min-width:170px; }
.ex-sort{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--dim); height:var(--field-h); min-height:var(--field-h); font-weight:600; }
.ex-sort input{ width:18px; height:18px; accent-color:var(--ink); }
.ex-row{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr auto; gap:18px; align-items:center; border:1px solid var(--line); border-radius:18px; background:var(--surface); padding:16px 18px; margin-bottom:12px; box-shadow:var(--shadow-sm); transition:transform .18s var(--ease), box-shadow .2s; }
@media (hover:hover){ .ex-row:hover{ transform:translateY(-2px); box-shadow:var(--shadow); } }
.ex-name{ display:flex; align-items:center; gap:13px; position:relative; }
.rank-medal{ position:absolute; top:-7px; left:-7px; z-index:3; display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; box-shadow:0 2px 7px rgba(0,0,0,.28); }
.rank-medal .ic{ width:13px; height:13px; }
.rank-medal.c1{ background:linear-gradient(158deg,#f8db7b 8%,#e3b53a 52%,#caa017 100%); color:#4a3a06; }
.rank-medal.c2{ background:linear-gradient(158deg,#f1f4f8 8%,#c3ccd7 52%,#9aa7b6 100%); color:#363f4c; }
.rank-medal.c3{ background:linear-gradient(158deg,#eeb682 8%,#cf935c 52%,#a9602e 100%); color:#fff; }
.ex-row.top1{ box-shadow:0 0 0 1.5px #e3b53a, var(--shadow-sm); border-color:transparent; }
.ex-row.top2{ box-shadow:0 0 0 1.5px #aab4c2, var(--shadow-sm); border-color:transparent; }
.ex-row.top3{ box-shadow:0 0 0 1.5px #cf935c, var(--shadow-sm); border-color:transparent; }
.ex-name .lg{ width:46px; height:46px; border-radius:13px; background:var(--ink); color:var(--on-brand); display:grid; place-items:center; font-weight:800; font-size:15px; font-family:var(--mono); flex:none; }
.ex-nm{ font-weight:700; font-size:15px; display:flex; align-items:center; gap:6px; }
.ex-meta{ font-size:12px; color:var(--dim); display:flex; align-items:center; gap:6px; margin-top:3px; white-space:nowrap; }
.ex-col .k{ font-size:11px; color:var(--dim); margin-bottom:3px; }
.ex-col .v{ font-weight:800; font-size:16px; font-family:var(--mono); color:var(--ink); }
.ex-col .v .v-note{ font-family:var(--sans); font-weight:600; font-size:12.5px; line-height:1.25; color:var(--ink-soft); white-space:normal; display:inline-block; }
.ex-col .cur{ font-size:11px; color:var(--dim); margin-top:3px; }
.ex-disc{ font-size:12.5px; color:var(--dim); background:var(--tile); border-radius:14px; padding:15px 16px; margin-top:14px; line-height:1.55; display:flex; gap:10px; }
.ex-disc .ic{ width:18px; height:18px; color:var(--gold); flex:none; }
@media (max-width:760px){ .ex-row{ grid-template-columns:1fr 1fr; gap:12px; } .ex-row .ex-name{ grid-column:1/-1; } .ex-row .btn{ grid-column:1/-1; } }
/* cashout / clean compact rows (exchange-style, no mirrors) */
.exlist{ display:flex; flex-direction:column; gap:14px; }
.cmp-row{ margin:0 !important; }
.cmp-row.cmp-c3{ grid-template-columns:1.6fr 1fr 1fr 1fr auto; }
.cmp-row.cmp-c4{ grid-template-columns:1.85fr 0.95fr 1.05fr 0.95fr 1.5fr auto; }
.cmp-row .ex-name > div:not(.lg){ min-width:0; }
.cmp-row .ex-name{ position:relative; }
.cmp-fav{ width:34px; height:34px; margin-left:auto; flex:none; align-self:flex-start; }
.cmp-fav .ic{ width:17px; height:17px; }
.cmp-act{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.cmp-act .pv{ font-size:12px; color:var(--dim); display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); }
.cmp-act .pv .ic{ width:14px; height:14px; }
.cmp-act .btn{ white-space:nowrap; }
.cmp-row.top1{ box-shadow:0 0 0 1.5px #e3b53a, var(--shadow-sm); border-color:transparent; }
.cmp-row.top2{ box-shadow:0 0 0 1.5px #aab4c2, var(--shadow-sm); border-color:transparent; }
.cmp-row.top3{ box-shadow:0 0 0 1.5px #cf935c, var(--shadow-sm); border-color:transparent; }
@media (max-width:760px){
  .cmp-row.cmp-c3,.cmp-row.cmp-c4{ grid-template-columns:1fr 1fr; }
  .cmp-row .ex-name{ grid-column:1/-1; }
  .cmp-act{ grid-column:1/-1; flex-direction:row; align-items:center; justify-content:space-between; }
  .cmp-act .btn{ flex:1; }
}

/* ---------- footer ---------- */
footer{ margin-top:60px; border-top:1px solid var(--line); padding:28px 0; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
footer .links{ display:flex; gap:22px; flex-wrap:wrap; font-size:14px; color:var(--dim); }
@media (hover:hover){ footer .links a:hover{ color:var(--ink); } }
@media (max-width:899px){ footer{ display:none; } }

/* ---------- toast ---------- */
.toast{ position:fixed; left:50%; bottom:calc(28px + var(--safe-b)); transform:translateX(-50%) translateY(20px); background:var(--ink); color:var(--bg); padding:13px 20px; border-radius:13px; font-size:14px; font-weight:600; box-shadow:var(--shadow-lg); opacity:0; transition:transform .3s var(--ease), opacity .3s; z-index:95; pointer-events:none; display:flex; align-items:center; gap:9px; max-width:90vw; }
.toast .ic{ width:17px; height:17px; color:var(--gold-bright); }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
@media (max-width:899px){ .toast{ bottom:calc(86px + var(--safe-b)); } }

/* ---------- install hint ---------- */
.install-bar{ position:fixed; left:16px; right:16px; bottom:calc(86px + var(--safe-b)); z-index:60; background:var(--ink-panel); color:var(--on-ink); border-radius:16px; padding:14px 16px; display:flex; align-items:center; gap:12px; box-shadow:var(--shadow-lg); transform:translateY(140%); transition:transform .4s var(--ease); }
.install-bar.show{ transform:none; }
.install-bar .mark{ width:36px; height:36px; color:var(--on-ink); }
.install-bar .it{ flex:1; min-width:0; }
.install-bar .it b{ font-size:14px; } .install-bar .it span{ font-size:12px; opacity:.7; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.install-bar .btn{ height:38px; padding:0 14px; background:var(--gold); color:#1a1408; border:0; }
.install-bar .x{ background:transparent; border:0; color:rgba(255,255,255,.6); }
@media (min-width:900px){ .install-bar{ left:auto; right:24px; bottom:24px; width:340px; } }
@media (max-width:899px){
  .install-bar{ display:none !important; }
  .install-bar{ left:10px; right:10px; bottom:auto; top:calc(env(safe-area-inset-top,0px) + var(--sa-top,0px) + 62px); transform:translateY(-180%); padding:11px 12px; border-radius:14px; z-index:38; }
  .install-bar.show{ transform:none; }
  .install-bar .it b{ font-size:13.5px; } .install-bar .it span{ font-size:11.5px; }
}

/* utility: hide on mobile / desktop */
@media (max-width:899px){ .hide-m{ display:none !important; } }
@media (min-width:900px){ .hide-d{ display:none !important; } }
@media (max-width:1180px){ .hide-sm-d{ display:none !important; } }

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */
@media (max-width:899px){
  /* top bar respects the notch / status bar (safe-area), with a preview fallback var */
  .mtop{ height:auto; min-height:58px; padding:calc(env(safe-area-inset-top, 0px) + var(--sa-top, 0px) + 10px) 16px 10px; }
  .mtop .logo{ font-size:18px; }
}
@media (max-width:680px){
  .wrap{ padding:0 16px; }
  section{ margin-top:38px; }
  section:first-child{ margin-top:18px; }
  .head h2{ font-size:23px; }

  /* hero: tighter, calmer on phones */
  .hero{ padding:20px 18px; border-radius:18px; }
  .hero h1{ font-size:21px; margin:0; }
  .hero-stats{ gap:18px; }
  .hstat .n{ font-size:18px; }

  /* banners: swipeable carousel — один баннер занимает всю ширину экрана,
     край следующего не торчит (snap по левому краю, слайд = 100% вьюпорта). */
  .banner-strip{ overflow:hidden; }
  .banner-strip .bgrid{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; margin:0 -16px; padding:0 16px 4px; scroll-padding-left:16px; }
  .banner-strip .bgrid::-webkit-scrollbar{ display:none; }
  /* 100% ширины вьюпорта минус боковые паддинги контейнера (16px×2) */
  /* content-visibility:auto (десктоп) в горизонтальной карусели вызывал
     рывки/зависание анимированных webp/gif-баннеров при свайпе: браузер
     переставал/начинал декодировать анимацию на входе-выходе из вьюпорта.
     На мобиле отключаем скип-рендер и промоутим слайд в свой GPU-слой, чтобы
     анимация не перерисовывалась вместе с основным потоком при скролле. */
  .banner-strip .bn{ flex:0 0 calc(100vw - 32px); scroll-snap-align:start; aspect-ratio:345/118;
    content-visibility:visible; contain-intrinsic-size:auto; transform:translateZ(0); backface-visibility:hidden; }

  /* shop cards: small phones — slight tweaks on top of the 680px rules */
  .shopcard{ padding:18px 16px 16px; border-radius:20px; }
  .sc-logo{ width:60px; height:60px; border-radius:16px; font-size:23px; }
  .sc-name{ font-size:17px; }

  /* trust strip + announce + countdown breathe a bit less */
  .trust{ gap:10px; }
  .trust .ti{ padding:13px 14px; }
  .announce{ padding:22px 20px; }
  .countdown{ gap:7px; width:100%; }
  .cd-u{ min-width:0; flex:1; font-size:18px; font-weight:700; padding:9px 4px; border-radius:12px; }
  .cd-u small{ font-size:8px; margin-top:3px; }
  .roul{ padding:18px 15px; }
  .part-search{ max-width:none; }
  .dg-rows{ grid-template-columns:1fr 1fr; }

  /* gate: comfortable on small screens */
  .gcard{ padding:26px 20px; }
  .gate h1{ font-size:21px; }
  .rcheck{ padding:14px; gap:12px; }
}

/* ---------- roulette: raffle + draw ---------- */
.rfl-banner{ margin:2px 0 18px; aspect-ratio:1200/260; border-radius:var(--r); overflow:hidden; background-size:cover; background-position:center; background-repeat:no-repeat; background-color:var(--tile); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:border-color .2s; }
.rfl-banner.has-img{ border-color:transparent; }
.rfl-banner.has-img{ border-style:solid; border-color:var(--line); }
.rfl-banner-ph{ display:inline-flex; align-items:center; gap:9px; color:var(--faint); font-family:var(--mono); font-size:12px; letter-spacing:.12em; }
.rfl-banner-ph .ic{ width:18px; height:18px; }
@media (hover:hover){ .rfl-banner:hover{ border-color:var(--faint); } }
.rfl-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.rfl-hero{ display:grid; grid-template-columns:1fr auto; grid-template-areas:"head timer" "cond timer"; column-gap:36px; row-gap:6px; align-items:start; margin-bottom:8px; }
.rfl-hero .rfl-head{ grid-area:head; }
.rfl-hero .rfl-timer{ grid-area:timer; }
.rfl-hero .rfl-cond{ grid-area:cond; min-width:0; }
.rfl-hero .rfl-cond .rfl-sec:first-child{ margin-top:10px; }
.rfl-timer .countdown{ margin:0; }
.rfl-name{ font-size:22px; font-weight:800; letter-spacing:-.02em; margin:3px 0 0; }
.rfl-timer{ display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
.rt-cap{ display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10.5px; letter-spacing:.13em; text-transform:uppercase; color:var(--faint); }
.rt-cap .ic{ width:13px; height:13px; }
.rfl-sec{ font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); margin:20px 0 11px; }
.rfl-how{ display:flex; flex-direction:column; gap:12px; margin:0 0 16px; }
.how-step{ display:flex; gap:13px; align-items:flex-start; }
.how-step .how-n{ width:26px; height:26px; flex:none; border-radius:9px; background:var(--gold-soft); color:var(--gold-bright); font-family:var(--mono); font-weight:700; font-size:13px; display:grid; place-items:center; margin-top:1px; }
.how-step b{ display:block; font-size:14px; font-weight:700; margin-bottom:2px; }
.how-step span{ font-size:13px; color:var(--dim); line-height:1.5; }
.how-step a{ color:var(--gold-bright); font-weight:600; cursor:pointer; }
#drawResult{ margin-top:8px; }
.draw-row{ display:flex; align-items:center; gap:12px; padding:13px 4px; border-bottom:1px solid var(--line); font-size:14px; border-radius:8px; }
.draw-row:last-child{ border-bottom:0; }
.draw-row .medal{ display:inline-flex; align-items:center; gap:5px; font-family:var(--mono); font-weight:700; font-size:12px; }
.draw-row .medal.c1{ color:#cf9f2c; } .draw-row .medal.c2{ color:#8b94a3; } .draw-row .medal.c3{ color:#b06a36; }
.draw-row .medal .ic{ width:18px; height:15px; }
.dr-prize{ color:var(--dim); }
.dr-name{ margin-left:auto; font-family:var(--mono); font-weight:700; font-size:14px; }
.dr-name.shuffling{ color:var(--faint); }
.draw-row.won .dr-name{ color:var(--ink); }
.draw-row.won{ animation:wonPulse .6s var(--ease); }
@keyframes wonPulse{ from{ background:color-mix(in oklab,var(--gold) 16%, transparent); } to{ background:transparent; } }
#drawBtn[disabled]{ opacity:.65; cursor:default; }

/* prize quantity + multi-winner draw groups */
.prize .pq{ font-family:var(--mono); font-size:11px; font-weight:700; color:#8a6d1f; background:color-mix(in oklab,var(--gold) 22%, transparent); border-radius:7px; padding:2px 7px; }
.prize.p2 .pq{ color:#56606e; background:rgba(150,160,175,.22); }
.prize.p3 .pq{ color:#7a4a25; background:rgba(180,120,80,.2); }
.draw-group{ border:1px solid var(--line); border-radius:14px; padding:12px 14px; margin-bottom:12px; background:var(--surface); }
.dg-head{ display:flex; align-items:center; gap:10px; padding-bottom:9px; border-bottom:1px solid var(--line); margin-bottom:7px; }
.dg-head .medal{ display:inline-flex; align-items:center; gap:5px; font-family:var(--mono); font-weight:700; font-size:12px; }
.dg-head .medal.c1{ color:#cf9f2c; } .dg-head .medal.c2{ color:#8b94a3; } .dg-head .medal.c3{ color:#b06a36; }
.dg-head .medal .ic{ width:18px; height:15px; }
.dg-head .dr-prize{ color:var(--ink); font-weight:700; }
.dg-count{ margin-left:auto; font-family:var(--mono); font-size:11.5px; color:var(--dim); white-space:nowrap; }
.dg-rows{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:0 16px; }
.dg-rows .draw-row{ padding:7px 2px; border-bottom:0; gap:8px; }
.dg-rows .draw-row::before{ content:"•"; color:var(--faint); }
.dg-rows .draw-row .dr-name{ margin-left:0; font-size:13.5px; }
.dg-rows .draw-row.won .dr-name{ color:var(--ink); }

/* participant search */
.part-search{ position:relative; margin-top:14px; max-width:340px; }
.part-search .si{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--dim); display:inline-flex; }
.part-search input{ width:100%; height:42px; border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--surface); color:var(--ink); padding:0 14px 0 38px; font-size:14px; outline:none; transition:border-color .2s; }
.part-search input:focus{ border-color:var(--faint); }
.part.hit{ background:color-mix(in oklab,var(--gold) 18%, var(--tile)); }
.part mark{ background:transparent; color:var(--ink); font-weight:800; }
.part-empty{ margin-top:12px; font-size:13.5px; color:var(--dim); }

/* profile — my winnings */
.pf-wins{ padding:6px 20px; }
.win-row{ display:flex; align-items:center; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.win-row:last-of-type{ border-bottom:0; }
.win-medal{ width:42px; height:42px; border-radius:12px; flex:none; display:grid; place-items:center; background:color-mix(in oklab,var(--gold) 16%, var(--tile)); color:var(--gold-bright); }
.win-medal .ic{ width:22px; height:22px; }
.win-info{ min-width:140px; }
.win-info b{ font-weight:700; font-size:15px; display:block; }
.win-info span{ font-size:12.5px; color:var(--dim); }
.win-code{ display:flex; align-items:center; gap:8px; margin-left:auto; flex-wrap:wrap; }
.win-code .wc{ font-family:var(--mono); font-size:13.5px; font-weight:700; background:var(--tile); border:1px solid var(--line); border-radius:9px; padding:8px 12px; letter-spacing:.04em; color:var(--ink); }
.win-code .wc.masked{ color:var(--faint); letter-spacing:.18em; }
.win-note{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--dim); margin-top:14px; }
.win-note .ic{ color:var(--ok); flex:none; }
@media (max-width:680px){ .win-code{ margin-left:0; width:100%; } .win-code .wc{ flex:1; } }

/* roulette mobile — placed after the base .rfl-* rules so it actually wins the cascade */
@media (max-width:680px){
  .roul{ padding:16px 14px; }
  /* banner = hero, full-width with a clear gold frame */
  .rfl-banner{ aspect-ratio:16/7; margin:0 0 16px; border-radius:14px; }
  .rfl-banner:not(.has-img){ border:1.5px solid color-mix(in oklab,var(--gold) 45%, var(--line-strong));
    background:repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in oklab,var(--gold) 8%, transparent) 13px 26px), color-mix(in oklab,var(--gold) 9%, var(--tile)); }
  .rfl-banner-ph{ color:color-mix(in oklab,var(--gold) 60%, var(--ink)); font-size:10.5px; }
  /* name + timer stack; timer is a compact full-width strip */
  .rfl-top{ flex-direction:column; align-items:stretch; gap:13px; }
  .rfl-hero{ grid-template-columns:1fr; grid-template-areas:"head" "timer" "cond"; row-gap:14px; column-gap:0; }
  .rfl-hero .rfl-cond .rfl-sec:first-child{ margin-top:0; }
  .rfl-name{ font-size:19px; }
  .rfl-timer{ align-items:stretch; gap:8px; }
  .rt-cap{ justify-content:flex-start; }
  .countdown{ gap:7px; width:100%; margin:0; }
  .cd-u{ flex:1; min-width:0; font-size:17px; font-weight:700; padding:9px 4px; border-radius:11px; }
  .cd-u small{ font-size:8px; margin-top:3px; letter-spacing:.1em; }
  /* steps a touch tighter */
  .how-step .how-n{ width:24px; height:24px; font-size:12px; }
  .how-step b{ font-size:13.5px; }
}
/* carousel dots (mobile banners) */
.bn-dots{ display:none; }
@media (max-width:680px){
  .bn-dots{ display:flex; gap:6px; justify-content:center; margin-top:10px; }
  .bn-dots i{ width:6px; height:6px; border-radius:50%; background:var(--line-strong); transition:background .25s, width .25s; }
  .bn-dots i.on{ background:var(--ink); width:18px; border-radius:3px; }
}

/* ---------- news: Telegram-channel posts ---------- */
.tg-post{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); box-shadow:var(--shadow-sm); margin-bottom:16px; overflow:visible; cursor:pointer; transition:box-shadow .2s, transform .18s var(--ease); max-width:780px; }
@media (hover:hover){ .tg-post:hover{ box-shadow:var(--shadow); } }
.tg-head{ display:flex; align-items:center; gap:11px; padding:15px 18px 12px; }
.tg-av{ width:40px; height:40px; border-radius:50%; background:var(--tile); display:grid; place-items:center; flex:none; }
.tg-av .mark{ width:24px; height:24px; }
.tg-id{ flex:1; min-width:0; }
.tg-name{ font-weight:800; font-size:14.5px; display:flex; align-items:center; gap:6px; letter-spacing:-.01em; }
.tg-name .ic{ width:14px; height:14px; color:var(--gold); }
.tg-meta{ font-size:12px; color:var(--dim); }
.tg-tag{ font-size:11px; font-weight:700; color:var(--gold); background:var(--gold-soft); padding:4px 10px; border-radius:8px; flex:none; }
.tg-cover{ width:100%; aspect-ratio:16/8.5; border-radius:0; overflow:hidden; background:var(--tile); position:relative; }
.tg-cover img{ display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.tg-text{ padding:14px 18px 3px; font-size:14.5px; line-height:1.58; color:var(--ink-soft); overflow-wrap:anywhere; }
.tg-text b{ display:block; color:var(--ink); font-weight:800; font-size:16px; line-height:1.35; margin-bottom:6px; letter-spacing:-.01em; }
.tg-text p{ margin:0; }
.tg-full{ display:none; color:var(--dim); }
.tg-more{ color:var(--dim); font-weight:600; }
.tg-post.open .tg-full{ display:inline; }
.tg-post.open .tg-more{ display:none; }
.tg-foot{ display:flex; align-items:center; gap:10px; padding:11px 18px 16px; position:relative; }
.tg-views{ font-size:12.5px; color:var(--dim); display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); }
.tg-views .ic{ width:14px; height:14px; }
.tg-reacts{ display:flex; gap:7px; margin-left:auto; flex-wrap:wrap; }
.tg-react{ font-size:12.5px; font-weight:600; color:var(--ink-soft); background:var(--tile); border-radius:999px; padding:5px 11px; }
@media (max-width:680px){
  .news-feed{ width:100%; }
  .news-banner{ margin-bottom:14px; border-radius:15px; }
  .tg-post{ border-radius:15px; margin-bottom:11px!important; }
  .tg-head{ padding:13px 14px 10px; gap:9px; }
  .tg-av{ width:36px; height:36px; }
  .tg-av .mark{ width:22px; height:22px; }
  .tg-tag{ max-width:36%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .tg-cover{ aspect-ratio:16/9; }
  .tg-text{ padding:13px 14px 2px; font-size:14px; }
  .tg-text b{ font-size:15.5px; }
  .tg-foot{ padding:10px 14px 14px; align-items:flex-end; }
  .tg-reacts{ gap:5px; }
  .tg-react{ padding:5px 9px; }
}

/* news: two-column (feed + channel sidebar) */
.news-layout{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:18px; align-items:start; }
.news-layout .tg-post{ max-width:none; }
.news-aside{ display:flex; flex-direction:column; gap:16px; position:sticky; top:90px; }
.ch-card{ padding:22px 20px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.ch-av{ width:64px; height:64px; border-radius:50%; background:var(--tile); display:grid; place-items:center; margin-bottom:12px; }
.ch-av .mark{ width:38px; height:38px; }
.ch-name{ font-weight:800; font-size:18px; letter-spacing:-.02em; display:flex; align-items:center; gap:6px; }
.ch-name [data-ic]{ color:var(--gold); display:inline-flex; }
.ch-sub{ font-size:12.5px; color:var(--dim); margin-top:2px; }
.ch-stat{ font-size:13px; color:var(--dim); margin:14px 0 16px; }
.ch-stat b{ color:var(--ink); font-weight:800; font-family:var(--mono); }
.ch-join{ width:100%; }
.ch-about{ font-size:12.5px; color:var(--dim); line-height:1.55; margin:16px 0 0; text-align:left; }
@media (max-width:900px){
  .news-layout{ grid-template-columns:1fr; }
  .news-aside{ position:static; order:-1; }
}

/* ---------- account chip + menu (header) ---------- */
.acct{ position:relative; }
.acct-chip{ display:inline-flex; align-items:center; gap:8px; height:var(--control-h); min-height:var(--control-h); padding:0 12px 0 8px; border:1px solid var(--line-strong); border-radius:var(--control-radius); background:var(--surface); color:var(--ink); cursor:pointer; font-weight:600; font-size:14px; transition:border-color .15s, background .15s; }
@media (hover:hover){ .acct-chip:hover{ border-color:var(--faint); } }
.acct-chip .ic{ width:15px; height:15px; color:var(--dim); transition:transform .2s; }
.acct.open .acct-chip .ic{ transform:rotate(180deg); }
.acct-av{ width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:13px; color:#fff; background:var(--ink); flex:none; line-height:1; overflow:hidden; }
.acct-nm{ max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acct-menu{ position:absolute; top:50px; right:0; min-width:230px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); padding:7px; opacity:0; transform:translateY(-6px); pointer-events:none; transition:opacity .16s var(--ease), transform .16s var(--ease); z-index:40; }
.acct.open .acct-menu{ opacity:1; transform:none; pointer-events:auto; }
.acct-menu a{ display:flex; align-items:center; gap:11px; padding:11px 13px; border-radius:9px; font-size:14px; font-weight:500; cursor:pointer; color:var(--ink); }
.acct-menu a .ic{ width:17px; height:17px; color:var(--dim); }
@media (hover:hover){ .acct-menu a:hover{ background:var(--tile); } }
#acctLogout{ color:var(--bad,#d8503a); } #acctLogout .ic{ color:var(--bad,#d8503a); }
.acct-badge{ margin-left:auto; font-family:var(--mono); font-size:12px; font-weight:700; color:var(--gold); background:var(--gold-soft); border-radius:999px; padding:2px 9px; }
.acct-badge:empty{ display:none; }
.mtop-av{ width:var(--control-h); min-width:var(--control-h); height:var(--control-h); border-radius:var(--control-radius); border:1px solid var(--line-strong); padding:0; display:grid; place-items:center; font-weight:800; font-size:14px; color:#fff; background:var(--ink); cursor:pointer; flex:none; }

/* ---------- profile view ---------- */
.pf-card{ position:relative; overflow:hidden; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); box-shadow:var(--shadow-sm); margin-top:28px; }
.pf-cover{ height:120px; background:linear-gradient(120deg, var(--ink-panel), color-mix(in oklab,var(--ink-panel) 60%, #000)); position:relative; overflow:hidden; }
.pf-cover .grid-bg{ position:absolute; inset:0; opacity:.5; }
.pf-body{ padding:0 26px 24px; display:flex; align-items:flex-end; gap:18px; margin-top:-44px; position:relative; flex-wrap:wrap; }
.pf-av{ width:96px; height:96px; border-radius:26px; display:grid; place-items:center; font-weight:800; font-size:40px; color:#fff; background:var(--ink); border:4px solid var(--surface); flex:none; line-height:1; overflow:hidden; box-shadow:var(--shadow); }
.pf-id{ flex:1; min-width:200px; padding-bottom:4px; }
.pf-name{ font-size:24px; font-weight:800; letter-spacing:-.02em; display:flex; align-items:center; gap:9px; }
.pf-handle{ font-family:var(--mono); font-size:13px; color:var(--dim); margin-top:3px; }
.pf-verified{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:var(--gold); background:var(--gold-soft); border-radius:999px; padding:4px 11px; }
.pf-verified .ic{ width:14px; height:14px; }
.pf-actions{ display:flex; gap:10px; padding-bottom:4px; flex-wrap:wrap; }
.pf-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:20px; }
.pf-stat{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface); padding:16px 18px; box-shadow:var(--shadow-sm); }
.pf-stat .n{ font-size:24px; font-weight:800; font-family:var(--mono); letter-spacing:-.02em; }
.pf-stat .l{ font-size:12.5px; color:var(--dim); margin-top:3px; }
.pf-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:start; margin-top:18px; }
.pf-sec-title{ font-weight:800; font-size:17px; letter-spacing:-.01em; margin:0 0 14px; display:flex; align-items:center; gap:9px; }
.pf-sec-title .cnt{ margin-left:auto; }
.priv-list{ display:flex; flex-direction:column; gap:11px; }
.priv{ display:flex; align-items:flex-start; gap:12px; font-size:14px; }
.priv .pc{ width:30px; height:30px; border-radius:9px; background:var(--gold-soft); color:var(--gold); display:grid; place-items:center; flex:none; }
.priv .pc .ic{ width:16px; height:16px; }
.priv b{ font-weight:700; } .priv span{ color:var(--dim); display:block; font-size:12.5px; margin-top:1px; }
.av-pick{ display:flex; flex-wrap:wrap; gap:9px; margin-top:6px; }
.av-sw{ width:34px; height:34px; border-radius:50%; cursor:pointer; border:2px solid transparent; transition:transform .12s; }
@media (hover:hover){ .av-sw:hover{ transform:scale(1.08); } }
.av-sw.on{ border-color:var(--ink); box-shadow:0 0 0 2px var(--surface) inset; }
.av-emoji{ display:flex; flex-wrap:wrap; gap:9px; margin-top:12px; }
.av-em{ width:38px; height:38px; border-radius:11px; border:1px solid var(--line-strong); background:var(--surface); display:grid; place-items:center; font-size:19px; cursor:pointer; transition:border-color .12s, transform .12s; }
@media (hover:hover){ .av-em:hover{ transform:scale(1.06); } }
.av-em.on{ border-color:var(--ink); background:var(--tile); }
.pf-empty{ text-align:center; color:var(--dim); padding:30px 16px; }
.pf-empty .ic{ width:30px; height:30px; color:var(--faint); margin-bottom:8px; }
@media (max-width:820px){ .pf-grid{ grid-template-columns:1fr; } .pf-stats{ grid-template-columns:1fr; } }

/* ---------- favorite heart on shop cards ---------- */
.sc-fav{ flex:none; align-self:flex-start; width:36px; height:36px; border-radius:10px; border:1px solid var(--line-strong); background:var(--surface); display:grid; place-items:center; cursor:pointer; transition:border-color .15s, background .15s; }
.sc-fav .ic{ width:18px; height:18px; color:var(--dim); transition:color .15s; }
@media (hover:hover){ .sc-fav:hover{ border-color:var(--faint); } }
.sc-fav.on{ background:var(--gold-soft); border-color:transparent; }
.sc-fav.on .ic{ color:var(--gold); fill:var(--gold); }
/* Project-detail actions are a separate labelled-control component. */
.detail-grid .sc-bottom{
  display:grid;grid-template-columns:auto minmax(90px,1fr) auto;align-items:center;
  justify-content:stretch;gap:12px
}
.detail-grid .sc-bottom>.pv{justify-self:center;margin:0}
.detail-grid .sc-bottom>.sc-fav-detail{
  position:static!important;inset:auto!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;gap:8px!important;
  width:auto!important;min-width:148px!important;height:44px!important;min-height:44px!important;
  padding:0 15px!important;border-radius:13px!important;white-space:nowrap!important;
  line-height:1!important;overflow:visible!important;flex:0 0 auto!important
}
.detail-grid .sc-bottom>.sc-fav-detail .ic{flex:none}
.detail-grid .sc-bottom>.sc-fav-detail .fav-label{
  display:inline!important;position:static!important;width:auto!important;height:auto!important;
  margin:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;
  white-space:nowrap!important
}
@media(max-width:680px){
  .detail-grid .sc-bottom{display:flex!important;flex-direction:column;align-items:stretch;gap:10px;padding-top:12px}
  .detail-grid .sc-bottom>.btn.primary{order:1;width:100%;min-height:44px}
  .detail-grid .sc-bottom>.sc-fav-detail{
    order:2;width:100%!important;min-width:0!important;
    height:44px!important;min-height:44px!important;padding:0 12px!important;justify-content:center!important
  }
  .detail-grid .sc-bottom>.pv{order:3;justify-self:center;align-self:center;margin:0;min-height:0;padding:6px 0 0;border-top:1px solid var(--line);width:100%;justify-content:center}
}
.shopcard{ position:relative; }

/* ---------- avatar with uploaded photo ---------- */
.acct-av.has-photo, .mtop-av.has-photo, .pf-av.has-photo{ color:transparent; background-size:cover; background-position:center; }
.av-upload{ display:flex; flex-wrap:wrap; gap:9px; }

/* ---------- news reactions (interactive) ---------- */
.tg-react{ border:0; cursor:pointer; font-family:inherit; display:inline-flex; align-items:center; gap:5px; transition:background .15s, color .15s, transform .1s; }
@media (hover:hover){ .tg-react:hover{ transform:translateY(-1px); } }
.tg-react:active{ transform:scale(.94); }
.tg-react .rc{ font-weight:700; }
.tg-react.on{ background:var(--gold-soft); color:var(--gold); }
.tg-react.add{ color:var(--dim); padding:6px 11px; }
.tg-react.add .ic{ width:15px; height:15px; }
.react-add-wrap{ position:static; display:inline-flex; }
.react-pop{ position:absolute; bottom:54px; right:14px; left:auto; display:none; grid-template-columns:repeat(8,1fr); gap:2px; width:max-content; max-width:calc(100% - 28px); max-height:188px; overflow-y:auto; -webkit-overflow-scrolling:touch; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:7px; box-shadow:var(--shadow-lg); z-index:30; }
.react-pop.open{ display:grid; animation:reactPop .16s var(--ease); }
@keyframes reactPop{ from{ opacity:0; transform:translateY(5px); } to{ opacity:1; transform:none; } }
.react-pop span{ cursor:pointer; font-size:20px; line-height:1; padding:5px 6px; border-radius:9px; transition:background .12s, transform .12s; text-align:center; }
@media (hover:hover){ .react-pop span:hover{ background:var(--tile); transform:scale(1.14); } }
@media (max-width:560px){ .react-pop{ grid-template-columns:repeat(6,1fr); } .react-pop span{ font-size:20px; padding:6px 4px; } }

/* ---------- exchange select / input polish (fixes square hover) ---------- */
.ex-fld select{ -webkit-appearance:none; -moz-appearance:none; appearance:none; padding-right:40px; cursor:pointer; transition:border-color .15s, box-shadow .15s;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a90a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 13px center; }
.ex-fresh{ display:inline-flex; align-items:center; gap:4px; color:var(--ok); font-weight:600; }
.ex-fresh svg{ width:12px; height:12px; }
.ex-fresh::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--ok); margin-right:1px; animation:exPulse 1.8s ease-in-out infinite; }
@keyframes exPulse{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }
@media (prefers-reduced-motion: reduce){ .ex-fresh::before{ animation:none; } }
.ex-fld input{ transition:border-color .15s, box-shadow .15s; }
@media (hover:hover){ .ex-fld select:hover, .ex-fld input:hover{ border-color:var(--faint); } }
.ex-fld select:focus, .ex-fld input:focus{ border-color:var(--ink); box-shadow:0 0 0 3px color-mix(in oklab, var(--ink) 8%, transparent); outline:none; }

/* Mobile cards are rendered normally; deferred content caused blank panels during fast scroll and screenshots. */
@media (prefers-reduced-motion: reduce){
  .ann-wheel, .live-dot::after{ animation:none !important; }
}



/* V312 countdown uses days instead of unbounded hours. */
.countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
.cd-u{min-width:0}
