/* VEXLIO design system — light and dark themes, 2026-10-31.
   Every colour comes from the tokens below; components never hard-code theme colours. */

/* ---------- Font: Inter (SIL OFL 1.1, see fonts/OFL.txt), served from the app itself ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/inter-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Tokens ---------- */
:root{
  color-scheme:light;
  --bg:#f5f7fb;--surface:#ffffff;--surface-2:#f0f3f9;--surface-3:#e8edf6;--overlay:#ffffffd9;
  --line:#e3e8f1;--line-strong:#d3dbe8;
  --text:#0f1626;--text-2:#4b5770;--muted:#8590a6;
  --accent:#2563ff;--accent-2:#6b97ff;--accent-press:#1d4fd8;--accent-soft:#e9f0ff;--accent-text:#1d4fd8;--on-accent:#fff;
  --success:#12a36b;--success-soft:#e3f6ee;--warning:#c27a00;--warning-soft:#fff3dc;--danger:#d63a55;--danger-soft:#fdecef;
  --bubble-in:#ffffff;--bubble-out:#2563ff;--bubble-out-text:#fff;--thread-bg:#eef2f8;
  --hero-a:#e9f1ff;--hero-b:#dce8ff;--hero-glow:#c4d8ff;
  --shadow-s:0 1px 2px #10182808,0 1px 3px #1018280d;
  --shadow-m:0 6px 20px #1f386e12;
  --shadow-l:0 18px 48px #1a2f5c24;
  --r-s:10px;--r-m:14px;--r-l:20px;--r-xl:26px;
  --app-top:0px;--app-bottom:0px;
  --safe-bottom:max(env(safe-area-inset-bottom,0px),var(--app-bottom));
  --nav-h:72px;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-synthesis:none;
}
:root[data-theme=dark]{
  color-scheme:dark;
  --bg:#0b0c10;--surface:#15161c;--surface-2:#1c1e26;--surface-3:#262934;--overlay:#121319d9;
  --line:#22252e;--line-strong:#2f3340;
  --text:#f4f5f8;--text-2:#b1b6c4;--muted:#737a8b;
  --accent:#5a7cff;--accent-2:#9b6bff;--accent-press:#4a69ee;--accent-soft:#1b2142;--accent-text:#9db1ff;--on-accent:#fff;
  --success:#2fd08f;--success-soft:#11291f;--warning:#ffb547;--warning-soft:#33260f;--danger:#ff5c74;--danger-soft:#341820;
  --bubble-in:#1c1e26;--bubble-out:#5a6fff;--bubble-out-text:#fff;--thread-bg:#0b0c10;
  --hero-a:#16213a;--hero-b:#132c5a;--hero-glow:#24448a;
  --shadow-s:0 1px 2px #0006;--shadow-m:0 8px 24px #0009;--shadow-l:0 22px 54px #000b;
}
:root{--logo:#6a5cff}
:root[data-theme=dark]{--logo:#c6f432}
@media (prefers-color-scheme:dark){:root:not([data-theme]){--logo:#c6f432}}
:root{--grad:linear-gradient(135deg,#5a7cff 0%,#9b6bff 100%);--grad-soft:linear-gradient(135deg,#5a7cff26,#9b6bff26);--star:#ffb547}
@media (prefers-color-scheme:dark){:root:not([data-theme]){color-scheme:dark;--bg:#0d121d;--surface:#151b28;--text:#edf1fa}}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-bottom:110px;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit;color:inherit}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{border:0;background:none;padding:0;cursor:pointer;transition:background-color .15s,color .15s,border-color .15s,transform .12s,box-shadow .15s}
button:disabled{opacity:.45;cursor:default}
button:not(:disabled):active{transform:scale(.98)}
a{color:inherit;text-decoration:none}
svg{width:24px;height:24px;flex-shrink:0}
:focus-visible{outline:2.5px solid var(--accent);outline-offset:2px;border-radius:6px}
h1,h2,h3,p{margin:0}
h1{font-size:28px;font-weight:800;letter-spacing:-.8px;line-height:1.15}
h2{font-size:19px;font-weight:750;letter-spacing:-.4px;line-height:1.3}
h3{font-size:16px;font-weight:700;line-height:1.4}
small{font-size:12px}
img{max-width:100%}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.note{font-size:13px;line-height:1.6;color:var(--muted)}

/* ---------- App shell ---------- */
.app-shell{min-height:100dvh}
.sidebar,.breadcrumb,.desktop-footer{display:none}
.workspace{min-width:0}
.topbar{position:sticky;top:0;z-index:8;height:calc(60px + var(--app-top));padding:var(--app-top) 16px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--overlay);backdrop-filter:saturate(1.6) blur(16px);-webkit-backdrop-filter:saturate(1.6) blur(16px);border-bottom:1px solid transparent}
.logo-x{fill:var(--logo)}
.logo-word{display:block}
.mobile-brand{display:flex;align-items:center;min-height:44px;padding-right:8px;color:var(--text);flex-shrink:0}
.mobile-brand .logo-word{width:113px;height:22px;flex-shrink:0;overflow:visible}
.top-actions{display:flex;align-items:center;gap:8px}
.icon-button,.avatar{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line);color:var(--text-2);flex-shrink:0}
.icon-button svg{width:21px;height:21px}
.icon-button.ghost{background:transparent;border-color:transparent}
.icon-button.ghost:hover{background:var(--surface-2)}
.avatar{border-radius:50%;width:36px;height:36px;background:var(--accent-soft);border-color:transparent;color:var(--accent-text);font-weight:750;font-size:15px}
main{padding:8px 16px calc(var(--nav-h) + 32px + var(--safe-bottom));max-width:1180px;margin:auto;min-height:calc(100dvh - 60px);outline:none}

/* ---------- Section headings ---------- */
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:8px 0 20px}
.section-heading p{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.5}
.section-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.section-row h2{font-size:18px}
.text-link{display:inline-flex;align-items:center;gap:4px;min-height:40px;color:var(--accent-text);font-size:13px;font-weight:650;white-space:nowrap}
.text-link svg{width:16px;height:16px}
.home-section{margin-top:28px}

/* ---------- Search ---------- */
.home-search,.search{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);min-width:0;box-shadow:var(--shadow-s)}
.home-search{width:100%;gap:10px;padding:0 14px;height:48px;color:var(--muted);text-align:left;font-size:15px;margin:4px 0 16px}
.home-search svg{width:20px;height:20px;color:var(--text-2)}
.search{flex:1;position:relative}
.search>svg{position:absolute;left:14px;color:var(--muted);width:20px;height:20px;pointer-events:none}
.search input{width:100%;height:48px;padding:0 14px 0 44px;border:0;border-radius:var(--r-m);background:transparent;color:var(--text);font-size:16px;min-width:0;outline:none}
.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.search input::placeholder{color:var(--muted)}
.tools{display:flex;gap:10px;margin-bottom:16px}

/* ---------- Hero ---------- */
.hero{position:relative;display:flex;align-items:center;gap:12px;padding:22px 18px;border-radius:var(--r-xl);overflow:hidden;isolation:isolate;margin-bottom:20px;background:radial-gradient(120% 90% at 90% 0%,var(--hero-glow),transparent 60%),linear-gradient(135deg,var(--hero-a),var(--hero-b));border:1px solid var(--line)}
.hero-copy{position:relative;z-index:2;flex:1;min-width:0}
.hero-kicker{display:inline-block;font-size:10px;letter-spacing:1.4px;color:var(--accent-text);font-weight:750;margin-bottom:8px}
.hero h2{font-size:22px;line-height:1.12;font-weight:850;letter-spacing:-.8px}
.hero p{color:var(--text-2);font-size:12.5px;line-height:1.5;margin:8px 0 16px;max-width:280px}
.hero .primary{min-height:42px;padding:0 14px;font-size:13px;border-radius:var(--r-m)}
.hero .primary svg{width:17px;height:17px}
.hero-mosaic{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:118px;flex-shrink:0;transform:rotate(-8deg) translateX(6px)}
.hero-mosaic .game-art{border-radius:12px;box-shadow:0 6px 14px #0b1f4a26;border:2px solid #ffffff40}

/* ---------- Game art and strips ---------- */
.game-art{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:16px;color:#fff;overflow:hidden;box-shadow:inset 0 1px 0 #ffffff40}
.game-art svg{width:58%;height:58%;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.game-art svg.fill{fill:currentColor;stroke:none}
.game-art svg .dot{fill:#fff;stroke:none}
.game-art.steam svg{width:76%;height:76%}
.game-art.roblox{background:linear-gradient(145deg,#4b5463,#121722)}
.roblox i{display:block;width:50%;height:50%;background:linear-gradient(145deg,#fff,#aab3c1);transform:rotate(15deg);position:relative;border-radius:2px}
.roblox i:after{content:'';position:absolute;inset:36%;background:#182030}
.game-art.genshin{background:radial-gradient(circle at 20% 10%,#d6dcff,transparent 70%),linear-gradient(145deg,#7e9fe5,#5b64ad);color:#fff6da}
.game-art.standoff{background:linear-gradient(150deg,#e2673f,#3a1f2a)}
.game-art.pubg{background:linear-gradient(150deg,#f2a93b,#6b4a1d)}
.game-art.brawl{background:linear-gradient(150deg,#ffd447,#ff7a1a);color:#fff}
.game-art.cs2{background:linear-gradient(150deg,#2f3d52,#d7962b)}
.game-art.dota2{background:linear-gradient(150deg,#c4362e,#2a0f12)}
.game-art.steam{background:linear-gradient(145deg,#162540,#0075aa)}
.game-strip{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin:0 -16px 18px;padding:4px 16px 6px;scroll-snap-type:x proximity}
.game-strip::-webkit-scrollbar{display:none}
.game{flex:0 0 68px;min-width:0;text-align:center;scroll-snap-align:start}
.game .game-art{transition:box-shadow .15s,transform .15s}
.game b{display:block;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:600;line-height:1.3;margin-top:7px;white-space:nowrap;color:var(--text-2)}
.game.selected .game-art{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}
.game.selected b{color:var(--accent-text)}

/* ---------- Categories ---------- */
.category-grid{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px 6px}
.category-grid::-webkit-scrollbar{display:none}
.category{flex:0 0 76px;padding:12px 4px 10px;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);text-align:center;box-shadow:var(--shadow-s)}
.category-icon{display:grid;place-items:center;color:var(--accent);flex-shrink:0}
.category .category-icon{width:40px;height:40px;margin:0 auto;border-radius:12px;background:var(--accent-soft)}
.category-icon svg{width:22px;height:22px;stroke-width:1.9}
.category b{display:block;font-size:11px;font-weight:600;margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-2)}
.category.selected{border-color:var(--accent);background:var(--accent-soft)}

/* ---------- Tabs, chips, filters ---------- */
.tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -16px 16px;padding:0 16px 2px}
.tabs::-webkit-scrollbar{display:none}
.tab{flex-shrink:0;min-height:38px;padding:0 15px;border-radius:999px;white-space:nowrap;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--text-2)}
.tab.active{background:var(--text);border-color:var(--text);color:var(--bg)}
.category-tabs{margin-top:2px}
.filter-row{display:flex;gap:8px;margin:4px 0 0}
.filter-button{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 14px;border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--text-2);flex:1}
.filter-button svg{width:19px;height:19px}
.filter-button.has-filter{color:var(--accent-text);background:var(--accent-soft);border-color:transparent}
.sort-wrap{flex:1;min-width:0;display:flex}
.sort{width:100%;min-width:0;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-m);color:var(--text-2);background:var(--surface);font-size:14px;font-weight:600}
.active-filters{display:flex;gap:6px;flex-wrap:wrap}
.active-filters:not(:empty){margin-top:10px}
.filter-chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text);font-size:12.5px;font-weight:600;max-width:100%}
.catalog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 12px}
.catalog-title{display:flex;align-items:center;gap:10px;min-width:0}
.catalog-title h2{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalog-title .game-art{width:32px;border-radius:10px;flex-shrink:0}
.count{font-size:12px;color:var(--muted);white-space:nowrap}

/* ---------- Product cards ---------- */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product{position:relative;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;box-shadow:var(--shadow-s);transition:box-shadow .2s,transform .2s}
.product-open{display:flex;flex-direction:column;width:100%;min-width:0;text-align:left;height:100%}
.product-art{position:relative;aspect-ratio:1;background:linear-gradient(145deg,var(--surface-2),var(--surface-3));overflow:hidden;display:grid;place-items:center;color:var(--accent-2)}
.product-art>svg{width:38px;height:38px;opacity:.85}
.product-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.product-art img.photo-error{display:none}
.product-body{display:flex;flex-direction:column;padding:10px 12px 12px;min-width:0;flex:1}
.product-bottom{order:-1;display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-bottom:4px}
.price{font-size:17px;font-weight:800;letter-spacing:-.4px;color:var(--text)}
.price small{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:0;white-space:nowrap}
.open-arrow{display:none}
.product h3{font-size:13.5px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:var(--text)}
.cat-label,.seller-caption{font-size:11.5px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seller-caption{margin-top:auto;padding-top:6px}
.status-badge{position:absolute;top:8px;left:8px;padding:3px 8px;border-radius:999px;background:var(--overlay);backdrop-filter:blur(8px);font-size:11px;font-weight:650;color:var(--text-2)}
.favorite{position:absolute;z-index:2;right:8px;top:8px;width:34px;height:34px;display:grid;place-items:center;background:var(--overlay);backdrop-filter:blur(8px);border-radius:50%;color:var(--text-2)}
.favorite svg{width:18px;height:18px}
.favorite.on{color:#ff3b5c}
.favorite.on svg{fill:currentColor}
.load-more{display:flex;margin:20px auto 0}

/* ---------- Skeletons, empty and error states ---------- */
.sk{background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface-3) 45%,var(--surface-2) 65%);background-size:300% 100%;animation:shimmer 1.3s ease-in-out infinite;border-radius:8px}
@keyframes shimmer{from{background-position:100% 0}to{background-position:0 0}}
.skeleton-card{padding:0 0 12px}
.sk-art{aspect-ratio:1;border-radius:0;margin-bottom:12px}
.sk-line{height:11px;margin:8px 12px 0;width:calc(100% - 24px)}
.sk-line.w40{width:40%}.sk-line.w60{width:60%}.sk-line.w80{width:80%}
.sk-stack{display:flex;flex-direction:column;flex:1;gap:4px;min-width:0}
.sk-stack .sk-line{margin:4px 0}
.sk-circle{width:44px;height:44px;border-radius:50%;flex-shrink:0}
.sk-block{height:110px;border-radius:var(--r-l);margin-bottom:12px}
.skeleton-row{pointer-events:none}
.sk-bubble{height:44px;width:58%;border-radius:18px;margin:6px 0}
.sk-bubble.mine{align-self:flex-end;width:44%}
.empty,.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 16px;min-height:240px}
.empty-symbol{width:64px;height:64px;border-radius:20px;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent);margin-bottom:16px;overflow:hidden}
.empty-symbol svg{width:28px;height:28px}
.empty-symbol .game-art{border-radius:inherit}
.danger-symbol{background:var(--danger-soft);color:var(--danger)}
.empty h3,.error-state h3{font-size:18px;letter-spacing:-.3px;margin-bottom:6px}
.empty p,.error-state p{font-size:14px;color:var(--muted);max-width:320px;line-height:1.6}
.empty .primary,.error-state .secondary{margin-top:20px}
.error-box{padding:16px;background:var(--danger-soft);color:var(--danger);border-radius:var(--r-m);overflow-wrap:anywhere}
.loading{padding:48px 20px;text-align:center;color:var(--muted);font-size:14px}

/* ---------- Banners ---------- */
.sell-banner,.profile-sell{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow-s)}
.sell-banner{margin-top:28px;background:linear-gradient(135deg,var(--accent-soft),var(--surface))}
.sell-banner>div,.profile-sell>div{flex:1;min-width:0}
.sell-banner h2,.profile-sell h2{font-size:15px}
.sell-banner p,.profile-sell p{font-size:12.5px;color:var(--muted);margin-top:3px}
.sell-banner .icon-button{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.banner-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--r-m);background:var(--accent-soft);color:var(--accent);flex-shrink:0}
.banner-icon svg{width:22px;height:22px}
.profile-sell{margin-bottom:16px}
.profile-sell .primary{min-height:40px;padding:0 16px;font-size:13px}

/* ---------- Buttons ---------- */
.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:var(--r-m);font-size:15px;font-weight:650;line-height:1.2;text-align:center}
.primary svg,.secondary svg,.danger svg{width:19px;height:19px}
.primary{background:var(--accent);color:var(--on-accent);box-shadow:0 6px 16px color-mix(in srgb,var(--accent) 28%,transparent)}
.primary:hover{background:var(--accent-press)}
.secondary{background:var(--surface);border:1px solid var(--line-strong);color:var(--text)}
.secondary:hover{background:var(--surface-2)}
.danger{background:var(--danger-soft);color:var(--danger)}
.quiet{min-height:40px;color:var(--accent-text);font-size:14px;font-weight:600}
.wide{width:100%;margin-top:12px}

/* ---------- Bottom navigation ---------- */
.mobile-nav{position:fixed;z-index:10;left:10px;right:10px;bottom:calc(8px + var(--safe-bottom));display:flex;align-items:center;height:var(--nav-h);padding:6px;border:1px solid var(--line);border-radius:24px;background:var(--overlay);box-shadow:var(--shadow-l);backdrop-filter:saturate(1.6) blur(20px);-webkit-backdrop-filter:saturate(1.6) blur(20px)}
.mobile-tab{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:10.5px;font-weight:600;border-radius:18px}
.nav-icon{position:relative;height:30px;width:44px;display:grid;place-items:center;border-radius:12px;transition:background-color .15s}
.mobile-tab svg{width:23px;height:23px;stroke-width:1.8}
.mobile-tab.active{color:var(--accent-text)}
.mobile-tab.active:not(.create) .nav-icon{background:var(--accent-soft)}
.mobile-tab.create .nav-icon{width:50px;height:50px;border-radius:17px;background:var(--accent);color:var(--on-accent);box-shadow:0 8px 18px color-mix(in srgb,var(--accent) 40%,transparent);margin-top:-22px}
.mobile-tab.create svg{width:26px;height:26px;stroke-width:2.2}
.nav-badge{position:absolute;top:-3px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ff3b5c;color:#fff;font-size:10px;font-weight:750;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--surface)}

/* ---------- Profile ---------- */
.profile-card{display:flex;align-items:center;gap:14px;padding:18px;margin:4px 0 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--shadow-s)}
.profile-letter{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;flex-shrink:0;background:linear-gradient(145deg,var(--accent-2),var(--accent));color:#fff;font-size:24px;font-weight:800}
.profile-card>div:nth-child(2){min-width:0;flex:1}
.profile-card h2{font-size:19px;overflow-wrap:anywhere}
.profile-card p{color:var(--muted);font-size:12px;margin-top:3px}
.profile-card .account-label{display:inline-flex;align-items:center;gap:4px;color:var(--success);font-size:12px;font-weight:600}
.account-label svg{width:14px;height:14px;stroke-width:2.6}
.profile-card>.icon-button{width:36px;height:36px}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.profile-stats>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l)}
.profile-stats svg{width:20px;height:20px;color:var(--accent);margin-bottom:6px}
.profile-stats b{font-size:22px;font-weight:800;letter-spacing:-.5px}
.profile-stats span{font-size:12px;color:var(--muted)}
.menu-list{display:flex;flex-direction:column;margin:12px 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
.menu-row{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:10px 14px;text-align:left}
.menu-row:hover{background:var(--surface-2)}
.menu-row+.menu-row{border-top:1px solid var(--line)}
.menu-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:11px;background:var(--surface-2);color:var(--text-2)}
.menu-icon svg{width:19px;height:19px}
.menu-row>span:nth-child(2){flex:1;font-size:14.5px;font-weight:600;min-width:0}
.menu-row small{display:block;font-size:12px;color:var(--muted);margin-top:2px;font-weight:400}
.chevron{font-size:22px;line-height:1;color:var(--muted);flex-shrink:0}
.build-label{font-size:11px;color:var(--muted);margin-top:24px;text-align:center}

/* ---------- Sell form ---------- */
.form-card{max-width:720px;margin:auto}
.steps{display:flex;list-style:none;margin:0 0 24px;padding:0;gap:6px}
.steps li{flex:1;display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:12px;font-weight:600}
.steps li>span{display:none}
.steps li:before{content:'';height:4px;border-radius:2px;background:var(--surface-3)}
.steps li.current{color:var(--accent-text)}
.steps li.current:before{background:var(--accent)}
.form-card h2{font-size:18px;margin:22px 0 12px}
.sell-categories{display:grid;gap:8px}
.sell-category{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);text-align:left}
.sell-category .category-icon{width:40px;height:40px;border-radius:12px;background:var(--accent-soft)}
.sell-category>span:nth-child(2){flex:1;min-width:0}
.sell-category b{display:block;font-size:14.5px}
.sell-category small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.sell-category.selected,.game-choice.selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}
.choice-dot{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line-strong);display:grid;place-items:center;flex-shrink:0}
.selected .choice-dot{background:var(--accent);border-color:var(--accent);color:#fff}
.choice-dot svg{width:13px;height:13px;stroke-width:3}
.safety-card{display:flex;align-items:center;gap:12px;width:100%;margin:16px 0;padding:14px;border-radius:var(--r-l);background:var(--accent-soft);color:var(--accent-text);text-align:left}
.safety-card>svg{width:26px;height:26px}
.safety-card>span:nth-child(2){flex:1}
.safety-card b{display:block;font-size:14px}
.safety-card small{display:block;font-size:12px;color:var(--text-2);margin-top:2px}
.field{display:block;min-width:0;margin-bottom:16px}
.field>span{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;justify-content:space-between;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--text-2)}
.field small{font-size:12px;font-weight:400;color:var(--muted)}
.field input,.field textarea,.field select{width:100%;min-width:0;min-height:48px;padding:12px 14px;border:1px solid var(--line-strong);border-radius:var(--r-m);background:var(--surface);color:var(--text);font-size:16px;outline:none;transition:border-color .15s,box-shadow .15s}
.field input:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.field input::placeholder,.field textarea::placeholder{color:var(--muted)}
.field textarea{min-height:120px;resize:vertical;line-height:1.5}
.form-grid{display:grid;grid-template-columns:1fr;gap:0}
.delivery-note{display:flex;flex-direction:column;gap:2px;padding:12px 14px;margin-bottom:16px;border-radius:var(--r-m);background:var(--surface-2);font-size:12px;color:var(--muted)}
.delivery-note b{font-size:14px;color:var(--text)}
.form-actions{position:sticky;bottom:calc(var(--nav-h) + 16px + var(--safe-bottom));display:flex;gap:10px;margin-top:20px;padding:10px 0;background:linear-gradient(transparent,var(--bg) 30%)}
.form-actions .primary{flex:1}
.game-picker{border:0;padding:0;margin:0 0 16px;min-width:0}
.game-picker legend{display:flex;gap:8px;align-items:baseline;margin-bottom:8px;font-size:13px;font-weight:600;color:var(--text-2)}
.game-picker legend small{font-size:12px;font-weight:400;color:var(--muted)}
.game-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.game-choice{display:flex;align-items:center;gap:9px;min-height:48px;padding:6px 10px 6px 6px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);text-align:left;font-size:13px;font-weight:600}
.game-choice .game-art{width:34px;border-radius:10px;flex-shrink:0}
.game-choice span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upload-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.upload-grid .upload-zone{grid-column:1/-1}
.upload-zone{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 12px;border:1.5px dashed var(--line-strong);border-radius:var(--r-l);background:var(--surface);text-align:center;color:var(--accent);cursor:pointer}
.upload-zone svg{width:26px;height:26px}
.upload-zone b{font-size:14px;color:var(--text)}
.upload-zone small{font-size:12px;color:var(--muted)}
.upload-zone input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.upload-zone:focus-within{border-color:var(--accent)}
.upload-thumb{position:relative;aspect-ratio:1;border-radius:var(--r-m);overflow:hidden;background:var(--surface-2)}
.upload-thumb img{width:100%;height:100%;object-fit:cover}
.cover-badge{position:absolute;left:6px;bottom:6px;padding:2px 7px;border-radius:999px;background:#0f1626b3;color:#fff;font-size:10.5px;font-weight:650}
.thumb-remove{position:absolute;top:5px;right:5px;width:30px;height:30px;border-radius:50%;background:#0f1626b3;color:#fff;font-size:17px;line-height:1;display:grid;place-items:center}
.upload-status{margin-top:8px}
.listing-review{padding:16px;border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface)}
.listing-review img{width:100%;max-height:280px;object-fit:cover;border-radius:var(--r-m);margin-bottom:12px}
.listing-review h3{font-size:20px;margin-top:6px;overflow-wrap:anywhere}
.listing-review .detail-price{display:block}
.listing-review p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-2);font-size:14px}
.review-note{margin-top:14px}
.inline-error{color:var(--danger);padding:12px 0;font-size:14px}

/* ---------- Chat list ---------- */
.chat-search{margin:0 0 12px}
.dialog-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
.dialog-entry{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:12px 14px;text-align:left;background:var(--surface)}
.dialog-entry:hover{background:var(--surface-2)}
.dialog-list .dialog-entry+.dialog-entry{border-top:1px solid var(--line)}
.support-entry{margin-bottom:12px;border:1px solid var(--line);border-radius:var(--r-l)}
.chat-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;flex-shrink:0;background:linear-gradient(145deg,var(--accent-2),var(--accent));color:#fff;font-size:18px;font-weight:750}
.support-avatar{background:linear-gradient(145deg,#1b2a4a,#0f1626);color:#6fb6ff;font-size:22px}
.chat-text{flex:1;min-width:0}
.chat-text b{display:block;font-size:15px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-topic{display:block;font-size:12px;color:var(--accent-text);margin-top:1px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-text small{display:block;margin-top:2px;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted)}
.chat-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;align-self:stretch;justify-content:flex-start;padding-top:2px}
.chat-date{font-size:11.5px;color:var(--muted);white-space:nowrap}
.unread-badge{min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:750;line-height:22px;text-align:center}
.dialog-entry.has-unread .chat-text small{color:var(--text);font-weight:600}
.dialog-entry.has-unread .chat-date{color:var(--accent-text);font-weight:600}

/* ---------- Full-screen chat ---------- */
body.chat-mode .topbar,body.chat-mode .mobile-nav,body.chat-mode .desktop-footer{display:none}
body.chat-mode main{padding:0;max-width:none;min-height:0}
.chat-screen{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;padding-top:var(--app-top);background:var(--thread-bg)}
.chat-header{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 8px 8px 6px;background:var(--overlay);backdrop-filter:saturate(1.6) blur(16px);-webkit-backdrop-filter:saturate(1.6) blur(16px);border-bottom:1px solid var(--line)}
.chat-header .chat-avatar{width:40px;height:40px;font-size:16px}
.chat-peer{flex:1;min-width:0}
.chat-peer b{display:block;font-size:16px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-peer small{display:block;font-size:12.5px;color:var(--muted)}
.chat-listing{display:flex;align-items:center;gap:10px;margin:8px 10px 0;padding:8px 12px 8px 8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);text-align:left;box-shadow:var(--shadow-s)}
.chat-listing-art{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:10px;overflow:hidden;flex-shrink:0;background:var(--surface-2);color:var(--accent-2)}
.chat-listing-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.chat-listing-art svg{width:20px;height:20px}
.chat-listing-text{flex:1;min-width:0}
.chat-listing-text b{display:block;font-size:13.5px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-listing-text small{display:block;font-size:12px;color:var(--muted)}
.chat-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:2px;padding:12px 10px 16px}
.chat-empty{margin:auto;padding:10px 16px;border-radius:999px;background:var(--surface);color:var(--muted);font-size:13px}
.day-divider{display:flex;justify-content:center;margin:12px 0 8px;position:sticky;top:0;z-index:1}
.day-divider span{padding:3px 10px;border-radius:999px;background:var(--overlay);backdrop-filter:blur(8px);color:var(--text-2);font-size:12px;font-weight:600;box-shadow:var(--shadow-s)}
.bubble{position:relative;align-self:flex-start;max-width:min(80%,520px);margin-top:6px;padding:8px 12px 6px;background:var(--bubble-in);color:var(--text);border-radius:18px 18px 18px 6px;box-shadow:var(--shadow-s);font-size:15px;line-height:1.4}
.bubble.follow{margin-top:2px;border-top-left-radius:6px}
.bubble.mine{align-self:flex-end;background:var(--bubble-out);color:var(--bubble-out-text);border-radius:18px 18px 6px 18px}
.bubble.mine.follow{border-top-right-radius:6px;border-top-left-radius:18px}
.bubble-text{white-space:pre-wrap;overflow-wrap:anywhere}
.bubble-meta{float:right;display:inline-flex;align-items:center;gap:3px;margin:6px 0 -2px 10px;font-size:11px;line-height:1;color:var(--muted)}
.bubble.mine .bubble-meta{color:#ffffffb8}
.tick{display:inline-grid}
.tick svg{width:15px;height:15px;stroke-width:2.2}
.tick.read{color:#fff}
.composer{padding:8px 10px calc(8px + var(--safe-bottom));background:var(--overlay);backdrop-filter:saturate(1.6) blur(16px);-webkit-backdrop-filter:saturate(1.6) blur(16px);border-top:1px solid var(--line)}
.quick-replies{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -10px 8px;padding:0 10px}
.quick-replies::-webkit-scrollbar{display:none}
.quick-reply{flex-shrink:0;padding:8px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line-strong);color:var(--accent-text);font-size:13px;font-weight:600}
.composer-row{display:flex;align-items:flex-end;gap:8px}
.composer textarea{flex:1;min-width:0;min-height:44px;max-height:132px;padding:11px 14px;border:1px solid var(--line-strong);border-radius:22px;background:var(--surface);color:var(--text);font-size:16px;line-height:1.4;resize:none;outline:none}
.composer textarea:focus{border-color:var(--accent)}
.send-button{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:var(--accent);color:#fff}
.send-button svg{width:21px;height:21px;margin-left:-2px}
.send-button:disabled{background:var(--surface-3);color:var(--muted);opacity:1}
.composer-hint{font-size:11px;color:var(--muted);text-align:center;margin-top:6px}
.chat-closed{display:flex;align-items:center;justify-content:center;gap:6px;padding:14px 16px calc(14px + var(--safe-bottom));background:var(--surface);border-top:1px solid var(--line);color:var(--muted);font-size:13.5px}
.chat-closed svg{width:17px;height:17px;color:var(--success)}

/* ---------- Bottom sheets (dialog) ---------- */
dialog{width:min(600px,100%);max-width:100%;max-height:92dvh;padding:0;border:0;border-radius:var(--r-xl) var(--r-xl) 0 0;background:var(--bg);color:var(--text);margin:auto auto 0;overflow:auto;overscroll-behavior:contain;box-shadow:var(--shadow-l)}
dialog[open]{animation:sheet-in .22s cubic-bezier(.2,.8,.2,1)}
@keyframes sheet-in{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
dialog::backdrop{background:#070b1499;backdrop-filter:blur(3px)}
.modal-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 12px 10px 18px;background:var(--overlay);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.modal-head:before{content:'';position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--line-strong)}
.modal-head h2{font-size:18px;min-width:0;overflow-wrap:anywhere}
.modal-body{padding:8px 18px calc(24px + var(--safe-bottom))}
.modal-body .product-art{aspect-ratio:4/3;border-radius:var(--r-l);margin-bottom:16px}
.modal-body .product-art img{object-fit:contain;background:var(--surface-2)}
.gallery{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-bottom:6px}
.gallery::-webkit-scrollbar{display:none}
.gallery .product-art{flex:0 0 100%;scroll-snap-align:center;margin-bottom:0}
.gallery-count{font-size:12px;color:var(--muted);text-align:center;margin-bottom:14px}
.detail-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px;color:var(--muted);font-size:12.5px}
.detail-price{font-size:28px;font-weight:850;letter-spacing:-.7px;margin:4px 0}
.detail-price small{font-size:14px;color:var(--muted);font-weight:600;letter-spacing:0}
.detail-title{font-size:20px;font-weight:700;margin-bottom:14px;overflow-wrap:anywhere}
.detail-actions{display:grid;gap:8px;margin:14px 0 10px}
.detail-description{font-size:15px;line-height:1.65;color:var(--text-2);white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 20px}
.detail-seller{display:flex;gap:12px;align-items:center;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);margin:18px 0}
.detail-seller small{color:var(--muted);display:block}
.detail-seller b{overflow-wrap:anywhere}
.action-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
.action-row{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 16px;text-align:left;font-size:15px;font-weight:600}
.action-row+.action-row{border-top:1px solid var(--line)}
.action-row svg{width:20px;height:20px;color:var(--text-2)}
.danger-row,.danger-row svg{color:var(--danger)}
.rules-content h3{font-size:16px;margin:20px 0 6px}
.rules-content p{font-size:14px;color:var(--text-2);line-height:1.65}
.telegram-link{margin-top:18px;width:100%}
.activity-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.activity-summary p{padding:14px;border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:13px}
.activity-summary b{display:block;font-size:24px;color:var(--text)}

/* ---------- Admin ---------- */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 24px}
.stat{padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l)}
.stat b{display:block;font-size:24px;font-weight:800}
.stat span{font-size:12px;color:var(--muted)}
.report-card{padding:14px;margin:10px 0 18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l)}
.report-card p{color:var(--text-2);margin:8px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}
.report-card b{overflow-wrap:anywhere}

/* ---------- Toast and splash ---------- */
#toast{position:fixed;z-index:50;left:50%;bottom:calc(var(--nav-h) + 22px + var(--safe-bottom));transform:translate(-50%,12px);width:max-content;max-width:calc(100vw - 32px);padding:12px 16px;border-radius:var(--r-m);background:#111827;color:#fff;box-shadow:var(--shadow-l);font-size:14px;font-weight:500;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
#toast.visible{opacity:1;transform:translate(-50%,0)}
body.chat-mode #toast{bottom:calc(120px + var(--safe-bottom))}
#splash{position:fixed;inset:0;z-index:60;display:grid;place-items:center;background:var(--bg);transition:opacity .25s,visibility .25s}
#splash.finished{opacity:0;visibility:hidden;pointer-events:none}
.splash-inner{display:flex;flex-direction:column;align-items:center;gap:16px}
.splash-mark{width:64px;height:64px}
.splash-name{width:139px;height:27px;color:var(--text)}
.splash-line{width:96px;height:3px;border-radius:2px;background:var(--surface-3);overflow:hidden}
.splash-line:after{content:'';display:block;width:40%;height:100%;background:var(--logo);animation:progress 1s ease-in-out infinite}
@keyframes progress{from{transform:translateX(-100%)}to{transform:translateX(350%)}}

/* ---------- Top bar: back button and screen title on nested screens ---------- */
.topbar-start{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
.topbar-start #back-button{margin-left:-8px}
.topbar-title{font-size:17px;font-weight:700;letter-spacing:-.2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bell-button{position:relative}
.bell-button .nav-badge{top:-4px;right:-4px}
body.item-mode .mobile-nav{display:none}
body.item-mode main{padding-bottom:calc(96px + var(--safe-bottom))}

/* ---------- Motion ---------- */
main.enter>*{animation:page-in .22s cubic-bezier(.2,.8,.2,1) both}
@keyframes page-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.product-art img,.chat-listing-art img,.item-gallery img{opacity:0;transition:opacity .3s}
.product-art img.loaded,.chat-listing-art img.loaded,.item-gallery img.loaded{opacity:1}
.bubble{animation:bubble-in .18s ease-out}
@keyframes bubble-in{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}

/* ---------- Item page ---------- */
.item-page{display:grid;gap:16px}
.item-media{margin:0 -16px;min-width:0}
.item-gallery-wrap{position:relative}
.item-gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;background:var(--surface-2)}
.item-gallery::-webkit-scrollbar{display:none}
.item-gallery .product-art{flex:0 0 100%;aspect-ratio:1;scroll-snap-align:center;border-radius:0;background:var(--surface-2)}
.item-gallery .product-art img{object-fit:contain}
.empty-gallery .product-art{aspect-ratio:16/10;border-radius:0}
.empty-gallery .product-art>svg{width:56px;height:56px}
.gallery-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:6px;pointer-events:none}
.gallery-dots span{width:6px;height:6px;border-radius:3px;background:#ffffff8c;box-shadow:0 0 0 1px #0000001a;transition:width .2s,background-color .2s}
.gallery-dots span.active{width:18px;background:#fff}
.gallery-counter{position:absolute;top:12px;right:12px;padding:3px 9px;border-radius:999px;background:#0f1626a6;color:#fff;font-size:12px;font-weight:650}
.item-info{min-width:0}
.item-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.tag{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 10px;border-radius:999px;background:var(--surface-2);color:var(--text-2);font-size:12.5px;font-weight:600}
.tag-game{padding-left:3px;background:var(--accent-soft);color:var(--accent-text)}
.tag-game .game-art{width:22px;border-radius:999px}
.tag-warn{background:var(--warning-soft);color:var(--warning)}
.item-headline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.item-price{font-size:30px;font-weight:850;letter-spacing:-.8px;line-height:1.1}
.item-price small{font-size:15px;font-weight:600;color:var(--muted);letter-spacing:0}
.item-tools{display:flex;gap:8px}
.favorite-toggle.on{color:#ff3b5c}
.favorite-toggle.on svg{fill:currentColor}
.item-title{font-size:22px;font-weight:750;letter-spacing:-.5px;line-height:1.25;margin:10px 0 6px;overflow-wrap:anywhere}
.item-meta{font-size:13px;color:var(--muted)}
.item-actions{display:grid;gap:8px;margin:18px 0 4px}
.seller-card{display:flex;align-items:center;gap:12px;width:100%;margin:18px 0 6px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);text-align:left}
.seller-card:hover{background:var(--surface-2)}
.seller-card-text{flex:1;min-width:0}
.seller-card-text small{display:block;font-size:12px;color:var(--muted)}
.seller-card-text b{display:block;font-size:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.seller-line{display:block;font-size:12.5px;color:var(--text-2);margin-top:2px}
.seller-line:empty{display:none}
.item-section{margin-top:24px}
.item-section>h2{font-size:18px;margin-bottom:8px}
.item-section .detail-description{margin:0}
.safety-note{display:flex;gap:10px;align-items:flex-start;margin-top:20px;padding:12px 14px;border-radius:var(--r-m);background:var(--surface-2);color:var(--text-2);font-size:13px;line-height:1.5}
.safety-note svg{width:20px;height:20px;color:var(--success);flex-shrink:0;margin-top:1px}
.report-link{display:inline-flex;align-items:center;gap:6px;margin-top:10px;color:var(--muted);font-size:13px;font-weight:500}
.report-link svg{width:16px;height:16px}
.card-strip{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px 8px;scroll-snap-type:x proximity}
.card-strip::-webkit-scrollbar{display:none}
.card-strip .product{flex:0 0 150px;scroll-snap-align:start}
.item-buybar{position:fixed;z-index:9;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + var(--safe-bottom));background:var(--overlay);backdrop-filter:saturate(1.6) blur(18px);-webkit-backdrop-filter:saturate(1.6) blur(18px);border-top:1px solid var(--line)}
.buybar-price{flex:1;min-width:0}
.buybar-price b{display:block;font-size:19px;font-weight:850;letter-spacing:-.4px}
.buybar-price small{display:block;font-size:12px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.item-buybar .primary{min-width:150px}
.share-input{width:100%;height:46px;padding:0 12px;margin-top:10px;border:1px solid var(--line-strong);border-radius:var(--r-m);background:var(--surface);color:var(--text);font-size:14px}
.sk-tall{height:22px}
.item-sk-art{aspect-ratio:1;border-radius:0}
.sk-big{width:72px;height:72px}

/* ---------- Seller page ---------- */
.seller-hero{display:flex;align-items:center;gap:16px;margin:8px 0 16px}
.seller-hero .profile-letter{width:76px;height:76px;font-size:30px}
.seller-hero-text{min-width:0}
.seller-hero h1{font-size:26px;overflow-wrap:anywhere}
.seller-hero p{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:13.5px;color:var(--success);font-weight:600}
.seller-hero p svg{width:16px;height:16px;stroke-width:2.5}
.seller-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.seller-stats>div{padding:14px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l)}
.seller-stats b{display:block;font-size:21px;font-weight:800;letter-spacing:-.4px}
.seller-stats span{font-size:12px;color:var(--muted);line-height:1.3;display:block;margin-top:2px}
.seller-reply{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:12px 14px;border-radius:var(--r-m);background:var(--accent-soft);color:var(--accent-text);font-size:13.5px;font-weight:600}
.seller-reply svg{width:19px;height:19px}
.seller-items-head{margin-top:26px}

/* ---------- Notifications ---------- */
.notice-list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
.notice{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px;text-align:left}
.notice+.notice{border-top:1px solid var(--line)}
.notice:not(:disabled):hover{background:var(--surface-2)}
.notice:disabled{opacity:1;cursor:default}
.notice.unread{background:color-mix(in srgb,var(--accent-soft) 55%,var(--surface))}
.notice-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;flex-shrink:0;background:var(--surface-2);color:var(--text-2)}
.notice-icon svg{width:20px;height:20px}
.kind-message,.kind-dialog{background:var(--accent-soft);color:var(--accent)}
.kind-listing{background:var(--success-soft);color:var(--success)}
.kind-moderation,.kind-support{background:var(--warning-soft);color:var(--warning)}
.kind-report{background:var(--danger-soft);color:var(--danger)}
.notice-text{flex:1;min-width:0;font-size:14px;line-height:1.45}
.notice-text>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.notice-text small{display:block;margin-top:4px;color:var(--muted)}
.notice.unread .notice-text>span{font-weight:600}
.notice-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);margin-top:6px;flex-shrink:0}

/* ---------- Search panel ---------- */
.search-wrap{position:relative;z-index:6}
.search-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:min(60dvh,420px);overflow-y:auto;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow-l);animation:page-in .16s ease-out}
.panel-head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 4px;font-size:13px;color:var(--muted)}
.panel-head b{font-weight:650}
.panel-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 6px 10px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;background:var(--surface-2);font-size:13px;font-weight:600;color:var(--text)}
.chip svg{width:15px;height:15px;color:var(--muted)}
.chip .game-art{width:22px;border-radius:7px;margin-left:-6px}
.suggestion{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:6px 8px;border-radius:var(--r-m);text-align:left;font-size:14.5px;font-weight:600}
.suggestion:hover{background:var(--surface-2)}
.suggestion .game-art{width:36px;border-radius:10px;flex-shrink:0}
.suggestion small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.suggestion-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-2);color:var(--text-2);flex-shrink:0}
.suggestion-icon svg{width:18px;height:18px}
.panel-empty{padding:12px;font-size:13.5px;color:var(--muted)}
/* ---------- Tablet ---------- */
@media (min-width:540px){
  main{padding-inline:24px}
  .topbar{padding-inline:24px}
  .hero{padding:28px}
  .hero h2{font-size:32px}
  .hero p{font-size:14px;max-width:360px}
  .hero-mosaic{width:180px;gap:10px}
  .hero-mosaic .game-art{border-radius:16px}
  .category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin-inline:0;padding-inline:0}
  .game-strip,.tabs{margin-inline:0;padding-inline:0}
  .game{flex:1 0 72px}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .sell-categories{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr 1fr;gap:14px}
  .profile-card{padding:22px}
  .profile-letter{width:72px;height:72px;font-size:28px}
  .profile-card h2{font-size:22px}
  dialog{margin:auto;border-radius:var(--r-xl);max-height:86dvh}
  .modal-head:before{display:none}
  .modal-body{padding:8px 24px 24px}
  .mobile-nav{left:50%;right:auto;width:520px;transform:translateX(-50%)}
}

/* ---------- Desktop ---------- */
@media (min-width:800px){
  main{padding:20px 36px 120px}
  .topbar{padding-inline:36px}
  h1{font-size:32px}
  .hero{min-height:240px;padding:36px}
  .hero h2{font-size:40px}
  .hero-mosaic{width:250px}
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .product:hover{box-shadow:var(--shadow-m);transform:translateY(-2px)}
  .profile-card,.profile-stats,.profile-sell,.menu-list{max-width:760px}
  .filter-row{max-width:560px}
  .chat-thread{padding-inline:max(16px,calc((100% - 760px)/2))}
  .composer,.chat-closed{padding-inline:max(12px,calc((100% - 760px)/2))}
  .chat-listing{margin-inline:max(10px,calc((100% - 760px)/2))}
}
@media (min-width:1100px){
  .sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:232px;padding:24px 16px;border-right:1px solid var(--line);background:var(--surface)}
  .brand{display:flex;align-items:center;gap:10px;margin:4px 6px 32px;color:var(--text);text-align:left}
  .brand .logo-word{width:124px;height:24px}
  .brand i{display:block;margin-top:7px;font-style:normal;font-size:8px;letter-spacing:1.4px;color:var(--muted);font-weight:650}
  .nav-button{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 12px;margin-bottom:4px;border-radius:var(--r-m);text-align:left;font-size:14.5px;font-weight:600;color:var(--text-2)}
  .nav-button:hover{background:var(--surface-2)}
  .nav-button.active{background:var(--accent-soft);color:var(--accent-text)}
  .nav-button svg{width:21px;height:21px}
  .nav-button .nav-badge{position:static;margin-left:auto;box-shadow:none}
  .sidebar-bottom{margin-top:auto;padding:16px 8px 0;font-size:12.5px;color:var(--text-2)}
  .sidebar-bottom>span:not(.status-dot){display:block;font-size:11px;color:var(--muted);margin-top:4px}
  .status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--success);margin-right:6px}
  .workspace{margin-left:232px}
  .mobile-brand,.mobile-nav{display:none}
  .breadcrumb{display:flex;gap:10px;color:var(--muted);font-size:13px}
  .breadcrumb b{font-weight:600;color:var(--text)}
  .topbar{border-bottom-color:var(--line);height:64px}
  main{padding-bottom:48px}
  .form-actions{bottom:0}
  .desktop-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 36px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
  .chat-screen{left:232px}
  #toast{bottom:32px}
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:359px){
  main{padding-inline:12px}
  .topbar{padding-inline:12px}
  .hero{padding:18px 14px}
  .hero h2{font-size:19px}
  .hero-mosaic{width:96px}
  .category-grid,.game-strip,.tabs{margin-inline:-12px;padding-inline:12px}
  .grid{gap:8px}
  .price{font-size:15px}
  .profile-stats>div{padding:10px}
  .mobile-tab{font-size:9.5px}
}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* ---------- New screens on wider layouts ---------- */
@media (min-width:540px){
  .item-media{margin:0}
  .item-gallery,.item-gallery .product-art,.empty-gallery .product-art{border-radius:var(--r-xl)}
  .card-strip{margin-inline:0;padding-inline:0}
  .card-strip .product{flex-basis:180px}
  .item-buybar{left:50%;right:auto;bottom:calc(10px + var(--safe-bottom));width:min(560px,calc(100% - 32px));transform:translateX(-50%);border:1px solid var(--line);border-radius:22px;padding:10px 12px;box-shadow:var(--shadow-l)}
}
@media (min-width:800px){
  .item-page{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:start}
  .item-media{position:sticky;top:84px}
  .item-buybar{display:none}
  body.item-mode main{padding-bottom:48px}
  .search-panel{right:auto;width:min(560px,100%)}
}
@media (min-width:1100px){
  body.item-mode .mobile-nav{display:none}
  .topbar-start #back-button{margin-left:-6px}
  .topbar-title{display:none}
}
/* =====================================================================
   VEXLIO dark marketplace layer: cards, banners, chats, moderation.
   Loaded last on purpose: it refines the base components above.
   ===================================================================== */
body{letter-spacing:-.005em}
.primary{background:var(--grad);border:0;box-shadow:0 8px 22px #5a7cff38}
.primary:hover{background:var(--grad);filter:brightness(1.08)}
.mobile-tab.create .nav-icon{background:var(--grad);box-shadow:0 10px 24px #6b6cff55}
.profile-letter,.chat-avatar{background:var(--grad)}
.chevron svg{width:18px;height:18px;color:var(--muted)}
.star{color:var(--star);font-size:.8em;margin-left:3px}
.mini-avatar{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--grad);color:#fff;font-size:10px;font-weight:750;flex-shrink:0}
.tab{display:inline-flex;align-items:center;gap:6px}
.tab svg{width:15px;height:15px}
.tab-count{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--surface-3);color:var(--text-2);font-size:11px;line-height:18px;text-align:center}
.tab.active .tab-count{background:#0002;color:inherit}
.text-link svg{width:16px;height:16px}
.home-search{background:var(--surface);border-color:var(--line);border-radius:999px}
.search{border-radius:999px}.search input{border-radius:999px}
.sort-wrap{position:relative}
.sort-wrap>svg{position:absolute;left:12px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.sort{padding-left:36px;appearance:none;-webkit-appearance:none}

/* ---------- Promo banners ---------- */
.banners{position:relative;margin:2px 0 24px}
.banner-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:24px}
.banner-track::-webkit-scrollbar{display:none}
.banner{position:relative;flex:0 0 100%;scroll-snap-align:start;display:flex;align-items:stretch;gap:10px;min-height:190px;padding:30px 20px 20px;overflow:hidden;color:#fff;isolation:isolate}
.banner:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(120% 90% at 100% 0%,#ffffff2b,transparent 55%)}
.b-catalog{background:linear-gradient(135deg,#3d5cff,#8a52ff)}
.b-sell{background:linear-gradient(135deg,#8a3dff,#ff4fa3)}
.b-safe{background:linear-gradient(135deg,#0f9b8e,#2d6cff)}
.banner-copy{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:column}
.banner-kicker{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;opacity:.85}
.banner h2{font-size:21px;line-height:1.15;letter-spacing:-.5px;margin:6px 0 6px;max-width:240px}
.banner p{font-size:12.5px;line-height:1.4;opacity:.85;max-width:230px}
.banner-cta{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding:9px 14px;border-radius:999px;background:#fff;color:#11131a;font-size:13px;font-weight:700}
.banner-cta svg{width:16px;height:16px}
.banner-art{position:relative;width:104px;flex-shrink:0;display:grid;place-items:center}
.banner-games{display:grid;grid-template-columns:1fr 1fr;gap:8px;transform:rotate(-10deg) translateX(8px)}
.banner-games .game-art{width:48px;border-radius:14px;box-shadow:0 10px 22px #0004;border:2px solid #ffffff40}
.banner-symbol{display:grid;place-items:center;width:92px;height:92px;border-radius:30px;background:#ffffff26;backdrop-filter:blur(6px);transform:rotate(-8deg)}
.banner-symbol svg{width:46px;height:46px;stroke-width:1.6}
.banner-progress{position:absolute;z-index:2;top:12px;left:20px;right:20px;display:flex;gap:5px;pointer-events:none}
.banner-progress span{flex:1;height:3px;border-radius:2px;background:#ffffff40;transition:background-color .3s}
.banner-progress span.active{background:#fff}

/* ---------- Games and categories ---------- */
.game{flex:0 0 74px}
.game .game-art{border-radius:20px;box-shadow:0 8px 18px #0005}
.game b{font-size:11.5px;color:var(--text)}
.category{background:var(--surface);border-color:var(--line);box-shadow:none}
.category .category-icon{background:var(--grad-soft);color:var(--accent-text)}

/* ---------- Product cards (borderless, game first, price first) ---------- */
.grid{gap:14px 10px}
.product{background:transparent;border:0;box-shadow:none;overflow:visible;border-radius:0}
.product-open{gap:0}
.product-src{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:8px}
.product-src .game-art,.src-icon{width:30px;height:30px;border-radius:10px;flex-shrink:0;box-shadow:none}
.src-icon{display:grid;place-items:center;background:var(--surface-2);color:var(--accent-text)}
.src-icon svg{width:16px;height:16px}
.product-src>span:last-child{min-width:0;line-height:1.15}
.product-src b{display:block;font-size:12.5px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.product-src small{display:block;font-size:11px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.product-art{border-radius:18px;background:var(--surface-2)}
.product-art>svg{color:var(--accent-text);opacity:.6}
.product-body{padding:10px 2px 0}
.price{order:0;font-size:18px;font-weight:850;letter-spacing:-.4px;color:var(--text)}
.product h3{margin-top:3px;font-size:13.5px;font-weight:500;color:var(--text-2)}
.seller-caption{display:flex;align-items:center;gap:6px;margin-top:6px;padding:0;font-size:12px;color:var(--muted)}
.seller-caption>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.card-reason{display:flex;gap:5px;margin-top:6px;font-size:11.5px;line-height:1.35;color:var(--danger)}
.card-reason svg{width:14px;height:14px;flex-shrink:0;margin-top:1px}
.card-reason span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.favorite{top:46px;right:8px;background:#0b0c10a6;color:#fff;backdrop-filter:blur(10px)}
.status-badge{top:8px;left:8px;background:#0b0c10b8;color:#fff}
.status-pending{color:var(--warning)}.status-rejected{color:var(--danger)}.status-archived{color:var(--text-2)}
.product:hover .product-art img{transform:scale(1.03)}
.product-art img{transition:opacity .3s,transform .35s}
.card-strip .product{flex-basis:160px}

/* ---------- Sheets, switches, notices ---------- */
.sheet-label{font-size:14px;margin:4px 0 10px;color:var(--text-2)}
.form-grid.two{grid-template-columns:1fr 1fr;gap:10px}
.switch-row{position:relative;display:flex;align-items:center;gap:12px;padding:12px 14px;margin:4px 0 18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;cursor:pointer}
.switch-row>span:nth-child(2){flex:1}
.switch-row b{display:block;font-size:14.5px}
.switch-row small{display:block;font-size:12px;color:var(--muted)}
.switch-row input{position:absolute;opacity:0;pointer-events:none}
.switch{position:relative;width:44px;height:26px;border-radius:13px;background:var(--surface-3);transition:background-color .2s;flex-shrink:0}
.switch:after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s}
.switch-row input:checked+.switch{background:var(--accent)}
.switch-row input:checked+.switch:after{transform:translateX(18px)}
.switch-row input:focus-visible+.switch{outline:2.5px solid var(--accent);outline-offset:2px}
.sheet-actions{display:flex;gap:10px}.sheet-actions .primary{flex:1}
.reason-list{display:flex;flex-direction:column;gap:6px;margin:12px 0 16px}
.reason-option{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;font-size:14px;cursor:pointer}
.reason-option input{accent-color:var(--danger);margin-top:3px}
.reason-option:has(input:checked){border-color:var(--danger);background:var(--danger-soft)}
.reject-box,.info-box,.ban-banner,.mod-bar{display:flex;align-items:flex-start;gap:12px;margin:16px 0 4px;padding:14px;border-radius:16px;font-size:13.5px;line-height:1.45}
.reject-box{background:var(--danger-soft);color:var(--text)}
.reject-box>svg{color:var(--danger)}
.info-box{background:var(--warning-soft);color:var(--text)}
.info-box>svg{color:var(--warning)}
.reject-box svg,.info-box svg,.ban-banner>svg,.mod-bar>svg{width:20px;height:20px;flex-shrink:0;margin-top:1px}
.reject-box p,.info-box p,.ban-banner p{color:var(--text-2);margin-top:2px}
.ban-banner{align-items:center;margin:0 0 14px;background:var(--danger-soft)}
.ban-banner>svg{color:var(--danger)}
.ban-banner>div{flex:1}
.ban-banner .secondary{min-height:38px;padding:0 12px;font-size:13px}
.mod-bar{align-items:center;margin:0 0 14px;background:var(--surface);border:1px solid var(--line)}
.mod-bar>svg{color:var(--warning)}
.mod-bar span{flex:1;color:var(--text-2)}
.mod-bar button{min-height:38px;padding:0 12px;font-size:13px}
.danger{background:var(--danger-soft);color:var(--danger);border:1px solid #ff5c7433}
.tag-danger{background:var(--danger-soft);color:var(--danger)}
.link-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:999px;background:var(--surface-2);font-size:13px;font-weight:600}
.lightbox-img{display:block;width:100%;max-height:75dvh;object-fit:contain;border-radius:16px;background:#000}

/* ---------- Moderation ---------- */
.stat{display:flex;flex-direction:column;gap:2px}
.stat svg{width:18px;height:18px;color:var(--accent-text);margin-bottom:6px}
.admin-tabs{margin-top:4px}
.admin-list{display:flex;flex-direction:column;gap:10px}
.admin-card{padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.admin-card.row{display:flex;align-items:center;gap:12px}
.admin-card.row .admin-card-text{flex:1;min-width:0}
.admin-card-main{display:flex;gap:12px;width:100%;text-align:left}
.admin-thumb{position:relative;width:64px;height:64px;border-radius:14px;overflow:hidden;flex-shrink:0;background:var(--surface-2);display:grid;place-items:center;color:var(--accent-text)}
.admin-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.admin-thumb svg{width:22px;height:22px}
.admin-card-text{min-width:0}
.admin-card-text small{display:block;font-size:12px;color:var(--muted)}
.admin-card-text b{display:block;font-size:15px;margin:2px 0;overflow-wrap:anywhere}
.admin-price{font-size:14px;font-weight:800}
.admin-desc{margin:10px 0 0;font-size:13.5px;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}
.admin-card-head{display:flex;gap:12px;align-items:center}
.admin-card-head b{display:block;font-size:15px}
.admin-card-head small{display:block;font-size:12px;color:var(--muted)}
.admin-quote{margin:10px 0;padding:10px 12px;border-left:3px solid var(--line-strong);background:var(--surface-2);border-radius:0 12px 12px 0;font-size:14px;color:var(--text-2);white-space:pre-wrap;overflow-wrap:anywhere}
.admin-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted);margin-bottom:10px}
.admin-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.admin-actions.wrap{display:flex;flex-wrap:wrap}
.admin-actions.wrap>*{flex:1 1 auto}
.admin-actions .primary,.admin-actions .secondary,.admin-actions .danger{min-height:42px;font-size:13.5px;padding:0 12px}

/* ---------- Chat list ---------- */
.dialog-list{background:transparent;border:0;gap:2px}
.dialog-entry{border-radius:16px;padding:10px 10px;background:transparent}
.dialog-list .dialog-entry+.dialog-entry{border-top:0}
.dialog-entry:hover,.dialog-entry.active{background:var(--surface)}
.dialog-entry.active{box-shadow:inset 3px 0 0 var(--accent)}
.support-entry{background:var(--surface);border-color:var(--line)}
.support-avatar svg{width:22px;height:22px;color:#fff}
.chat-avatar-wrap{position:relative;flex-shrink:0}
.chat-avatar{width:50px;height:50px;font-size:19px}
.chat-item-thumb{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:8px;overflow:hidden;border:2px solid var(--bg);background:var(--surface-2)}
.chat-item-thumb img{width:100%;height:100%;object-fit:cover}
.chat-line{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.chat-line b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-line small{flex:1;min-width:0;margin:0}
.chat-topic{display:flex;align-items:center;gap:6px;margin:2px 0;color:var(--text-2);font-size:12.5px}
.chat-topic>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.role-chip{flex-shrink:0;display:inline-block;padding:1px 7px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.2px}
.role-chip.buyer{background:var(--accent-soft);color:var(--accent-text)}
.role-chip.seller{background:var(--success-soft);color:var(--success)}

/* ---------- Conversation ---------- */
.chat-screen{background:var(--thread-bg)}
.chat-header{background:var(--overlay)}
.chat-peer small{display:flex;align-items:center;gap:6px}
.deal-card{display:flex;align-items:center;gap:10px;margin:8px 10px 0;padding:8px 10px 8px 8px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.deal-main{flex:1;display:flex;align-items:center;gap:10px;min-width:0;text-align:left}
.deal-art{position:relative;display:grid;place-items:center;width:50px;height:50px;border-radius:13px;overflow:hidden;flex-shrink:0;background:var(--surface-2);color:var(--accent-text)}
.deal-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.deal-art svg{width:22px;height:22px}
.deal-text{min-width:0}
.deal-text small{display:block;font-size:11px;color:var(--muted)}
.deal-text b{display:block;font-size:14px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.deal-price{font-size:14px;font-weight:850}
.deal-status{flex-shrink:0;padding:4px 9px;border-radius:999px;font-size:11.5px;font-weight:700;background:var(--surface-2);color:var(--text-2)}
.deal-status.status-published{background:var(--success-soft);color:var(--success)}
.deal-status.status-pending{background:var(--warning-soft);color:var(--warning)}
.deal-status.status-rejected{background:var(--danger-soft);color:var(--danger)}
.sys-msg{align-self:center;display:flex;align-items:flex-start;gap:8px;max-width:min(92%,520px);margin:10px 0 4px;padding:10px 12px;border-radius:14px;background:var(--surface);color:var(--text-2);font-size:12.5px;line-height:1.45}
.sys-msg svg{width:16px;height:16px;flex-shrink:0;margin-top:1px}
.sys-safety{border:1px solid #5a7cff40;background:var(--accent-soft)}
.sys-safety svg{color:var(--accent-text)}
.sys-safety b{color:var(--text)}
.sys-quiet{background:transparent;padding:4px 12px;color:var(--muted)}
.bubble{background:var(--bubble-in);box-shadow:none}
.bubble.mine{background:var(--grad);color:#fff}
.bubble.has-photo{padding:4px;position:relative}
.bubble.has-photo .bubble-text{display:block;padding:6px 8px 0}
.bubble.has-photo .bubble-meta{margin:4px 6px 4px 10px}
.bubble-photo{display:block;padding:0;border-radius:15px;overflow:hidden;background:var(--surface-3)}
.bubble-photo img{display:block;max-width:min(260px,62vw);max-height:320px;min-width:120px;min-height:90px;object-fit:cover}
.bubble.photo-only .bubble-meta{position:absolute;right:10px;bottom:10px;margin:0;padding:3px 7px;border-radius:999px;background:#0009;color:#fff}
.composer{background:var(--overlay)}
.composer-row{align-items:flex-end}
.attach-button{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;flex-shrink:0;background:var(--surface-2);color:var(--text-2);cursor:pointer}
.attach-button:hover{color:var(--text)}
.attach-button svg{width:21px;height:21px}
.attach-button input{position:absolute;inset:0;opacity:0;cursor:pointer}
.attach-button:focus-within{outline:2.5px solid var(--accent);outline-offset:2px}
.composer textarea{background:var(--surface-2);border-color:transparent}
.send-button{background:var(--grad)}
.send-button:disabled{background:var(--surface-2)}
.attach-preview{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:12.5px;color:var(--muted)}
.attach-thumb{position:relative;width:58px;height:58px;border-radius:12px;overflow:hidden;flex-shrink:0}
.attach-thumb img{width:100%;height:100%;object-fit:cover}
.attach-thumb .thumb-remove{width:22px;height:22px;top:3px;right:3px}
.thumb-remove svg{width:15px;height:15px}
.quick-reply{background:var(--surface);border-color:var(--line-strong)}
.chat-closed{background:var(--surface)}
.chat-closed svg{color:var(--muted)}
.chat-placeholder{display:none}

/* ---------- Two-pane chats on wide screens ---------- */
@media (min-width:1100px){
  body.chat-mode .topbar{display:flex}
  body.chat-mode main,body.chats-wide main{padding:0;max-width:none}
  .chat-layout{display:grid;grid-template-columns:360px minmax(0,1fr);height:calc(100dvh - 64px);border-top:0}
  .chat-sidebar{display:flex;flex-direction:column;min-height:0;padding:16px 12px;border-right:1px solid var(--line);overflow:hidden}
  .chat-sidebar-head h1{font-size:24px;margin:4px 6px 14px}
  .chat-sidebar #chat-results{flex:1;min-height:0;overflow-y:auto;margin:0 -4px;padding:0 4px}
  .chat-sidebar .chat-search{margin-bottom:10px}
  .chat-sidebar .tabs{margin:0 0 10px}
  .chat-layout .chat-screen{position:relative;inset:auto;z-index:auto;left:auto;height:100%;min-height:0}
  .chat-layout .chat-back{display:none}
  .chat-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:var(--muted)}
  .chat-placeholder svg{width:48px;height:48px;color:var(--accent-text);opacity:.6}
  .chat-placeholder h3{color:var(--text)}
  .chat-layout .chat-thread,.chat-layout .composer,.chat-layout .chat-closed{padding-inline:max(16px,calc((100% - 760px)/2))}
  .chat-layout .deal-card{margin-inline:max(10px,calc((100% - 760px)/2))}
}
@media (min-width:540px){
  .banner{min-height:210px;padding:34px 28px 24px}
  .banner h2{font-size:28px;max-width:380px}
  .banner p{font-size:14px;max-width:360px}
  .banner-art{width:180px}
  .banner-games .game-art{width:64px;border-radius:18px}
  .banner-symbol{width:120px;height:120px;border-radius:38px}
  .banner-symbol svg{width:58px;height:58px}
  .grid{gap:20px 14px}
}
.chat-sidebar .search,.chat-sidebar .tabs{flex:0 0 auto}

/* =====================================================================
   Catalog and profile, round 2: game header, quick filters, list view,
   seller level, action tiles, showcases, game covers.
   ===================================================================== */
.game-art.has-cover{background:#000}
.game-art.has-cover img{width:100%;height:100%;object-fit:cover;display:block}
.ghost-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:14px;background:#ffffff1f;color:#fff;font-size:14px;font-weight:650;backdrop-filter:blur(8px)}
.ghost-button svg{width:18px;height:18px}

/* ---------- Catalog ---------- */
.catalog-top{position:sticky;top:calc(60px + var(--app-top));z-index:7;margin:0 -16px;padding:6px 16px 10px;background:linear-gradient(var(--bg) 75%,transparent)}
.catalog-top .tools{margin:0;gap:8px;align-items:center}
.filter-icon{position:relative;width:48px;height:48px;border-radius:50%;background:var(--surface);border-color:var(--line)}
.filter-dot{position:absolute;top:10px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--accent-2);box-shadow:0 0 0 2px var(--surface)}
.catalog-h1{font-size:26px;margin:6px 0 14px}
.game small{display:block;font-size:10.5px;color:var(--muted);margin-top:1px}
.game-hero{position:relative;overflow:hidden;isolation:isolate;margin:6px 0 16px;padding:20px 18px 18px;border-radius:24px;background:var(--grad);color:#fff}
.game-hero.roblox{background:linear-gradient(135deg,#3b4252,#0e1117)}
.game-hero.genshin{background:linear-gradient(135deg,#7e9fe5,#4a4f9c)}
.game-hero.standoff{background:linear-gradient(135deg,#e2673f,#3a1f2a)}
.game-hero.pubg{background:linear-gradient(135deg,#f2a93b,#5a3e18)}
.game-hero.brawl{background:linear-gradient(135deg,#ffb020,#e8590c)}
.game-hero.cs2{background:linear-gradient(135deg,#d7962b,#28344a)}
.game-hero.dota2{background:linear-gradient(135deg,#c4362e,#250c0f)}
.game-hero.steam{background:linear-gradient(135deg,#1b3a66,#0a6fa3)}
.game-hero-bg{position:absolute;inset:0;z-index:-1}
.game-hero-bg img{width:100%;height:100%;object-fit:cover;filter:blur(18px) saturate(1.3);transform:scale(1.25);opacity:.55}
.game-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0000 20%,#0b0c1099)}
.game-hero-body{display:flex;align-items:center;gap:14px}
.game-hero-body .game-art{width:76px;border-radius:22px;flex-shrink:0;box-shadow:0 12px 26px #0006;border:2px solid #ffffff38}
.game-hero-kicker{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;opacity:.85}
.game-hero-kicker svg{width:14px;height:14px}
.game-hero h1{font-size:26px;line-height:1.1;margin:4px 0 2px;color:#fff}
.game-hero p{font-size:13.5px;opacity:.85}
.game-hero-actions{display:flex;gap:8px;margin-top:16px}
.game-hero-actions>*{flex:1}
.game-hero-actions .primary{background:#fff;color:#11131a;box-shadow:none}
.quick-row{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:-4px -16px 6px;padding:0 16px 4px}
.quick-row::-webkit-scrollbar{display:none}
.chip-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--text-2);font-size:12.5px;font-weight:650;white-space:nowrap}
.chip-btn svg{width:14px;height:14px}
.chip-btn.active{background:var(--accent-soft);border-color:#5a7cff66;color:var(--accent-text)}
.quick-sep{flex-shrink:0;width:1px;margin:6px 2px;background:var(--line-strong)}
.catalog-head-right{display:flex;align-items:center;gap:10px}
.view-toggle{display:flex;padding:3px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.view-toggle button{display:grid;place-items:center;width:32px;height:28px;border-radius:9px;color:var(--muted)}
.view-toggle button svg{width:16px;height:16px}
.view-toggle button.active{background:var(--surface-3);color:var(--text)}
.catalog-grid.list-view{grid-template-columns:1fr;gap:10px}
.list-view .product{padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.list-view .product-open{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:12px}
.list-view .product-src{grid-column:2;grid-row:1;margin-bottom:4px}
.list-view .product-art{grid-column:1;grid-row:1/3;width:96px;aspect-ratio:1;border-radius:14px}
.list-view .product-body{grid-column:2;grid-row:2;padding:0}
.list-view .favorite{top:10px;right:10px;width:32px;height:32px;background:var(--surface-2)}
.more-sentinel{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 0 6px}
.more-sentinel .load-more{margin:0}
.spinner{width:26px;height:26px;border-radius:50%;border:3px solid var(--surface-3);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.end-note{display:flex;align-items:center;justify-content:center;gap:6px;padding:22px 0 4px;font-size:13px;color:var(--muted)}
.end-note svg{width:16px;height:16px;color:var(--success)}
.recent-section{margin-top:28px}
.recent-section h2,.profile-section h2{display:flex;align-items:center;gap:8px}
.recent-section h2 svg,.profile-section h2 svg{width:19px;height:19px;color:var(--accent-text)}

/* ---------- Profile ---------- */
.profile-hero{position:relative;margin:2px 0 12px;padding:0 0 16px;background:var(--surface);border:1px solid var(--line);border-radius:26px;overflow:hidden}
.profile-cover{position:relative;height:96px;background:var(--grad);overflow:hidden}
.profile-cover span{position:absolute;border-radius:50%;background:#ffffff1f}
.profile-cover span:first-child{width:180px;height:180px;right:-40px;top:-90px}
.profile-cover span:last-child{width:110px;height:110px;left:30%;top:30px;background:#ffffff14}
.profile-main{display:flex;align-items:flex-end;gap:14px;margin:-38px 16px 0;position:relative}
.profile-avatar-ring{position:relative;padding:4px;border-radius:50%;background:var(--surface);flex-shrink:0}
.profile-avatar-ring .profile-letter{width:84px;height:84px;font-size:34px;box-shadow:0 10px 26px #0006}
.profile-avatar-ring .profile-letter svg{width:38px;height:38px}
.level-dot{position:absolute;right:0;bottom:4px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface-3);color:var(--text);border:3px solid var(--surface)}
.level-dot svg{width:14px;height:14px}
.lvl-1 .level-dot{background:#2d6cff;color:#fff}.lvl-2 .level-dot{background:#12a36b;color:#fff}.lvl-3 .level-dot{background:linear-gradient(135deg,#ffb547,#ff6b3d);color:#fff}
.profile-id{min-width:0;padding-bottom:2px}
.profile-id h1{font-size:22px;line-height:1.15;overflow-wrap:anywhere}
.profile-handle{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:4px;font-size:13px;color:var(--text-2)}
.profile-handle .account-label{display:inline-flex;align-items:center;gap:3px;color:var(--success);font-weight:650}
.profile-handle svg{width:14px;height:14px}
.profile-since{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:12.5px;color:var(--muted)}
.profile-since svg{width:14px;height:14px}
.profile-hero-actions{display:flex;gap:8px;margin:16px 16px 0}
.profile-hero-actions .secondary{flex:1;min-height:44px;font-size:14px}
.profile-hero-actions .icon-button{width:44px;height:44px;border-radius:14px}
.profile-hero.guest{padding-bottom:16px}
.profile-hero.guest .profile-main{align-items:center}
.profile-hero.guest p{font-size:13.5px;color:var(--text-2);margin-top:4px}
.profile-hero.guest .wide{margin:16px 16px 0;width:calc(100% - 32px)}
.level-card{display:flex;align-items:center;gap:14px;margin-bottom:12px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:22px}
.level-badge{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;flex-shrink:0;background:var(--surface-3);color:var(--text)}
.level-badge svg{width:26px;height:26px}
.level-badge.lvl-1{background:#2d6cff;color:#fff}.level-badge.lvl-2{background:#12a36b;color:#fff}.level-badge.lvl-3{background:linear-gradient(135deg,#ffb547,#ff6b3d);color:#fff}
.level-text{flex:1;min-width:0}
.level-text small{display:block;font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;font-weight:700}
.level-text b{display:block;font-size:18px;margin:1px 0 8px}
.level-bar{height:8px;border-radius:4px;background:var(--surface-3);overflow:hidden}
.level-bar span{display:block;width:0;height:100%;border-radius:4px;background:var(--grad);transition:width .9s cubic-bezier(.2,.8,.2,1)}
.level-text p{margin-top:8px;font-size:12.5px;color:var(--text-2);line-height:1.4}
.profile-stats.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.profile-stats.four>div{padding:12px 10px}
.profile-stats.four b{font-size:20px}
.profile-stats.four span{font-size:11px;line-height:1.25}
.action-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.action-tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:96px;padding:14px 12px;background:var(--surface);border:1px solid var(--line);border-radius:20px;text-align:left}
.action-tile:hover{background:var(--surface-2)}
.action-tile-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--grad-soft);color:var(--accent-text)}
.action-tile-icon svg{width:20px;height:20px}
.action-tile b{font-size:13.5px;line-height:1.2}
.action-tile small{font-size:11.5px;color:var(--accent-text);font-weight:650;margin-top:-2px}
.action-tile.accent{background:var(--grad);border-color:transparent;color:#fff}
.action-tile.accent .action-tile-icon{background:#ffffff2e;color:#fff}
.reject-box.clickable{width:100%;text-align:left;align-items:center;margin:0 0 12px}
.reject-box.clickable>div{flex:1}
.reject-box.clickable>svg:last-child{color:var(--muted)}
.profile-section{margin-top:22px}
.profile-section:empty{display:none}
.showcase-empty{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface);border:1px dashed var(--line-strong);border-radius:20px}
.showcase-empty>svg{width:26px;height:26px;color:var(--accent-text);flex-shrink:0}
.showcase-empty>div{flex:1}
.showcase-empty p{font-size:12.5px;color:var(--muted);margin-top:2px}
.showcase-empty .primary{min-height:40px;padding:0 14px;font-size:13px}
#profile-recent .recent-section{margin-top:22px}

/* ---------- Game covers (moderation) ---------- */
.cover-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:12px}
.cover-card{display:flex;flex-direction:column;gap:4px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.cover-card .game-art{width:72px;border-radius:20px;margin-bottom:6px}
.cover-card b{font-size:14.5px}
.cover-card small{font-size:12px;color:var(--muted)}
.cover-actions{display:flex;gap:6px;margin-top:8px}
.cover-upload{position:relative;flex:1;min-height:40px;font-size:13px;padding:0 10px;cursor:pointer}
.cover-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.cover-upload:focus-within{outline:2.5px solid var(--accent);outline-offset:2px}
.cover-actions .icon-button{width:40px;height:40px;color:var(--danger)}

@media (min-width:540px){
  .catalog-top{margin:0;padding-inline:0}
  .quick-row{margin-inline:0;padding-inline:0}
  .game-hero{padding:26px}
  .game-hero h1{font-size:34px}
  .game-hero-body .game-art{width:96px}
  .game-hero-actions{max-width:420px}
  .profile-cover{height:130px}
  .profile-main{margin-top:-46px}
  .profile-avatar-ring .profile-letter{width:100px;height:100px;font-size:40px}
  .profile-id h1{font-size:28px}
  .profile-hero-actions{max-width:480px}
  .action-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}
  .list-view .product-open{grid-template-columns:120px minmax(0,1fr)}
  .list-view .product-art{width:120px}
}
@media (min-width:1100px){
  .catalog-top{top:64px}
}
/* =====================================================================
   Design system v3 (light-20261101): one 4/8 px spacing scale, a clear type scale,
   level card rows, 44 px touch targets. These rules refine the ones above.
   ===================================================================== */
:root{--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;--sp-8:32px;--sp-10:40px;--tap:44px;--gutter:16px}
@media (min-width:400px){:root{--gutter:20px}}
h1{font-size:26px;line-height:32px;letter-spacing:-.6px}
.section-heading{margin:var(--sp-2) 0 var(--sp-6)}
.section-heading h1{font-size:26px;line-height:32px}
.section-heading p{margin-top:var(--sp-1);font-size:14px;line-height:20px}
.section-row{min-height:var(--tap);margin-bottom:var(--sp-3)}
.section-row h2,.home-section h2{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:19px;line-height:24px;font-weight:750;letter-spacing:-.3px}
.section-row h2 svg{width:20px;height:20px;color:var(--muted)}
.text-link{min-height:var(--tap);padding:0 var(--sp-1)}
.home-section,.recent-section,.profile-section,.item-section{margin-top:var(--sp-8)}

/* Shell: the top bar starts below Telegram's safe area; nothing sits under its buttons. */
@media (max-width:799px){
  .topbar{height:calc(56px + var(--app-top));padding-left:var(--gutter);padding-right:var(--gutter);gap:var(--sp-3)}
  .catalog-top{top:calc(56px + var(--app-top));margin:0 calc(-1*var(--gutter));padding:var(--sp-2) var(--gutter) var(--sp-3)}
  main{padding:var(--sp-2) var(--gutter) calc(var(--nav-h) + var(--sp-8) + var(--safe-bottom));min-height:calc(100dvh - 56px - var(--app-top))}
}
.icon-button{width:var(--tap);height:var(--tap);border-radius:14px}
.avatar{width:40px;height:40px}
.top-actions{gap:var(--sp-2)}
.home-search{height:48px;margin:var(--sp-2) 0 var(--sp-5);padding:0 var(--sp-4);gap:var(--sp-3)}
.banners{margin:0 0 var(--sp-2)}
.banner{min-height:200px;padding:var(--sp-8) var(--sp-5) var(--sp-5)}
.banner h2{font-size:22px;line-height:26px;margin:var(--sp-2) 0}
.banner p{font-size:13px;line-height:18px}
.banner-cta{min-height:40px;padding:0 var(--sp-4);margin-top:var(--sp-4)}
@media (max-width:799px){.tabs,.quick-row,.game-strip,.category-grid,.card-strip{margin-left:calc(-1*var(--gutter));margin-right:calc(-1*var(--gutter));padding-left:var(--gutter);padding-right:var(--gutter);scroll-padding-left:var(--gutter)}}
.tab{min-height:40px;padding:0 var(--sp-4)}
.chip-btn{min-height:40px;padding:0 var(--sp-4);gap:var(--sp-2)}
.quick-row{gap:var(--sp-2);margin-top:0;margin-bottom:var(--sp-4)}
.tabs{gap:var(--sp-2);margin-bottom:var(--sp-3)}
.tools{gap:var(--sp-2)}

/* Game tiles: identical size, art 1:1, one line of name, one line of count. */
.game-strip{gap:var(--sp-3);padding-top:var(--sp-1);padding-bottom:var(--sp-2);margin-bottom:0;align-items:flex-start}
.game{flex:0 0 76px;display:flex;flex-direction:column;align-items:center;min-height:120px}
.game .game-art{width:72px;height:72px;aspect-ratio:auto;border-radius:20px}
.game b{width:100%;height:16px;margin-top:var(--sp-2);font-size:12px;line-height:16px;font-weight:650}
.game small{width:100%;height:16px;margin-top:2px;font-size:11px;line-height:16px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.game-art{container-type:inline-size}
.game-art.mono b{display:block;font-size:14px;font-size:34cqi;font-weight:850;letter-spacing:-.04em;line-height:1;color:#fff;text-shadow:0 2px 8px #0003}
.game-art.fortnite{background:linear-gradient(150deg,#7b5cff,#2a1a6e)}
.game-art.minecraft{background:linear-gradient(150deg,#5fae3f,#2d5a1e)}
.game-art.valorant{background:linear-gradient(150deg,#ff4655,#5a141c)}
.game-art.freefire{background:linear-gradient(150deg,#ff9a1f,#9a2b0c)}
.game-art.codm{background:linear-gradient(150deg,#4d5b3a,#14180f)}
.game-art.clashroyale{background:linear-gradient(150deg,#3f8cff,#1b2f7a)}
.game-art.clashofclans{background:linear-gradient(150deg,#e8b23a,#7a4a12)}
.game-art.mlbb{background:linear-gradient(150deg,#3aa0ff,#26206e)}
.game-art.hsr{background:linear-gradient(150deg,#a58bff,#2c2457)}
.game-art.zzz{background:linear-gradient(150deg,#f5d000,#3b3a10)}
.game-art.gta5{background:linear-gradient(150deg,#2fbf71,#0d3b25)}
.game-art.rust{background:linear-gradient(150deg,#cd412b,#3a1610)}
.game-art.apex{background:linear-gradient(150deg,#da292a,#4a0e10)}
.game-art.tarkov{background:linear-gradient(150deg,#8a8467,#22211a)}
.game-art.wot{background:linear-gradient(150deg,#b5651d,#3d240c)}
.game-art.warthunder{background:linear-gradient(150deg,#d14b3c,#2e2f3b)}
.game-art.lol{background:linear-gradient(150deg,#c8aa6e,#0a1428)}
.game-art.wow{background:linear-gradient(150deg,#1f6fd1,#11204a)}

/* Category tiles: same size everywhere, icons tinted by product type. */
.category-grid{gap:var(--sp-2);padding-top:var(--sp-1);padding-bottom:var(--sp-2)}
.category{flex:0 0 88px;min-height:92px;padding:var(--sp-3) var(--sp-1);display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:18px}
.category .category-icon{width:44px;height:44px;border-radius:14px}
.category b{width:100%;margin-top:var(--sp-2);font-size:12px;line-height:16px}
.cat-accounts{--tint:#4d8dff}.cat-currency{--tint:#ffb547}.cat-games{--tint:#a37bff}.cat-boost{--tint:#ff6b9a}.cat-services{--tint:#2fd0b0}
.cat-keys{--tint:#7bd66b}.cat-donate{--tint:#ff7a59}.cat-telegram{--tint:#3fa9f5}.cat-design{--tint:#ff9f43}.cat-code{--tint:#8ea2c0}.cat-education{--tint:#c6f432}
.category[class*=cat-] .category-icon{background:color-mix(in srgb,var(--tint) 16%,transparent);color:var(--tint)}

/* Product cards: fixed rows, so cards in one row always line up. */
.grid{gap:var(--sp-5) var(--sp-3)}
.product-src{height:32px;margin-bottom:var(--sp-2)}
.product-src .game-art,.src-icon{width:32px;height:32px;border-radius:10px}
.product-art{aspect-ratio:1/1;border-radius:16px}
.product-body{padding:var(--sp-3) var(--sp-1) 0}
.price{font-size:18px;line-height:24px}
.product h3{margin-top:2px;min-height:calc(2 * 1.35em);font-size:13.5px;line-height:1.35}
.seller-caption{height:20px;margin-top:var(--sp-2);gap:6px;min-width:0}
.seller-caption-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.favorite{top:48px;right:8px;width:36px;height:36px}
.favorite:before{content:'';position:absolute;inset:-4px}
.card-strip{gap:var(--sp-3)}
.card-strip .product{flex:0 0 164px}
.list-view .product h3{min-height:0}

/* No empty images: a missing photo becomes a tidy tile with the game art or the category icon. */
.art-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);background:radial-gradient(120% 100% at 50% 0%,color-mix(in srgb,var(--tint,var(--accent)) 26%,transparent),transparent 70%),var(--surface-2)}
.art-fallback .game-art{width:44%;height:auto;aspect-ratio:1;border-radius:22%;box-shadow:0 10px 24px #0006}
.art-fallback-icon{display:grid;place-items:center;width:44%;aspect-ratio:1;border-radius:24%;background:color-mix(in srgb,var(--tint,var(--accent)) 18%,transparent);color:var(--tint,var(--accent-text))}
.art-fallback-icon svg{width:46%;height:46%}
.art-fallback small{font-size:11px;font-weight:650;letter-spacing:.2px;color:var(--text-2)}
.item-gallery .art-fallback small{font-size:13px}
img.photo-error{display:none}

/* Trust marks */
.name-line{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;flex-wrap:wrap}
.badge-verified{display:inline-grid;place-items:center;color:#4da3ff;flex-shrink:0}
.badge-verified svg{width:18px;height:18px;stroke-width:2.2}
.badge-verified.xs svg{width:14px;height:14px}
.badge-official{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 7px 0 5px;border-radius:6px;background:var(--logo);color:#0b0c10;font-size:11px;font-weight:800;letter-spacing:.1px;line-height:1;flex-shrink:0}
.badge-official svg{width:13px;height:13px;stroke-width:2.4}
.badge-official.xs{height:16px;padding:0 5px 0 4px;font-size:10px}
.badge-official.xs svg{width:11px;height:11px}
.official-note{display:inline-flex;align-items:center;gap:6px;margin-top:var(--sp-1);font-size:13px;color:var(--logo);font-weight:650}
.official-note svg{width:16px;height:16px}
.sys-warn{background:var(--warning-soft);color:var(--text);border:1px solid color-mix(in srgb,var(--warning) 40%,transparent)}
.sys-warn svg{color:var(--warning)}

/* Admin journal */
.audit-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}
.audit-row{display:flex;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4);font-size:13px;line-height:18px;border-top:1px solid var(--line)}
.audit-row:first-child{border-top:0}
.audit-time{flex:0 0 92px;color:var(--muted)}
.mod-bar{flex-wrap:wrap;gap:var(--sp-2)}

/* Comfortable touch targets. */
.mobile-tab{min-height:var(--tap)}
.field input,.field select{min-height:48px}
.primary,.secondary,.danger{min-height:var(--tap)}
.menu-row,.action-row{min-height:56px}

/* Small phones (320–359 px): two columns without crowding. */
@media (max-width:359px){
  :root{--gutter:12px}
  .grid{gap:var(--sp-4) var(--sp-2)}
  .game{flex-basis:68px}.game .game-art{width:64px;height:64px;border-radius:18px}
  .category{flex-basis:80px}
  .price{font-size:16px}
  h1,.section-heading h1{font-size:23px;line-height:28px}
}
@media (min-width:540px){.grid{gap:var(--sp-6) var(--sp-4)}}
.sprite{position:absolute;width:0;height:0;overflow:hidden}

/* Horizontal rows with a mouse: grab to drag; snapping pauses while dragging. */
@media (hover:hover) and (pointer:fine){
  .game-strip,.category-grid,.card-strip,.tabs,.quick-row{cursor:grab}
  .dragging{cursor:grabbing;scroll-snap-type:none!important;user-select:none}
  .dragging *{pointer-events:none}
}

/* =====================================================================
   v4 (light-20261101-4): product-type art, selling flow, filters, item facts, legal pages
   ===================================================================== */
/* Product-type illustrations replace line icons on tiles; the tint stays as a soft backdrop. */
.cat-art{overflow:hidden}
.cat-art .cat-art-svg{width:78%;height:78%;filter:drop-shadow(0 3px 6px #0003)}
.category .category-icon.cat-art{width:52px;height:52px;border-radius:16px}
.category{min-height:100px}
.src-icon.cat-art{background:color-mix(in srgb,var(--tint,var(--accent)) 14%,var(--surface-2))}
.src-icon.cat-art .cat-art-svg{width:84%;height:84%;filter:none}
.art-fallback-icon.cat-art .cat-art-svg{width:70%;height:70%}
.tab-art{display:inline-grid;place-items:center;width:20px;height:20px;margin-left:-4px}
.tab-art .cat-art-svg{width:20px;height:20px}
.sell-category .category-icon.cat-art{width:48px;height:48px;border-radius:14px;background:var(--surface-2)}

/* Delivery time on cards and the online dot on avatars */
.delivery-chip{position:absolute;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 7px 0 5px;border-radius:7px;background:#0b0c10cc;color:#fff;font-size:11px;font-weight:700;backdrop-filter:blur(6px)}
.delivery-chip svg{width:12px;height:12px;color:#c6f432;stroke-width:2.4}
.mini-avatar,.chat-avatar{position:relative}
.is-online:after{content:"";position:absolute;right:-1px;bottom:-1px;width:30%;height:30%;min-width:7px;min-height:7px;border-radius:50%;background:#2fd06b;box-shadow:0 0 0 2px var(--surface)}
.online-text{color:#2fd06b!important;font-weight:650}
.presence{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--muted);vertical-align:middle}
.presence.on{background:#2fd06b;box-shadow:0 0 0 3px #2fd06b33}
.seller-seen{display:flex;align-items:center}
.online-icon i{display:block;width:10px;height:10px;border-radius:50%;background:#2fd06b;box-shadow:0 0 0 4px #2fd06b33}

/* Filters */
.filter-dot:not([hidden]){display:grid;place-items:center;top:4px;right:4px;width:auto;min-width:16px;height:16px;padding:0 4px;border-radius:8px;font-size:10px;font-weight:800;color:#fff;background:var(--accent)}
.choice-chips{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-bottom:var(--sp-4)}
.choice-chip{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);font-size:13px;font-weight:600;color:var(--text-2);cursor:pointer}
.choice-chip svg{width:15px;height:15px}
.choice-chip input{position:absolute;opacity:0;pointer-events:none}
.choice-chip:has(input:checked),.choice-chip.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}
.choice-chip:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.filter-tip{display:flex;gap:8px;align-items:flex-start;margin:0 0 var(--sp-4)}
.filter-tip svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.sheet-label{margin:var(--sp-5) 0 var(--sp-2);font-size:13px;font-weight:700;color:var(--text-2)}
#filter-form .switch-row{margin-bottom:var(--sp-2)}

/* Selling flow */
.sell-flow{max-width:720px;margin:0 auto}
.sell-progress{height:4px;border-radius:2px;background:var(--surface-3);overflow:hidden;margin-bottom:var(--sp-3)}
.sell-progress span{display:block;height:100%;width:25%;border-radius:2px;background:var(--grad);transition:width .3s ease}
.steps.steps-4 li:before{display:none}
.steps.steps-4{gap:var(--sp-1);margin-bottom:var(--sp-6)}
.steps.steps-4 li{flex-direction:row;align-items:center;gap:6px;font-size:12px;min-width:0}
.steps.steps-4 li>span,.steps.steps-4 li button>span{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;border-radius:50%;background:var(--surface-3);color:var(--muted);font-size:11px;font-weight:800}
.steps.steps-4 li.current>span{background:var(--accent);color:#fff}
.steps.steps-4 li.done button>span{background:#2fd06b;color:#fff}
.steps.steps-4 li button>span svg{width:13px;height:13px;stroke-width:3}
.steps.steps-4 li button{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);font:inherit;color:var(--text-2)}
@media (max-width:420px){.steps.steps-4 li{flex:0 0 auto}.steps.steps-4 li:not([aria-current]){font-size:0;gap:0}.steps.steps-4 li:not([aria-current]) button{font-size:0}.steps.steps-4 li[aria-current]{flex:1}}
.sell-flow h2{font-size:18px;line-height:24px;margin:0 0 var(--sp-3)}
.sell-flow .form-h2{margin-top:var(--sp-6)}
.form-h2 small,.h-sub{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--muted)}
.sell-categories{grid-template-columns:1fr;gap:var(--sp-2)}
@media (min-width:560px){.sell-categories{grid-template-columns:1fr 1fr}}
.sell-category{min-height:72px}
.game-picker{margin-top:var(--sp-8);scroll-margin-top:calc(70px + var(--app-top))}
.picker-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-3)}
.picker-head small{font-size:12px;color:var(--muted)}
.game-search{margin:0 0 var(--sp-3);height:44px}
.game-choices{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:var(--sp-2)}
.game-choice{position:relative;flex-direction:column;justify-content:flex-start;gap:6px;min-height:0;padding:var(--sp-2) var(--sp-1);text-align:center;font-size:11.5px;line-height:14px}
.game-choice .game-art{width:52px;height:52px;border-radius:15px}
.game-choice span{width:100%;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:28px}
.game-choice[hidden]{display:none}
.pick-check{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff}
.pick-check svg{width:12px;height:12px;stroke-width:3}
.sell-context{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-3);margin-bottom:var(--sp-5);border:1px solid var(--line);border-radius:var(--r-l);background:var(--surface)}
.sell-context .category-icon{width:44px;height:44px;border-radius:13px;background:var(--surface-2)}
.sell-context>span:nth-child(2){flex:1;min-width:0}
.sell-context b{display:block;font-size:14px}
.sell-context small{font-size:12px;color:var(--muted)}
.counter{font-size:12px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.title-ideas{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:-6px 0 var(--sp-4)}
.title-ideas small{font-size:12px;color:var(--muted);margin-right:2px}
.title-ideas .chip-btn{min-height:34px;font-size:12.5px}
.template-btn{margin:-6px 0 var(--sp-2);min-height:40px}
.ghost-button{display:inline-flex;align-items:center;gap:8px;padding:0 var(--sp-4);border-radius:12px;border:1px solid var(--line-strong);background:var(--surface);font-weight:650;font-size:13px;color:var(--text-2)}
.ghost-button svg{width:16px;height:16px}
.thumb-cover{position:absolute;left:6px;bottom:6px;padding:4px 8px;border-radius:999px;background:#0f1626cc;color:#fff;font-size:10.5px;font-weight:700}
.price-hint{display:flex;gap:var(--sp-2);align-items:flex-start;padding:var(--sp-3) var(--sp-4);border-radius:var(--r-m);background:var(--accent-soft);color:var(--text);font-size:13px;line-height:18px}
.price-hint[hidden]{display:none}
.price-hint svg{width:18px;height:18px;flex-shrink:0;color:var(--accent-text)}
.review-layout{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:var(--sp-4);align-items:start}
@media (max-width:520px){.review-layout{grid-template-columns:1fr}.review-card{max-width:220px}}
.preview-card .product-open{cursor:default}
.preview-card .product-art img{width:100%;height:100%;object-fit:cover}
.quality{padding:var(--sp-3) var(--sp-4);border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line);margin-bottom:var(--sp-3)}
.quality b{font-size:14px}
.quality ul{list-style:none;margin:var(--sp-2) 0 0;padding:0;display:grid;gap:6px}
.quality li{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.quality li svg{width:16px;height:16px}
.quality li.ok{color:var(--text)}
.quality li.ok svg{color:#2fd06b;stroke-width:2.6}
.review-desc{margin-top:var(--sp-5)}
.review-desc h3{font-size:14px;margin-bottom:var(--sp-2)}
.review-desc p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:20px;color:var(--text-2)}
.check-row{display:flex;gap:var(--sp-3);align-items:flex-start;margin-top:var(--sp-5);padding:var(--sp-4);border-radius:var(--r-m);border:1px solid var(--line-strong);background:var(--surface);font-size:13px;line-height:19px}
.check-row input{width:22px;height:22px;flex-shrink:0;margin:0;accent-color:var(--accent)}
.check-row a,.guarantee a{color:var(--accent-text);font-weight:650;text-decoration:underline;text-underline-offset:2px}
.review-note{display:flex;gap:8px;align-items:flex-start}
.review-note svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.sticky-actions .primary:disabled{opacity:.45}

/* Item characteristics and safety steps */
.facts{display:grid;margin:var(--sp-4) 0;border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;background:var(--surface)}
.facts div{display:flex;justify-content:space-between;gap:var(--sp-4);padding:11px var(--sp-4);border-top:1px solid var(--line);font-size:13.5px;line-height:18px}
.facts div:first-child{border-top:0}
.facts dt{color:var(--muted)}
.facts dd{margin:0;font-weight:650;text-align:right;overflow-wrap:anywhere}
.item-meta svg{width:14px;height:14px;vertical-align:-2px;margin-right:3px}
.guarantee h2{display:flex;align-items:center;gap:8px}
.guarantee h2 svg{width:20px;height:20px;color:#2fd06b}
.guarantee-steps{list-style:none;margin:0 0 var(--sp-3);padding:0;display:grid;gap:var(--sp-2)}
.guarantee-steps li{display:flex;gap:var(--sp-3);align-items:flex-start;padding:var(--sp-3);border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line)}
.guarantee-steps li>span{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent-text);font-size:12px;font-weight:800}
.guarantee-steps b{display:block;font-size:13.5px}
.guarantee-steps small{display:block;margin-top:2px;font-size:12.5px;line-height:17px;color:var(--muted)}

/* Seller tabs */
.seller-tabs{display:flex;gap:var(--sp-1);margin:var(--sp-6) 0 var(--sp-4);border-bottom:1px solid var(--line)}
.seller-tab{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);padding:0 var(--sp-4);font-weight:700;font-size:14px;color:var(--muted)}
.seller-tab.active{color:var(--text)}
.seller-tab.active:after{content:"";position:absolute;left:var(--sp-3);right:var(--sp-3);bottom:-1px;height:2px;border-radius:2px;background:var(--accent)}

/* Legal documents */
.legal-page{max-width:760px;margin:0 auto}
.legal-tabs{display:flex;gap:var(--sp-2);overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--gutter)) var(--sp-5);padding:0 var(--gutter)}
.legal-tabs::-webkit-scrollbar{display:none}
.legal-page h1{font-size:24px;line-height:30px}
.legal-edition{margin:var(--sp-1) 0 var(--sp-5);font-size:13px;color:var(--muted)}
.legal-page section{margin-bottom:var(--sp-5)}
.legal-page h2{font-size:16px;line-height:22px;margin-bottom:var(--sp-2)}
.legal-page p{font-size:14px;line-height:21px;color:var(--text-2);margin:0 0 var(--sp-2)}
.legal-foot{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-4);margin-top:var(--sp-6);border-radius:var(--r-l);background:var(--surface);border:1px solid var(--line);font-size:13px}
.legal-foot svg{width:20px;height:20px;color:var(--accent-text);flex-shrink:0}
.legal-foot span{flex:1}

/* v5: profile photos */
.face-img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.avatar,.mini-avatar,.chat-avatar,.profile-letter{position:relative;padding:0}
.avatar .face-img{border-radius:50%}
.profile-edit-face{cursor:pointer;border:0;font:inherit}
.face-edit{position:absolute;left:-2px;bottom:-2px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface);color:var(--text);box-shadow:0 0 0 2px var(--surface),0 2px 6px #0004}
.face-edit svg{width:13px;height:13px}
.face-editor{display:flex;align-items:center;gap:var(--sp-4);margin-bottom:var(--sp-5)}
.face-big{display:grid;place-items:center;flex-shrink:0;width:88px;height:88px;border-radius:50%;background:var(--grad);color:#fff;font-size:34px;font-weight:800;overflow:hidden}
.face-actions{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2)}
.upload-face{position:relative;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.upload-face svg{width:17px;height:17px}
.upload-face input{position:absolute;inset:0;opacity:0;cursor:pointer}
.face-actions .quiet{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);color:var(--danger,#ff5a6a);font-weight:600}
.face-actions .quiet svg{width:16px;height:16px}
.seed-box{display:flex;gap:var(--sp-3);align-items:flex-start;padding:var(--sp-4);margin:var(--sp-4) 0;border-radius:var(--r-l);background:var(--grad-soft);border:1px solid var(--line)}
.seed-box>svg{width:24px;height:24px;flex-shrink:0;color:var(--accent-text)}
.seed-box p{margin:4px 0 var(--sp-3);font-size:13px;line-height:18px;color:var(--text-2)}
.profile-letter.profile-edit-face .face-edit{background:#fff;color:#0b0c10;width:26px;height:26px;z-index:1}
/* Camera badge mirrors the level badge: same size and ring, opposite side. */
.profile-avatar-ring .profile-letter.profile-edit-face .face-edit{left:0;right:auto;bottom:4px;width:28px;height:28px;border-radius:50%;background:var(--surface-3);color:var(--text);border:3px solid var(--surface);box-shadow:none}
.profile-avatar-ring .profile-letter.profile-edit-face .face-edit svg{width:14px;height:14px;stroke-width:2.2}

/* =====================================================================
   v6 (light-20261101-6): buttons, phone-first polish, growth features
   ===================================================================== */
/* Buttons: one family — gradient primary, calm secondary, clear pressed state, focus ring for keyboards. */
.primary,.secondary,.danger{min-height:50px;padding:0 22px;border-radius:15px;font-size:15px;font-weight:700;letter-spacing:-.1px;transition:transform .12s ease,filter .15s,background-color .15s,box-shadow .15s}
.primary{background:var(--grad);color:#fff;box-shadow:inset 0 1px 0 #ffffff33,0 10px 24px -8px #6b6cffaa}
.primary:not(:disabled):active{transform:scale(.97);filter:brightness(.95);box-shadow:inset 0 1px 0 #ffffff22,0 4px 12px -6px #6b6cffaa}
.secondary{background:var(--surface-2);border:1px solid var(--line-strong);color:var(--text)}
.secondary:hover{background:var(--surface-3)}
.secondary:not(:disabled):active,.danger:not(:disabled):active{transform:scale(.97)}
.primary:focus-visible,.secondary:focus-visible,.danger:focus-visible,.chip-btn:focus-visible,.tab:focus-visible,.icon-button:focus-visible{outline:2.5px solid var(--accent-2);outline-offset:2px}
.primary svg,.secondary svg,.danger svg{width:19px;height:19px;stroke-width:2.1}
.chip-btn,.tab{transition:background-color .15s,border-color .15s,color .15s,transform .12s}
.chip-btn:not(:disabled):active,.tab:not(:disabled):active{transform:scale(.96)}
.chip-btn.active,.tab.active{background:var(--text);color:var(--bg);border-color:var(--text)}
.tab.active .tab-count{background:color-mix(in srgb,var(--bg) 18%,transparent);color:var(--bg)}
.icon-button{transition:background-color .15s,transform .12s}
.icon-button:not(:disabled):active{transform:scale(.92)}
.product{transition:transform .14s ease}
.product:active{transform:scale(.985)}
.item-actions{grid-template-columns:1fr 1fr}
.item-actions .primary,.item-actions .danger{grid-column:1/-1}
.item-actions .secondary{min-height:46px;font-size:14px;padding:0 12px}

/* Phones first: thumb-friendly bars, readable type, no accidental zoom or bounce. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overscroll-behavior-y:none}
@media (max-width:799px){
  .mobile-nav{left:12px;right:12px;height:66px;border-radius:26px;box-shadow:0 16px 40px -12px #000c,0 0 0 1px var(--line)}
  .mobile-tab{font-size:11px;gap:3px}
  .mobile-tab .nav-icon{display:grid;place-items:center;width:42px;height:30px;border-radius:12px;transition:background-color .2s}
  .mobile-tab.create .nav-icon{width:54px;height:54px;border-radius:19px;margin-top:-26px}
  .item-buybar{padding:12px 16px calc(12px + var(--safe-bottom));gap:14px}
  .item-buybar .buybar-price b{font-size:20px;letter-spacing:-.4px}
  .item-buybar .primary{min-width:0;flex:0 0 52%;height:52px}
  .item-price{font-size:30px;letter-spacing:-.8px}
  .item-title{font-size:21px;line-height:27px}
  .modal-body{padding-bottom:calc(20px + var(--safe-bottom))}
  .sheet-actions{position:sticky;bottom:0;padding-top:12px;background:linear-gradient(transparent,var(--surface) 30%)}
  .grid{gap:var(--sp-4) var(--sp-3)}
  .price{font-size:17px}
}
/* Desktop keeps a comfortable reading width for the same components. */
@media (min-width:800px){.item-actions{max-width:520px}}

/* Prices in rubles */
.price .star,.deal-price .star{color:var(--text-2);font-weight:650;margin-left:2px}

/* Catalog: follow a search */
.watch-button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text);font-size:13px;font-weight:700}
.watch-button svg{width:16px;height:16px}
.watch-button[hidden]{display:none}
.catalog-head-right{gap:var(--sp-2)}
.tab .tab-count{margin-left:2px}

/* Seller achievements */
.achievements{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:var(--sp-3) 0 var(--sp-4)}
.achievement{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:12.5px;font-weight:650}
.achievement svg{width:15px;height:15px}
.ach-fast svg{color:#c6f432}.ach-veteran svg{color:#4da3ff}.ach-pro svg{color:#ffb547}.ach-reliable svg{color:#2fd06b}

/* Chat: presence and typing */
.peer-state{margin-left:6px;color:var(--muted)}
.peer-state.typing{color:var(--accent-text);font-weight:650}
.peer-state.typing:after{content:'';display:inline-block;width:0;animation:none}
.quick-replies[hidden]{display:none}
.composer-row .attach-button{flex-shrink:0}

/* Profile switch and lists */
.menu-row .switch.on{background:var(--accent)}
.menu-row .switch.on:after{transform:translateX(18px)}
.watch-list{display:grid;gap:var(--sp-2);margin-bottom:var(--sp-3)}
.watch-row{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);border-radius:var(--r-m);background:var(--surface-2)}
.watch-row .game-art{width:40px;height:40px;border-radius:12px;flex-shrink:0}
.watch-row>span:nth-child(2){flex:1;min-width:0}
.watch-row b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.watch-row small{display:block;font-size:12px;color:var(--muted)}
.empty.compact{padding:var(--sp-4) 0}
.invite-hero{display:flex;flex-direction:column;align-items:center;gap:4px;padding:var(--sp-5);margin-bottom:var(--sp-4);border-radius:var(--r-l);background:var(--grad-soft);text-align:center}
.invite-hero svg{width:28px;height:28px;color:var(--accent-text)}
.invite-hero b{font-size:32px;line-height:38px}
.invite-hero span{font-size:13px;color:var(--text-2)}
.share-input{width:100%;min-height:46px;padding:0 14px;border-radius:var(--r-m);border:1px solid var(--line-strong);background:var(--surface-2);font-size:13px;color:var(--text-2);margin-bottom:var(--sp-3)}

/* Owner statistics */
.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2);margin-bottom:var(--sp-5)}
@media (min-width:640px){.insight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.insight{display:flex;flex-direction:column;gap:2px;padding:var(--sp-4);border-radius:var(--r-l);background:var(--surface);border:1px solid var(--line)}
.insight svg{width:18px;height:18px;color:var(--accent-text);margin-bottom:4px}
.insight b{font-size:22px;line-height:28px}
.insight span{font-size:12px;color:var(--muted)}
.admin-block{margin-bottom:var(--sp-6)}
.admin-block h3{font-size:15px;margin-bottom:var(--sp-2)}
.bars{display:grid;gap:var(--sp-2)}
.bar-row{display:grid;grid-template-columns:minmax(0,150px) 1fr auto;align-items:center;gap:var(--sp-3);font-size:13px}
.bar-label{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bar-label .game-art{width:24px;height:24px;border-radius:7px;flex-shrink:0}
.bar{height:8px;border-radius:4px;background:var(--surface-3);overflow:hidden}
.bar i{display:block;height:100%;width:0;border-radius:4px;background:var(--grad);transition:width .5s ease}
.miss-list{display:flex;flex-wrap:wrap;gap:6px}
.miss{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 6px 0 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13px}
.miss b{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--surface-3);font-size:11px}
.admin-card-text .tag-danger{display:inline-flex;align-items:center;gap:4px;margin-left:6px}
.admin-card-text .tag-danger svg{width:12px;height:12px}

/* v7 (light-20261101-7): discounts, owner stats, similar offers, search hints with photos, theme picker */
.old-price{margin-left:6px;font-size:12px;font-weight:600;color:var(--muted);text-decoration-thickness:1.5px}
.item-price .old-price{font-size:16px;margin-left:10px}
.discount-chip{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;height:22px;padding:0 7px;border-radius:7px;background:#ff4d6d;color:#fff;font-size:11.5px;font-weight:800;letter-spacing:-.2px}
.discount-chip.inline{position:static;margin-left:8px;height:24px;font-size:13px;vertical-align:4px}
.similar-box{display:flex;align-items:center;gap:var(--sp-3);width:100%;padding:var(--sp-3) var(--sp-4);margin:0 0 var(--sp-4);border-radius:var(--r-l);background:var(--grad-soft);border:1px solid var(--line);text-align:left}
.similar-box>svg:first-child{width:22px;height:22px;color:var(--accent-text);flex-shrink:0}
.similar-box>span{flex:1;min-width:0}
.similar-box b{display:block;font-size:14px}
.similar-box small{display:block;margin-top:2px;font-size:12.5px;color:var(--text-2)}
.similar-box>svg:last-child{width:18px;height:18px;color:var(--muted)}
.owner-stats{padding:var(--sp-4);margin:0 0 var(--sp-4);border-radius:var(--r-l);background:var(--surface);border:1px solid var(--line)}
.owner-stats-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-2);margin-bottom:var(--sp-3)}
.owner-stats-head b{display:inline-flex;align-items:center;gap:6px;font-size:14px}
.owner-stats-head b svg{width:17px;height:17px;color:var(--accent-text)}
.owner-stats-head small{font-size:11.5px;color:var(--muted)}
.mini-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;height:96px}
.mini-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:3px}
.mini-bar i{display:block;width:100%;max-width:26px;height:4%;border-radius:6px 6px 3px 3px;background:var(--grad);transition:height .5s ease}
.mini-bar span{order:-1;font-size:11px;font-weight:700;color:var(--text-2)}
.mini-bar small{font-size:10.5px;color:var(--muted)}
.owner-stats-row{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4);margin-top:var(--sp-3);font-size:12.5px;color:var(--text-2)}
.owner-stats-row span{display:inline-flex;align-items:center;gap:5px}
.owner-stats-row svg{width:15px;height:15px;color:var(--muted)}
.owner-stats-row b{color:var(--text)}
.item-hint .hint-art{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;overflow:hidden;flex-shrink:0;background:var(--surface-2)}
.item-hint .hint-art img{width:100%;height:100%;object-fit:cover}
.item-hint .hint-art .game-art{width:100%;height:100%;border-radius:0}
.item-hint .hint-art .cat-art-svg{width:80%;height:80%}
.ach-founder svg{color:#ffb547}
.theme-options{display:grid;gap:var(--sp-2)}
.theme-option{display:flex;align-items:center;gap:var(--sp-3);width:100%;min-height:64px;padding:var(--sp-3);border-radius:var(--r-l);border:1px solid var(--line-strong);background:var(--surface);text-align:left}
.theme-option.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.theme-option>span:nth-child(2){flex:1}
.theme-option b{display:block;font-size:14.5px}
.theme-option small{display:block;font-size:12px;color:var(--muted)}
.theme-option>svg{width:20px;height:20px;color:var(--accent-text)}
.theme-swatch{display:flex;width:44px;height:44px;border-radius:12px;overflow:hidden;border:1px solid var(--line-strong);flex-shrink:0}
.theme-swatch i{flex:1}
.theme-dark .theme-swatch i:first-child{background:#0b0c10}.theme-dark .theme-swatch i:last-child{background:#c6f432}
.theme-light .theme-swatch i:first-child{background:#f5f7fb}.theme-light .theme-swatch i:last-child{background:#6a5cff}
.theme-auto .theme-swatch i:first-child{background:#0b0c10}.theme-auto .theme-swatch i:last-child{background:#f5f7fb}
@media (max-width:420px){.watch-button span{display:none}.watch-button{width:36px;padding:0;justify-content:center}}

/* =====================================================================
   v8 (light-20261101-8): display font, bold banners, full-screen support chat
   ===================================================================== */
@font-face{font-family:'Unbounded';font-style:normal;font-weight:200 900;font-display:swap;src:url('fonts/unbounded.woff2') format('woff2')}
:root{--display:'Unbounded','Inter',system-ui,sans-serif}
/* Headings get the bold display face; body text stays on Inter for easy reading. */
.section-heading h1,.catalog-h1,.section-row h2,.home-section h2,.seller-hero h1,.profile-id h1,.legal-page h1,.item-price,.game-hero h1{font-family:var(--display);font-weight:800;letter-spacing:-.02em}
.section-row h2,.home-section h2{font-size:18px;font-weight:750}
.item-price{font-weight:800;letter-spacing:-.03em}
.price{font-family:var(--display);font-weight:750;font-size:16px;letter-spacing:-.02em}

/* Banners: three bold slides with depth */
.banners{margin:0 0 var(--sp-3)}
.banner-track{border-radius:26px}
.banner{min-height:212px;padding:var(--sp-8) var(--sp-5) var(--sp-5);gap:0;background-size:cover}
.banner:before{background:radial-gradient(90% 120% at 100% 0%,#ffffff36,transparent 60%),radial-gradient(60% 80% at 0% 100%,#00000040,transparent 70%)}
.banner:after{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#ffffff12 1px,transparent 1px),linear-gradient(90deg,#ffffff12 1px,transparent 1px);background-size:28px 28px;mask-image:radial-gradient(80% 90% at 85% 40%,#000,transparent 75%);-webkit-mask-image:radial-gradient(80% 90% at 85% 40%,#000,transparent 75%)}
.b-market{background:linear-gradient(135deg,#5b46ff 0%,#7b5cff 45%,#2f8bff 100%)}
.b-sell{background:linear-gradient(135deg,#ff7a3d 0%,#ff4d8d 55%,#b14dff 100%)}
.b-help{background:linear-gradient(135deg,#0fb6a1 0%,#1b8cff 60%,#3d5cff 100%)}
.banner-copy{flex:1 1 58%;max-width:62%}
.banner-kicker{display:inline-flex;align-self:flex-start;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:#ffffff26;font-size:10.5px;font-weight:800;letter-spacing:.5px;opacity:1}
.banner h2{font-family:var(--display);font-weight:800;font-size:21px;line-height:1.12;letter-spacing:-.02em;margin:var(--sp-3) 0 var(--sp-2);max-width:none;text-wrap:balance}
.banner p{font-size:12.5px;line-height:17px;opacity:.92;max-width:none;font-weight:550}
.banner-cta{min-height:40px;margin-top:var(--sp-4);padding:0 16px;background:#fff;color:#0b0c10;font-weight:800;font-size:13px;box-shadow:0 8px 20px #0003}
.banner-art{flex:1 1 42%;width:auto;position:relative}
.banner-games{position:absolute;inset:-10px -8px -10px 0;display:block;transform:none}
.bg-tile{position:absolute;display:block;border-radius:16px;box-shadow:0 12px 26px #0005;border:2px solid #ffffff55;overflow:hidden}
.bg-tile .game-art{width:100%;height:100%;border-radius:0}
.bg-0{width:58px;height:58px;left:8%;top:6%;transform:rotate(-10deg)}
.bg-1{width:66px;height:66px;left:48%;top:0;transform:rotate(8deg)}
.bg-2{width:54px;height:54px;left:0;top:44%;transform:rotate(6deg)}
.bg-3{width:62px;height:62px;left:40%;top:38%;transform:rotate(-6deg);z-index:2}
.bg-4{width:48px;height:48px;left:76%;top:46%;transform:rotate(12deg);opacity:.9}
.bg-5{width:52px;height:52px;left:20%;top:74%;transform:rotate(-14deg);opacity:.85}
.banner-cats{position:absolute;inset:0}
.bc-tile{position:absolute;display:grid;place-items:center;border-radius:22px;background:#ffffff2e;backdrop-filter:blur(6px);box-shadow:0 12px 26px #0003}
.bc-tile .cat-art-svg{width:76%;height:76%}
.bc-0{width:74px;height:74px;left:4%;top:8%;transform:rotate(-10deg)}
.bc-1{width:86px;height:86px;left:42%;top:26%;transform:rotate(8deg);z-index:2}
.bc-2{width:64px;height:64px;left:10%;top:62%;transform:rotate(10deg)}
.banner-help{position:absolute;inset:0}
.help-ring{position:absolute;left:18%;top:16%;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#ffffff30;box-shadow:0 0 0 10px #ffffff14,0 0 0 22px #ffffff0a}
.help-ring svg{width:40px;height:40px;stroke-width:1.9}
.help-bubble{position:absolute;padding:7px 11px;border-radius:14px 14px 14px 4px;background:#fff;color:#0b0c10;font-size:11px;font-weight:700;white-space:nowrap;box-shadow:0 8px 18px #0003}
.hb-1{right:0;top:2%}
.hb-2{left:2%;bottom:6%;background:#0b0c10;color:#fff;border-radius:14px 14px 4px 14px}
@media (min-width:800px){.banner{min-height:240px}.banner h2{font-size:28px}.bg-tile{transform-origin:center}.banner-copy{max-width:56%}}
@media (max-width:359px){.banner h2{font-size:18px}.banner-art{flex-basis:36%}}

/* Support chat: full screen, official look */
.support-avatar.official{background:linear-gradient(145deg,#c6f432,#7ad14a);color:#0b0c10}
.support-avatar.official svg{width:24px;height:24px;stroke-width:2.1}
.support-hello{align-self:center;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:420px;margin:var(--sp-4) auto var(--sp-5);padding:var(--sp-5) var(--sp-4);border-radius:22px;background:var(--surface);border:1px solid var(--line);text-align:center}
.support-hello-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:linear-gradient(145deg,#c6f432,#7ad14a);color:#0b0c10;margin-bottom:4px}
.support-hello-icon svg{width:28px;height:28px;stroke-width:2}
.support-hello b{font-family:var(--display);font-size:17px;font-weight:800}
.support-hello p{font-size:13px;line-height:18px;color:var(--text-2)}
.support-topics{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:var(--sp-3)}
.bubble.from-staff{background:color-mix(in srgb,#c6f432 12%,var(--bubble-in));border:1px solid color-mix(in srgb,#c6f432 30%,transparent)}
.bubble-author{display:flex;align-items:center;gap:5px;margin-bottom:3px;font-size:11.5px;font-weight:800;color:#a8d62a}
.bubble-author svg{width:13px;height:13px}
#support-input{flex:1;min-width:0;min-height:44px;max-height:132px;padding:11px 14px;border-radius:22px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font-size:16px;line-height:1.35;resize:none;outline:none}
#support-input:focus{border-color:var(--accent)}
.help-ring{left:auto;right:14%;top:4%}
.hb-1{right:auto;left:-6%;top:56%;font-size:10.5px;padding:6px 9px}
.hb-2{left:auto;right:0;bottom:2%;font-size:10.5px;padding:6px 9px}
.hb-1{left:4%}

/* v9 (light-20261101-9): first-launch screens, staff templates */
.onboard{position:fixed;inset:0;z-index:60;display:grid;place-items:end center;padding:var(--sp-4) var(--sp-4) calc(var(--sp-4) + var(--safe-bottom));background:#05060acc;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:onboard-in .25s ease-out}
@keyframes onboard-in{from{opacity:0}to{opacity:1}}
.onboard-card{position:relative;width:min(100%,440px);display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);padding:var(--sp-8) var(--sp-5) var(--sp-5);border-radius:28px;color:#fff;text-align:center;overflow:hidden;isolation:isolate;animation:onboard-up .3s cubic-bezier(.2,.8,.2,1)}
@keyframes onboard-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.onboard-card:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(90% 70% at 50% 0%,#ffffff40,transparent 60%)}
.o-buy{background:linear-gradient(160deg,#5b46ff,#2f8bff)}
.o-sell{background:linear-gradient(160deg,#ff7a3d,#ff4d8d 60%,#b14dff)}
.o-safe{background:linear-gradient(160deg,#0fb6a1,#1b8cff)}
.onboard-skip{position:absolute;top:14px;right:16px;min-height:32px;padding:0 10px;border-radius:999px;background:#ffffff26;color:#fff;font-size:12.5px;font-weight:700}
.onboard-icon{display:grid;place-items:center;width:88px;height:88px;margin-top:var(--sp-2);border-radius:28px;background:#ffffff2e;box-shadow:0 0 0 10px #ffffff12}
.onboard-icon svg{width:42px;height:42px;stroke-width:1.9}
.onboard-card h2{font-family:var(--display);font-weight:800;font-size:24px;line-height:1.15;letter-spacing:-.02em;text-wrap:balance}
.onboard-card p{font-size:14.5px;line-height:21px;opacity:.94;max-width:340px}
.onboard-dots{display:flex;gap:6px;margin:var(--sp-2) 0}
.onboard-dots span{width:8px;height:8px;border-radius:4px;background:#ffffff55;transition:width .2s}
.onboard-dots span.on{width:22px;background:#fff}
.onboard-next{width:100%;background:#fff!important;color:#0b0c10!important;box-shadow:0 10px 24px #0004!important}
.staff-templates{margin-bottom:6px}
.support-screen .composer-row .attach-button{flex-shrink:0}

/* v10 (light-20261102-11): ratings and reviews, price offers, notification settings */
.stars{display:inline-flex;gap:1px;color:var(--surface-3);vertical-align:middle}
.stars i{display:inline-grid;position:relative}
.stars svg{width:16px;height:16px;fill:currentColor;stroke:none}
.stars.sm svg{width:13px;height:13px}
.stars i.on{color:#ffb800}
.stars i.half{color:#ffb800;opacity:.45}
.rating-chip{display:inline-flex;align-items:center;gap:2px;margin-left:auto;padding:1px 6px 1px 4px;border-radius:999px;background:#ffb80022;color:#e6a400;font-size:11px;font-weight:800;flex-shrink:0}
.rating-chip svg{width:11px;height:11px;fill:#ffb800;stroke:none}
.seller-rating{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.seller-rating b{color:var(--text);font-weight:800}
.seller-rating.big{font-size:14px;margin:2px 0}
.seller-rating.big b{font-size:16px}
.rating-summary{display:flex;gap:var(--sp-5);align-items:center;padding:var(--sp-4);margin-bottom:var(--sp-3);border-radius:20px;background:var(--surface);border:1px solid var(--line)}
.rating-big{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:96px}
.rating-big b{font-family:var(--display);font-size:40px;font-weight:800;line-height:1;letter-spacing:-.03em}
.rating-big small{color:var(--muted);font-size:12px}
.rating-bars{flex:1;display:flex;flex-direction:column;gap:5px}
.rating-bar{display:grid;grid-template-columns:10px 12px 1fr 22px;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.rating-bar svg{width:11px;height:11px;fill:#ffb800;stroke:none}
.rating-bar i{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.rating-bar em{display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#ffb800,#ff8a00);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.rating-bar small{text-align:right}
.review-list{display:flex;flex-direction:column;gap:var(--sp-3)}
.review{padding:var(--sp-4);border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.review header{display:flex;align-items:center;gap:10px}
.review header .mini-avatar{width:36px;height:36px;font-size:14px;overflow:hidden}
.review header .mini-avatar img{width:100%;height:100%;object-fit:cover}
.review header div{flex:1;min-width:0;display:flex;flex-direction:column}
.review header small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review>p{margin-top:10px;font-size:14.5px;line-height:21px;white-space:pre-wrap;overflow-wrap:anywhere}
.review-reply{margin-top:10px;padding:10px 12px;border-radius:14px;background:var(--surface-2);border-left:3px solid var(--accent)}
.review-reply b{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--accent-text)}
.review-reply b svg{width:14px;height:14px}
.review-reply p{margin-top:4px;font-size:14px;line-height:20px}
.review-reply-form{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.review-reply-form textarea{width:100%;min-height:60px;padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:inherit;resize:vertical}
.link-button{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 0;background:none;font-size:13px;font-weight:700;color:var(--accent-text)}
.link-button svg{width:15px;height:15px}
.danger-text{color:var(--danger)}
#review-bar:empty{display:none}
.review-bar{display:flex;align-items:center;gap:12px;width:calc(100% - 2*var(--sp-3));margin:0 var(--sp-3) var(--sp-2);padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,#ffb80026,#ff8a0014);border:1px solid #ffb80055;color:var(--text);text-align:left}
.review-bar>svg:first-child{width:26px;height:26px;fill:#ffb800;stroke:none;flex-shrink:0}
.review-bar>span:not(.stars){flex:1;display:flex;flex-direction:column}
.review-bar small{color:var(--muted);font-size:12.5px}
.review-bar>svg:last-child{width:18px;height:18px;color:var(--muted)}
.review-bar.done{background:var(--surface);border-color:var(--line);font-size:13px;color:var(--muted)}
.star-pick{display:flex;justify-content:center;gap:8px;margin:var(--sp-2) 0 4px}
.star-btn{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--surface-2);color:var(--surface-3);transition:transform .15s,color .15s,background-color .15s}
.star-btn svg{width:30px;height:30px;fill:currentColor;stroke:none}
.star-btn.on{color:#ffb800;background:#ffb8001f}
.star-btn:active{transform:scale(.9)}
.star-hint{text-align:center;font-weight:800;min-height:22px;margin-bottom:var(--sp-3)}
.bubble.is-offer{padding:10px 12px 6px}
.offer-card{display:flex;flex-direction:column;gap:2px;min-width:180px}
.offer-card small{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;opacity:.8}
.offer-card small svg{width:14px;height:14px}
.offer-card b{font-family:var(--display);font-size:24px;font-weight:800;letter-spacing:-.02em}
.offer-card.ok b{color:var(--success)}
.bubble.mine .offer-card.ok b{color:inherit}
.offer-actions{display:flex;gap:6px;margin-top:8px}
.offer-actions button{flex:1;min-height:36px;padding:0 12px;font-size:13px}
.offer-now{margin-bottom:var(--sp-3);color:var(--muted)}
.offer-now b{color:var(--text)}
.offer-quick{display:flex;gap:8px;margin:-4px 0 var(--sp-3)}
.menu-list.in-sheet{margin:var(--sp-3) 0}
.menu-row .switch.on{background:var(--accent)}
.support-screen .chat-header{gap:12px;padding-right:var(--sp-4)}
.support-screen .chat-peer{min-width:0;flex:1}
.support-screen .chat-peer .name-line{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
.support-screen .chat-peer small{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.support-screen .chat-peer small .presence{flex-shrink:0}

/* v10.1: sell flow header and focus mode, messenger-style chat list */
body.sell-mode .mobile-nav{display:none}
body.sell-mode main{padding-bottom:calc(24px + var(--safe-bottom))}
body.sell-mode .form-actions{bottom:0;margin:20px calc(-1 * var(--gutter)) 0;padding:12px var(--gutter) calc(12px + var(--safe-bottom));background:color-mix(in srgb,var(--bg) 96%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
body.sell-mode .form-actions button{min-height:52px;border-radius:16px;font-size:15.5px}
.sell-head{margin:4px 0 var(--sp-5)}
.sell-head-top{display:flex;align-items:center;justify-content:space-between;min-height:36px}
.sell-count{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;font-weight:800;letter-spacing:.02em}
.sell-close{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--surface-2);color:var(--text-2)}
.sell-close svg{width:18px;height:18px}
.sell-head h1{margin-top:10px;font-family:var(--display);font-size:28px;font-weight:800;line-height:1.1;letter-spacing:-.02em}
.sell-head p{margin-top:6px;color:var(--muted);font-size:14px;line-height:20px}
.sell-bars{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;list-style:none;margin:var(--sp-4) 0 0;padding:0}
.sell-bars li,.sell-bars li button{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;font:inherit;text-align:left;color:var(--muted);font-size:11.5px;font-weight:650}
.sell-bars i{display:block;height:5px;border-radius:3px;background:var(--surface-3);transition:background-color .3s}
.sell-bars li.done i{background:var(--grad)}
.sell-bars li.now i{background:var(--grad);box-shadow:0 0 12px #7b74ff88}
.sell-bars li.now{color:var(--text)}
.sell-bars li.done{color:var(--text-2)}
.sell-bars span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sell-edit-note{display:flex;align-items:center;gap:8px;margin:-8px 0 var(--sp-4)}
.sell-edit-note svg{width:16px;height:16px;flex-shrink:0}
.sell-flow .sell-category{transition:transform .15s,border-color .15s,background-color .15s}
.sell-flow .sell-category:active{transform:scale(.98)}
.sell-flow .sell-category.selected{border-color:var(--accent);background:var(--accent-soft)}
.sell-flow .field input,.sell-flow .field textarea,.sell-flow .field select{border-radius:14px}
.sell-flow .field input:focus,.sell-flow .field textarea:focus,.sell-flow .field select:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}

.dialog-entry .chat-text{display:flex;flex-direction:column;gap:2px}
.dialog-entry .chat-line b{font-size:15.5px;font-weight:750}
.dialog-entry .chat-msg{font-size:14px;color:var(--text-2)}
.dialog-entry.has-unread .chat-msg{color:var(--text);font-weight:600}
.chat-you{color:var(--muted);font-weight:500}
.dialog-entry .chat-topic{display:flex;align-items:center;gap:5px;margin:1px 0 0;color:var(--muted);font-size:12px}
.dialog-entry .chat-topic svg{width:13px;height:13px;flex-shrink:0;opacity:.8}
.dialog-entry .chat-topic>span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dialog-entry .chat-topic em{flex-shrink:0;font-style:normal;padding:0 6px;border-radius:6px;background:var(--surface-2);font-size:11px}
.dialog-entry .chat-avatar{width:52px;height:52px}
.peer-role{text-transform:none;color:var(--muted)}
.peer-role:after{content:'·';margin-left:6px}
.peer-state{margin-left:6px}

/* v10.2: quieter, product-grade look — solid accent instead of gradients, fewer boxes and words */
.primary,.primary:hover{background:var(--accent);box-shadow:none;filter:none}
.primary:not(:disabled):hover{background:var(--accent-press)}
.primary:not(:disabled):active{box-shadow:none;filter:none;background:var(--accent-press)}
.bubble.mine{background:var(--bubble-out);color:var(--bubble-out-text)}
.send-button{background:var(--accent)}
.attach-button{width:40px;height:40px;background:transparent;color:var(--muted)}
.attach-button:hover{background:var(--surface-2);color:var(--text)}
.deal-card{margin:8px 10px 0;padding:6px 10px 6px 6px;border-radius:14px}
.deal-card .deal-art{width:40px;height:40px;border-radius:10px}
.deal-card .deal-text b{font-size:14px;font-weight:650}
.deal-card .deal-price{font-size:13px;color:var(--text-2)}
.service-line{align-self:center;display:flex;align-items:center;gap:6px;max-width:92%;margin:12px auto 6px;padding:5px 12px;border-radius:999px;background:var(--surface);color:var(--muted);font-size:12px;text-align:center}
.service-line svg{width:13px;height:13px;flex-shrink:0}
.sell-head{margin:0 0 var(--sp-5)}
.sell-bars{display:flex;gap:4px;margin:4px 0 18px}
.sell-bars li{flex:1;height:4px;border-radius:2px;background:var(--surface-3);position:relative;font-size:0}
.sell-bars li.done,.sell-bars li.now{background:var(--accent);box-shadow:none}
.sell-bars li button{position:absolute;inset:-10px 0;width:100%;background:none}
.sell-bars i,.sell-bars span{display:none}
.sell-head-top{display:flex;align-items:center;gap:10px}
.sell-head h1{flex:1;margin:0;font-family:inherit;font-size:26px;font-weight:800;letter-spacing:-.025em}
.sell-count{height:auto;padding:0;background:none;color:var(--muted);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.sell-close{width:34px;height:34px;border-radius:50%;background:var(--surface-2)}
.sell-flow .sell-category.selected{background:var(--surface);border-color:var(--accent)}
.sell-flow .field input:focus,.sell-flow .field textarea:focus,.sell-flow .field select:focus{box-shadow:none}
body.sell-mode .form-actions{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}
.dialog-entry .chat-avatar{width:50px;height:50px}
.sell-flow .sell-categories{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
.sell-flow .sell-category{min-height:64px;padding:10px 14px;gap:12px;border:0;border-radius:0;background:transparent;box-shadow:none}
.sell-flow .sell-category+.sell-category{border-top:1px solid var(--line)}
.sell-flow .sell-category.selected{background:var(--accent-soft);border-color:var(--line)}
.sell-flow .sell-category .category-icon{width:40px;height:40px;border-radius:12px}
.sell-flow .sell-category b{font-size:15px;font-weight:650}
.sell-flow .sell-category small{font-size:12.5px}

/* v10.3: sell flow — category tiles, photo gallery slots, big price, stepper, live preview */
.sell-flow .sell-categories{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;border:0;background:none;border-radius:0;overflow:visible}
.sell-flow .sell-category{position:relative;flex-direction:column;align-items:flex-start;gap:10px;min-height:132px;padding:14px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.sell-flow .sell-category+.sell-category{border-top:1px solid var(--line)}
.sell-flow .sell-category .category-icon.cat-art{width:52px;height:52px;border-radius:16px;background:var(--surface-2)}
.sell-flow .sell-category .category-icon.cat-art svg{width:40px;height:40px}
.sell-flow .sell-category b{font-size:14.5px;font-weight:750;line-height:1.2}
.sell-flow .sell-category small{margin-top:3px;font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sell-flow .sell-category .choice-dot{position:absolute;top:12px;right:12px}
.sell-flow .sell-category.selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}
.sell-flow .game-picker{margin-top:var(--sp-6)}

.sell-block{margin-bottom:var(--sp-5);padding:16px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
.sell-block-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.sell-block-head b{font-size:17px;font-weight:800;letter-spacing:-.01em}
.sell-block-head small{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
.sell-block .note{margin:10px 0 0}

.photo-slots{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;gap:8px}
.photo-slots .slot{position:relative;aspect-ratio:1;border-radius:16px;overflow:hidden;background:var(--surface-2);display:grid;place-items:center;align-content:center;gap:4px;color:var(--muted);text-align:center;cursor:pointer}
.photo-slots .slot.cover{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
.photo-slots .slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo-slots .slot.add{border:1.5px dashed var(--line-strong);color:var(--accent-text);background:var(--accent-soft)}
.photo-slots .slot.add svg{width:26px;height:26px}
.photo-slots .slot.add.cover svg{width:36px;height:36px}
.photo-slots .slot.add b{font-size:13px;color:var(--text)}
.photo-slots .slot.add.cover b{font-size:15px}
.photo-slots .slot.add small{font-size:12px;color:var(--muted)}
.photo-slots .slot.add input{position:absolute;inset:0;opacity:0;cursor:pointer}
.photo-slots .slot.blank{border:1.5px dashed var(--line)}
.photo-slots .slot.blank svg{width:20px;height:20px;opacity:.5}
.photo-slots .cover-badge{position:absolute;left:8px;bottom:8px;padding:3px 8px;border-radius:999px;background:#000a;color:#fff;font-size:11.5px;font-weight:700}
.photo-slots .thumb-remove,.photo-slots .thumb-cover{position:absolute;top:6px;display:grid;place-items:center;width:28px;height:28px;padding:0;border-radius:50%;background:#000a;color:#fff;font-size:0}
.photo-slots .thumb-remove{right:6px}
.photo-slots .thumb-cover{left:6px;bottom:auto}
.photo-slots .thumb-remove svg,.photo-slots .thumb-cover svg{width:14px;height:14px}

.price-input{display:flex;align-items:center;gap:8px;padding:6px 18px;border:1.5px solid var(--line);border-radius:18px;background:var(--surface-2);transition:border-color .15s}
.price-input:focus-within{border-color:var(--accent)}
.price-input input{flex:1;min-width:0;height:64px;border:0;background:none;color:var(--text);font-family:var(--display);font-size:38px;font-weight:800;letter-spacing:-.02em;outline:none;-moz-appearance:textfield}
.price-input input::-webkit-outer-spin-button,.price-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.price-input input::placeholder{color:var(--surface-3)}
.price-input i{font-style:normal;font-family:var(--display);font-size:30px;font-weight:800;color:var(--muted)}
.price-market{margin-top:12px}
.price-market>small{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12.5px}
.price-market>small svg{width:15px;height:15px}
.price-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.price-chips button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);text-align:left}
.price-chips button:active{transform:scale(.98)}
.price-chips b{font-size:16px;font-weight:800}
.price-chips span{font-size:12px;color:var(--muted)}
.stock-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.stock-row>span{display:flex;flex-direction:column}
.stock-row b{font-size:15px}
.stock-row small{color:var(--muted);font-size:12.5px}
.stepper{display:flex;align-items:center;border-radius:14px;background:var(--surface-2);overflow:hidden}
.stepper button{width:42px;height:42px;font-size:22px;font-weight:600;color:var(--text)}
.stepper button:active{background:var(--surface-3)}
.stepper input{width:46px;height:42px;border:0;background:none;text-align:center;color:var(--text);font-size:16px;font-weight:750;-moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.live-preview{margin-top:var(--sp-6)}
.live-preview-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.live-preview-head b{font-size:15px;font-weight:750}
.live-preview-head small{color:var(--muted);font-size:12px}
.live-preview-card{width:min(56%,240px);pointer-events:none}
.photo-slots{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto}
.photo-slots .slot{min-width:0;aspect-ratio:1}
.photo-slots .slot.cover{aspect-ratio:1}
.sell-flow .sell-category:not(.selected) .choice-dot{display:none}

/* v10.4: game-first selling — pick a game, then what you sell in it */
.sell-search{margin-bottom:12px}
.sell-chips{display:flex;gap:8px;overflow-x:auto;margin:0 calc(-1 * var(--gutter)) 18px;padding:2px var(--gutter);scrollbar-width:none}
.sell-chips::-webkit-scrollbar{display:none}
.sell-chip{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 76px;font-size:11.5px;font-weight:650;color:var(--text-2);text-align:center}
.sell-chip .game-art{width:64px;height:64px;border-radius:18px;overflow:hidden}
.sell-chip .game-art img{width:100%;height:100%;object-fit:cover}
.sell-chip span{max-width:76px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sell-chip:active .game-art{transform:scale(.95)}
.sell-list-title{margin:8px 0 8px;font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.game-list{display:flex;flex-direction:column;margin-bottom:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}
.game-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 14px 8px 10px;background:none;text-align:left;color:var(--text)}
.game-row+.game-row{border-top:1px solid var(--line)}
.game-row[hidden]{display:none}
.game-row:active{background:var(--surface-2)}
.game-row-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;overflow:hidden;background:var(--surface-2)}
.game-row-icon .game-art{width:42px;height:42px;border-radius:12px;overflow:hidden}
.game-row-icon img{width:100%;height:100%;object-fit:cover}
.game-row-icon.cat-art svg{width:32px;height:32px}
.game-row-text{flex:1;min-width:0;display:flex;flex-direction:column}
.game-row-text b{font-size:15px;font-weight:650}
.game-row-text small{color:var(--muted);font-size:12.5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.game-row>svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}
.game-row.selected{background:var(--accent-soft)}
.sell-game-head{display:flex;align-items:center;gap:14px;width:100%;margin-bottom:16px;padding:12px;border:1px solid var(--line);border-radius:20px;background:var(--surface);text-align:left;color:var(--text)}
.sell-game-icon .game-art{display:block;width:56px;height:56px;border-radius:16px;overflow:hidden}
.sell-game-icon img{width:100%;height:100%;object-fit:cover}
.sell-game-head>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.sell-game-head b{font-size:18px;font-weight:800}
.sell-game-head small{color:var(--muted);font-size:12.5px}
.sell-game-head em{font-style:normal;font-size:13.5px;font-weight:700;color:var(--accent-text)}
.sell-context .game-ctx{overflow:hidden;background:none}
.sell-context .game-ctx .game-art{width:100%;height:100%;border-radius:inherit;overflow:hidden}
.sell-context .game-ctx img{width:100%;height:100%;object-fit:cover}
.form-actions[hidden]{display:none}
.game-list[hidden],.sell-list-title[hidden]{display:none}

/* v10.5: legendary pass — clean card pictures, no overlaps, profile header, home */
.product .favorite{top:4px;right:0;width:36px;height:36px;background:var(--surface-2);color:var(--text-2);backdrop-filter:none}
.product .favorite.on{color:#ff4d6d}
.price-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.price-row .price{min-width:0}
.product-body .delivery-chip{position:static;flex-shrink:0;height:22px;padding:0 7px 0 5px;border-radius:999px;background:var(--surface-2);color:var(--text-2);backdrop-filter:none;font-size:11px}
.product-body .delivery-chip svg{color:#9bd11a}
.profile-main{align-items:flex-start}
.profile-id{padding-top:46px}
@media (min-width:800px){.profile-id{padding-top:54px}}
.see-all{width:100%;margin-top:16px;min-height:50px}
.game small:empty{display:none}
/* desktop: profile stats span the full width; selling shows the live card beside the form */
@media (min-width:800px){.profile-stats,.profile-stats.four{max-width:none}}
@media (min-width:1100px){
  .sell-flow{max-width:1040px}
  .sell-flow .sell-head{max-width:720px}
  #listing-form{display:grid;grid-template-columns:minmax(0,720px) 280px;column-gap:40px;align-items:start}
  #listing-form>*{grid-column:1}
  #listing-form>.live-preview{grid-column:2;grid-row:1/span 40;position:sticky;top:96px;margin-top:0}
  #listing-form>.live-preview .live-preview-card{width:100%}
}
@media (min-width:1100px){#listing-form>.template-btn,#listing-form>.title-ideas{justify-self:start}}
