:root {
  --bg: #07090e;
  --bg-2: #0d1118;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --text: #eef1f6;
  --muted: #8a93a6;
  --accent: #c6ff3d;
  --accent-ink: #0b0f05;
  --accent-2: #4de1ff;
  --radius: 22px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.muted a { color: var(--text); border-bottom: 1px solid var(--line); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: #b9c0cf; max-width: 560px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 700 15px/1 var(--font);
  box-shadow: 0 0 0 0 rgba(198, 255, 61, .4), 0 10px 30px -10px rgba(198, 255, 61, .55);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(198, 255, 61, .12), 0 16px 40px -12px rgba(198, 255, 61, .7); }
.btn .ico { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7, 9, 14, .72); backdrop-filter: blur(16px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.footer .logo img { height: 28px; }
.auth__mark { width: 56px; height: 56px; margin-bottom: 8px; filter: drop-shadow(0 8px 24px rgba(77,225,255,.35)); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero__glow {
  position: absolute; z-index: -1; width: 900px; height: 900px; right: -250px; top: -300px;
  background: radial-gradient(circle, rgba(198,255,61,.18), transparent 60%), radial-gradient(circle at 30% 70%, rgba(77,225,255,.14), transparent 55%);
  filter: blur(40px);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); margin: 24px 0; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats { list-style: none; padding: 0; margin: 56px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats b { display: block; font: 600 32px var(--display); letter-spacing: -.03em; }
.hero__stats span { font-size: 14px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: #c5ccd9;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(198,255,61,.18); animation: blink 2s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgba(198,255,61,0); } }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 540px; justify-self: end; width: 100%; }
.net { width: 100%; height: 100%; overflow: visible; }
.net .ring { fill: none; stroke: var(--line); stroke-dasharray: 3 7; }
.net .ring:nth-child(2) { animation: spin 60s linear infinite; transform-origin: 240px 240px; }
.net .links path { stroke: rgba(255,255,255,.14); stroke-width: 1.2; fill: none; }
.net .packets circle { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.net .pulse { animation: pulse 3s ease-in-out infinite; transform-origin: 240px 240px; }
.net .node circle, .net .node rect { fill: #10151e; stroke: rgba(255,255,255,.18); }
.net .node text { fill: var(--muted); font: 600 10px var(--font); text-anchor: middle; letter-spacing: .08em; }
.net .node--core rect { fill: #121a0a; stroke: var(--accent); }
.net .node--core text { fill: var(--accent); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .5; } }

.float-card {
  position: absolute; display: flex; gap: 12px; padding: 14px 18px; border-radius: 18px;
  background: rgba(16, 21, 30, .7); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  animation: float 6s ease-in-out infinite;
}
.float-card small { color: var(--muted); font-size: 12px; }
.float-card--a { left: -6%; bottom: 10%; flex-direction: column; gap: 4px; }
.float-card--b { right: -2%; top: 6%; align-items: center; font-size: 14px; animation-delay: -3s; }
.float-card__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.float-card__value { font: 600 24px var(--display); }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 22px; margin-top: 4px; }
.bars i { width: 6px; border-radius: 2px; background: var(--accent); animation: bar 1.4s ease-in-out infinite; }
.bars i:nth-child(odd) { background: var(--accent-2); }
.bars i:nth-child(1) { animation-delay: -.1s } .bars i:nth-child(2) { animation-delay: -.3s }
.bars i:nth-child(3) { animation-delay: -.5s } .bars i:nth-child(4) { animation-delay: -.7s }
.bars i:nth-child(5) { animation-delay: -.9s } .bars i:nth-child(6) { animation-delay: -1.1s }
.bars i:nth-child(7) { animation-delay: -1.3s }
.status { width: 10px; height: 10px; border-radius: 50%; background: #3dff8b; box-shadow: 0 0 12px #3dff8b; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.marquee { margin-top: 100px; border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font: 600 20px var(--display); color: #4a5263; letter-spacing: -.02em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 130px 0 0; }
.section__head { margin-bottom: 56px; display: grid; gap: 18px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(198,255,61,.09), transparent 45%);
}
.card:hover { border-color: rgba(198,255,61,.3); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 28px 0 10px; }
.card p { color: var(--muted); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(198,255,61,.08); color: var(--accent); border: 1px solid rgba(198,255,61,.2);
}
.card--wide { grid-column: span 2; background: linear-gradient(135deg, rgba(198,255,61,.08), rgba(77,225,255,.04) 60%, var(--surface)); }
.card--wide h3 { font-size: 26px; }
.card--wide p { max-width: 420px; font-size: 17px; }

/* Price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.price__text { display: grid; gap: 22px; }
.price-card {
  position: relative; padding: 40px; border-radius: 28px; background: var(--bg-2);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)), linear-gradient(150deg, var(--accent), transparent 40%, transparent 60%, var(--accent-2));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 40px 100px -40px rgba(198,255,61,.35);
}
.price-card__top { padding-bottom: 28px; border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.badge { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(198,255,61,.12); color: var(--accent); font-size: 13px; font-weight: 700; }
.price-card__amount { font: 600 22px var(--display); margin-top: 12px; }
.price-card__amount span { font-size: clamp(56px, 7vw, 76px); letter-spacing: -.05em; }
.price-card__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.price-card__list li { display: flex; gap: 12px; align-items: center; }
.price-card__list .ico { width: 20px; height: 20px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; padding: 3px; stroke-width: 2.6; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.step::after { content: ""; position: absolute; top: 46px; right: -17px; width: 18px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step__num { font: 600 14px var(--display); color: var(--accent); display: inline-block; padding: 8px 12px; border-radius: 10px; background: rgba(198,255,61,.08); }
.step h3 { margin: 24px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq .section__head { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .3s; }
.faq__item[open] { border-color: rgba(198,255,61,.3); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }
.faq__plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); flex: none; position: relative; transition: transform .3s, background .3s; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; inset: 50% 8px auto; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.faq__plus::after { transform: translateY(-50%) rotate(90deg); transition: transform .3s; }
.faq__item[open] .faq__plus { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq__item[open] .faq__plus::after { transform: translateY(-50%) rotate(0); }

/* Panel preview (mock) */
.section__head--center { justify-items: center; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.mock {
  border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  box-shadow: 0 60px 120px -50px rgba(198,255,61,.25), 0 30px 80px -40px rgba(0,0,0,.9);
  max-width: 1000px; margin-inline: auto;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a303b; }
.mock__bar img { width: 14px; height: 14px; }
.mock__bar span { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; font-size: 13px; color: var(--muted); padding: 4px 14px; border-radius: 8px; background: rgba(255,255,255,.04); }
.mock__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 22px; }
.mock__card { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.mock__card--server { background: radial-gradient(400px circle at 0 0, rgba(198,255,61,.1), transparent 60%), var(--surface); }
.mock__row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mock__big { font: 600 28px var(--display); margin: 22px 0; }
.mock__metrics, .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__metrics div, .metrics div { padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); min-width: 0; }
.mock__metrics small, .metrics small { display: block; color: var(--muted); font-size: 12px; }
.mock__metrics b, .metrics b { font-size: 16px; overflow-wrap: anywhere; }
.mock__btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mock__btns span { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); }
.mock__btns .ico { width: 16px; height: 16px; }
.mock__title { font-weight: 700; margin-bottom: 12px; }
.mock__device { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mock__device > .ico { color: var(--accent); width: 20px; }
.mock__device span { flex: 1; }
.mock__device em { display: flex; gap: 10px; color: var(--muted); }
.mock__device em .ico { width: 17px; height: 17px; }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag .status { width: 8px; height: 8px; }
.tag--ok { background: rgba(61,255,139,.1); color: #3dff8b; }
.tag--warn { background: rgba(255,184,77,.12); color: #ffb84d; }
.tag--off { background: rgba(255,93,108,.1); color: #ff5d6c; }
.status--off { background: #ff5d6c; box-shadow: 0 0 10px #ff5d6c; }

/* CTA */
.cta {
  text-align: center; display: grid; justify-items: center; gap: 22px; padding: 80px 24px; border-radius: 32px;
  border: 1px solid var(--line);
  background: radial-gradient(600px circle at 50% 0%, rgba(198,255,61,.16), transparent 60%), radial-gradient(500px circle at 50% 120%, rgba(77,225,255,.1), transparent 60%), var(--bg-2);
}

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 120px 16px 40px; position: relative; overflow: hidden; }
.auth .hero__glow { right: auto; left: 50%; transform: translateX(-50%); }
.auth__card { width: min(440px, 100%); padding: 40px; border-radius: 28px; background: rgba(13,17,24,.85); border: 1px solid var(--line); backdrop-filter: blur(12px); display: grid; gap: 10px; }
.auth__card h1 { font-size: 30px; }
.auth__card .form { margin-top: 18px; }
.auth__switch { text-align: center; margin-top: 10px; font-size: 14px; }
.auth__switch a, .guide__help a, .muted a { color: var(--accent); }
.page-auth .footer { margin-top: 0; }

/* Toasts */
.toasts { position: fixed; top: 86px; right: 16px; z-index: 60; display: grid; gap: 10px; max-width: min(380px, calc(100% - 32px)); }
.toast { padding: 14px 18px; border-radius: 14px; background: #131a24; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px #000; font-size: 14px; animation: fade .3s ease; transition: opacity .4s, transform .4s; }
.toast--ok { border-color: rgba(198,255,61,.35); }
.toast--error { border-color: rgba(255,93,108,.5); }
.toast.is-hiding { opacity: 0; transform: translateX(20px); }

/* Dashboard */
.dash { padding: 110px 0 0; display: grid; gap: 16px; }
.dash__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dash__head h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.dash__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
#account.dash__grid { grid-template-columns: 1fr 1fr; }
.panel { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel__head h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.panel__head h2 .ico { color: var(--accent); }
.panel__head h2 .muted { font: 500 14px var(--font); }
.text { color: var(--text); }
.server { background: radial-gradient(500px circle at 0 0, rgba(198,255,61,.08), transparent 60%), var(--surface); }
.server__loc { font: 600 30px var(--display); }
.server .metrics { grid-template-columns: repeat(4, 1fr); }
.copyable { cursor: copy; }
.server__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.server__locform { display: flex; gap: 10px; align-items: end; }
.server__locform .field { flex: 1; }
.billing__amount { font: 600 18px var(--display); }
.billing__amount span { font-size: 40px; letter-spacing: -.04em; }
.btn--danger { color: #ff8a95; }
.btn--danger:hover { background: rgba(255,93,108,.1); }
.btn .ico { width: 18px; height: 18px; }

.activate { grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 40px; background: radial-gradient(600px circle at 0 0, rgba(198,255,61,.1), transparent 60%), var(--surface); }
.activate__text { display: grid; gap: 16px; align-content: start; }
.activate__form { display: grid; gap: 14px; }
.locs { display: grid; gap: 10px; }
.loc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.loc:hover { background: var(--surface-2); }
.loc input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.loc:has(input:checked) { border-color: var(--accent); background: rgba(198,255,61,.06); }
.cc { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; margin-right: 10px; border-radius: 7px; font: 600 11px "JetBrains Mono", monospace; letter-spacing: .06em; color: var(--accent); background: rgba(198,255,61,.1); border: 1px solid rgba(198,255,61,.25); vertical-align: middle; }
.loc .cc { margin-right: 0; }
.marquee__track em { font: 500 13px "JetBrains Mono", monospace; font-style: normal; color: #6b7385; margin-right: 12px; vertical-align: middle; }
.loc__name { flex: 1; font-weight: 600; }
.loc__ping { color: var(--muted); font-size: 13px; }

.devices__add { display: flex; gap: 10px; }
.input, .devices__add input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font: 500 15px var(--font); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,255,61,.12); }
.devices { list-style: none; margin: 0; padding: 0; display: grid; }
.device { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.device__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(198,255,61,.08); color: var(--accent); flex: none; }
.device__info { flex: 1; display: grid; min-width: 0; }
.device__info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device__info small { color: var(--muted); font-size: 12px; }
.device__actions { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: background .2s, border-color .2s; font-size: 15px; }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }
.icon-btn--danger:hover { color: #ff5d6c; border-color: rgba(255,93,108,.5); }
.empty { padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; display: grid; gap: 6px; }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--line); justify-self: start; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer; }
.tab.is-active { background: var(--accent); color: var(--accent-ink); }
.guide { display: none; margin: 0; padding: 0; list-style: none; counter-reset: g; gap: 10px; }
.guide.is-active { display: grid; }
.guide li { counter-increment: g; display: flex; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.2); }
.guide li::before { content: counter(g); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(198,255,61,.12); color: var(--accent); font: 600 12px var(--display); }
.support__mail { display: inline-flex; align-items: center; gap: 12px; font: 600 18px var(--display); overflow-wrap: anywhere; }
.support__mail .ico { color: var(--accent); }
.support form { margin-top: auto; }

.modal { width: min(440px, calc(100% - 32px)); padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal[open] { display: grid; gap: 14px; animation: fade .25s ease; }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__qr { justify-self: center; padding: 14px; background: #fff; border-radius: 16px; }
.modal__qr img, .modal__qr canvas { display: block; }
.modal__cfg { margin: 0; padding: 14px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; max-height: 180px; overflow: auto; color: #b9c0cf; }

/* Nav badges */
.nav__links a { display: inline-flex; align-items: center; gap: 6px; }
.nav__links a.is-current { color: var(--text); }
.badge-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 11px var(--font); }
.badge-dot--dark { background: var(--accent-ink); color: var(--accent); margin-left: 4px; }
.back { font-size: 14px; color: var(--muted); }
.back:hover { color: var(--text); }

/* Cabinet header: одно меню — логотип, разделы, аккаунт */
.page-dash .nav { background: rgba(7, 9, 14, .88); backdrop-filter: blur(16px); border-color: var(--line); }
.nav__tabs { flex: 1; display: flex; align-items: stretch; gap: 2px; height: 72px; margin-left: 20px; }
.nav__tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: 600 14px var(--font); white-space: nowrap; cursor: pointer; transition: color .2s; }
.nav__tab .ico { width: 18px; height: 18px; flex: none; }
.nav__tab:hover { color: var(--text); }
.nav__tab.is-active { color: var(--text); }
.nav__tab.is-active .ico { color: var(--accent); }
.nav__tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav__tab--push { margin-left: auto; }
.nav__tab--static { cursor: default; color: var(--muted) !important; }
.nav__tab-form { display: flex; }
.nav__tab--logout span { display: none; }
.nav__tab--logout:hover { color: #ff8a95; }
.nav__burger { display: none; position: relative; flex-direction: column; justify-content: center; gap: 4px; }
.nav__burger span { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav__burger-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 1000px) {
  .nav__burger { display: flex; }
}

/* Полноэкранное мобильное меню (кабинет и админка) */
.mmenu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  background:
    radial-gradient(600px circle at 100% 0%, rgba(198,255,61,.12), transparent 55%),
    radial-gradient(500px circle at 0% 100%, rgba(77,225,255,.10), transparent 55%),
    var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.mmenu[hidden] { display: none; }
.mmenu.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 16px; flex: none; border-bottom: 1px solid var(--line); }
.mmenu__close { width: 44px; height: 44px; }
.mmenu__close .ico { width: 22px; height: 22px; }
.mmenu__top { position: sticky; top: 0; z-index: 2; background: rgba(7, 9, 14, .75); backdrop-filter: blur(12px); }

/* Фон: сетка и два «дышащих» световых пятна в цветах логотипа */
.mmenu__bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.mmenu__bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000, transparent 75%); opacity: .45; }
.mmenu__bg i { position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(60px); opacity: .5; animation: orb 9s ease-in-out infinite alternate; }
.mmenu__bg i:first-child { background: rgba(198,255,61,.35); top: -120px; right: -100px; }
.mmenu__bg i:last-child { background: rgba(77,225,255,.3); bottom: -140px; left: -120px; animation-delay: -4.5s; }
@keyframes orb { to { transform: translate(-40px, 60px) scale(1.15); } }

.mmenu__body { position: relative; flex: 1; display: grid; align-content: start; gap: 14px; padding: 24px 16px 20px; }
.mmenu__hello { display: flex; align-items: center; gap: 14px; }
.mmenu__avatar { position: relative; width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font: 700 24px var(--display); color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px -10px rgba(77,225,255,.5); }
.mmenu__avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #3dff8b; border: 3px solid var(--bg); }
.mmenu__who { display: grid; min-width: 0; }
.mmenu__who small { font-size: 13px; }
.mmenu__who b { font: 600 26px/1.1 var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmenu__sub { font-size: 14px; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); justify-self: start; }
.mmenu__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }

/* Полоса статусов серверов */
.mmenu__chips-wrap { display: grid; gap: 10px; min-width: 0; }
.mmenu__chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.mmenu__chips::-webkit-scrollbar { display: none; }
.mchip { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px 9px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; scroll-snap-align: start; transition: border-color .2s; }
.mchip:active { border-color: rgba(198,255,61,.5); }
.mchip__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mchip--ok .mchip__dot { background: #3dff8b; box-shadow: 0 0 8px #3dff8b; animation: blink 2s infinite; }
.mchip--off .mchip__dot { background: #ff5d6c; }
.mchip--warn .mchip__dot { background: #ffb84d; }
.mchip__cc { font: 600 11px "JetBrains Mono", monospace; color: var(--accent); letter-spacing: .05em; }
.mchip__name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mchip--add { background: transparent; border-style: dashed; color: var(--accent); }
.mchip--add .ico { width: 16px; height: 16px; }

/* Плитки разделов */
.mmenu__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtile { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 124px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.mtile:active { transform: scale(.97); }
.mtile::after { content: ""; position: absolute; width: 120px; height: 120px; right: -50px; bottom: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%); }
.mtile__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.mtile__icon .ico { width: 21px; height: 21px; }
.mtile__badge { position: absolute; top: 14px; right: 14px; }
.mtile__label { display: block; font: 600 17px var(--display); letter-spacing: -.01em; }
.mtile__hint { display: block; margin-top: -14px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtile.is-active { background: linear-gradient(145deg, var(--accent), #8ff07a 60%, var(--accent-2)); border-color: transparent; color: var(--accent-ink); box-shadow: 0 18px 40px -18px rgba(198,255,61,.6); }
.mtile.is-active .mtile__icon { background: rgba(11,15,5,.12); border-color: rgba(11,15,5,.15); color: var(--accent-ink); }
.mtile.is-active .mtile__hint { color: rgba(11,15,5,.65); }
.mtile.is-active .mtile__badge { background: var(--accent-ink); color: var(--accent); }
.mmenu__tiles--few .mtile { min-height: 140px; }

.mmenu__foot { position: relative; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); flex: none; }
.mmenu__logout { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 16px; border: 1px solid rgba(255,93,108,.25); background: rgba(255,93,108,.06); color: #ff8a95; font: 600 15px var(--font); cursor: pointer; }
.mmenu__logout .ico { width: 18px; height: 18px; }
.mmenu__logout:active { background: rgba(255,93,108,.14); }

/* Элементы появляются по очереди: плитки — с лёгким «пружинящим» масштабом */
.mmenu__hello, .mmenu__sub, .mmenu__chips-wrap, .mmenu__label, .mmenu__foot { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.mtile { opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1), border-color .2s; }
.mmenu.is-open .mmenu__hello, .mmenu.is-open .mmenu__sub, .mmenu.is-open .mmenu__chips-wrap, .mmenu.is-open .mmenu__label,
.mmenu.is-open .mmenu__foot, .mmenu.is-open .mtile { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 50ms); }
.mmenu.is-open .mtile:active { transform: scale(.97); transition-delay: 0s; }
@media (max-width: 360px) {
  .mtile { min-height: 110px; padding: 14px; }
  .mmenu__who b { font-size: 22px; }
}
html.menu-open { overflow: hidden; }
@media (min-width: 1001px) { .mmenu { display: none !important; } }

/* Кнопка регистрации на лендинге: на телефоне — только иконка */
.nav__register .ico { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .nav__register { width: 42px; height: 42px; padding: 0; }
  .nav__register span { display: none; }
}
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.link .ico { width: 16px; height: 16px; }
.dash__grid--even { grid-template-columns: 1fr 1fr; }
.dash__total { display: grid; text-align: right; }
.dash__total b { font: 600 28px var(--display); color: var(--accent); }
.section-block { display: grid; gap: 16px; margin: 8px 0; }
.section-block__head { display: flex; justify-content: space-between; align-items: center; }
.section-block__head h2 { font-size: 20px; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat__sub { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat b .muted { font-size: 18px; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(255,184,77,.35); background: rgba(255,184,77,.08); color: #ffd699; }
.alert--info { border-color: var(--line); background: var(--surface); color: var(--muted); }
.cc--lg { height: 30px; min-width: 42px; font-size: 13px; vertical-align: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }

/* Server cards */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.srv-card { display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(300px circle at 0 0, rgba(198,255,61,.08), transparent 60%), var(--surface); transition: border-color .2s, transform .2s; align-content: start; }
.srv-card:hover { border-color: rgba(198,255,61,.35); transform: translateY(-2px); }
.srv-card--off { background: var(--surface); }
.srv-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.srv-card h3 { font-size: 20px; }
.srv-card p { font-size: 14px; }
.srv-card__meta { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.srv-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.srv-card__meta .ico { width: 16px; height: 16px; }
.srv-card__go { margin-left: auto; color: var(--accent); font-weight: 600; }
.srv-card--new { place-content: center; justify-items: center; text-align: center; border-style: dashed; background: transparent; min-height: 190px; }
.srv-card__plus { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(198,255,61,.1); color: var(--accent); margin-bottom: 6px; }
.price-mini { display: flex; align-items: baseline; gap: 8px; }
.price-mini b { font: 600 26px var(--display); }

/* Sub tabs inside server page */
.subtabs { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); justify-self: start; flex-wrap: wrap; }
.subtab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer; }
.subtab .ico { width: 17px; height: 17px; }
.subtab.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.subtab.is-active .ico { color: var(--accent); }
.tabpane { display: none; }
.tabpane.is-active { display: grid; gap: 16px; }
.guide.tabpane.is-active { display: grid; }
.metrics--4 { grid-template-columns: repeat(4, 1fr) !important; }
.settings { display: grid; gap: 16px; }
.settings fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.settings fieldset:disabled { opacity: .55; }
.settings__save { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.settings__save .muted { font-size: 13px; max-width: 520px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice-grid--2 { grid-template-columns: 1fr 1fr; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.icon-btn.is-copied { color: #3dff8b; border-color: rgba(61,255,139,.5); }
.apps { display: grid; }
.apps__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.apps__row:first-child { border-top: 0; padding-top: 0; }
.apps__row b { text-align: right; font-weight: 600; }
.choice { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 46px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { position: absolute; left: 16px; top: 18px; accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choice:hover { background: var(--surface-2); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(198,255,61,.06); }
.choice small { font-size: 12.5px; line-height: 1.45; }
.choice--sm { padding: 13px 14px 13px 44px; }
.choice--sm input { top: 50%; transform: translateY(-50%); }
.split-field[hidden] { display: none; }
.danger { border-color: rgba(255,93,108,.25); }
.danger h2 { color: #ff8a95; }

/* Tickets */
.filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter__item { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.filter__item:hover { color: var(--text); }
.filter__item.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter__item.is-active .muted { color: rgba(11,15,5,.6); }
.panel--flush { padding: 0; gap: 0; overflow: hidden; }
.tickets { list-style: none; margin: 0; padding: 0; }
.tickets li + li { border-top: 1px solid var(--line); }
.ticket-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; transition: background .2s; }
.ticket-row:hover { background: var(--surface-2); }
.ticket-row__id { color: var(--muted); font-size: 13px; width: 44px; flex: none; }
.ticket-row__main { flex: 1; display: grid; min-width: 0; gap: 2px; }
.ticket-row__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row__main small { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row.is-unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ticket-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ticket-list li:first-child a { border-top: 0; }
.ticket-list__id { color: var(--muted); font-size: 12px; }
.ticket-list__subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick { gap: 10px; }
.quick__item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.quick__item:hover { background: var(--surface-2); border-color: rgba(198,255,61,.3); }
.quick__item > .ico { color: var(--accent); }
.quick__item span { display: grid; }
.quick__item small { font-size: 13px; }
.empty--big { padding: 56px 24px; border: 0; justify-items: center; }
.empty--big img { margin-bottom: 8px; }
.empty .btn { justify-self: center; margin-top: 10px; }
.chat-hint { text-align: center; font-size: 14px; }
.ticket-form { gap: 20px; }
.ticket-title { font-size: clamp(22px, 3vw, 32px) !important; }
.ticket-meta { margin-top: 8px; font-size: 14px; }
.ticket-meta a { color: var(--accent); }
.ticket-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-form select { padding: 9px 34px 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font: 600 13px var(--font); 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) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ticket-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.ticket-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.ticket-side .panel { padding: 20px; gap: 12px; }
.ticket-side h2 { font-size: 16px !important; }
.side-srv { display: grid; gap: 3px; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.2); font-size: 13px; }
.side-srv.is-related { box-shadow: inset 0 0 0 1px rgba(198,255,61,.35); }
.side-srv__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side-srv .cc { margin-right: 6px; height: 20px; min-width: 28px; font-size: 10px; }

/* Ticket thread */
.thread-view__list { display: grid; gap: 0; }
.tmsg { padding: 22px 26px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.tmsg--support { background: linear-gradient(90deg, rgba(198,255,61,.05), transparent 60%); box-shadow: inset 3px 0 0 var(--accent); }
.tmsg--new { animation: fade .3s ease; }
.tmsg__head { display: flex; align-items: center; gap: 12px; }
.tmsg__head time { margin-left: auto; color: var(--muted); font-size: 13px; }
.tmsg__avatar { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(77,225,255,.12); color: var(--accent-2); font: 600 15px var(--display); overflow: hidden; }
.tmsg__avatar img { width: 30px; height: 30px; }
.tmsg--support .tmsg__avatar { background: transparent; }
.tmsg__body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; padding-left: 48px; color: #d7dce6; }
.atts { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 48px; }
.att { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.2); font-size: 13px; max-width: 280px; transition: border-color .2s; }
.att:hover { border-color: rgba(198,255,61,.4); }
.att .ico { color: var(--accent); width: 20px; height: 20px; }
.att span { display: grid; min-width: 0; }
.att b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.att small { color: var(--muted); }
.att:not(.att--img)::before { content: ""; width: 20px; height: 24px; flex: none; border-radius: 4px; border: 1.6px solid var(--accent); }
.att:has(.ico)::before { display: none; }
.att--img { padding: 4px; }
.att--img img { display: block; height: 140px; max-width: 240px; object-fit: cover; border-radius: 9px; }
.composer { display: grid; gap: 10px; padding: 18px 22px; background: rgba(0,0,0,.18); transition: background .2s; }
.composer.is-drag { background: rgba(198,255,61,.07); box-shadow: inset 0 0 0 2px rgba(198,255,61,.5); }
.composer textarea { width: 100%; resize: vertical; min-height: 84px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font: 500 15px/1.5 var(--font); }
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,255,61,.12); }
.composer__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.composer__bar .btn { margin-left: auto; }
.composer__attach { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); }
.composer__attach:hover { background: var(--surface-2); }
.composer__attach .ico { width: 18px; height: 18px; color: var(--accent); }
.composer__attach input, .dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.composer__hint { font-size: 12px; }
.composer__files { display: flex; flex-wrap: wrap; gap: 8px; }
.composer__files[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--text); cursor: pointer; font-size: 15px; line-height: 1; flex: none; }
.chip button:hover { background: rgba(255,93,108,.3); }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 20px; border-radius: 16px; border: 1.5px dashed rgba(255,255,255,.18); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; color: var(--text); font-weight: 500; font-size: 15px; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: rgba(198,255,61,.05); }
.dropzone > .ico { width: 28px; height: 28px; color: var(--accent); }
.dropzone small { font-size: 13px; font-weight: 500; }
.field > .dropzone + .composer__files { margin-top: 10px; }

@media (max-width: 1000px) {
  .stats--4 { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .metrics--4 { grid-template-columns: 1fr 1fr !important; }
  .ticket-layout, .dash__grid--even { grid-template-columns: 1fr; }
  .ticket-side { position: static; }
}
@media (max-width: 640px) {
  .choice-grid, .choice-grid--2 { grid-template-columns: 1fr; }
  .tmsg { padding: 18px; }
  .tmsg__body, .atts { padding-left: 0; }
  .ticket-row { padding: 16px; gap: 10px; flex-wrap: wrap; }
  .ticket-row__id { width: auto; }
  .subtabs { display: grid; grid-template-columns: repeat(3, 1fr); justify-self: stretch; }
  .subtab { justify-content: center; padding: 10px 4px; font-size: 13px; gap: 6px; }
  .subtab .muted { display: none; }
  .stat b { font-size: 22px; }
}

/* Admin */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { gap: 6px; padding: 22px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { font: 600 28px var(--display); letter-spacing: -.03em; }
.stat--accent { background: radial-gradient(300px circle at 0 0, rgba(198,255,61,.14), transparent 70%), var(--surface); }
.stat--accent b { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: -8px; }
.table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.table th, .table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.btn--xs { padding: 9px 14px; font-size: 13px; }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } }

.form { display: grid; gap: 14px; position: relative; }
.form__hint { font-size: 13px; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0,0,0,.25); color: var(--text); font: 500 16px var(--font); resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.field input::placeholder, .field textarea::placeholder { color: #4f5768; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,255,61,.12); }
.field.has-error input { border-color: #ff5d6c; }
.field .err { color: #ff5d6c; font-weight: 500; }
@keyframes fade { from { opacity: 0; transform: scale(.97); } }

/* Footer */
.footer { margin-top: 130px; border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; }
.page-dash .footer { margin-top: 80px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.footer__links a { color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* Документы: оферта и политика */
.page-legal .footer { margin-top: 80px; }
.legal { padding-top: 120px; }
.legal__head { display: grid; gap: 14px; justify-items: start; margin-bottom: 40px; }
.legal__head h1 { font-size: clamp(30px, 4.5vw, 48px); }
.legal__switch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.legal__layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.legal__toc { position: sticky; top: 96px; display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); max-height: calc(100vh - 120px); overflow-y: auto; }
.legal__toc-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.legal__toc a { color: var(--muted); transition: color .2s; }
.legal__toc a:hover { color: var(--accent); }
.legal__body { max-width: 760px; display: grid; gap: 36px; color: #c9cfdb; line-height: 1.75; min-width: 0; }
.legal__body section { display: grid; gap: 12px; scroll-margin-top: 96px; }
.legal__body h2 { font-size: 22px; color: var(--text); padding-top: 28px; border-top: 1px solid var(--line); }
.legal__body h3 { font-size: 16px; color: var(--text); margin-top: 8px; }
.legal__body ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal__body li::marker { color: var(--accent); }
.legal__body a { color: var(--accent); }
.legal__lead { font-size: 17px; color: var(--text); padding: 22px 24px; border-radius: var(--radius); background: radial-gradient(400px circle at 0 0, rgba(198,255,61,.08), transparent 60%), var(--surface); border: 1px solid var(--line); }
.legal__terms { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; }
.legal__terms dt { color: var(--text); font-weight: 700; }
.legal__terms dd { margin: 0; }
.legal__note { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--accent); }
.legal__card { display: grid; gap: 6px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.legal__card b { color: var(--text); font-size: 16px; }

/* Чекбокс согласия */
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check__box::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(198,255,61,.2); }
.check a { color: var(--accent); }

@media (max-width: 1000px) {
  .legal__layout { grid-template-columns: 1fr; gap: 28px; }
  .legal__toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footer__links { justify-content: flex-start; flex-direction: column; gap: 10px; }
  .legal { padding-top: 96px; }
  .legal__head { margin-bottom: 24px; }
  .legal__body { gap: 28px; font-size: 15px; }
  .legal__body h2 { font-size: 19px; padding-top: 22px; }
  .legal__lead { font-size: 15px; padding: 18px; }
  .legal__terms { grid-template-columns: 1fr; gap: 2px; }
  .legal__terms dd { margin-bottom: 10px; }
}
.footer__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.footer__mail:hover { color: var(--text); }
.footer__mail .ico { width: 18px; height: 18px; color: var(--accent); }

/* Nav actions */
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 15px; color: var(--muted); font-weight: 600; }
.nav__login:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner, .price, .faq, .mock__body, .dash__grid, #account.dash__grid, .activate { grid-template-columns: 1fr; }
  .server .metrics { grid-template-columns: 1fr 1fr; }
  .hero__visual { justify-self: center; max-width: 440px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .faq .section__head { position: static; }
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 110px; }
  .hero__stats { gap: 24px; }
  .hero__stats b { font-size: 26px; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
  .bento, .steps, .form__row { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .section { padding-top: 96px; }
  .price-card { padding: 28px 22px; }
  .nav .btn--sm { padding: 10px 14px; font-size: 13px; }
  .nav__actions { gap: 12px; }
  .nav__actions .tag { display: none; }
  .nav__login { font-size: 14px; }
  .panel, .activate { padding: 22px 18px; }
  .auth__card { padding: 28px 22px; }
  .mock__metrics { grid-template-columns: 1fr 1fr 1fr; }
  .server__locform, .devices__add { flex-direction: column; align-items: stretch; }
  .cta { padding: 56px 20px; }
}

/* ---------- Мобильная полировка ---------- */

/* Полоса прокрутки не пропадает при открытии меню — шапка не сдвигается */
html { scrollbar-gutter: stable; }

/* Полосы прокрутки в стиле сайта: тонкие, тёмные, с лаймовым акцентом при наведении.
   scrollbar-color — Chrome/Firefox/Edge, ::-webkit-scrollbar — Safari и старые Chrome. */
:root { --sb-thumb: #262e3b; --sb-thumb-hover: #3a4456; }
* { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
html { scrollbar-color: var(--sb-thumb) var(--bg); }
*:hover { scrollbar-color: var(--sb-thumb-hover) transparent; }
html:hover { scrollbar-color: var(--sb-thumb-hover) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }
/* Выделение текста — тоже в фирменных цветах */
::selection { background: rgba(198,255,61,.85); color: var(--accent-ink); }

/* Кнопка меню и крестик одного размера и на одном месте — без рывка при открытии */
.nav__burger, .mmenu__close { width: 44px; height: 44px; border-radius: 12px; }
.nav__burger { padding: 0; }
/* Своя полоса прокрутки у меню сдвигала крестик относительно ☰ — прячем её, прокрутка остаётся */
.mmenu { scrollbar-width: none; }
.mmenu::-webkit-scrollbar { display: none; }

/* Длинные строки не распирают карточки и сетки */
.panel > *, .dash > *, .dash__grid > *, .srv-grid > *, .ticket-list li { min-width: 0; }
.panel__head { flex-wrap: wrap; }
.panel__head h2 { min-width: 0; }

@media (max-width: 640px) {
  /* Отступы */
  .section { padding-top: 80px; }
  .section__head { margin-bottom: 32px; }
  .footer { margin-top: 80px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-dash .footer { margin-top: 56px; }
  .dash { padding-top: 96px; gap: 14px; }
  .dash__head { margin-bottom: 4px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .dash__head h1 { font-size: 28px; }
  .panel { padding: 20px 16px; gap: 16px; border-radius: 18px; }
  .panel--flush { padding: 0; }
  .stat { padding: 16px; }
  .stats, .stats--4 { gap: 10px; }
  .srv-card { padding: 18px; }
  .srv-card--new { min-height: 150px; }
  .dash__total { text-align: left; }

  /* Лендинг */
  .hero { padding-top: 104px; }
  .hero h1 { margin: 18px 0; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { margin-top: 36px; gap: 20px 28px; }
  .hero__visual { margin-top: 12px; }
  .float-card { padding: 10px 12px; border-radius: 14px; gap: 8px; }
  .float-card__value { font-size: 18px; }
  .float-card--a { left: 0; bottom: 4%; }
  .float-card--b { right: 0; top: 0; font-size: 13px; }
  .marquee { margin-top: 56px; padding: 16px 0; }
  .marquee__track span { font-size: 16px; }
  .card { padding: 22px; border-radius: 18px; }
  .card h3 { margin: 18px 0 8px; }
  .card--wide h3 { font-size: 21px; }
  .card--wide p { font-size: 15px; }
  .mock__body { padding: 14px; gap: 12px; }
  .mock__card { padding: 18px; }
  .mock__big { font-size: 22px; margin: 16px 0; }
  .price { gap: 32px; }
  .step { padding: 22px; }
  .step h3 { margin: 16px 0 8px; }
  .faq { gap: 24px; }
  .faq__item summary { padding: 18px; font-size: 16px; }
  .faq__item p { padding: 0 18px 18px; }
  .cta { padding: 44px 18px; border-radius: 24px; }

  /* iPhone не приближает страницу при фокусе, если шрифт поля не меньше 16px */
  input, select, textarea, .input, .composer textarea, .devices__add input { font-size: 16px !important; }

  /* Таблицы превращаются в карточки */
  .table-wrap { overflow: visible; margin: 0; }
  .table--stack { min-width: 0; }
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table--stack tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .table--stack tr:first-child { padding-top: 0; }
  .table--stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .table--stack td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
  .table--stack td[data-label=""]::before, .table--stack td:not([data-label])::before { display: none; }
  .table--stack td.td-title { font-size: 16px; padding-bottom: 8px; }
  .table--stack td.row-actions, .table--stack td .row-actions { justify-content: flex-end; }
  .table--stack td.row-actions form, .table--stack td.row-actions .btn { flex: 1; }
  .table--stack td.row-actions:has(.btn) { padding-top: 10px; }
}

/* Совсем узкие экраны (iPhone SE, старые Android) */
@media (max-width: 400px) {
  h2 { font-size: 26px; }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .hero h1 { font-size: 36px; }
  .dash__head h1 { font-size: 24px; }
  .subtab .ico { display: none; }
  .stat b { font-size: 20px; }
  .price-card__amount span { font-size: 52px; }
  .mmenu__text b { font-size: 16px; }
  .mmenu__icon { width: 42px; height: 42px; }
}

/* Payment list filters use the shared dark form controls. */
.payment-filters {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(150px, 1fr) minmax(180px, 1fr) minmax(140px, .9fr) auto;
  align-items: end;
  gap: 16px;
}
.payment-filters .field { min-width: 0; }
.payment-filters .field input,
.payment-filters .field select { width: 100%; min-width: 0; height: 50px; }
.payment-filters__submit { min-height: 50px; padding-inline: 26px; }
@media (max-width: 1100px) {
  .payment-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-filters__search { grid-column: 1 / -1; }
  .payment-filters__submit { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .payment-filters { padding: 20px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
