/* ShadowRust Villages — тёмная тема под логотип (синие крылья) */
:root {
  --bg: #060a14; --bg2: #0a1020; --panel: rgba(16, 24, 46, .72); --panel2: rgba(22, 32, 60, .78); --panel-solid: #0f172c;
  --line: rgba(120, 150, 255, .14); --line2: rgba(120, 150, 255, .26);
  --text: #e8eeff; --muted: #8d9bc2; --dim: #5d6a90;
  --a1: #3d5afe; --a2: #22c3ff; --a3: #8ab4ff; --grad: linear-gradient(135deg, #3d5afe 0%, #22c3ff 100%);
  --good: #34d399; --warn: #fbbf24; --bad: #f87171; --violet: #a78bfa;
  --r: 16px; --r2: 12px; --sh: 0 10px 40px rgba(0, 0, 0, .45);
  --font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
svg:not([width]) { width: 18px; height: 18px; flex: none; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--a3); text-decoration: none; } a:hover { color: #fff; }
::selection { background: rgba(61, 90, 254, .5); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #1d2a4d; border-radius: 10px; border: 2px solid var(--bg); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }

/* ---------- фон */
#bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-blobs { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(34, 195, 255, .10), transparent 60%), radial-gradient(900px 700px at -10% 110%, rgba(61, 90, 254, .14), transparent 60%), var(--bg); }
.bg-blobs i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .22; animation: float 22s ease-in-out infinite; }
.bg-blobs i:nth-child(1) { background: #3d5afe; top: 10%; left: 55%; }
.bg-blobs i:nth-child(2) { background: #22c3ff; top: 60%; left: 10%; animation-delay: -8s; animation-duration: 28s; }
.bg-blobs i:nth-child(3) { background: #6d28d9; top: 75%; left: 70%; opacity: .12; animation-delay: -14s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, -40px) scale(1.1); } 66% { transform: translate(-50px, 30px) scale(.95); } }

/* ---------- анимации появления */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 195, 255, .45); } 50% { box-shadow: 0 0 0 10px rgba(34, 195, 255, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wing { 0%, 100% { transform: translateY(0); filter: drop-shadow(0 6px 24px rgba(34, 195, 255, .35)); } 50% { transform: translateY(-6px); filter: drop-shadow(0 12px 34px rgba(61, 90, 254, .55)); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.anim > * { animation: up .55s cubic-bezier(.2, .7, .2, 1) both; }
.anim > *:nth-child(2) { animation-delay: .05s; } .anim > *:nth-child(3) { animation-delay: .1s; } .anim > *:nth-child(4) { animation-delay: .15s; }
.anim > *:nth-child(5) { animation-delay: .2s; } .anim > *:nth-child(6) { animation-delay: .25s; } .anim > *:nth-child(n+7) { animation-delay: .3s; }

/* ---------- лейаут */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 16, 34, .92), rgba(6, 10, 20, .92)); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.brand img { width: 46px; animation: wing 6s ease-in-out infinite; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: .04em; } .brand b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav-title { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; position: relative; transition: .2s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { color: var(--text); background: rgba(120, 150, 255, .07); }
.nav a.on { color: #fff; background: linear-gradient(90deg, rgba(61, 90, 254, .28), rgba(34, 195, 255, .06)); box-shadow: inset 0 0 0 1px var(--line2); }
.nav a.on::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me img, .avatar { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: #1a2442; flex: none; }
.me .n { font-weight: 700; line-height: 1.2; } .me .r { color: var(--muted); font-size: 12px; }
.main { min-width: 0; padding: 26px 34px 60px; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.topbar h1 { font-size: 26px; font-weight: 800; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar .sp { flex: 1; }
.burger { display: none; }

/* ---------- карточки */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); backdrop-filter: blur(16px); position: relative; overflow: hidden; }
.card.glow::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(61, 90, 254, .7), transparent 40%, transparent 60%, rgba(34, 195, 255, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h3 .sp { flex: 1; }
.card h3 > svg { color: var(--a2); }
.card .hint { color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 16px; } .mt2 { margin-top: 24px; } .mb { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; } .col { display: flex; flex-direction: column; gap: 10px; }
.sp { flex: 1; }

/* ---------- KPI */
.kpi { padding: 18px 20px; transition: transform .25s, border-color .25s; }
.kpi:hover { transform: translateY(-3px); border-color: var(--line2); }
.kpi .l { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kpi .v { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.kpi .v small { font-size: 15px; color: var(--muted); font-weight: 700; }
.kpi .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.kpi .ic { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 90, 254, .14); color: var(--a3); }
.kpi .ic svg { width: 20px; height: 20px; }
.kpi.feature { background: linear-gradient(135deg, rgba(61, 90, 254, .35), rgba(34, 195, 255, .12)), var(--panel); }
.kpi.feature .v { font-size: 34px; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- кнопки, поля */
.btn { --c: rgba(120, 150, 255, .12); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2); background: var(--c); color: var(--text); font: 700 13.5px var(--font); cursor: pointer; transition: .2s; white-space: nowrap; position: relative; overflow: hidden; }
.btn:hover { border-color: rgba(138, 180, 255, .55); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn.pri { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(61, 90, 254, .35); }
.btn.pri::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-120%) skewX(-20deg); }
.btn.pri:hover::after { animation: shine .9s ease; }
.btn.good { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .4); color: var(--good); }
.btn.bad { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 8px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.inp, select.inp, textarea.inp { width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(5, 9, 20, .6); color: var(--text); font: 600 14px var(--font); outline: none; transition: .2s; }
textarea.inp { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: var(--a2); box-shadow: 0 0 0 3px rgba(34, 195, 255, .15); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.inp.sm { height: 34px; font-size: 13px; border-radius: 9px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
label.f > span small { font-weight: 600; color: var(--dim); }
.chk { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; user-select: none; }
.chk input { display: none; }
.chk i { width: 38px; height: 22px; border-radius: 22px; background: #1b2747; position: relative; transition: .2s; flex: none; border: 1px solid var(--line2); }
.chk i::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #8d9bc2; top: 2px; left: 2px; transition: .2s; }
.chk input:checked + i { background: var(--grad); border-color: transparent; }
.chk input:checked + i::after { left: 18px; background: #fff; }
.form { display: grid; gap: 14px; } .form.g2 { grid-template-columns: 1fr 1fr; }

/* ---------- таблицы */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel-solid); z-index: 1; }
.tbl th.s { cursor: pointer; } .tbl th.s:hover { color: var(--text); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(120, 150, 255, .07); vertical-align: middle; }
.tbl tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(120, 150, 255, .05); }
.tbl tr.click { cursor: pointer; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .c { text-align: center; }
.tbl .mono, .mono { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; font-size: 12.5px; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.empty svg { width: 42px; height: 42px; opacity: .35; display: block; margin: 0 auto 10px; }

/* ---------- бейджи */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 22px; font-size: 11.5px; font-weight: 800; background: rgba(120, 150, 255, .14); color: var(--a3); white-space: nowrap; }
.badge.good { background: rgba(52, 211, 153, .14); color: var(--good); } .badge.bad { background: rgba(248, 113, 113, .14); color: var(--bad); }
.badge.warn { background: rgba(251, 191, 36, .14); color: var(--warn); } .badge.dim { background: rgba(141, 155, 194, .12); color: var(--muted); }
.badge.violet { background: rgba(167, 139, 250, .15); color: var(--violet); }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live::before { animation: blink 1.2s infinite; }
.tag { font-weight: 800; color: var(--a2); }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.st i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--grad); }
.lvl0 i { background: #8d9bc2; } .lvl1 i { background: #34d399; } .lvl2 i { background: #22c3ff; } .lvl3 i { background: linear-gradient(135deg, #3d5afe, #a78bfa); } .lvl4 i { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 0 10px rgba(251, 191, 36, .6); }

/* ---------- прогресс */
.bar { height: 8px; border-radius: 8px; background: rgba(120, 150, 255, .1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: 0; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.bar.good > i { background: linear-gradient(90deg, #10b981, #34d399); } .bar.bad > i { background: linear-gradient(90deg, #ef4444, #f87171); } .bar.warn > i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 26px; line-height: 1; }
.ring .v small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 4px; letter-spacing: .06em; }
.ring circle.p { transition: stroke-dashoffset 1.4s cubic-bezier(.2, .7, .2, 1); }

/* ---------- стрим-кнопка */
.stream-card { background: radial-gradient(500px 200px at 0% 0%, rgba(61, 90, 254, .35), transparent 70%), radial-gradient(400px 200px at 100% 100%, rgba(34, 195, 255, .2), transparent 70%), var(--panel); }
.stream-btn { width: 100%; height: 64px; font-size: 17px; border-radius: 16px; animation: pulse 2.2s infinite; }
.stream-btn.live { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 8px 28px rgba(239, 68, 68, .35); animation: none; }
.countdown { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(61, 90, 254, .1); }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert.warn { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); color: #fde68a; }
.alert.bad { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); color: #fecaca; }
.alert.good { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); color: #a7f3d0; }
.alert b { color: #fff; }

/* ---------- графики */
.chart { width: 100%; height: 220px; position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .empty svg { width: 42px; height: 42px; }
.chart .tip { position: absolute; pointer-events: none; background: #0b1226; border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; box-shadow: var(--sh); z-index: 3; }
.chart path.area { animation: fade 1s ease both; }
.chart path.ln { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart rect.b { transform-origin: bottom; transform-box: fill-box; animation: grow .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- табы */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(5, 9, 20, .55); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a, .tabs button { padding: 8px 14px; border-radius: 9px; color: var(--muted); font: 700 13px var(--font); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: .2s; }
.tabs .on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(61, 90, 254, .35); }

/* ---------- модалка и тосты */
.modal-bg { position: fixed; inset: 0; background: rgba(2, 4, 10, .7); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: min(620px, 100%); max-height: 90vh; overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .25s cubic-bezier(.2, .7, .2, 1); }
.modal.wide { width: min(980px, 100%); }
.modal h2 { font-size: 19px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; }
.modal h2 .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; max-width: 380px; padding: 13px 16px; border-radius: 13px; background: #0e1730; border: 1px solid var(--line2); box-shadow: var(--sh); animation: up .3s; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.toast.good { border-color: rgba(52, 211, 153, .5); } .toast.bad { border-color: rgba(248, 113, 113, .5); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); margin-top: 6px; flex: none; }
.toast.good i { background: var(--good); } .toast.bad i { background: var(--bad); }

/* ---------- логин / лендинг */
.landing { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.land-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 30px 40px 60px; width: 100%; }
.hero h1 { font-size: 54px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 18px 0 30px; }
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo img { width: min(420px, 90%); animation: wing 6s ease-in-out infinite; position: relative; z-index: 1; }
.hero-logo::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(34, 195, 255, .35), transparent 65%); filter: blur(20px); }
.steam-btn { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 28px; border-radius: 16px; background: var(--grad); color: #fff !important; font-weight: 800; font-size: 16px; box-shadow: 0 12px 34px rgba(61, 90, 254, .45); transition: .25s; position: relative; overflow: hidden; }
.steam-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(34, 195, 255, .45); }
.steam-btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); animation: shine 3s ease infinite; }
.steam-btn svg { width: 24px; height: 24px; }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1240px; margin: 0 auto; padding: 0 40px 60px; width: 100%; }
.feat .card { padding: 18px; } .feat b { display: block; font-size: 15px; margin: 8px 0 4px; } .feat p { margin: 0; color: var(--muted); font-size: 13px; }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 90, 254, .15); color: var(--a2); }
.tiers-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.tiers-mini span { padding: 7px 12px; border-radius: 10px; background: rgba(120, 150, 255, .08); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.tiers-mini span b { color: var(--a2); }
.center-box { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

/* ---------- документы */
.doc { max-width: 860px; }
.doc h1 { font-size: 28px; font-weight: 800; margin: 0 0 18px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 30px 0 10px; padding-top: 6px; color: #fff; }
.doc h3 { font-size: 16px; font-weight: 800; margin: 22px 0 8px; color: var(--a3); }
.doc p, .doc li { color: #cdd6f4; font-size: 14.5px; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 22px; } .doc li { margin: 4px 0; }
.doc blockquote { margin: 16px 0; padding: 14px 18px; border-left: 3px solid var(--a2); background: rgba(34, 195, 255, .07); border-radius: 0 12px 12px 0; }
.doc blockquote p { margin: 0; }
.doc strong { color: #fff; }
.doc-accept { position: sticky; bottom: 16px; margin-top: 26px; }

/* ---------- разное */
.vimg { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; background: linear-gradient(135deg, #1a2550, #0d1530); border: 1px solid var(--line2); display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--a2); flex: none; overflow: hidden; }
.vimg img { width: 100%; height: 100%; object-fit: cover; }
.drop { border: 2px dashed var(--line2); border-radius: 16px; padding: 24px; text-align: center; color: var(--muted); cursor: pointer; transition: .2s; }
.drop:hover, .drop.over { border-color: var(--a2); background: rgba(34, 195, 255, .05); color: var(--text); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 13.5px; } .kv > :nth-child(odd) { color: var(--muted); }
.ladder { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 9, 20, .4); transition: .25s; }
.step.cur { border-color: rgba(34, 195, 255, .6); background: linear-gradient(90deg, rgba(61, 90, 254, .2), transparent); box-shadow: 0 0 30px rgba(34, 195, 255, .12); }
.step.done { opacity: .7; }
.step .m { font-size: 22px; font-weight: 800; min-width: 64px; } .step .t { font-weight: 800; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 12px 14px; border-radius: 13px; background: rgba(5, 9, 20, .5); border: 1px solid var(--line); max-width: 85%; }
.msg.mine { align-self: flex-end; background: rgba(61, 90, 254, .14); border-color: rgba(61, 90, 254, .35); }
.msg.internal { border-style: dashed; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .05); }
.msg .h { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; }
.msg .b { white-space: pre-wrap; word-break: break-word; }
.copy { display: flex; gap: 8px; } .copy .inp { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.notif { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 9, 20, .4); }
.notif.unread { border-color: rgba(34, 195, 255, .45); background: rgba(34, 195, 255, .06); }
.notif .t { font-weight: 800; } .notif .b { color: var(--muted); font-size: 13px; } .notif .d { color: var(--dim); font-size: 11.5px; }
.slot { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(5, 9, 20, .35); }
.slot .date { min-width: 64px; text-align: center; padding: 6px; border-radius: 10px; background: rgba(61, 90, 254, .15); }
.slot .date b { display: block; font-size: 20px; line-height: 1; } .slot .date small { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; }
.slot.now { border-color: rgba(34, 195, 255, .6); box-shadow: 0 0 24px rgba(34, 195, 255, .15); }
.preview-ovl { width: 100%; aspect-ratio: 5 / 3; border-radius: 14px; border: 1px solid var(--line); background: repeating-conic-gradient(#0b1120 0% 25%, #0e1528 0% 50%) 50% / 24px 24px; overflow: hidden; }
.preview-ovl iframe { width: 100%; height: 100%; border: 0; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(120, 150, 255, .2); border-top-color: var(--a2); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.small { font-size: 12.5px; } .b8 { font-weight: 800; } .nowrap { white-space: nowrap; } .right { text-align: right; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
details.code summary { cursor: pointer; color: var(--muted); font-weight: 700; } pre.json { white-space: pre-wrap; word-break: break-all; background: rgba(0, 0, 0, .35); padding: 10px; border-radius: 10px; font-size: 12px; max-height: 260px; overflow: auto; }

@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } .feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--sh); }
  .side.open { transform: none; }
  .burger { display: inline-flex; }
  .main { padding: 18px 16px 50px; }
  .g2, .g3 { grid-template-columns: 1fr; } .form.g2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 20px; } .hero h1 { font-size: 38px; } .hero-logo { order: -1; } .hero-logo img { width: 240px; }
  .land-top { padding: 18px 20px; } .feat { grid-template-columns: 1fr; padding: 0 20px 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
