:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --soft-2: #fbfbfd;
  --line: #d2d2d7;
  --line-soft: #ececf0;
  --inverse: #000000;
  --inverse-muted: #a1a1a6;
  --accent: #0071e3;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(210, 210, 215, 0.55);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  border-radius: 8px;
  padding: 8px 11px;
  color: #424245;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--soft);
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 13px;
}

.site-nav .nav-cta:hover {
  background: #333336;
  color: var(--paper);
}

.site-nav .nav-button {
  border: 0;
  line-height: 1;
}

.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 124px) clamp(22px, 5vw, 72px) clamp(52px, 7vw, 84px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 1.03;
  font-weight: 720;
  text-wrap: balance;
}

h2 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 650;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.no-break {
  display: inline-block;
}

.hero-lede {
  max-width: 660px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
}

.hero-actions,
.download-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.telegram-link {
  margin-top: 4px;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.platform-row span,
.pill {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--soft-2);
  padding: 8px 13px;
  color: #424245;
  font-size: 13px;
  font-weight: 500;
}

.product-visual {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(100%, 430px);
  border: 1px solid #1d1d1f;
  border-radius: 34px;
  background: var(--inverse);
  color: var(--paper);
  padding: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

.status-bar,
.node-card,
.stat-row {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  color: var(--inverse-muted);
  font-size: 13px;
}

.status-bar strong {
  color: #f5f5f7;
  font-weight: 600;
}

.connect-orb {
  width: 212px;
  height: 212px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 38px auto;
  position: relative;
  background: #111111;
}

.connect-orb span {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #ffffff;
}

.connect-orb strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
}

.node-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  background: #111111;
}

.node-card.selected {
  background: var(--paper);
  color: var(--ink);
}

.node-card strong {
  font-weight: 650;
}

.node-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.node-card:not(.selected) small {
  color: var(--inverse-muted);
}

.node-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.section {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(66px, 9vw, 120px) clamp(22px, 5vw, 72px);
}

.section-head {
  max-width: 860px;
  margin-bottom: 36px;
}

.intro-band,
.download-strip,
.split-section {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  border-top: 1px solid var(--line-soft);
}

.intro-band {
  background: var(--paper);
}

.intro-copy p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 18px;
}

.intro-cta {
  display: flex;
  justify-content: flex-end;
}

.intro-cta .button {
  min-width: 190px;
}

.feature-grid,
.price-grid,
.download-grid,
.faq-grid,
.legal-grid,
.admin-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.price-card,
.download-card,
.faq-card,
.legal-card,
.auth-card,
.mock-panel,
.admin-card,
.stat-card {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--soft-2);
  padding: 28px;
}

.feature-card {
  min-height: 230px;
}

.feature-card .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 26px;
}

.price-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.price-grid.compact {
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
}

.price-card.featured {
  background: var(--inverse);
  color: var(--paper);
  border-color: var(--inverse);
}

.price-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.price-card.featured span,
.price-card.featured p,
.price-card.featured li {
  color: var(--inverse-muted);
}

.price-card strong {
  display: block;
  margin: 20px 0 12px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1;
  font-weight: 720;
}

.price-grid.compact .price-card {
  padding: 24px;
}

.price-grid.compact .price-card strong {
  font-size: clamp(32px, 3vw, 40px);
  white-space: nowrap;
}

.price-card ul,
.legal-card ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.price-card .button {
  margin-top: auto;
}

.download-strip {
  background: var(--inverse);
  color: var(--paper);
}

.download-strip .eyebrow,
.download-strip p {
  color: var(--inverse-muted);
}

.download-strip .button.secondary {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--soft-2);
  padding: 0 22px;
}

summary {
  cursor: pointer;
  padding: 21px 0;
  font-size: 18px;
  font-weight: 620;
}

details p {
  margin-bottom: 21px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 24px;
  padding: 38px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.site-footer small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.page-hero {
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(68px, 10vw, 126px) clamp(22px, 5vw, 72px) 52px;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  max-width: 920px;
}

.page-hero p {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.payment-box {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.payment-option {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--paper);
  padding: 12px;
  text-align: center;
  color: #424245;
  font-size: 14px;
  font-weight: 500;
}

.payment-choice {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.payment-choice input {
  accent-color: var(--ink);
}

.wallet-purchase-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
  padding: 16px 18px;
}

.wallet-purchase-note strong {
  color: var(--ink);
  font-size: 15px;
}

.wallet-purchase-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.download-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.download-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.download-card .platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  margin-bottom: 28px;
  font-weight: 650;
}

.download-card .button {
  margin-top: auto;
}

.artifact-status {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.qr-placeholder {
  width: 132px;
  aspect-ratio: 1;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  margin: 12px 0 4px;
  border: 1px dashed #b5b5b8;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #1d1d1f 10px, transparent 10px) 14px 14px / 28px 28px no-repeat,
    linear-gradient(#1d1d1f 10px, transparent 10px) 14px 14px / 28px 28px no-repeat,
    var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.qr-placeholder img {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.apk-qr {
  padding: 10px;
  border-style: solid;
  background: #fff;
}

.qr-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.release-band {
  align-items: start;
}

.release-checklist {
  display: grid;
  gap: 12px;
}

.release-checklist div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--paper);
}

.release-checklist strong {
  font-size: 15px;
}

.release-checklist span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-page {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) clamp(22px, 5vw, 72px);
}

.auth-card {
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.field textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-code-row .button {
  min-width: 118px;
  min-height: 48px;
  white-space: nowrap;
}

.auth-agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-agreement input {
  margin-top: 3px;
}

.auth-agreement a {
  color: var(--accent);
}

.form-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.form-note a {
  color: var(--accent);
}

.form-message {
  display: none;
  margin-top: 14px;
  border-radius: 14px;
  padding: 13px 14px;
  background: #f5f5f7;
  color: var(--ink);
  font-weight: 500;
}

.form-message.visible {
  display: block;
}

.form-message.error {
  background: #fff2f2;
  color: #b42318;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  padding: 0 0 0 8px;
  cursor: pointer;
}

.mock-panel {
  max-width: 520px;
  margin-top: 34px;
  background: var(--inverse);
  color: var(--paper);
}

.mock-panel p {
  color: var(--inverse-muted);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 13px 14px;
  background: #111111;
}

.stat-row strong {
  color: var(--paper);
  font-weight: 600;
}

.faq-grid {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
}

.faq-card {
  position: sticky;
  top: 76px;
  height: fit-content;
}

.legal-grid {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.legal-card {
  height: fit-content;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content section {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--soft-2);
  padding: 30px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 650;
}

.dashboard-hero {
  border-bottom: 0;
  padding-bottom: 24px;
}

.dashboard-section {
  padding-top: 30px;
}

.dashboard-home {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(26px, 3vw, 46px) clamp(18px, 4vw, 58px) 0;
}

.dashboard-welcome-card,
.dashboard-panel,
.dashboard-metric-card {
  border: 1px solid var(--line-soft);
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(24, 28, 38, 0.06);
}

.dashboard-welcome-card {
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  padding: clamp(24px, 2.6vw, 36px);
}

.dashboard-welcome-card h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(40px, 4.3vw, 62px);
  line-height: 1.06;
}

.dashboard-welcome-card h1 span {
  overflow-wrap: anywhere;
}

.dashboard-welcome-card p {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 16px;
}

.dashboard-welcome-actions,
.dashboard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-welcome-actions {
  justify-content: flex-end;
}

.dashboard-badges {
  margin-top: 18px;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #f0f0f2;
  color: #424245;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.status-pill.good {
  background: #edf8f2;
  color: #12805c;
}

.status-pill.warn {
  background: #fff7e8;
  color: #9a5a00;
}

.status-pill.danger {
  background: #fff0f0;
  color: #bf2b2b;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-metric-card {
  min-height: 124px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
}

.dashboard-metric-card.good {
  background: #edf8f2;
  border-color: #d5eddf;
}

.dashboard-metric-card.warn {
  background: #fff7e8;
  border-color: #f0dfbd;
}

.dashboard-metric-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.dashboard-metric-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: clamp(26px, 2.3vw, 36px);
  line-height: 1;
  font-weight: 800;
}

.dashboard-metric-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-bottom: 72px;
}

.dashboard-panel {
  border-radius: 18px;
  padding: clamp(20px, 2vw, 28px);
}

.dashboard-panel .panel-head {
  align-items: flex-start;
}

.dashboard-panel .panel-head h2 {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.18;
}

.dashboard-plan-panel {
  display: grid;
  gap: 18px;
}

.dashboard-plan-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.dashboard-plan-main strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.08;
}

.dashboard-plan-main p {
  max-width: 760px;
  margin-bottom: 16px;
}

.dashboard-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eeeeef;
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.dashboard-kv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-kv-grid div {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--soft-2);
  padding: 14px;
}

.dashboard-kv-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.dashboard-kv-grid strong {
  display: block;
  font-size: 19px;
}

.dashboard-recharge-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-recharge-form .button,
.dashboard-recharge-form .form-message {
  grid-column: 1 / -1;
}

.dashboard-device-summary {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  background: var(--soft-2);
  padding: 14px;
  margin-bottom: 12px;
}

.dashboard-device-summary strong {
  font-size: 30px;
  line-height: 1;
}

.dashboard-device-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-record-grid .record-list {
  gap: 10px;
}

.dashboard-panel .record-item {
  border-radius: 14px;
  background: var(--soft-2);
}

.recharge-modal[hidden] {
  display: none !important;
}

.plan-modal[hidden] {
  display: none !important;
}

.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(16, 18, 22, 0.48);
  padding: 24px;
}

.plan-modal-card {
  position: relative;
  width: min(100%, 520px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  padding: clamp(24px, 4vw, 34px);
}

.plan-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f7f9;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.plan-modal-card h2 {
  max-width: 420px;
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 38px);
}

.plan-modal-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.plan-modal-copy strong {
  color: var(--ink);
}

.plan-recharge-summary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--soft-2);
  padding: 14px 16px;
  margin: 18px 0;
}

.plan-recharge-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.plan-recharge-summary span:last-child {
  color: #8a5300;
}

.plan-recharge-summary strong {
  color: var(--ink);
}

.plan-recharge-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.plan-recharge-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.plan-recharge-form input,
.plan-recharge-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 13px;
}

.plan-recharge-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 17px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  padding-right: 50px;
}

.plan-recharge-form .button[type="submit"] {
  margin-top: 10px;
  min-height: 56px;
}

.plan-result-card {
  text-align: center;
}

.plan-result-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: #eafbf1;
  color: #16813d;
  font-size: 28px;
  font-weight: 900;
}

.plan-result-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.recharge-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(16, 18, 22, 0.48);
  padding: 24px;
}

.recharge-modal-card {
  position: relative;
  width: min(100%, 520px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  padding: clamp(24px, 4vw, 34px);
}

.recharge-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f7f9;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.recharge-modal-head {
  padding-right: 40px;
  text-align: center;
}

.recharge-modal-head h2 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 38px);
}

.recharge-modal-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.recharge-qr-box {
  width: min(72vw, 292px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 26px auto 22px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #ffffff;
  padding: 14px;
}

.recharge-qr {
  width: 100%;
  height: 100%;
  display: block;
}

.recharge-qr-fallback {
  width: 100%;
  min-height: 100%;
  border: 1px dashed var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: center;
}

.recharge-amount-box {
  border: 1px solid #f0dfbd;
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  background: #fff7e8;
  padding: 18px;
  margin-bottom: 14px;
}

.recharge-amount-box span {
  color: #9a5a00;
  font-size: 13px;
  font-weight: 800;
}

.recharge-amount-box strong {
  grid-column: 1 / -1;
  color: #111114;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.recharge-amount-box .link-button {
  justify-self: end;
  padding-left: 0;
}

.recharge-detail-list {
  border-top: 1px solid var(--line-soft);
  display: grid;
}

.recharge-detail-list div {
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 15px 0;
}

.recharge-detail-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.recharge-detail-list strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.recharge-warning {
  border: 1px solid #f0dfbd;
  border-radius: 14px;
  background: #fffaf0;
  padding: 13px 14px;
  margin: 18px 0;
  color: #8a5300;
  font-size: 13px;
  line-height: 1.6;
}

[data-recharge-modal-countdown].danger {
  border-color: #ffd0d0;
  background: #fff0f0;
  color: #a22626;
}

.dashboard-view-switch {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 22px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f4f5f7;
  padding: 6px;
}

.dashboard-view-switch[hidden] {
  display: none !important;
}

.dashboard-view-switch button,
.dashboard-view-switch a {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-view-switch button.active,
.dashboard-view-switch a.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(20, 24, 35, 0.08);
}

.node-monitor-shell {
  background: #f5f6f8;
  min-height: calc(100vh - 80px);
  padding: 28px clamp(18px, 4vw, 58px) 72px;
}

.node-monitor-switch {
  margin-bottom: 26px;
}

.node-monitor-hero {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.node-monitor-hero h1 {
  max-width: 780px;
  margin: 10px 0 12px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.03;
  letter-spacing: 0;
}

.node-monitor-hero p:not(.eyebrow) {
  max-width: 800px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.node-monitor-actions {
  display: flex;
  justify-content: flex-end;
}

.node-monitor-metrics {
  width: min(100%, 1480px);
  margin: 34px auto 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.node-monitor-metrics article {
  min-height: 154px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #ffffff;
  padding: 22px 24px;
  box-shadow: 0 16px 34px rgba(20, 24, 35, 0.045);
}

.node-monitor-metrics article.good {
  border-color: #ccefd9;
  background: #f2fbf6;
}

.node-monitor-metrics article.warn {
  border-color: #ffd9a3;
  background: #fff8ed;
}

.node-monitor-metrics span,
.node-monitor-metrics small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.node-monitor-metrics strong {
  display: block;
  margin: 18px 0 4px;
  color: var(--ink);
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.node-monitor-layout {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.node-monitor-panel {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #ffffff;
  padding: clamp(18px, 2vw, 26px);
  box-shadow: 0 16px 34px rgba(20, 24, 35, 0.045);
}

.node-monitor-side {
  display: grid;
  gap: 18px;
}

.node-monitor-panel .panel-head h2 {
  font-size: clamp(22px, 1.8vw, 30px);
}

.node-monitor-panel .record-item {
  border-radius: 16px;
}

.node-monitor-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.node-monitor-kv-grid span {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.node-monitor-kv-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .node-monitor-layout {
    grid-template-columns: 1fr;
  }

  .node-monitor-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-view-switch {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .node-monitor-shell {
    padding-inline: 12px;
  }

  .node-monitor-hero {
    grid-template-columns: 1fr;
  }

  .node-monitor-actions,
  .node-monitor-actions .button {
    width: 100%;
  }

  .node-monitor-metrics {
    grid-template-columns: 1fr;
  }
}

.account-inline {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
  margin-top: 16px;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 22px;
}

.copy-row input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--paper);
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mini-stats span {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.mini-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 20px;
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.record-list {
  display: grid;
  gap: 10px;
}

.support-history {
  margin-top: 30px;
}

.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.record-item {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px;
  min-width: 0;
}

.record-item strong,
.record-item span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.record-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.record-item > .button,
.record-item > .table-actions {
  margin-top: 12px;
}

.record-item > .table-actions {
  justify-content: flex-start;
  max-width: none;
}

.tx-helper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.tx-helper input,
.admin-config-row input,
.admin-config-row select,
.manual-recharge-form input,
.manual-recharge-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 13px;
  color: var(--ink);
  min-width: 0;
}

.admin-config-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-recharge-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 16px 0 18px;
}

.admin-recharge-settings-grid > .record-list,
.admin-recharge-left-column {
  min-width: 0;
}

.admin-recharge-left-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-recharge-left-column > .record-list,
.admin-recharge-settings-grid > .record-list {
  align-content: start;
  gap: 12px;
}

.admin-config-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px 18px;
}

.admin-config-section-head strong,
.admin-config-section-head span {
  display: block;
  min-width: 0;
}

.admin-config-section-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.admin-config-section-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.admin-config-section-head .button {
  min-height: 46px;
  white-space: nowrap;
}

.admin-export-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-export-range label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}

.admin-export-range input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
}

.admin-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.admin-export-actions .button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.admin-billing-settings-panel {
  grid-column: 1 / -1;
}

.admin-config-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-config-card-head,
.admin-live-rate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.admin-live-rate-card {
  padding: 18px;
}

.admin-config-card-head .button {
  min-width: 96px;
  min-height: 46px;
  white-space: nowrap;
}

.admin-live-rate-card .button {
  margin-top: 0;
  white-space: nowrap;
}

.admin-config-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-rate-row {
  grid-template-columns: repeat(2, minmax(140px, 1fr)) minmax(96px, auto);
}

.admin-config-row.method-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-config-row.method-row .wide-field,
.admin-address-pool {
  grid-column: 1 / -1;
}

.admin-address-pool {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.admin-address-pool > strong,
.admin-address-pool > span {
  display: block;
}

.admin-address-pool > strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.admin-address-pool > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-address-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.8fr) minmax(86px, auto);
  gap: 10px;
  align-items: end;
}

.admin-config-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-config-row > .button {
  align-self: end;
  justify-self: start;
  min-width: 112px;
  white-space: nowrap;
}

.admin-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.admin-finance-metric {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.admin-finance-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-finance-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.manual-recharge-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.manual-recharge-form {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.manual-recharge-form .form-message {
  grid-column: 1 / -1;
}

.switch-line {
  min-height: 40px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
}

.switch-line input {
  min-height: auto;
  width: 18px;
  height: 18px;
}

.small-button {
  min-height: 36px;
  padding-inline: 14px;
}

body[data-admin-required] main {
  background: #f5f6f8;
}

body[data-admin-required] .dashboard-section {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 56px);
  padding-bottom: 72px;
}

.admin-panel {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #ffffff;
  padding: clamp(18px, 2vw, 26px);
  margin-top: 18px;
  box-shadow: 0 14px 34px rgba(20, 24, 35, 0.045);
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-head:has(.search-field) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
}

.admin-panel-head-with-search {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
}

.admin-network-panel .admin-panel-head-with-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}

.admin-recharge-search-row {
  width: min(100%, 560px);
  margin: -4px 0 22px;
}

.admin-network-panel [data-admin-node-refresh] {
  align-self: end;
  justify-self: end;
  margin-top: 34px;
  min-width: 190px;
  min-height: 52px;
  padding-inline: 24px;
  width: fit-content;
}

.panel-head > div,
.panel-head label {
  min-width: 0;
}

.panel-head h2 {
  max-width: none;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
  margin-bottom: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.search-field,
.inline-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.search-field span,
.inline-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.search-field input,
.inline-form input,
.inline-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 14px;
  color: var(--ink);
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.inline-form > .button {
  align-self: end;
  justify-self: start;
  min-width: 128px;
  white-space: nowrap;
}

.admin-panel .button,
.admin-console .button {
  max-width: 100%;
  min-width: 0;
}

.recharge-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.recharge-form.dashboard-recharge-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  table-layout: auto;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  overflow-wrap: break-word;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-console th,
.admin-console td {
  vertical-align: middle;
}

.admin-console .table-actions {
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

.admin-console .table-actions button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.admin-user-cell strong,
.admin-user-cell small {
  line-height: 1.35;
}

.admin-user-actions {
  justify-content: center;
}

.admin-recharge-table {
  min-width: 1080px;
  table-layout: fixed;
}

.admin-recharge-table th:nth-child(1) {
  width: 21%;
}

.admin-recharge-table th:nth-child(2) {
  width: 20%;
}

.admin-recharge-table th:nth-child(3) {
  width: 12%;
}

.admin-recharge-table th:nth-child(4) {
  width: 18%;
}

.admin-recharge-table th:nth-child(5) {
  width: 13%;
}

.admin-recharge-table th:nth-child(6) {
  width: 16%;
}

.admin-recharge-status {
  text-align: center;
}

.admin-recharge-status .status-pill {
  justify-content: center;
  min-width: 82px;
  white-space: normal;
}

.admin-recharge-actions {
  justify-content: center;
  min-width: 190px;
}

td:first-child {
  min-width: 220px;
}

td:not(:first-child):not(.table-actions) {
  min-width: 86px;
}

td strong,
td small {
  overflow-wrap: anywhere;
}

tr:last-child td {
  border-bottom: 0;
}

.admin-console {
  --admin-rail-width: clamp(236px, 18vw, 288px);
  --admin-board-width: 1420px;
  --admin-pad-x: clamp(24px, 3vw, 54px);
  --admin-card-gap: 14px;
  --admin-card-height: 118px;
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: var(--admin-rail-width) minmax(0, 1fr);
  background: #f5f6f8;
}

.admin-console[hidden] {
  display: none !important;
}

.admin-console-view[hidden],
.admin-console-panel[hidden],
.admin-console-grid[hidden] {
  display: none !important;
}

.admin-console-rail {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  border-right: 1px solid var(--line-soft);
  background: #ffffff;
  padding: 22px 16px;
  overflow-y: auto;
}

.admin-console-card {
  min-height: 72px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #fbfbfd;
  padding: 12px;
}

.admin-console-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
}

.admin-console-card strong,
.admin-console-card span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-console-card strong {
  font-size: 14px;
  line-height: 1.3;
}

.admin-console-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-console-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.admin-console-nav a {
  border-radius: 10px;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  color: #2f3034;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-console-nav a:hover,
.admin-console-nav a.active {
  background: #f0f0f2;
}

.admin-console-main {
  width: min(100%, var(--admin-board-width));
  min-width: 0;
  justify-self: center;
  padding: clamp(36px, 2.6vw, 48px) var(--admin-pad-x) 64px;
}

.admin-console-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.admin-console-hero h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(34px, 2.6vw, 48px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.admin-console-hero p:not(.eyebrow) {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 520;
}

.admin-console-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.admin-console-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1120px);
  gap: 16px;
  margin-top: 26px;
}

.admin-console-metric {
  min-height: 116px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  padding: 18px 20px;
  box-shadow: 0 14px 30px rgba(20, 24, 35, 0.045);
  min-width: 0;
}

.admin-console-metric.good {
  border-color: #d8efdf;
  background: #f1fbf5;
}

.admin-console-metric.warn {
  border-color: #f1ddb8;
  background: #fff7ed;
}

.admin-console-metric.danger {
  border-color: #efc8c8;
  background: #fff1f1;
}

.admin-console-metric span,
.admin-console-metric small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-console-metric strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(30px, 2.1vw, 38px);
  line-height: 1;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.admin-console-panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #ffffff;
  padding: 22px;
  margin-top: 20px;
  box-shadow: 0 18px 38px rgba(20, 24, 35, 0.05);
  min-width: 0;
}

.admin-console-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
}

.admin-console-grid .admin-console-panel {
  min-width: 0;
}

.admin-console-grid > .admin-console-panel:only-child {
  grid-column: 1 / -1;
}

.admin-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-diagnostic-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 16px;
  min-width: 0;
}

.admin-diagnostic-card span,
.admin-diagnostic-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-diagnostic-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  overflow-wrap: anywhere;
}

@media (min-width: 1760px) {
  .admin-console-main {
    margin-left: clamp(0px, 1vw, 18px);
  }
}

@media (max-width: 1360px) {
  .admin-console {
    --admin-rail-width: 230px;
    --admin-pad-x: 24px;
    --admin-card-height: 104px;
    --admin-card-gap: 12px;
  }

  .admin-console-main {
    padding-top: 22px;
  }

  .admin-console-hero h2 {
    font-size: 36px;
  }

  .admin-console-hero p:not(.eyebrow) {
    display: none;
  }

  .admin-console-metrics {
    width: 100%;
    gap: 12px;
    margin-top: 16px;
  }

  .admin-console-metric {
    min-height: 106px;
    padding: 14px 16px;
  }

  .admin-console-metric span,
  .admin-console-metric small {
    font-size: 14px;
  }

  .admin-console-metric strong {
    margin-top: 8px;
    font-size: 30px;
  }

  .node-item.admin-node-card > .protocol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-console-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .admin-console-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-console-main {
    width: 100%;
    padding: 28px 24px 48px;
  }

  .admin-console-metrics,
  .admin-console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-hero {
    grid-template-columns: 1fr;
  }

  .admin-console-actions {
    justify-content: flex-start;
  }

  .admin-recharge-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-config-section-head,
  .admin-live-rate-card,
  .admin-config-card-head,
  .admin-node-summary {
    grid-template-columns: 1fr;
  }

  .admin-node-state {
    justify-content: flex-start;
  }

  .admin-rate-row,
  .admin-config-row.method-row {
    grid-template-columns: 1fr;
  }

  .node-item.admin-node-card > .protocol-grid {
    grid-template-columns: 1fr;
  }

  .admin-ticket-card {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  }

  .admin-node-health-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-node-health-board > div:not(:first-child) {
    border-left: 0;
    padding-left: 0;
  }

  .admin-ticket-main,
  .admin-ticket-action {
    grid-column: 1 / -1;
  }

  .admin-ticket-action {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .admin-console-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-console-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-metrics,
  .admin-console-grid {
    grid-template-columns: 1fr;
  }

  .admin-export-range,
  .admin-export-actions,
  .admin-node-health-board {
    grid-template-columns: 1fr;
  }

  .admin-ticket-card {
    grid-template-columns: 1fr;
  }
}

.ops-page {
  background: #f6f7f9;
}

.ops-header {
  background: rgba(255, 255, 255, 0.92);
}

.ops-layout {
  width: 100%;
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: minmax(340px, 24vw) minmax(0, 1fr);
  overflow: visible;
}

.ops-rail {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  border-right: 1px solid var(--line-soft);
  background: #ffffff;
  padding: clamp(24px, 1.5vw, 40px) clamp(18px, 1.4vw, 36px);
  overflow-y: auto;
}

.ops-admin-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--soft-2);
  padding: 16px;
}

.ops-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.ops-admin-card strong,
.ops-admin-card span {
  display: block;
  overflow-wrap: anywhere;
}

.ops-admin-card strong {
  font-size: clamp(16px, 0.9vw, 20px);
  line-height: 1.35;
}

.ops-admin-card span:not(.ops-avatar) {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(13px, 0.72vw, 16px);
}

.ops-nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.ops-nav a {
  border-radius: 12px;
  padding: clamp(13px, 0.8vw, 18px) clamp(14px, 1vw, 22px);
  color: #424245;
  font-size: clamp(16px, 0.88vw, 20px);
  font-weight: 650;
  line-height: 1.2;
}

.ops-nav a:hover,
.ops-nav a.active {
  background: var(--soft);
  color: var(--ink);
}

.ops-canvas {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(34px, 3vw, 64px) clamp(28px, 3.2vw, 96px) 72px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.ops-hero h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: 52px;
  line-height: 1.08;
}

.ops-hero p {
  max-width: 920px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.6;
}

.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ops-health-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.ops-health-row span {
  min-height: 52px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.ops-health-row strong {
  color: var(--ink);
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ops-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1vw, 24px);
  margin-top: clamp(22px, 2vw, 34px);
  align-items: start;
}

.ops-overview-tile {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: clamp(18px, 1.2vw, 30px);
  box-shadow: 0 12px 34px rgba(20, 24, 35, 0.04);
}

.ops-overview-tile.good {
  background: #f3fbf6;
  border-color: #d9efdf;
}

.ops-overview-tile.warn {
  background: #fff8ef;
  border-color: #f2deb8;
}

.ops-overview-tile.danger {
  background: #fff3f3;
  border-color: #efcaca;
}

.ops-overview-tile span,
.ops-overview-tile small {
  color: var(--muted);
  font-size: clamp(13px, 0.72vw, 16px);
  font-weight: 650;
  line-height: 1.35;
}

.ops-overview-tile strong {
  display: block;
  margin: auto 0 10px;
  color: var(--ink);
  font-size: clamp(32px, 1.8vw, 56px);
  line-height: 1;
  font-weight: 720;
}

.ops-summary-card,
.ops-section,
.ops-panel,
.ops-user-card,
.ops-user-row {
  border: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(20, 24, 35, 0.04);
}

.ops-view[hidden] {
  display: none !important;
}

.ops-summary-card {
  min-height: 240px;
  border-radius: 18px;
  padding: 22px;
}

.ops-summary-card.good {
  background: #f3fbf6;
  border-color: #d9efdf;
}

.ops-summary-card.warn {
  background: #fff8ef;
  border-color: #f2deb8;
}

.ops-card-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--soft);
  padding: 5px 9px;
  color: #55555b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ops-summary-card strong {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 730;
}

.ops-summary-card p {
  min-height: 48px;
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.55;
}

.ops-card-pair {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(210, 210, 215, 0.72);
  padding-top: 11px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.ops-card-pair b {
  color: var(--ink);
  white-space: nowrap;
}

.ops-section {
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  margin-top: 18px;
}

.ops-section-head,
.ops-panel-head,
.ops-user-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.ops-section-head {
  align-items: end;
  margin-bottom: 20px;
}

.ops-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.16;
}

.ops-search {
  display: grid;
  gap: 7px;
  min-width: 280px;
}

.ops-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.ops-search input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 14px;
  color: var(--ink);
}

.ops-user-grid,
.ops-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
}

.ops-split.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-user-card,
.ops-user-row,
.ops-panel {
  min-width: 0;
  border-radius: 16px;
  padding: 20px;
}

.ops-user-card h3,
.ops-user-row h3,
.ops-panel h3 {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.25;
}

.ops-user-card p,
.ops-user-row p,
.ops-panel p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.55;
}

.ops-user-list,
.ops-stack {
  display: grid;
  gap: 16px;
}

.ops-definition-grid,
.ops-node-list dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.ops-definition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-user-card.compact .ops-definition-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-definition-grid div,
.ops-node-list dl div,
.ops-mini-metrics div,
.ops-offer-grid div {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--soft-2);
  padding: 12px;
}

.ops-definition-grid dt,
.ops-node-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.ops-definition-grid dd,
.ops-node-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.ops-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ops-link-row a {
  border-radius: 999px;
  background: var(--soft);
  padding: 7px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.ops-admin-edit {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(120px, 0.26fr) auto minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 16px;
}

.ops-admin-edit label {
  display: grid;
  gap: 7px;
}

.ops-admin-edit label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.ops-admin-edit input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 12px;
  color: var(--ink);
}

.ops-admin-edit small,
.ops-version-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ops-admin-edit small.error {
  color: #b42318;
}

.ops-admin-edit small.success,
.ops-version-row small {
  color: #177245;
}

.ops-chip {
  min-height: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  background: var(--soft);
  color: #424245;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ops-chip.ok {
  border-color: #bfdfcb;
  background: #eef8f1;
  color: #177245;
}

.ops-chip.blue {
  border-color: #c9d8f0;
  background: #eef4ff;
  color: #245fb2;
}

.ops-chip.warn {
  border-color: #eed5aa;
  background: #fff6e8;
  color: #8a570c;
}

.ops-chip.danger {
  border-color: #efcaca;
  background: #fff0f0;
  color: #b42318;
}

.ops-chip.muted {
  border-color: #d8d8de;
  background: #f6f6f8;
  color: #62626a;
}

.ops-panel-head {
  margin-bottom: 16px;
}

.ops-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-align: right;
}

.ops-timeline,
.ops-order-list,
.ops-node-list,
.ops-device-list,
.ops-ticket-list,
.ops-version-list,
.ops-audit-list,
.ops-risk-list {
  display: grid;
  gap: 12px;
}

.ops-timeline > div,
.ops-order-list > div,
.ops-node-list > div,
.ops-device-list > div,
.ops-ticket-list > div,
.ops-version-list > div {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.ops-timeline > div:first-child,
.ops-order-list > div:first-child,
.ops-node-list > div:first-child,
.ops-device-list > div:first-child,
.ops-ticket-list > div:first-child,
.ops-version-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.ops-timeline strong,
.ops-order-list strong,
.ops-node-list strong,
.ops-device-list strong,
.ops-ticket-list strong,
.ops-version-list strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: 14px;
}

.ops-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.ops-order-list span,
.ops-device-list span,
.ops-version-list span,
.ops-node-list span,
.ops-audit-list span,
.ops-risk-list span,
.ops-offer-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ops-node-list dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-node-list > .ops-node-card,
.ops-node-list > .ops-node-card:first-child {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--soft-2);
  padding: 16px;
}

.ops-node-card {
  transition: opacity 160ms ease, background 160ms ease;
}

.ops-node-card.offline {
  background: #fbfbfd;
  opacity: 0.82;
}

.ops-node-title,
.ops-node-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ops-node-actions {
  flex-shrink: 0;
  align-items: center;
}

.ops-node-actions .button {
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.ops-node-list code {
  display: block;
  border-radius: 10px;
  background: #f3f3f6;
  padding: 9px 10px;
  margin-top: 12px;
  color: #424245;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ops-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ops-mini-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.ops-mini-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
}

.ops-bars {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.ops-bars div {
  position: relative;
  min-height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft-2);
}

.ops-bars span {
  position: absolute;
  inset: 0 auto 0 0;
  background: #d9ebff;
}

.ops-bars strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.ops-footnote {
  margin-top: 14px;
}

.ops-risk-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-risk-list span,
.ops-audit-list span {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--soft-2);
  padding: 11px 12px;
}

.ops-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-offer-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

@media (min-width: 1800px) {
  .ops-canvas {
    padding: 56px 96px 88px;
  }

  .ops-hero h1 {
    font-size: 60px;
  }

  .ops-overview-grid {
    gap: 22px;
    margin-top: 32px;
  }

  .ops-overview-tile {
    min-height: 206px;
    padding: 26px;
  }

  .ops-overview-tile strong {
    font-size: 50px;
  }

  .ops-overview-tile span,
  .ops-overview-tile small {
    font-size: 15px;
  }
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  min-width: 278px;
  max-width: none;
}

.table-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.table-actions span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.node-list {
  display: grid;
  gap: 20px;
}

.admin-node-location {
  display: grid;
  gap: 12px;
}

.admin-node-location-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 0 2px;
}

.admin-node-location-head strong,
.admin-node-location-head span {
  display: block;
}

.admin-node-location-head strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.admin-node-location-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-node-location-list {
  display: grid;
  gap: 16px;
}

.admin-node-health-board {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(150px, auto));
  gap: 14px;
  align-items: center;
  background: #fff;
  padding: 16px 18px;
}

.admin-node-health-board.is-ok {
  border-color: #bfead1;
  background: #f1fbf5;
}

.admin-node-health-board.is-warn {
  border-color: #ffdba6;
  background: #fff8ed;
}

.admin-node-health-board strong,
.admin-node-health-board span {
  display: block;
}

.admin-node-health-board > div:not(:first-child) {
  border-left: 1px solid rgba(20, 24, 35, 0.08);
  padding-left: 14px;
}

.admin-node-health-board strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.admin-node-health-board span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.node-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--paper);
  padding: 16px;
  min-width: 0;
}

.node-item-stack {
  align-items: stretch;
  flex-direction: column;
}

.node-item strong,
.node-item span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.node-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.node-item > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.node-item > div:first-child {
  min-width: 0;
}

.admin-node-card {
  gap: 18px;
  padding: 22px 24px;
}

.admin-node-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-node-title {
  font-size: 22px;
  line-height: 1.18;
}

.admin-node-meta {
  margin-top: 8px !important;
  font-size: 16px !important;
  line-height: 1.35;
}

.latency-value {
  display: inline !important;
  margin-top: 0 !important;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
}

.latency-value.fast {
  color: #07804b !important;
}

.latency-value.medium {
  color: #a56500 !important;
}

.latency-value.slow {
  color: #c72f2f !important;
}

.latency-value.unknown {
  color: #7a7d86 !important;
  font-weight: 800;
}

.admin-node-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-node-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-node-state .button {
  min-width: 120px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 800;
}

.node-item .node-status-badge {
  min-height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 0;
  padding: 0 18px;
  background: #f0f0f2;
  color: #55565c;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.node-item .node-status-badge i {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.node-item .node-status-badge.online {
  background: #e8f9ef;
  color: #087a4a;
}

.node-item .node-status-badge.offline {
  background: #fff0f0;
  color: #c23333;
}

.node-item .node-status-badge.enabled {
  background: #eef6ff;
  color: #1f5f9f;
}

.node-item .node-status-badge.disabled {
  background: #f3f3f4;
  color: #707178;
}

.protocol-grid {
  display: grid;
  gap: 10px;
}

.node-item.admin-node-card > .protocol-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  align-items: stretch;
  justify-content: stretch;
}

.protocol-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 15px 16px;
  min-width: 0;
  background: #fff;
}

.protocol-row > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.protocol-row > div:first-child {
  min-width: 0;
}

.protocol-row strong {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.protocol-row span {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.protocol-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.protocol-health-detail {
  color: #8a5a00 !important;
}

.protocol-row span .latency-value {
  font-size: inherit;
}

.protocol-row .status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.protocol-row .button {
  min-width: 78px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.status-pill {
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.online {
  background: #ecfdf3;
  color: #027a48;
}

.status-pill.danger {
  background: #fff0f0;
  color: #bf2b2b;
}

.status-pill.warn {
  background: #fff7e8;
  color: #9a5a00;
}

.status-pill.unknown {
  background: #f2f3f5;
  color: #6d7078;
}

.status-pill.disabled {
  background: #efeff1;
  color: #64666d;
}

.admin-ticket-list {
  display: grid;
  gap: 12px;
}

.admin-ticket-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(180px, 220px) minmax(120px, 150px) minmax(110px, 130px) minmax(120px, auto);
  gap: 18px;
  align-items: start;
  background: var(--paper);
  padding: 18px;
  min-width: 0;
}

.admin-ticket-main {
  min-width: 0;
}

.admin-ticket-main strong,
.admin-ticket-meta strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.admin-ticket-main p {
  max-height: 118px;
  margin: 8px 0 0;
  overflow: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-ticket-meta {
  min-width: 0;
}

.admin-ticket-meta span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-ticket-meta small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-ticket-action {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.admin-chain-transaction-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-chain-transaction-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-chain-transaction-head strong {
  font-size: 16px;
  line-height: 1.3;
}

.admin-chain-transaction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-chain-transaction-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-chain-transaction-grid small {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-shell {
  min-height: calc(100vh - 52px);
  background: #f5f5f7;
  padding: clamp(18px, 4vw, 42px);
}

.client-window {
  max-width: 1280px;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
}

.client-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--inverse);
  color: var(--paper);
  padding: 30px;
}

.client-sidebar h1 {
  margin-bottom: 18px;
  font-size: 46px;
}

.client-sidebar p,
.client-sidebar .eyebrow {
  color: var(--inverse-muted);
}

.client-account {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
}

.client-account span,
.client-account strong {
  display: block;
}

.client-account span {
  color: var(--inverse-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.client-account strong {
  overflow-wrap: anywhere;
}

.client-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(20px, 4vw, 38px);
}

.client-status-card {
  border-radius: 30px;
  background: var(--soft-2);
  border: 1px solid var(--line-soft);
  padding: clamp(22px, 4vw, 34px);
}

.client-status-card.connected {
  background: #f6fff9;
}

.client-status-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.client-status-card h2 {
  margin-bottom: 0;
}

.connect-button {
  width: clamp(172px, 24vw, 230px);
  height: clamp(172px, 24vw, 230px);
  display: grid;
  place-items: center;
  margin: 32px auto;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.client-status-card.connected .connect-button {
  background: var(--accent);
}

.client-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-meta span {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.client-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

.client-alert {
  margin: 18px 0 0;
  font-size: 14px;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
}

.client-panel-head {
  align-items: center;
}

.client-panel-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.client-node-list {
  display: grid;
  gap: 10px;
}

.platform-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.platform-option {
  min-height: 74px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--paper);
  padding: 13px;
  text-align: left;
}

.platform-option.selected {
  border-color: var(--ink);
}

.platform-option strong,
.platform-option span {
  display: block;
}

.platform-option span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.client-node-option {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--paper);
  padding: 14px;
  text-align: left;
}

.client-node-option.selected {
  border-color: var(--ink);
}

.client-node-option:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.client-node-option strong,
.client-node-option small {
  display: block;
}

.client-node-option small {
  margin-top: 4px;
  color: var(--muted);
}

.client-node-option em {
  color: var(--accent);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

.client-log {
  display: grid;
  gap: 10px;
}

.client-vpn-panel {
  margin-top: 18px;
}

.client-vpn-output {
  margin-top: 16px;
}

.client-vpn-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}

.client-vpn-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.client-vpn-subscription {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.client-vpn-subscription span {
  color: var(--muted);
  font-size: 0.88rem;
}

.client-vpn-config pre {
  overflow: auto;
  max-height: 360px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f5f5f7;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

.client-vpn-qr {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.client-vpn-qr svg {
  width: 100%;
  max-width: 212px;
  height: auto;
}

.log-line {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper);
  padding: 13px 14px;
}

.log-line span,
.log-line strong {
  display: block;
}

.log-line span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.log-line strong {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero,
  .intro-band,
  .download-strip,
  .split-section,
  .auth-page,
  .faq-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .intro-cta {
    justify-content: flex-start;
  }

  .feature-grid,
  .price-grid,
  .download-grid,
  .admin-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallet-purchase-note {
    grid-template-columns: 1fr;
  }

  .faq-card {
    position: static;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-welcome-card,
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-welcome-actions {
    justify-content: flex-start;
  }

  .dashboard-metric-grid,
  .dashboard-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-window,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .client-vpn-config {
    grid-template-columns: 1fr;
  }

  .client-window {
    min-height: 0;
  }

  .client-meta {
    grid-template-columns: 1fr;
  }

  .platform-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head {
    grid-template-columns: 1fr;
  }

  .panel-head:has(.search-field) {
    grid-template-columns: 1fr;
  }

  .admin-panel-head-with-search {
    grid-template-columns: 1fr;
  }

  .admin-network-panel [data-admin-node-refresh] {
    justify-self: start;
    margin-top: 0;
    width: 100%;
  }

  .inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-layout {
    grid-template-columns: 1fr;
  }

  .ops-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .ops-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ops-canvas {
    width: 100%;
  }

  .ops-health-row,
  .ops-summary-grid,
  .ops-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-user-grid,
  .ops-split,
  .ops-split.three {
    grid-template-columns: 1fr;
  }

  .ops-admin-edit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 52px;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 58px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: var(--paper);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
    font-size: 15px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .section,
  .page-hero {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .feature-grid,
  .price-grid,
  .download-grid,
  .admin-grid,
  .stats-grid,
  .payment-box {
    grid-template-columns: 1fr;
  }

  .wallet-purchase-note {
    grid-template-columns: 1fr;
  }

  .price-grid.compact {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copy-row,
  .mini-stats,
  .dashboard-metric-grid,
  .dashboard-record-grid,
  .dashboard-kv-grid,
  .dashboard-plan-main,
  .dashboard-recharge-form,
  .recharge-form.dashboard-recharge-form,
  .dashboard-device-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-home {
    padding-inline: 14px;
  }

  .dashboard-welcome-card h1 {
    font-size: 38px;
  }

  .recharge-modal {
    align-items: stretch;
    padding: 12px;
  }

  .recharge-modal-card {
    border-radius: 22px;
  }

  .recharge-detail-list div,
  .recharge-amount-box {
    grid-template-columns: 1fr;
  }

  .recharge-amount-box .link-button {
    justify-self: start;
  }

  .admin-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .inline-form > .button,
  .admin-config-row > .button {
    width: 100%;
  }

  .tx-helper,
  .admin-config-row,
  .admin-config-row.method-row,
  .admin-address-row,
  .admin-chain-transaction-grid,
  .admin-finance-grid,
  .manual-recharge-form {
    grid-template-columns: 1fr;
  }

  .ops-canvas {
    padding: 22px 12px 40px;
  }

  .ops-hero,
  .ops-section-head,
  .ops-panel-head,
  .ops-user-main {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .ops-hero h1 {
    font-size: 34px;
  }

  .ops-hero-actions {
    justify-content: flex-start;
  }

  .ops-health-row,
  .ops-summary-grid,
  .ops-overview-grid,
  .ops-definition-grid,
  .ops-user-card.compact .ops-definition-grid,
  .ops-node-list dl,
  .ops-mini-metrics,
  .ops-risk-list,
  .ops-offer-grid,
  .ops-admin-edit,
  .ops-version-row {
    grid-template-columns: 1fr;
  }

  .ops-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-overview-grid {
    gap: 10px;
  }

  .ops-overview-tile {
    aspect-ratio: auto;
    min-height: 116px;
    padding: 14px;
  }

  .ops-node-title,
  .ops-node-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-panel-head span {
    text-align: left;
  }

  .ops-search {
    min-width: 0;
  }

  .node-item,
  .node-item > div:last-child,
  .protocol-row,
  .protocol-row > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .protocol-row {
    grid-template-columns: 1fr;
  }

  .protocol-row > div:last-child {
    justify-content: flex-start;
    min-width: 0;
  }

  .protocol-row .button {
    width: 100%;
  }

  .client-shell {
    padding: 0;
    background: var(--paper);
  }

  .client-window {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .client-sidebar {
    padding: 24px;
  }

  .connect-button {
    width: 168px;
    height: 168px;
  }

  .platform-selector {
    grid-template-columns: 1fr;
  }

  .device-frame {
    border-radius: 26px;
  }

  .connect-orb {
    width: 172px;
    height: 172px;
  }

  .connect-orb span {
    width: 104px;
    height: 104px;
  }
}
