@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/inter-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 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: 400 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 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; }

/* Палитра MUVSell: почти чёрный с синим оттенком, акцент — индиго → фиолетовый */
:root {
  --bg: #090a11; --bg-elev: #0f1119; --surface: #141620; --surface-2: #1c1e2a;
  --border: #242633; --border-strong: #323444;
  --text: #ecedf2; --text-muted: #9a9fb0; --text-dim: #666b7a;
  --accent: #6366f1; --accent-2: #8b5cf6; --accent-soft: rgba(99, 102, 241, 0.16);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --success: #22c55e; --warning: #f5b642; --danger: #ef4444; --tg: #229ED9;
  --radius-lg: 14px; --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: #818cf8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
[hidden], .hidden { display: none !important; }
.muted { color: var(--text-muted); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grad { background: linear-gradient(90deg, #818cf8, #a78bfa 60%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
code, kbd { font-family: var(--mono); font-size: 0.86em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo em { font-style: normal; color: #818cf8; }
.logo-mark { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.1rem; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 8px rgba(0, 0, 0, 0.25), 0 8px 20px -6px rgba(139, 92, 246, 0.75); }
.logo-mark.lg { width: 60px; height: 60px; border-radius: 16px; font-size: 1.7rem; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border-strong); font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; white-space: nowrap; color: var(--text); background: var(--surface-2); transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(99, 102, 241, 0.9); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); border-color: transparent; box-shadow: 0 12px 26px -10px rgba(99, 102, 241, 1); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
.btn-glass { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); backdrop-filter: blur(4px); }
.btn-danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.btn-danger:hover:not(:disabled) { border-color: var(--danger); }
.btn-tg { background: var(--tg); border-color: transparent; color: #fff; }
.btn-tg:hover:not(:disabled) { filter: brightness(1.1); border-color: transparent; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- значки ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { color: #4ade80; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); }
.badge.warn { color: var(--warning); background: rgba(245, 182, 66, 0.12); border-color: rgba(245, 182, 66, 0.3); }
.badge.bad { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
.badge.accent { color: #a5b4fc; background: var(--accent-soft); border-color: rgba(99, 102, 241, 0.4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(99, 102, 241, 0.35); color: #a5b4fc; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow svg { width: 14px; height: 14px; }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.input { width: 100%; padding: 12px 14px; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22); }
.hint { font-size: 0.82rem; color: var(--text-dim); }
.set { color: #4ade80; font-size: 0.8rem; font-weight: 600; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-dim); cursor: pointer; }
.pw button:hover { color: var(--text); }
.pw button svg { width: 18px; height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.msg { padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 14px; }
.msg.err { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }
.msg.ok { background: rgba(34, 197, 94, 0.1); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.25); }

/* ---------- шапка и подвал сайта (лендинг, документы) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: 64px; background: rgba(30, 32, 44, 0.6); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--border-strong); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.site-nav { display: flex; gap: 4px; margin: 0 auto; }
.site-nav a { padding: 8px 14px; border-radius: 9px; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.site-actions { display: flex; align-items: center; gap: 10px; }
.cloud { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: #a5b4fc; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(99, 102, 241, 0.35); white-space: nowrap; }
.cloud .dot { color: var(--success); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
@media (max-width: 980px) { .site-nav, .cloud { display: none; } .site-actions { margin-left: auto; } }
@media (max-width: 480px) { .site-actions .btn-ghost { display: none; } }
.site-footer { border-top: 1px solid var(--border); padding: 20px 0; color: var(--text-dim); font-size: 0.8rem; margin-top: auto; }
.site-footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }
.site-footer p { margin: 6px 0 0; max-width: 360px; }
.site-footer .logo { font-size: 0.95rem; gap: 8px; }
.site-footer .logo-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 0.85rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.25), 0 4px 12px -4px rgba(139, 92, 246, 0.7); }

/* ---------- лендинг ---------- */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -64px; padding-top: 64px; }
.lp-dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%); }
.orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; opacity: 0.5; mix-blend-mode: screen; filter: blur(90px); animation: drift 12s ease-in-out infinite; }
.orb:nth-child(2) { animation-duration: 15s; animation-direction: reverse; }
.orb:nth-child(3) { animation-duration: 10s; }
@keyframes drift { 0%, 100% { transform: none; } 50% { transform: translate3d(12%, 14%, 0) scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .orb, .pulse.on { animation: none !important; } }
.lp-hero .orb:nth-child(1) { top: -120px; left: 6%; width: min(32vw, 360px); height: min(32vw, 360px); background: var(--accent); }
.lp-hero .orb:nth-child(2) { top: -100px; right: 4%; width: min(28vw, 320px); height: min(28vw, 320px); background: #a855f7; }
.lp-hero .orb:nth-child(3) { top: 8%; left: 44%; width: min(24vw, 280px); height: min(24vw, 280px); background: rgba(59, 130, 246, 0.7); }
.lp-hero-inner { max-width: 880px; margin: 0 auto; padding: 120px 24px 96px; text-align: center; }
.lp-hero h1 { margin: 22px 0 0; font-size: clamp(2.3rem, 6.4vw, 4.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: #fff; }
.lp-lead { margin: 24px auto 0; max-width: 660px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: #b1b3be; }
.lp-actions { margin-top: 40px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lp-actions .btn-primary { box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3), 0 8px 10px -6px rgba(99, 102, 241, 0.3); }
.lp-stats { margin: 64px auto 0; max-width: 720px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-stats b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #fff; }
.lp-stats span { display: block; margin-top: 2px; font-size: 0.85rem; color: #87899a; }
@media (max-width: 600px) { .lp-stats { grid-template-columns: repeat(2, 1fr); } }
.lp-sec { padding: 88px 0; border-top: 1px solid rgba(36, 38, 51, 0.6); scroll-margin-top: 64px; }
.lp-sec-head { max-width: 640px; margin-bottom: 40px; }
.lp-sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-sec-head h2 { margin: 16px 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.lp-sec-head p { margin: 0; color: #87899a; font-size: 1.05rem; }
.lp-sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.lp-sec-row .lp-sec-head { margin-bottom: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { padding: 28px; border-radius: 22px; background: var(--bg-elev); border: 1px solid var(--border); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s; }
.feat:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.4); }
.feat h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.feat p { margin: 0; line-height: 1.6; color: #87899a; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.how { counter-reset: how; }
.how .feat { position: relative; }
.how .feat::before { counter-increment: how; content: counter(how); position: absolute; top: 22px; right: 26px; font-size: 3rem; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, 0.05); }
.ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.ic svg { width: 26px; height: 26px; }
.ic-accent { background: var(--accent-soft); color: #a5b4fc; }
.ic-violet { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.ic-green { background: rgba(34, 197, 94, 0.14); color: #4ade80; }
.ic-warn { background: rgba(245, 182, 66, 0.14); color: var(--warning); }
.ic-tg { background: rgba(34, 158, 217, 0.16); color: #5bc0eb; }
.ic-pink { background: rgba(236, 72, 153, 0.14); color: #f472b6; }

.amount { margin: 8px 0 4px; font-size: 3.4rem; font-weight: 900; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.amount small { font-size: 1.05rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price-card { position: relative; max-width: 460px; margin: 0 auto; padding: 34px; border-radius: 24px; background: var(--bg-elev); border: 1px solid rgba(99, 102, 241, 0.45); box-shadow: 0 30px 70px -30px rgba(99, 102, 241, 0.55); text-align: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 26px; text-align: left; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: #c9cad3; }
.ticks li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%; background: rgba(34, 197, 94, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
details.faq { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; transition: border-color 0.2s; }
details.faq[open] { border-color: var(--border-strong); }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--text-dim); font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--text-muted); margin: 0 0 18px; }
.lp-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 72px 32px; text-align: center; background: var(--bg-elev); border: 1px solid var(--border); }
.lp-cta .orb:nth-child(1) { top: -80px; left: -40px; width: 280px; height: 280px; background: var(--accent); }
.lp-cta .orb:nth-child(2) { bottom: -90px; right: -30px; width: 300px; height: 300px; background: #a855f7; }
.lp-cta .orb:nth-child(3) { top: 30%; left: 40%; width: 220px; height: 220px; background: rgba(59, 130, 246, 0.8); }
.lp-cta h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.lp-cta p { margin: 0 auto 32px; max-width: 560px; font-size: 1.1rem; color: #c3c5d0; }

/* ---------- панель: матовая шапка как у MUVSell — логотип, разделы, справа подписка и профиль ---------- */
/* как .container у MUVSell: на всю ширину экрана, отступ только по краям */
:root { --gutter: 40px; }
@media (max-width: 1100px) { :root { --gutter: 24px; } }
@media (max-width: 720px) { :root { --gutter: 16px; } }
.app-header .wrap { max-width: none; padding-inline: var(--gutter); }
.app-nav { display: flex; align-self: stretch; gap: 2px; margin: 0 auto; }
.app-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--text-muted); font-weight: 600; font-size: 0.93rem; white-space: nowrap; transition: color 0.2s; }
.app-nav a svg { width: 17px; height: 17px; flex: none; }
.app-nav a:hover { color: var(--text); text-decoration: none; }
.app-nav a.active { color: #fff; }
.app-nav a.active svg { color: #a5b4fc; }
.app-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 14px rgba(139, 92, 246, 0.9); }
.sub-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text); font-weight: 700; font-size: 0.85rem; white-space: nowrap; transition: border-color 0.2s; }
.sub-chip:hover { text-decoration: none; border-color: var(--accent); }
.sub-chip .dot { color: var(--success); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.sub-chip.bad { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }
.sub-chip.bad .dot { color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.top-user { border-radius: 50%; }
.top-user .ava { width: 36px; height: 36px; font-size: 0.95rem; transition: box-shadow 0.2s; }
.top-user:hover .ava, .top-user.active .ava { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.45); }
.ava { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; text-transform: uppercase; }
.main { flex: 1; max-width: none; padding: 32px var(--gutter) 64px; }
/* ноутбук: восемь разделов, подписка и аватар в одну строку не помещались (на 1366 px шапка была шире экрана) */
@media (max-width: 1480px) { .app-header .wrap { gap: 12px; } .app-nav a { padding: 0 9px; gap: 6px; font-size: 0.9rem; } }
@media (max-width: 1320px) and (min-width: 1151px) { .app-nav a svg { display: none; } }
/* планшет и телефон: разделы — второй строкой шапки, лентой с прокруткой */
@media (max-width: 1150px) {
  .app-header { height: auto; }
  .app-header .site-actions { margin-left: auto; }
  .app-header .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .app-nav { order: 3; flex: 1 1 100%; height: 46px; margin: 4px calc(-1 * var(--gutter)) 0; padding: 0 max(0px, calc(var(--gutter) - 14px)); overflow-x: auto; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .main { padding-block: 22px 48px; }
}
@media (max-width: 480px) { .app-header .logo-txt { display: none; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .eyebrow { padding: 5px 11px; font-size: 0.66rem; }
.page-head h1 { margin: 12px 0 8px; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.page-head p { margin: 0; max-width: 560px; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.pill-stats { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.pill-stats b { color: var(--text); }
.pill-stats .sep { width: 1px; height: 16px; background: var(--border-strong); }
.pill-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.pill-stats svg { width: 14px; height: 14px; }
.pill-stats .ok-text, .pill-stats .ok-text b { color: #4ade80; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.stack { display: grid; gap: 16px; align-content: start; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .panel { padding: 16px; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; }
.stat .ic { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
.stat .ic svg { width: 22px; height: 22px; }
.stat > div:last-child { min-width: 0; }
.stat .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.stat .value { font-size: 1.05rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

.pulse { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--text-dim); }
.pulse.on { background: var(--success); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); animation: pulse 2s infinite; }
.pulse.wait { background: var(--warning); }
.pulse.off { background: var(--danger); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0.05); } }
pre.logs { margin: 14px 0 0; padding: 14px; max-height: 380px; overflow: auto; white-space: pre-wrap; word-break: break-all; border-radius: 10px; background: #07080e; border: 1px solid var(--border); font: 12px/1.5 var(--mono); color: #b7b9c6; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 16px 0 8px; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
/* ---------- прокси (/proxy): покупка, выдача по шагам, карточка с данными, шаги после покупки ---------- */
.px-head-buy { display: grid; justify-items: end; gap: 6px; }
.px-head-buy small { font-size: 0.78rem; color: var(--text-dim); }
#px-warn { margin-bottom: 16px; }
.px-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 24px; margin-bottom: 16px; text-align: center; }
.px-empty .ic { margin: 0 0 8px; }
.px-empty h2 { margin: 0; font-size: 1.3rem; }
.px-empty p { max-width: 520px; margin: 0; }
.px-empty .ticks { margin: 16px 0 0; }
.px-progress { margin-bottom: 16px; }
/* шаги выдачи — дорожка: готово — зелёная галочка, текущий — крутится, дальше — пустой кружок; между ними линия */
.px-track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 16px; padding: 0; }
.px-track li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 0.82rem; color: var(--text-dim); }
.px-track li::before { content: ""; position: relative; z-index: 1; box-sizing: border-box; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); background: #11121d; }
.px-track li + li::after { content: ""; position: absolute; top: 12px; left: calc(-50% + 9px); right: calc(50% + 17px); height: 2px; border-radius: 2px; background: var(--border-strong); }
.px-track li.done + li::after { background: #4ade80; }
.px-track li.done { color: var(--text-muted); }
.px-track li.done::before { content: "✓"; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #0b0c12; background: #4ade80; border-color: #4ade80; box-shadow: 0 0 14px -2px rgba(34, 197, 94, 0.7); }
.px-track li.now { color: var(--text); font-weight: 600; }
.px-track li.now::before { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; box-shadow: 0 0 16px -2px rgba(139, 92, 246, 0.8); }
.px-track li.late::before { border-color: var(--warning); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .px-track li.now::before { animation: none; border-top-color: var(--accent); } }
@media (max-width: 700px) {
  .px-track { grid-template-columns: minmax(0, 1fr); }
  .px-track li { grid-template-columns: 26px 1fr; justify-items: start; align-items: center; text-align: left; }
  .px-track li + li::after { display: none; }
}
/* карточка прокси: слева адрес и срок (полоска — зелёная, за 3 дня до конца — красная), справа данные с копированием */
.px-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 24px; margin-bottom: 24px; }
.px-main { display: grid; align-content: center; justify-items: start; gap: 12px; padding-left: 18px; border-left: 3px solid var(--success); }
.px-card.soon .px-main { border-left-color: var(--danger); }
.px-addr { display: flex; align-items: baseline; gap: 10px; max-width: 100%; }
.px-flag { font-size: 0.8rem; font-weight: 800; color: var(--text-dim); }
.px-addr code { padding: 0; border: 0; background: none; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.px-left { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-muted); }
.px-left svg { width: 16px; height: 16px; }
.px-left b { color: #4ade80; }
.px-card.soon .px-left b { color: #f87171; }
.px-main .hint { margin: 0; }
.px-creds { display: grid; gap: 10px; align-content: start; }
.px-cap { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.px-line, .px-field { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 6px 6px 14px; border-radius: 12px; background: rgba(5, 6, 12, 0.55); border: 1px solid var(--border); }
.px-line code, .px-field code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; }
.px-line code { font-size: 0.95rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.px-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.px-field span { flex: none; font-size: 0.78rem; color: var(--text-dim); }
.px-field code { font-size: 0.86rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-line .icon-btn, .px-field .icon-btn { width: 32px; height: 32px; }
.icon-btn.copied { color: #4ade80; border-color: rgba(34, 197, 94, 0.5); }
@media (max-width: 900px) { .px-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .px-fields { grid-template-columns: minmax(0, 1fr); } }
/* что дальше — три шага; текущий подсвечен, выполненный — зелёная галочка */
.px-next-title { margin: 0 0 12px; font-size: 1.15rem; font-weight: 800; }
.px-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .px-next { grid-template-columns: minmax(0, 1fr); } }
.px-step { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(18px); transition: border-color 0.3s, box-shadow 0.3s; }
.px-step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); font-weight: 800; }
.px-step h3 { margin: 4px 0 0; font-size: 1rem; }
.px-step p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--text-muted); }
.px-step .btn { margin-top: 4px; }
.px-step.now { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 0 34px -12px rgba(139, 92, 246, 0.85); }
.px-step.now .n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 16px -4px rgba(139, 92, 246, 0.9); }
.px-step.done .n { color: transparent; border-color: transparent; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.px-step.done h3 { color: #86efac; }
/* окно покупки: что входит, сумма, способ оплаты */
.modal-sm { width: min(460px, calc(100% - 24px)); }
.px-buy .ticks { margin: 0 0 16px; }
.px-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; background: rgba(5, 6, 12, 0.5); border: 1px solid var(--border); color: var(--text-muted); }
.px-total b { font-size: 1.6rem; font-weight: 900; color: #fff; }
.px-pay { display: grid; gap: 8px; }
.px-buy > .hint { margin: 12px 0 0; text-align: center; }

/* ---------- дашборд: бот крупно (статус и кнопки), три плитки, журнал, настройки и шаги запуска ---------- */
.icon-btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); color: var(--text-muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn:disabled { opacity: 0.45; cursor: wait; }
.icon-btn svg { width: 17px; height: 17px; }
/* цвет свечения — от состояния бота: работает зелёным, ошибка красным, переходное — жёлтым */
.dash-hero { --c: var(--accent-2); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; padding: 20px 22px; margin-bottom: 16px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--border); }
.dash-hero[data-state="on"] { --c: var(--success); }
.dash-hero[data-state="off"] { --c: var(--danger); }
.dash-hero[data-state="wait"] { --c: var(--warning); }
.dash-hero .orb { opacity: 0.2; }
.dash-hero .orb:nth-child(1) { top: -150px; left: -90px; width: 280px; height: 280px; background: var(--c); transition: background 0.6s; }
.dash-hero .orb:nth-child(2) { bottom: -180px; right: 10%; width: 260px; height: 260px; background: var(--accent); }
.dh-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dh-ava { position: relative; flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 8px rgba(0, 0, 0, 0.25), 0 10px 24px -10px rgba(139, 92, 246, 0.8); }
.dh-ava svg { width: 24px; height: 24px; }
.dh-ava .pulse { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border: 3px solid var(--bg-elev); }
.dh-text { min-width: 0; }
.dh-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.dh-text h1 { margin: 1px 0 2px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.dh-text p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.dh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
/* панель-«пилюля»: журнал, настройки, бот в Telegram, обновить */
.dock { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong); }
.dock-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-muted); font: inherit; font-size: 0.86rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color 0.2s, background 0.2s; }
.dock-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.dock-btn:disabled { opacity: 0.5; cursor: wait; }
.dock-btn svg { width: 16px; height: 16px; flex: none; }
.dock-ic { width: 36px; padding: 0; justify-content: center; }
/* тонкий разделитель перед каждой видимой кнопкой, кроме первой */
.dock > :not([hidden]) ~ .dock-btn::before { content: ""; position: absolute; left: -2px; top: 10px; bottom: 10px; width: 1px; background: var(--border-strong); }
/* запуск — крупная пилюля; остановить — красная */
.btn-go, .btn-stop { height: 46px; padding: 0 22px; border-radius: 999px; font-size: 0.95rem; }
.btn-go svg, .btn-stop svg { width: 16px; height: 16px; }
.btn-stop { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.btn-stop:hover:not(:disabled) { border-color: var(--danger); box-shadow: 0 0 20px -6px rgba(239, 68, 68, 0.8); }
.dash-hero > .msg { grid-column: 1 / -1; margin: 0; }
@media (max-width: 900px) {
  .dash-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .dh-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .dock { width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 20px; }
  .btn-go, .btn-stop { flex: 1 1 auto; }
}
/* окно настроек (<dialog>): клик по затемнению закрывает */
.modal { width: min(720px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.modal::backdrop { background: rgba(5, 6, 12, 0.72); backdrop-filter: blur(6px); }
.modal > .panel { max-height: calc(100vh - 24px); overflow-y: auto; border-color: var(--border-strong); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85); }
.modal[open] > .panel { animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .modal[open] > .panel { animation: none; } }
/* плитки — как карточки преимуществ MUVSell: значок, подпись с точкой-состоянием, крупное значение, ссылка */
.dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .dash-tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { --c: var(--accent); display: flex; flex-direction: column; padding: 24px; border-radius: 22px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s; }
.tile:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.4); }
.tile.ok { --c: var(--success); }
.tile.warn { --c: var(--warning); }
.tile.bad { --c: var(--danger); }
.tile .ic { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile-label { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.tile:is(.ok, .warn, .bad) .tile-label::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.tile b { margin: 6px 0 4px; font-size: 1.35rem; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.tile small { flex: 1; font-size: 0.86rem; line-height: 1.55; color: var(--text-muted); }
.tile-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: #a5b4fc; }
.tile-go::after { content: "→"; transition: transform 0.2s; }
.tile:hover .tile-go::after { transform: translateX(3px); }
.tile.bad .tile-go { color: #fca5a5; }
.logs-panel { margin-bottom: 16px; }
.logs-panel pre.logs { margin: 0; }
.panel-title h2 svg { width: 18px; height: 18px; vertical-align: -3px; color: #a5b4fc; }
/* ---------- настройки (/settings): токен и пароль, «Токен принят», подсказка про Telegram ---------- */
.st-wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.st-wrap .kb-title { margin-bottom: 8px; }
.st-card { display: grid; gap: 4px; }
.st-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.st-head .ic { margin: 0; width: 48px; height: 48px; border-radius: 14px; }
.st-head .ic svg { width: 24px; height: 24px; }
.st-head h2 { margin: 2px 0 4px; font-size: 1.2rem; }
.st-head p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.st-card .field > label { align-items: baseline; }
.st-card .field > label a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.st-card .field > label a svg { width: 14px; height: 14px; }
/* правила пароля: серые, выполненное — зелёная галочка */
.pw-rules { list-style: none; display: grid; gap: 6px; margin: 6px 0 2px; padding: 0; }
.pw-rules li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--text-dim); transition: color 0.2s; }
.pw-rules li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong); box-sizing: border-box; transition: background 0.2s, border-color 0.2s; }
.pw-rules li.ok { color: #4ade80; }
.pw-rules li.ok::before { border-color: transparent; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.st-card .btn-block { margin-top: 10px; }
.st-ok { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: rgba(34, 197, 94, 0.35); background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), transparent 60%), var(--surface); }
.st-ok .ic { margin: 0; width: 46px; height: 46px; border-radius: 13px; }
.st-ok > div { flex: 1 1 220px; }
.st-ok b { display: block; color: #4ade80; }
.st-ok small { color: var(--text-muted); font-size: 0.86rem; }
.acc { padding: 0; overflow: hidden; }
.acc-head, .acc-row { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.acc-head { gap: 14px; padding: 18px 22px; }
.acc-head .ic { width: 40px; height: 40px; margin: 0; border-radius: 11px; }
.acc-head .ic svg { width: 20px; height: 20px; }
.acc-head b { flex: 1; font-size: 1.1rem; }
.acc-head > svg, .acc-row > svg:last-child { width: 18px; height: 18px; flex: none; color: var(--text-dim); transition: transform 0.2s; }
.acc-head[aria-expanded="false"] > svg { transform: rotate(-90deg); }
.acc-head[aria-expanded="false"] + .acc-body { display: none; }
.acc-body { display: grid; gap: 10px; padding: 0 22px 22px; }
.acc-intro { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(99, 102, 241, 0.3); }
.acc-intro h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1rem; }
.acc-intro h3 svg { width: 18px; height: 18px; color: #a5b4fc; }
.acc-intro p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.acc-item { border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border); transition: border-color 0.2s; }
.acc-item.open { border-color: var(--border-strong); }
.acc-row { padding: 14px 16px; }
.acc-row b { flex: 1; }
.acc-row > svg { width: 18px; height: 18px; flex: none; color: #a5b4fc; }
.acc-item.open .acc-row > svg:last-child { transform: rotate(180deg); }
.acc-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 0.85rem; font-weight: 800; }
.acc-item.done .acc-n { color: transparent; border-color: transparent; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.acc-content { display: none; padding: 0 18px 18px 56px; font-size: 0.93rem; color: var(--text-muted); }
.acc-item.open .acc-content { display: block; }
.acc-content p { margin: 0 0 12px; }
.acc-content b { color: var(--text); }
.acc-content .ok-text { color: #4ade80; }
.acc-box { margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.acc-box p { margin: 0; }
.acc-box hr { margin: 12px 0; border: 0; border-top: 1px solid var(--border); }
.acc-box.dark { background: #07080e; }
.acc-box.ok { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.3); color: #86efac; }
.acc-box.warn { background: rgba(245, 182, 66, 0.08); border-color: rgba(245, 182, 66, 0.3); color: #f5d48a; }
.acc-done { padding: 16px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; text-align: center; }
.acc-done span { display: block; font-size: 0.88rem; font-weight: 500; opacity: 0.85; }
@media (max-width: 560px) { .acc-head { padding: 16px; } .acc-body { padding: 0 12px 12px; } .acc-content { padding-left: 16px; } }

/* ---------- плагины ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.search { position: relative; flex: 0 1 220px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.search .input { padding: 9px 12px 9px 35px; font-size: 0.85rem; border-radius: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 9px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-muted); font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on { color: #fff; background: var(--grad); border-color: transparent; }
/* карточка каталога — компактная: плитка с эмодзи (оттенок --h задаёт pluginCard), название и раздел, 2 строки, подвал */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pl-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: inherit; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s; }
a.pl-card:hover { text-decoration: none; }
.pl-card:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.45); box-shadow: 0 18px 36px -18px rgba(99, 102, 241, 0.45); }
.pl-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-ic { --h: 240; width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; background: hsl(var(--h) 70% 60% / 0.14); border: 1px solid hsl(var(--h) 70% 65% / 0.3); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pl-card:hover .pl-ic { transform: scale(1.08) rotate(-4deg); }
.pl-title { flex: 1; min-width: 0; }
.pl-card h3 { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-cat { display: block; margin-top: 2px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.pl-pin { align-self: flex-start; font-size: 0.85rem; }
.pl-card p { flex: 1; margin: 0; min-height: 3.1em; font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.76rem; font-weight: 700; }
.pl-free { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; }
.pl-free::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pl-go { color: #818cf8; }
a.pl-card .pl-go::after { content: " →"; }
/* закреплённый (MUVSell Rent) — всегда первый и выделен */
.pl-card.pinned { border-color: rgba(139, 92, 246, 0.5); background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), transparent 55%), var(--surface); }
.sort { width: auto; margin-left: auto; padding: 9px 34px 9px 14px; appearance: none; cursor: pointer; font-size: 0.8rem; font-weight: 700; border-radius: 11px; background: var(--bg-elev) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a9fb0' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 13px center; }
/* телефон: поиск и сортировка в строку, разделы — лентой с прокруткой */
@media (max-width: 760px) {
  .search { flex: 1 1 160px; }
  .chips { order: 1; flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
/* страница плагина: шапка, «Важно знать», статья-руководство и боковые карточки (раскладка — как у funpaybot) */
.back { margin-bottom: 24px; }
.pd-hero { position: relative; display: flex; align-items: center; gap: 28px; padding: 36px 40px; margin-bottom: 20px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(520px 260px at 88% 0%, rgba(139, 92, 246, 0.16), transparent 70%), radial-gradient(420px 220px at 0% 100%, rgba(99, 102, 241, 0.1), transparent 70%), var(--surface); border: 1px solid var(--border); }
.pd-ic { width: 112px; height: 112px; flex: none; border-radius: 28px; display: grid; place-items: center; font-size: 3.4rem; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -20px rgba(0, 0, 0, 0.8); }
.pd-hero-main { min-width: 0; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-badges .badge { padding: 6px 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.pd-badges #pd-ver { text-transform: none; letter-spacing: 0.02em; }
.pd-hero h1 { margin: 14px 0 0; font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; color: #fff; overflow-wrap: anywhere; }
.pd-hero-side { margin-left: auto; align-self: flex-start; display: grid; gap: 10px; justify-items: end; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border-strong); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.pill svg { width: 16px; height: 16px; color: #a5b4fc; }
.uid { font-size: 0.75rem; color: var(--text-dim); background: var(--bg-elev); border-color: var(--border); }
@media (max-width: 760px) {
  .pd-hero { flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; }
  .pd-hero-side { margin-left: 0; justify-items: start; }
  .pd-ic { width: 84px; height: 84px; border-radius: 22px; font-size: 2.6rem; }
}

.pd-know { margin-bottom: 20px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(245, 182, 66, 0.35); background: linear-gradient(180deg, rgba(245, 182, 66, 0.09), rgba(245, 182, 66, 0.02)), var(--bg-elev); }
.pd-know-head { display: flex; align-items: center; gap: 14px; padding: 20px 28px; border-bottom: 1px solid rgba(245, 182, 66, 0.2); }
.pd-know-head svg { width: 26px; height: 26px; flex: none; color: var(--warning); }
.pd-know-head b { display: block; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.pd-know-head span { font-size: 0.88rem; color: #d9b26a; }
.pd-know-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; padding: 26px 28px; }
.pd-fact { display: flex; gap: 16px; }
.pd-fact .ic { width: 46px; height: 46px; margin: 0; border-radius: 12px; }
.pd-fact .ic svg { width: 22px; height: 22px; }
.pd-fact b { display: block; margin-bottom: 4px; color: #fff; }
.pd-fact p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.pd-fact em { font-style: normal; font-weight: 700; color: #4ade80; }
.pd-know-note { display: flex; gap: 12px; align-items: baseline; margin: 0 28px 26px; padding: 14px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }
.pd-know-note .dot { color: var(--warning); }
.pd-know-note b { color: #fff; }
@media (max-width: 760px) { .pd-know-grid { grid-template-columns: 1fr; padding: 20px; } .pd-know-head { padding: 18px 20px; } .pd-know-note { margin: 0 20px 20px; } }

.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.pd-side { position: sticky; top: 24px; display: grid; gap: 16px; }
@media (max-width: 1100px) { .pd-grid { grid-template-columns: 1fr; } .pd-side { position: static; order: -1; } }
.pd-article { border-radius: 24px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.pd-article-head, .side-card-head { display: flex; align-items: center; gap: 12px; padding: 20px 28px; border-bottom: 1px solid var(--border); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.pd-article-head svg, .side-card-head svg { width: 22px; height: 22px; color: #a5b4fc; }
.side-card { border-radius: 24px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.side-card-head { padding: 18px 24px; font-size: 0.92rem; }
.side-card-body { padding: 22px 24px 24px; }
.side-card .amount { margin: 0 0 14px; font-size: 2.8rem; }
.pd-price-note { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); font-size: 0.85rem; line-height: 1.55; color: var(--text-muted); }
.side-card-row { display: flex; gap: 16px; padding: 22px 24px; }
.side-card-row .ic { width: 50px; height: 50px; margin: 0; border-radius: 14px; }
.side-card-row b { display: block; margin-bottom: 4px; color: #fff; }
.side-card-row p { margin: 0; font-size: 0.85rem; line-height: 1.55; color: var(--text-muted); }

/* текст руководства: как статья — крупные заголовки с эмодзи, цветные маркеры, команды плашками, выноски */
.guide { padding: 8px 40px 40px; }
.guide h2 { margin: 26px 0 18px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.guide h3 { margin: 44px 0 18px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.guide h4 { margin: 32px 0 14px; font-size: 1.08rem; font-weight: 800; color: #fff; }
.guide p { margin: 0 0 16px; line-height: 1.7; color: var(--text-muted); }
.guide p.lead { font-size: 1.05rem; color: #b9bbc8; }
.guide ul, .guide ol { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 10px; line-height: 1.65; color: var(--text-muted); }
.guide li { padding-left: 4px; }
.guide li::marker { color: #818cf8; font-weight: 800; }
.guide b { color: var(--text); }
.guide code, .pd-fact code { padding: 3px 8px; border-radius: 8px; font-size: 0.86em; white-space: nowrap; color: #a5b4fc; background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.28); }
.guide blockquote { margin: 0 0 18px; padding: 14px 22px; border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; background: rgba(99, 102, 241, 0.07); line-height: 1.65; color: var(--text-muted); }
.guide details.faq { margin-bottom: 10px; }
.cmd-list { display: grid; gap: 8px; margin-bottom: 18px; }
.cmd { display: flex; gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); line-height: 1.55; }
.cmd > code { flex: none; }
@media (max-width: 560px) { .guide { padding: 4px 18px 24px; } .pd-article-head { padding: 18px; } .cmd { flex-direction: column; gap: 6px; } }
.empty { padding: 56px 24px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: 16px; }
.empty b { display: block; margin-bottom: 6px; font-size: 1.1rem; color: var(--text); }

/* ---------- база знаний ---------- */
.kb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kb-step { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.kb-step:hover { border-color: var(--border-strong); }
.kb-step .ic { margin: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: #a5b4fc; }
.kb-step .ic svg { width: 22px; height: 22px; }
.kb-step b { display: block; font-size: 1rem; }
.kb-step small { color: var(--text-muted); font-size: 0.8rem; }
.kb-step.on { background: var(--grad); border-color: transparent; box-shadow: 0 16px 32px -14px rgba(99, 102, 241, 0.85); }
.kb-step.on small { color: rgba(255, 255, 255, 0.8); }
.kb-step.on .ic { background: rgba(255, 255, 255, 0.18); color: #fff; }
.kb-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.kb-head .ic { margin: 0; }
.kb-head h2 { margin: 2px 0 6px; font-size: 1.5rem; font-weight: 800; }
.kb-head p { margin: 0; color: var(--text-muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { color: #fff; background: var(--accent-soft); border-color: rgba(99, 102, 241, 0.45); }
.kb-title { margin: 8px 0 28px; text-align: center; }
.kb-title h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; }
.kb-title p { max-width: 560px; margin: 0 auto; color: var(--text-muted); }
.kb-label { margin-bottom: 12px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.kb-sub { margin: 26px 0 6px; font-size: 1.2rem; font-weight: 800; }
.kb-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; padding: 18px 20px; margin-bottom: 12px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border); }
.kb-card.accent { border-color: rgba(99, 102, 241, 0.45); background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent 60%), var(--bg-elev); }
.kb-card .n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.kb-card > :not(.n) { grid-column: 2; }
.kb-card h3 { margin: 5px 0 4px; font-size: 1.05rem; }
.kb-card p { margin: 0; color: var(--text-muted); }
.kb-card p + p { margin-top: 8px; }
.kb-card ol, .kb-card ul { margin: 2px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-muted); }
.kb-card li::marker { color: #818cf8; font-weight: 800; }
.kb-box { display: flex; gap: 12px; margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.kb-box > svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #a5b4fc; }
.kb-box ol { margin: 0; }
.codeblock { margin: 10px 0; padding: 14px 16px; border-radius: 12px; background: #07080e; border: 1px solid var(--border); font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--text); }
.codeblock .cm { color: var(--text-dim); }
.codeblock .ok { color: #4ade80; }
/* выноски: синяя — совет, жёлтая — правило, красная — «важно» */
.callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 12px; border-radius: 12px; border: 1px solid; font-size: 0.92rem; line-height: 1.6; }
.callout > svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.callout p { margin: 0; }
.callout > b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.callout > b svg { width: 16px; height: 16px; }
.callout ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.callout.blue { background: rgba(99, 102, 241, 0.08); border-color: rgba(99, 102, 241, 0.3); color: #c7d2fe; }
.callout.amber { background: rgba(245, 182, 66, 0.08); border-color: rgba(245, 182, 66, 0.3); color: #f5d48a; }
.callout.red { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.3); color: #fecaca; }
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.callouts .callout { display: block; margin: 0; }
@media (max-width: 760px) { .callouts { grid-template-columns: 1fr; } }
/* сборщик строки прокси */
.conv { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: center; gap: 16px; margin: 14px 0 4px; }
.conv-src, .conv-out { padding: 18px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border); }
.conv-src { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.conv-cap { grid-column: 1 / -1; margin-bottom: 4px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.conv-src label { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.conv-src :is(input, select) { width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 0.9rem var(--mono); outline: none; }
.conv-src :is(input, select):focus { border-color: var(--accent); }
.conv-arrow { display: grid; justify-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.conv-arrow svg { width: 28px; height: 28px; color: #a5b4fc; }
.conv-fmt { display: inline-block; margin: 6px 0 10px; }
.conv-result { min-height: 52px; padding: 14px; margin-bottom: 12px; border-radius: 10px; background: #07080e; border: 1px solid var(--border); font: 600 15px/1.5 var(--mono); word-break: break-all; }
.conv-result .dim { color: var(--text-dim); }
.conv-out p.hint { margin: 12px 0 0; }
.c-blue, .conv-src input.c-blue { color: #7dd3fc; }
.c-red, .conv-src input.c-red { color: #fca5a5; }
@media (max-width: 900px) { .conv { grid-template-columns: 1fr; } .conv-arrow svg { transform: rotate(90deg); } }
@media (max-width: 420px) { .conv-src { grid-template-columns: 1fr; } }

/* «Свой IP» в базе знаний — карточка встроенного сервиса */
.ip-promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 26px; margin-bottom: 14px; border-radius: 18px; border: 1px solid rgba(99, 102, 241, 0.4); background: radial-gradient(420px 200px at 90% 0%, rgba(139, 92, 246, 0.2), transparent 70%), linear-gradient(135deg, rgba(99, 102, 241, 0.12), transparent 60%), var(--bg-elev); }
.ip-promo > div { flex: 1 1 320px; }
.ip-promo-tag { display: inline-block; padding: 4px 10px; margin-bottom: 10px; border-radius: 8px; background: var(--accent-soft); color: #a5b4fc; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ip-promo h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; color: #fff; }
.ip-promo p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- поддержка: тикеты ---------- */
.sup-guest { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.sup-guest .ic { margin: 0; }
.sup-guest > div { flex: 1 1 260px; }
.sup-guest h2 { margin: 0 0 4px; font-size: 1.1rem; }
.sup-guest p { margin: 0; font-size: 0.9rem; }
.sup-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 24px; }
@media (max-width: 900px) { .sup-grid { grid-template-columns: minmax(0, 1fr); } }
.tk-list { display: grid; gap: 8px; max-height: 560px; overflow-y: auto; }
.tk-item { display: grid; gap: 4px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s; }
.tk-item:hover { border-color: var(--border-strong); }
.tk-item.on { border-color: rgba(99, 102, 241, 0.55); background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), transparent 70%), var(--bg-elev); }
.tk-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk-item-top b { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item small { font-size: 0.76rem; color: var(--text-dim); }
.tk-empty { display: grid; justify-items: center; gap: 4px; padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.tk-empty svg { width: 28px; height: 28px; color: var(--text-dim); margin-bottom: 4px; }
.tk-empty b { color: var(--text); }
.tk-form-head { display: flex; gap: 14px; margin-bottom: 18px; }
.tk-form-head .ic { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.tk-form-head .ic svg { width: 22px; height: 22px; }
.tk-form-head h2 { margin: 2px 0 4px; font-size: 1.15rem; }
.tk-form-head p { margin: 0; font-size: 0.86rem; }
.tk-select { width: 100%; margin: 0; }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.tk-head b { display: block; font-size: 1.05rem; color: #fff; }
.tk-head small { color: var(--text-dim); font-size: 0.8rem; }
.tk-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px 14px; }
.tk-bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border); }
.tk-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.16)); border-color: rgba(99, 102, 241, 0.4); border-bottom-right-radius: 4px; }
.tk-bubble.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.tk-bubble.auto { border-style: dashed; }
.tk-bubble b { display: block; margin-bottom: 2px; font-size: 0.74rem; color: #a5b4fc; }
.tk-bubble p { margin: 0; font-size: 0.92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-bubble small { display: block; margin-top: 4px; font-size: 0.7rem; color: var(--text-dim); text-align: right; }
.tk-reply { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.tk-reply .msg { margin: 0; }
.sup-sub { margin: 4px 0 12px; font-size: 1rem; font-weight: 800; }
.sup-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sup-contact { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color 0.2s; }
.sup-contact:hover { text-decoration: none; border-color: rgba(99, 102, 241, 0.45); }
.sup-contact .ic { margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.sup-contact .ic svg { width: 20px; height: 20px; }
.sup-contact b { display: block; font-size: 0.95rem; }
.sup-contact small { color: var(--text-muted); font-size: 0.8rem; }
.adm-tickets { margin-top: 16px; }
.adm-grid { margin-bottom: 0; }

/* ---------- профиль ---------- */
.pf-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 960px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
.pf-card { display: grid; justify-items: center; gap: 10px; padding: 28px 22px 22px; text-align: center; box-shadow: inset 0 3px 0 #8b5cf6; }
.pf-ava { padding: 4px; border-radius: 50%; background: var(--grad); box-shadow: 0 12px 30px -12px rgba(139, 92, 246, 0.8); }
.pf-ava span { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: #fff; font-size: 2.2rem; font-weight: 900; text-transform: uppercase; }
.pf-name { font-size: 1.5rem; font-weight: 900; color: #fff; overflow-wrap: anywhere; }
.pf-email { width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 0.85rem; background: var(--bg-elev); border-color: var(--border); overflow-wrap: anywhere; }
.pf-id { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--text-dim); font: inherit; font-size: 0.82rem; cursor: pointer; }
.pf-id:hover { color: var(--text); }
.pf-id svg { width: 14px; height: 14px; }
.pf-since { color: var(--text-dim); font-size: 0.78rem; }
.pf-link, .pf-doc { display: flex; align-items: center; gap: 14px; color: var(--text); transition: border-color 0.2s; }
.pf-link:hover, .pf-doc:hover, .pf-feature:hover { text-decoration: none; border-color: rgba(99, 102, 241, 0.45); }
.pf-link .ic, .pf-doc .ic { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.pf-link .ic svg, .pf-doc .ic svg { width: 20px; height: 20px; }
.pf-link > span:nth-child(2), .pf-doc > span:nth-child(2) { flex: 1; }
.pf-link b, .pf-doc b { display: block; }
.pf-link small, .pf-doc small { color: var(--text-muted); font-size: 0.82rem; }
.pf-link > svg:last-child { width: 18px; height: 18px; color: var(--text-dim); }
.pf-feature { position: relative; display: flex; gap: 16px; overflow: hidden; color: var(--text); transition: border-color 0.2s; }
.pf-feature.violet { background: radial-gradient(420px 200px at 100% 0%, rgba(139, 92, 246, 0.18), transparent 70%), var(--surface); }
.pf-feature .ic { margin: 0; width: 46px; height: 46px; border-radius: 12px; }
.pf-feature .ic svg { width: 22px; height: 22px; }
.pf-feature > div { position: relative; z-index: 1; }
.pf-feature h2 { margin: 2px 0 6px; font-size: 1.15rem; }
.pf-feature p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.92rem; }
.pf-more { color: #a5b4fc; font-weight: 700; font-size: 0.9rem; }
.pf-bg { position: absolute; right: 18px; top: 50%; width: 96px; height: 96px; transform: translateY(-50%); color: rgba(255, 255, 255, 0.05); }
.pf-sec { margin-bottom: 10px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); }
.pf-sec summary, .pf-sec-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; list-style: none; cursor: pointer; }
.pf-sec summary::-webkit-details-marker { display: none; }
.pf-sec-row { margin-bottom: 10px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); cursor: default; }
.pf-sec .ic, .pf-sec-row .ic { margin: 0; width: 40px; height: 40px; border-radius: 11px; }
.pf-sec .ic svg, .pf-sec-row .ic svg { width: 19px; height: 19px; }
.pf-sec summary > span:nth-child(2), .pf-sec-row > span:nth-child(2) { flex: 1; min-width: 0; }
.pf-sec b, .pf-sec-row b { display: block; font-size: 0.95rem; }
.pf-sec small, .pf-sec-row small { color: var(--text-muted); font-size: 0.8rem; }
.pf-sec[open] summary .btn { visibility: hidden; }
.pf-pw { padding: 4px 16px 16px; }
.pf-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .pf-sec summary, .pf-sec-row { flex-wrap: wrap; } }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
th { background: var(--surface-2); color: var(--text-dim); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: 0; }
dl.info { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 0; }
dl.info dt { color: var(--text-dim); font-size: 0.9rem; }
dl.info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- вход ---------- */
.auth { flex: 1; display: grid; place-items: center; padding: 48px 16px; position: relative; isolation: isolate; overflow: hidden; }
.auth .orb:nth-child(1) { top: 8%; left: 14%; width: 300px; height: 300px; background: var(--accent); opacity: 0.22; }
.auth .orb:nth-child(2) { bottom: 6%; right: 12%; width: 280px; height: 280px; background: #a855f7; opacity: 0.22; }
.auth .orb:nth-child(3) { display: none; }
.auth-box { width: 100%; max-width: 440px; text-align: center; }
.auth-box h1 { margin: 22px 0 6px; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.auth-box h1 + p { color: var(--text-muted); margin-bottom: 28px; }
.auth-box form { text-align: left; }
.auth-alt { margin-top: 20px; color: var(--text-muted); font-size: 0.92rem; }
.auth-alt button { padding: 0; border: 0; background: none; color: #818cf8; font: inherit; font-weight: 600; cursor: pointer; }
.auth-alt a { display: inline-block; margin-top: 10px; }

/* ---------- документы ---------- */
.legal { max-width: 820px; margin: 48px auto; padding: 0 24px; }
.legal h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; color: #fff; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; }
.legal p, .legal li { color: #c3c5d0; }

/* ---------- тарифы: уведомление в кабинете, карточки PRO / START, цены плагинов ---------- */
/* уведомление сверху панели: пробный период кончается, подписка кончилась (app.js notice) */
.notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; border: 1px solid rgba(99, 102, 241, 0.4); background: var(--accent-soft); color: #c7d2fe; }
.notice svg { width: 20px; height: 20px; flex: none; }
.notice p { flex: 1 1 260px; margin: 0; font-size: 0.92rem; }
.notice b { color: #fff; }
.notice.warn { border-color: rgba(245, 182, 66, 0.4); background: rgba(245, 182, 66, 0.1); color: #fde68a; }
.notice.bad { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); color: #fecaca; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 16px; }
.plan-card { display: flex; flex-direction: column; position: relative; }
.plan-card.featured { border-color: rgba(99, 102, 241, 0.55); box-shadow: 0 30px 70px -36px rgba(99, 102, 241, 0.7); }
.plan-card .amount { font-size: 2.6rem; }
.plan-card .ticks { margin: 18px 0; flex: 1; }
.plan-card .hint { margin: 0 0 12px; }
.plan-tag { position: absolute; top: 20px; right: 20px; }
.plans-lp { max-width: 900px; margin: 0 auto; text-align: left; }
.plans-lp .price-card { max-width: none; margin: 0; text-align: left; display: flex; flex-direction: column; }
.plans-lp .price-card .ticks { flex: 1; }
.plans-lp h3 { margin: 16px 0 0; font-size: 1.3rem; font-weight: 800; color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: 0.9rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
/* карточка плагина со своими кнопками: ссылка растянута на всю карточку, кнопки — поверх неё */
.pl-card { position: relative; }
.pl-card h3 a { color: inherit; }
.pl-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pl-card h3 a:hover { text-decoration: none; }
.pl-foot .btn, .pl-foot a { position: relative; z-index: 1; }
.pl-price { display: inline-flex; align-items: baseline; gap: 6px; color: #fff; font-size: 0.9rem; }
.pl-price small { color: var(--text-dim); font-weight: 600; font-size: 0.7rem; }
.pl-state { color: var(--text-muted); }
.pl-state.ok { color: #4ade80; }
.pl-state.warn { color: var(--warning); }
.pl-pro { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #a5b4fc; }
.pl-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-left: auto; }
.pl-foot { flex-wrap: wrap; row-gap: 8px; } /* «Бесплатно · Установлен · Подключить» в узкой карточке — кнопки переносятся, а не вылезают */
/* поддержка: вкладки, частые вопросы по разделам, обращения со скриншотами */
.sup-tabs { margin-bottom: 16px; }
.sup-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.7rem; }
.sup-tab[hidden] { display: none; }
.sup-search { display: flex; margin: 0 0 16px; }
.sup-search .input { width: 100%; }
.faq-cats { display: grid; gap: 12px; }
details.faq-cat { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elev); padding: 0 16px; }
details.faq-cat > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
details.faq-cat > summary::-webkit-details-marker { display: none; }
.faq-cat-head { display: grid; gap: 4px; }
.faq-cat-head b { color: #fff; font-size: 1rem; }
.faq-cat-head small { color: var(--text-dim); font-size: 0.82rem; }
.faq-n { flex: none; color: var(--text-dim); font-size: 0.8rem; font-weight: 700; }
details.faq-cat[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
details.faq-cat > details.faq { margin-bottom: 10px; background: var(--surface); }
.tk-start { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 16px; }
.tk-start .ic { width: 64px; height: 64px; border-radius: 50%; margin: 0; }
.tk-start .ic svg { width: 28px; height: 28px; }
.tk-start h2 { margin: 6px 0 0; color: #fff; }
.tk-files { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-files:empty { display: none; }
.tk-file { position: relative; }
.tk-file img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-strong); }
.tk-file .icon-btn { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; }
.tk-shots { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.tk-shots img { max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--border-strong); display: block; }
.tk-form { display: grid; gap: 12px; }
.tk-form .callout { margin: 0; }
.tk-form [data-attach] { justify-self: start; }
/* цвета категорий цен (карточка плагина, легенда) — неон в тон индиго–фиолетовому: 150 ₽ — розово-фуксиевый,
   100 ₽ — фиолетовый, 50 ₽ — голубой, бесплатные — бирюзовый. Карточка остаётся тёмной: цвет — полоска сверху,
   свечение в углу, цена и подсветка при наведении */
.tier-a { --tc: #f472b6; --tc2: #c084fc; --tc-rgb: 244, 114, 182; }
.tier-b { --tc: #a78bfa; --tc2: #818cf8; --tc-rgb: 167, 139, 250; }
.tier-c { --tc: #38bdf8; --tc2: #818cf8; --tc-rgb: 56, 189, 248; }
.tier-free { --tc: #2dd4bf; --tc2: #34d399; --tc-rgb: 45, 212, 191; }
.pl-card:is(.tier-a, .tier-b, .tier-c, .tier-free) { border-color: rgba(var(--tc-rgb), 0.16); background: radial-gradient(120% 90% at 100% 0%, rgba(var(--tc-rgb), 0.09), transparent 55%), var(--surface); }
.pl-card:is(.tier-a, .tier-b, .tier-c, .tier-free)::after { content: ""; position: absolute; top: -1px; left: 18px; right: 40%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--tc), var(--tc2) 55%, transparent); box-shadow: 0 0 12px rgba(var(--tc-rgb), 0.7); pointer-events: none; }
.pl-card:is(.tier-a, .tier-b, .tier-c, .tier-free):hover { border-color: rgba(var(--tc-rgb), 0.45); box-shadow: 0 18px 36px -18px rgba(var(--tc-rgb), 0.45); }
.pl-card:is(.tier-a, .tier-b, .tier-c, .tier-free) .pl-price { background: linear-gradient(90deg, var(--tc), var(--tc2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.pl-card.tier-free .pl-free, .pl-card.tier-free .pl-state.ok { color: var(--tc); }
.glass .pl-card:is(.tier-a, .tier-b, .tier-c, .tier-free) { --neon: linear-gradient(160deg, rgba(var(--tc-rgb), 0.85), transparent 40%, transparent 72%, rgba(var(--tc-rgb), 0.3)); }
.glass .pl-card:is(.tier-a, .tier-b, .tier-c, .tier-free):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 40px -12px rgba(var(--tc-rgb), 0.6), 0 24px 50px -30px rgba(0, 0, 0, 0.9); }
.pl-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.pl-tier { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); font-size: 0.76rem; font-weight: 700; color: var(--text-muted); }
.pl-tier i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--tc), var(--tc2)); box-shadow: 0 0 10px -1px var(--tc); }
.plan-card { cursor: pointer; }
.plan-info h3, #plan-dlg h3 { margin: 16px 0 6px; font-size: 1rem; color: #fff; }
.plan-info .ticks { margin: 8px 0; }
/* страница прокси: шапка с покупкой, список карточек — у каждой свой срок */
.px-top { margin-bottom: 16px; }
.px-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.px-h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: #fff; }
.px-h1 svg { width: 30px; height: 30px; color: #a5b4fc; }
.px-top .callout { margin: 16px 0 0; }
.px-list { display: grid; gap: 16px; margin-bottom: 16px; }
.px-list .px-card { margin-bottom: 0; }
.px-card.live .px-main { border-left-color: var(--success); }
.px-card.going .px-main { border-left-color: var(--warning); }
.px-card.expired .px-main { border-left-color: var(--danger); }
.px-card.expired .px-left b { color: #f87171; }
.px-addr code.strike { text-decoration: line-through; color: var(--text-muted); }
.px-card .px-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .px-card { grid-template-columns: 1fr; } }
/* окно оплаты: расчёт и бонусы */
.pay-lines { margin: 4px 0 12px; }
.pay-lines dd { text-align: right; font-weight: 700; }
.pay-lines dd.minus { color: #4ade80; }
.pay-bonus { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.9rem; color: var(--text); cursor: pointer; }
/* партнёрская программа */
.ref-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-balance { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ref-balance .ic { width: 52px; height: 52px; border-radius: 14px; margin: 0; }
.ref-balance small { display: block; color: var(--text-muted); font-size: 0.85rem; }
.ref-balance b { font-size: 2rem; font-weight: 900; color: #fff; }
.ref-code { padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; background: rgba(5, 6, 12, 0.45); border: 1px solid var(--border); }
.ref-code-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.ref-code-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ref-code-row code { padding: 0; border: 0; background: none; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.18em; color: #a5b4fc; }
.ref-code form { margin-top: 10px; }
.ref-code form .input { flex: 1; min-width: 0; }
.ref-side { display: grid; gap: 16px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ref-stat { display: grid; justify-items: center; gap: 6px; text-align: center; }
.ref-stat .ic { width: 46px; height: 46px; border-radius: 50%; margin: 0 0 6px; }
.ref-stat b { font-size: 1.9rem; font-weight: 900; color: #fff; }
.ref-stat small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.ref-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.ref-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.ref-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: #a5b4fc; font-weight: 800; }
.ref-steps b { color: #fff; }
.ref-steps span { color: var(--text-muted); font-size: 0.88rem; }
.ref-plus { color: #4ade80; }
.ref-minus { color: #fca5a5; }
/* админка: вкладки, правка цен */
.adm-tabs { margin-bottom: 16px; }
.adm-tab[hidden] { display: none; }
.adm-price select, .adm-price input[type=number] { width: auto; min-width: 0; padding: 6px 8px; font-size: 0.8rem; }
.adm-price input[type=number] { width: 90px; }
.adm-card { margin-top: 16px; }
.adm-card h3 { margin: 18px 0 8px; font-size: 0.95rem; }

/* ==========================================================================
   Тема панели «стекло и неон» — <body class="glass"> в app.html. Убрать класс — вернётся обычная тёмная.
   Живой фон из размытых пятен, полупрозрачные карточки с размытием, неоновая рамка-градиент и светящиеся кнопки.
   ========================================================================== */
.glass {
  --surface: rgba(22, 24, 40, 0.5); --bg-elev: rgba(14, 15, 28, 0.5); --surface-2: rgba(48, 50, 74, 0.45);
  --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.15);
  --neon: linear-gradient(135deg, rgba(129, 140, 248, 0.7), rgba(192, 132, 252, 0.12) 38%, rgba(255, 255, 255, 0) 62%, rgba(168, 85, 247, 0.55));
}
.app-bg { display: none; }
.glass .app-bg { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px; }
.glass .app-bg span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.42; animation: drift 18s ease-in-out infinite; }
.glass .app-bg span:nth-child(1) { width: 46vw; height: 46vw; top: -20vw; left: -12vw; background: #4f46e5; }
.glass .app-bg span:nth-child(2) { width: 40vw; height: 40vw; top: 22%; right: -16vw; background: #9333ea; animation-duration: 23s; animation-direction: reverse; }
.glass .app-bg span:nth-child(3) { width: 34vw; height: 34vw; bottom: -18vw; left: 28%; background: #2563eb; opacity: 0.28; animation-duration: 28s; }
@media (prefers-reduced-motion: reduce) { .glass .app-bg span { animation: none; } }
.glass .site-header { background: rgba(12, 13, 24, 0.5); border-bottom-color: rgba(255, 255, 255, 0.08); box-shadow: 0 1px 0 rgba(139, 92, 246, 0.22); }

/* стекло: размытие того, что под карточкой, и блик по верхнему краю */
.glass :is(.panel, .tile, .dash-hero, .pl-card, .toolbar, .pill-stats, .kb-step, .pd-hero, .pd-know, .pd-article, .side-card, .sup-contact) {
  backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}
/* неоновая рамка — градиент по краю (маска оставляет 1px); своя рамка прозрачная, чтобы не двоилась */
.glass :is(.panel, .tile, .dash-hero, .pl-card) { position: relative; border-color: transparent; }
.glass :is(.panel, .tile, .dash-hero, .pl-card)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--neon); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.55; transition: opacity 0.3s;
}
.glass :is(.tile, .pl-card):hover::before, .glass .pl-card.pinned::before { opacity: 1; }
.glass :is(.tile, .pl-card):hover { border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 40px -10px rgba(139, 92, 246, 0.65), 0 24px 50px -30px rgba(0, 0, 0, 0.9); }
.glass .pl-card.pinned { background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), transparent 55%), var(--surface); }
/* статус бота светится цветом состояния */
.glass .dash-hero .orb { opacity: 0.32; }
.glass .dh-ava .pulse { border-color: #10111c; }
.glass .tile:is(.ok, .warn, .bad) .ic { box-shadow: 0 0 22px -6px var(--c); }

/* кнопки — пилюли: основная неоновая, по наведению пробегает блик; остальные стеклянные */
.glass .btn { border-radius: 999px; padding-inline: 18px; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); }
.glass .btn-sm { padding-inline: 14px; }
.glass .btn:hover:not(:disabled) { border-color: rgba(167, 139, 250, 0.7); box-shadow: 0 0 18px -6px rgba(139, 92, 246, 0.8); }
.glass .btn-primary { position: relative; overflow: hidden; isolation: isolate; background: var(--grad); border-color: rgba(196, 181, 253, 0.45); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 8px 28px -6px rgba(139, 92, 246, 0.8); }
.glass .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s ease; }
.glass .btn-primary:hover:not(:disabled)::after { transform: translateX(120%); }
.glass .btn-primary:hover:not(:disabled) { border-color: rgba(221, 214, 254, 0.8); box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.6), 0 10px 36px -4px rgba(139, 92, 246, 1); }
/* недоступна (не оплачено или не настроено) — пунктирный контур вместо блёклой заливки */
.glass .btn-primary:disabled { opacity: 1; background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--text-dim); box-shadow: none; }
.glass .btn-stop { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.glass .btn-stop:hover:not(:disabled) { border-color: var(--danger); box-shadow: 0 0 20px -6px rgba(239, 68, 68, 0.8); }
.glass .btn-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); }
.glass .btn-tg { background: var(--tg); border-color: transparent; }
.glass .dock { background: rgba(12, 13, 24, 0.45); border-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
.glass .dock-btn:hover { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35); }
.glass :is(.icon-btn, .chip, .seg, .seg button, .sub-chip) { border-radius: 999px; }
.glass .chip.on, .glass .kb-step.on { box-shadow: 0 0 24px -6px rgba(139, 92, 246, 0.9); }
/* ссылки на плитках — пилюля со стрелкой в кружке цвета состояния */
.glass .tile-go { align-self: flex-start; gap: 10px; padding: 5px 5px 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text); transition: border-color 0.2s; }
.glass .tile-go::after { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 0.85rem; box-shadow: 0 0 14px -3px rgba(139, 92, 246, 0.9); }
.glass .tile.bad .tile-go { color: #fecaca; }
.glass .tile.bad .tile-go::after { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 0 14px -3px rgba(239, 68, 68, 0.9); }
.glass .tile.warn .tile-go::after { background: linear-gradient(135deg, #f59e0b, #facc15); color: #1a1205; box-shadow: 0 0 14px -3px rgba(245, 182, 66, 0.9); }
.glass .tile.ok .tile-go::after { background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 0 14px -3px rgba(34, 197, 94, 0.9); }
.glass .tile:hover .tile-go { border-color: rgba(167, 139, 250, 0.5); }
.glass .input:focus { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 20px -6px rgba(139, 92, 246, 0.7); }
.glass .modal > .panel { background: rgba(16, 17, 30, 0.88); }
