:root {
  --bg: #06080d;
  --bg-2: #0a1020;
  --panel: rgba(11, 16, 28, 0.78);
  --panel-solid: #111827;
  --panel-strong: #162033;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #edf2ff;
  --muted: #98a5bb;
  --muted-2: #74819a;
  --accent: #5eead4;
  --accent-2: #8b5cf6;
  --accent-3: #f59e0b;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 30px 80px rgba(1, 5, 20, 0.45);
  --shadow-soft: 0 18px 50px rgba(1, 5, 20, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(94, 234, 212, 0.15), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(139, 92, 246, 0.16), transparent 24%),
    radial-gradient(circle at 75% 80%, rgba(245, 158, 11, 0.10), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

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

img {
  display: block;
  max-width: 100%;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-orb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -18px, 0) scale(1.06);
  }
}

@keyframes shimmer {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 200% 0;
  }
}

.app-shell {
  position: relative;
  overflow-x: clip;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(95px);
  opacity: 0.9;
  z-index: 0;
}

.bg-orb--one {
  top: -120px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: rgba(94, 234, 212, 0.18);
  animation: float-orb 16s ease-in-out infinite alternate;
}

.bg-orb--two {
  top: 120px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: rgba(139, 92, 246, 0.14);
  animation: float-orb 20s ease-in-out infinite alternate-reverse;
}

.bg-orb--three {
  bottom: -120px;
  left: 18%;
  width: 280px;
  height: 280px;
  background: rgba(245, 158, 11, 0.10);
  animation: float-orb 18s ease-in-out infinite alternate;
}

.page {
  position: relative;
  z-index: 1;
  width: min(var(--maxw), calc(100vw - 32px));
  margin: 0 auto;
  padding: 112px 0 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(6, 8, 13, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  animation: rise-in 0.55s ease both;
}

.topbar__inner,
.footer__inner {
  width: min(var(--maxw), calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__inner {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease;
}

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

.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.06);
}

.brand__name {
  font-size: 1.15rem;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  box-shadow: var(--shadow-soft);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.nav__link.is-active {
  color: #07111f;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.95), rgba(167, 243, 208, 0.88));
  box-shadow: 0 12px 30px rgba(94, 234, 212, 0.18);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.54);
}

.lang-switch__label {
  font-size: 0.82rem;
  color: var(--muted);
}

.lang-switch__select {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(2, 8, 23, 0.68);
  color: var(--text);
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.54);
  color: var(--muted);
  transition: transform 140ms ease, color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.admin-chip:hover,
.admin-chip.is-active {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.26);
  background: rgba(94, 234, 212, 0.08);
}

.hero {
  text-align: center;
  margin: 0 auto 26px;
  max-width: 760px;
  animation: rise-in 0.7s ease both;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(94, 234, 212, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: rise-in 0.85s ease both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero__accent {
  background: linear-gradient(90deg, #d9f99d, #5eead4 48%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-band {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.feature-band__intro {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.feature-band__intro h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.feature-band__intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.legal-page {
  overflow: visible;
}

.legal-intro {
  display: grid;
  gap: 12px;
}

.legal-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a !important;
}

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

.legal-card {
  display: grid;
  gap: 14px;
}

.legal-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legal-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-list strong {
  color: var(--text);
}

.legal-paragraph {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-footer {
  display: grid;
  gap: 14px;
}

.legal-footer__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-footer__row strong {
  display: block;
  margin-bottom: 6px;
}

.legal-footer__row p,
.legal-footer__note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal-footer__note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.42);
}

.feature-card,
.terms-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--accent);
}

.feature-card h3,
.terms-card h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.terms-card {
  position: relative;
  overflow: hidden;
}

.terms-card__index {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 18px;
}

.card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: rise-in 0.7s ease both;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 32px 90px rgba(1, 5, 20, 0.52);
}

.card--wide {
  padding: 26px;
}

.card__glow {
  position: absolute;
  inset: -40px auto auto 12%;
  width: 220px;
  height: 220px;
  background: rgba(94, 234, 212, 0.10);
  filter: blur(50px);
  pointer-events: none;
  background-size: 200% 100%;
  animation: shimmer 10s linear infinite alternate;
}

.card__glow--violet {
  inset: auto 10% -110px auto;
  background: rgba(139, 92, 246, 0.10);
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.10);
  animation: rise-in 0.65s ease both;
}

.admin-tabs {
  width: fit-content;
  flex-wrap: wrap;
}

.tab {
  min-width: 118px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.tab:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.tab.is-active {
  color: #07111f;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.96), rgba(167, 243, 208, 0.84));
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(10, 16, 28, 0.64);
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: rise-in 0.7s ease both;
}

.panel:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 40px rgba(1, 5, 20, 0.16);
}

.panel--soft {
  background: rgba(16, 24, 40, 0.48);
}

.admin-panel {
  display: grid;
  gap: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.analytics-card--wide {
  grid-column: 1 / -1;
}

.admin-shell {
  padding: 26px;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

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

.kpi-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.46);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: rise-in 0.65s ease both;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.18);
  box-shadow: 0 18px 36px rgba(1, 5, 20, 0.18);
}

.kpi-card__label {
  color: var(--muted);
  font-size: 0.82rem;
}

.kpi-card__value {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.kpi-card__hint {
  color: var(--muted-2);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-card {
  display: grid;
  gap: 16px;
  animation: rise-in 0.75s ease both;
}

.admin-card--side {
  position: sticky;
  top: 100px;
}

.chart-shell {
  position: relative;
  width: 100%;
  height: 320px;
  min-height: 320px;
}

.chart-shell--small {
  height: 260px;
  min-height: 260px;
}

.chart-shell canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.metric-stack {
  display: grid;
  gap: 18px;
}

.metric-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(8, 12, 22, 0.45);
}

.metric-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.metric-block__head h3 {
  margin: 0;
  font-size: 1rem;
}

.metric-block__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-block__head strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.mini-chart {
  display: grid;
  gap: 8px;
}

.mini-chart__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}

.mini-chart__label,
.mini-chart__value {
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-chart__bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.mini-chart__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.96), rgba(167, 243, 208, 0.8));
}

.mini-chart__bar--accent span {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(196, 181, 253, 0.86));
}

.mini-chart__bar--success span {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.98), rgba(110, 231, 183, 0.82));
}

.mini-chart__bar--violet span {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(251, 191, 36, 0.82));
}

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

.country-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.40);
}

.country-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.country-row__meta strong {
  font-size: 0.94rem;
}

.country-row__meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.country-row__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.country-row__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.96), rgba(139, 92, 246, 0.78));
}

.output-box {
  display: grid;
  place-items: center;
  min-height: 132px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(3, 8, 19, 0.72);
  padding: 22px;
  word-break: break-word;
  text-align: center;
}

.output-box--secret {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.1rem, 3vw, 2rem);
  letter-spacing: 0.02em;
}

.output-box--spacious {
  min-height: 156px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-primary {
  border-color: rgba(94, 234, 212, 0.26);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.98), rgba(167, 243, 208, 0.86));
  color: #07111f;
  box-shadow: 0 18px 38px rgba(94, 234, 212, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 22px 48px rgba(94, 234, 212, 0.22);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.68);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-danger {
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.24);
}

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

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

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field__label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 8, 23, 0.65);
  color: var(--text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(94, 234, 212, 0.46);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input--mono,
.textarea--mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.help {
  color: var(--muted-2);
  font-size: 0.86rem;
  line-height: 1.55;
  animation: rise-in 0.55s ease both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.58);
  color: var(--muted);
  font-size: 0.83rem;
}

.pill--success {
  color: #b7f7d4;
  border-color: rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.08);
}

.pill--warning {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.08);
}

.pill--danger {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(251, 113, 133, 0.08);
}

.meter {
  display: grid;
  gap: 10px;
}

.meter__bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 2px;
}

.meter__fill {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  transition: background 140ms ease;
}

.meter__fill.is-on {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.98), rgba(139, 92, 246, 0.9));
}

.meter__label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.checkline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.48);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.checkline:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 24px rgba(1, 5, 20, 0.12);
}

.checkline__body {
  display: grid;
  gap: 4px;
}

.checkline__title {
  font-weight: 600;
}

.checkline__hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  position: relative;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.12);
  flex: 0 0 auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.toggle:hover {
  transform: scale(1.02);
}

.toggle::after {
  content: "";
  width: 22px;
  height: 22px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 999px;
  background: #f8fafc;
  transition: transform 160ms ease, background 160ms ease;
}

.toggle.is-on {
  background: rgba(94, 234, 212, 0.24);
}

.toggle.is-on::after {
  transform: translateX(20px);
  background: #d8fff7;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.28), rgba(6, 8, 13, 0.78));
  backdrop-filter: blur(4px);
  z-index: 2;
  animation: rise-in 0.45s ease both;
}

.overlay__inner {
  display: grid;
  gap: 14px;
  place-items: center;
  max-width: 320px;
}

.grid-note {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.secret-state {
  display: grid;
  gap: 18px;
}

.state-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.46);
  animation: rise-in 0.55s ease both;
}

.state-banner__title {
  margin: 0;
  font-size: 1rem;
}

.state-banner__meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.secret-card {
  display: grid;
  gap: 14px;
}

.secret-item {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.46);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.secret-item:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.16);
  box-shadow: 0 16px 28px rgba(1, 5, 20, 0.14);
}

.secret-item__label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.secret-item__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.secret-item__value code,
.code-block {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
}

.copy-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.success-layout {
  display: grid;
  gap: 18px;
}

.success-hero {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.success-hero .pill {
  border-color: rgba(94, 234, 212, 0.18);
}

.url-shell {
  display: grid;
  gap: 12px;
}

.url-shell__box {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 8, 19, 0.72);
  word-break: break-all;
}

.qr-wrap {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 8, 19, 0.62);
}

.qr-box {
  width: 232px;
  min-height: 232px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
}

.qr-box canvas,
.qr-box img {
  width: 100% !important;
  height: 100% !important;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(6, 8, 13, 0.36);
  animation: rise-in 0.8s ease both;
}

.footer__inner {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__links a {
  color: var(--muted);
  transition: color 140ms ease;
}

.footer__links a:hover {
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

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

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

  .admin-card--side {
    position: static;
  }

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

  .analytics-card--wide {
    grid-column: auto;
  }

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

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

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

  .topbar__inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(var(--maxw), calc(100vw - 24px));
    padding-top: 96px;
  }

  .card--wide {
    padding: 20px;
  }

  .field-grid--two {
    grid-template-columns: 1fr;
  }

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

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

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

  .chart-shell {
    height: 260px;
    min-height: 260px;
  }

  .chart-shell--small {
    height: 220px;
    min-height: 220px;
  }

  .tabs {
    width: 100%;
    justify-content: stretch;
  }

  .tab {
    flex: 1 1 0;
    min-width: 0;
  }

  .nav {
    gap: 6px;
  }

  .nav__link {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cluster {
    justify-content: flex-start;
  }

  .mini-chart__row {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
  }

  .country-row__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .qr-box {
    width: 200px;
    min-height: 200px;
  }
}
