:root {
  --navy: #071427;
  --navy-2: #0b1f3a;
  --ink: #12233d;
  --text: #1c2a3d;
  --muted: #5b6b82;
  --line: #d7e0ec;
  --paper: #f4f7fb;
  --white: #fff;
  --blue: #1578d6;
  --blue-2: #0d5fad;
  --gold: #e0a106;
  --ok: #1b7f46;
  --err: #c0392b;
  --shadow: 0 12px 40px rgba(7, 20, 39, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", "PT Sans", "Tahoma", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-2); }
.skip-link {
  position: absolute; left: -999px; top: 8px;
}
.skip-link:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 18px; letter-spacing: 0.02em; }
.logo-text span { font-size: 12px; color: #9db4d0; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  color: #d5e4f5; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px;
}
.site-nav a:hover, .site-nav a.is-active { background: rgba(255,255,255,.08); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-user {
  color: #c5d6ea;
  text-decoration: none;
  font-size: 13px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user:hover { color: #fff; }
.header-exit {
  display: inline-flex;
  align-items: center;
  color: #d5e4f5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid #3d5d82;
  border-radius: 8px;
}
.header-exit:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; color: #fff;
  border: 1px solid #35557a; border-radius: 8px; padding: 8px 12px; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 650;
  border: 0; cursor: pointer; font-size: 14px; line-height: 1.2;
}
.btn-primary { background: var(--gold); color: #1a1403; }
.btn-primary:hover { background: #f0b21a; color: #1a1403; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #3d5d82; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eaf2fb; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #123056; color: #fff; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-block { width: 100%; }

.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(29,158,249,.25), transparent 32%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #123056 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.hero .lead { font-size: 18px; color: #c5d6ea; margin: 0 0 24px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.price-chip {
  display: inline-block; background: rgba(224,161,6,.15); color: #ffd56a;
  border: 1px solid rgba(224,161,6,.4); border-radius: 999px; padding: 6px 12px;
  font-size: 13px; margin-bottom: 14px;
}
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px;
}
.hero-card h2 { margin: 0 0 12px; font-size: 20px; }
.hero-card ol { margin: 0; padding-left: 18px; color: #d5e4f5; }
.hero-card li { margin: 8px 0; }

.section { padding: 56px 0; }
.section.alt { background: var(--paper); }
.section h2 { font-size: 30px; margin: 0 0 12px; color: var(--ink); }
.section .intro { color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 20px; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; color: #fff; }
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.site-bar-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.site-bar-main strong { font-size: 16px; color: var(--navy); }
.site-bar-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}
.site-bar-meta.mono {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.site-bar-actions form { margin: 0; }
.site-bar-actions .btn { padding: 7px 12px; font-size: 13px; }
.site-bar-actions a.btn {
  background: #eef3f9;
  color: var(--navy);
  text-decoration: none;
}
.site-bar-actions a.btn:hover { background: #e0e8f2; color: var(--navy); }
.site-bar-actions .btn.is-active {
  background: var(--navy);
  color: #fff;
}
.site-panel h2 { margin: 0 0 14px; font-size: 18px; }
.site-panel h3 { margin: 0 0 8px; font-size: 16px; }
.site-panel .code { margin: 0 0 12px; }
.site-panel > .card { margin-bottom: 14px; }
.site-panel > .card:last-child { margin-bottom: 0; }
.connect-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: connect-step;
}
.connect-steps > li {
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: 1px solid var(--line);
  counter-increment: connect-step;
}
.connect-steps > li:first-child { border-top: 0; padding-top: 4px; }
.connect-steps > li::before {
  content: counter(connect-step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f3ff;
  color: var(--blue-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.connect-steps > li:first-child::before { top: 4px; }
.connect-steps h3 { margin: 0 0 8px; font-size: 16px; }
.connect-steps p { margin: 0 0 10px; }
.connect-steps p:last-child { margin-bottom: 0; }
.connect-steps .code { margin: 0 0 10px; }
.connect-steps ul { margin: 0; padding-left: 18px; }
.connect-steps ul li { margin: 0 0 6px; }
.connect-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.form .connect-note { margin: 6px 0 0; font-size: 13px; }
.site-prefixes h2 { margin: 0 0 14px; font-size: 18px; }
.site-prefixes .prefix-list { min-height: 110px; }
.num {
  width: 36px; height: 36px; border-radius: 10px; background: #e8f3ff; color: var(--blue-2);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px;
}

.crumbs { padding: 16px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs-sep { margin: 0 8px; }

.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.page-head p { color: var(--muted); max-width: 760px; margin: 0; }
body.page-wide .container {
  width: calc(100% - 24px);
  max-width: none;
}
body.page-wide .page-head p,
body.page-wide .prose,
body.page-wide .hero .lead,
body.page-wide .section .intro { max-width: none; }
body.page-wide .section { padding: 20px 0 40px; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: #31445c; }
.prose ul { padding-left: 18px; }

.cta-band {
  background: var(--navy-2); color: #fff; padding: 42px 0;
}
.cta-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; color: #b9cbe0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.site-footer { background: #050d18; color: #9db0c7; padding: 42px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.footer-title { color: #fff; font-weight: 700; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #9db0c7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1a2c45; margin-top: 28px; padding-top: 14px; font-size: 13px; }

.form { display: grid; gap: 12px; }
.form label { font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form textarea.prefix-list {
  min-height: 160px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}
.captcha-all-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  cursor: pointer;
  color: var(--navy);
}
.captcha-all-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue, #1578d6);
}
.captcha-all-opt span { min-width: 0; }
.captcha-all-opt strong { display: block; font-size: 15px; }
.captcha-all-opt small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}
.prefix-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; }
.msg.ok { background: #e8f8ee; color: var(--ok); }
.msg.err { background: #fdecea; color: var(--err); }
.auth-box { max-width: 460px; margin: 24px auto 48px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; word-break: break-all; }
.code {
  background: #0b1524; color: #d6e7ff; padding: 14px; border-radius: 10px;
  overflow: auto; font-size: 13px; line-height: 1.45;
}
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; }
.badge.on { background: #e8f8ee; color: var(--ok); }
.badge.off { background: #fdecea; color: var(--err); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs a { padding: 8px 12px; border-radius: 8px; text-decoration: none; background: #eef3f9; color: var(--ink); }
.tabs a.is-active { background: var(--navy); color: #fff; }
.cabinet-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cabinet-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.cabinet-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 88px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}
.cabinet-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
}
.cabinet-nav a:hover { background: #e8eef7; color: var(--navy); }
.cabinet-nav a.is-active { background: var(--navy); color: #fff; }
.cabinet-nav a.is-active:hover { color: #fff; }
.cabinet-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cabinet-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px;
  padding: 0 0 4px 8px;
  border-left: 2px solid var(--line);
  margin-left: 12px;
}
.cabinet-subnav a {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.cabinet-subnav a:hover { background: #e8eef7; color: var(--navy); }
.cabinet-subnav a.is-active {
  background: var(--navy);
  color: #fff;
}
.cabinet-subnav a.is-active:hover { color: #fff; }
.cabinet-subnav-empty {
  display: block;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
.log-box {
  max-height: 360px; overflow: auto; background: #0b1524; color: #c9d8ea;
  border-radius: 10px; padding: 12px; font-family: Consolas, monospace; font-size: 12px;
}
.log-line { padding: 3px 0; border-bottom: 1px solid #1c2c44; }
.log-line.redirect { color: #ffb14a; }
.traffic-card { padding: 0; overflow: hidden; }
.traffic-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 14px 18px 10px;
}
.traffic-head h2 { margin: 0; font-size: 20px; }
.cut-traffic {
  margin-left: 10px;
  color: #c0392b;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.cut-traffic:hover { color: #9a1f12; text-decoration: underline; }
.my-ip {
  margin-left: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.traffic-head p { margin: 0; }
.traffic-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.traffic-pager a,
.traffic-pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.traffic-pager a {
  background: #eef3f9;
  color: var(--navy);
}
.traffic-pager a:hover { background: #dce6f2; }
.traffic-pager .is-active {
  background: var(--navy);
  color: #fff;
}
.traffic-card > .traffic-pager {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line);
}
.traffic-wrap {
  overflow: auto;
  max-height: calc(100vh - 210px);
  border-top: 1px solid var(--line);
}
.traffic-table {
  width: max-content;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.traffic-table th,
.traffic-table td {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.traffic-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #fff;
  font-weight: 650;
  text-align: left;
  padding: 4px 6px;
}
.traffic-table th .col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
  user-select: none;
}
.traffic-table th .col-resizer:hover,
.traffic-table th .col-resizer.is-active {
  background: rgba(255,255,255,.35);
}
.traffic-table td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
}
.traffic-table .traffic-suspect {
  color: #9a1f12 !important;
  font-weight: 800;
}
.traffic-table tr.is-pass,
.traffic-table tr.is-pass:hover {
  background: #e7f6ec;
}
.traffic-table tr.is-pass td {
  color: #1b7f46;
}
.traffic-table tr.is-pass .traffic-ua {
  color: #1b7f46;
}
.traffic-table td.traffic-ua {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.traffic-ua-btn {
  display: inline;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.traffic-ua-btn:hover {
  text-decoration: underline;
}
.traffic-status.is-pass,
.traffic-table tr.is-pass .traffic-status {
  color: #1b7f46;
  font-weight: 700;
  border-color: #8fd0a6;
  background: #f3fbf6;
}
.traffic-table tr.is-redirect,
.traffic-table tr.is-redirect:hover {
  background: #f8d0d0;
}
.traffic-table tr.is-redirect td {
  color: #c0392b;
}
.traffic-table tr.is-block,
.traffic-table tr.is-block:hover {
  background: #dcdcdc;
}
.traffic-table tr.is-block td {
  color: #111;
}
.traffic-table tr.is-block .traffic-ua {
  color: #111;
}
.traffic-status.is-block,
.traffic-table tr.is-block .traffic-status {
  color: #111;
  font-weight: 700;
  border-color: #555;
  background: #f2f2f2;
}
.traffic-status {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  background: #fff;
}
.traffic-status.is-redirect,
.traffic-table tr.is-redirect .traffic-status {
  color: #c0392b;
  font-weight: 700;
  border-color: #e07a7a;
  background: #fff5f5;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 39, 0.5);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 14px; font-size: 22px; }
.modal-card .prefix-list { min-height: 120px; width: 100%; }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.traffic-table .nowrap { white-space: nowrap; }
.traffic-url, .traffic-ua {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.traffic-table .mono {
  word-break: normal;
}
.traffic-ua { color: var(--muted); }
.traffic-table tr.is-redirect .traffic-ua { color: #c0392b; }
.tag { display: inline-flex; gap: 6px; align-items: center; background: #eef3f9; border-radius: 999px; padding: 4px 10px; margin: 4px; font-size: 13px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  background: #2ea3f2;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(46, 163, 242, 0.35);
}
.support-fab:hover { background: #1b8fe0; color: #fff; }
.support-fab.has-unread {
  background: #e53935;
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.38);
}
.support-fab.has-unread:hover { background: #c62828; color: #fff; }
.support-fab-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #e53935;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.support-fab svg { flex-shrink: 0; }
body.is-support-open .support-fab { display: none !important; }
.support-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 40px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(7, 20, 39, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.support-chat[hidden] { display: none !important; }
.support-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #2ea3f2;
  color: #fff;
}
.support-chat-head strong { flex: 1; font-size: 16px; }
.support-chat-close, .support-chat-back {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}
.support-chat-identify {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
}
.support-chat-identify[hidden] { display: none !important; }
.support-chat-identify p { margin: 0; color: var(--muted); }
.support-chat-identify input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.support-chat-guest {
  padding: 28px 18px;
  display: grid;
  gap: 14px;
  text-align: center;
}
.support-chat-toolbar {
  padding: 10px 10px 0;
}
.support-chat-toolbar .btn { width: 100%; }
.support-chat-broadcast {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 12px 12px 0;
}
.support-chat-broadcast[hidden] { display: none !important; }
.support-chat-broadcast p { margin: 0 0 10px; color: var(--muted); }
.support-chat-broadcast .support-chat-form {
  padding: 0;
  border-top: none;
  grid-template-columns: 1fr;
}
.support-chat-list {
  overflow: auto;
  flex: 1;
  padding: 8px;
}
.support-chat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: none;
  background: #f4f7fb;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 8px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
}
.support-chat-item:hover { background: #e8eef7; }
.support-chat-item span { color: var(--muted); font-size: 12px; }
.support-chat-item-unread { font-weight: 700; background: #fdecea; }
.support-chat-thread {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.support-chat-thread[hidden] { display: none !important; }
.support-chat-msgs {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f4f7fb;
}
.support-chat-empty { color: var(--muted); text-align: center; margin: auto; }
.support-chat-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  align-self: flex-start;
}
.support-chat-bubble.is-mine {
  background: #2ea3f2;
  color: #fff;
  align-self: flex-end;
}
.support-chat-bubble small {
  display: block;
  margin-top: 4px;
  opacity: 0.75;
  font-size: 11px;
}
.support-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.support-chat-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 90px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.support-chat-thread .support-chat-form textarea {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 6px 12px;
  line-height: 22px;
  border-radius: 18px;
}
.support-chat-send {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #2ea3f2;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-chat-send:hover { background: #1b8fe0; }
.support-chat-send:disabled { opacity: 0.55; cursor: default; }
.support-chat-error { color: var(--err); padding: 0 12px 10px; font-size: 13px; }
.support-chat-error.is-ok { color: var(--ok); }
.btn-reviews { background: var(--gold); color: #1a1403; }
.header-inner > .btn-reviews { flex-shrink: 0; }
.btn-reviews:hover { background: #f0b21a; color: #1a1403; }
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.review-summary .review-avg {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1;
}
.review-stars { letter-spacing: 2px; }
.review-star { color: #d7e0ec; font-size: 20px; }
.review-star.is-on { color: var(--gold); }
.review-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.review-date { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.review-form .req { color: var(--err); }
.review-form .muted { color: var(--muted); font-weight: 400; }
.review-star-pick {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  margin: 0 0 12px;
}
.review-star-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.review-star-pick label {
  font-size: 28px;
  line-height: 1;
  color: #d7e0ec;
  cursor: pointer;
}
.review-star-pick:hover label { color: #d7e0ec; }
.review-star-pick input:checked ~ label,
.review-star-pick input:checked + label,
.review-star-pick label:hover,
.review-star-pick label:hover ~ label {
  color: var(--gold);
}
.review-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
}
.review-pager a,
.review-pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.review-pager a { background: #eef3f9; color: var(--navy); }
.review-pager a:hover { background: #dce6f2; }
.review-pager .is-active { background: var(--navy); color: #fff; }
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.ticket-item span { color: var(--muted); font-size: 13px; }
.ticket-item:hover { background: #e8eef7; }
.ticket-item.is-active { border-color: var(--navy); background: #eef3f9; }
.ticket-thread { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.ticket-msg {
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef3f9;
}
.ticket-msg.is-admin { background: #e8f8ee; }
.ticket-msg-meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.ticket-msg-body { word-break: break-word; }
.capcha-types-form { margin: 0; }
.capcha-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.capcha-kind {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.capcha-kind-count { color: var(--muted); font-weight: 500; font-size: 13px; }
.capcha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  column-gap: 18px;
  row-gap: 0;
  margin: 0 0 4px;
}
.capcha-item {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 3px 0;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
}
.capcha-item span { min-width: 0; }
.capcha-item input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--ok);
}
.capcha-item:has(input:not(:checked)) { color: var(--muted); }

.seo-on { color: var(--ok); font-weight: 600; }
.seo-list { margin: 0 0 14px; padding-left: 18px; color: var(--muted); line-height: 1.5; }
.seo-list li { margin: 0 0 8px; }
.seo-table-wrap { overflow-x: auto; margin: 12px 0 0; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seo-table th, .seo-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.seo-table th { color: var(--muted); font-weight: 700; }
.seo-table code { font-size: 13px; }

.price-hero {
  font-size: 56px; font-weight: 800; color: var(--navy); line-height: 1; margin: 0;
}
.price-hero small { font-size: 18px; color: var(--muted); font-weight: 600; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .cta-inner, .cabinet-layout, .reviews-layout { grid-template-columns: 1fr; }
  .cabinet-nav { position: static; }
  .site-nav, .header-actions { display: none; }
  .header-inner.is-open .site-nav, .header-inner.is-open .header-actions { display: flex; }
  .header-inner.is-open { flex-wrap: wrap; padding-bottom: 16px; }
  .header-inner.is-open .site-nav { width: 100%; margin: 0; }
  .header-inner.is-open .site-nav ul { flex-direction: column; width: 100%; }
  .header-inner.is-open .header-actions { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .support-fab { right: 14px; bottom: 14px; padding: 12px 16px; }
  .support-chat { right: 12px; bottom: 12px; height: min(560px, calc(100vh - 24px)); }
}
