:root {
  --bg-deep: #071a1e;
  --bg-card: #0d3038;
  --bg-card-strong: #0f3840;
  --border: #1a5060;
  --border-soft: #143840;
  --text-main: #d8f0f3;
  --text-muted: #6ba7ae;
  --text-dim: #3d6d75;
  --teal: #2ab8c8;
  --teal-light: #c8eaed;
  --amber: #f0a500;
  --amber-bg: #1a0e00;
  --amber-brd: #3d2600;
  --green: #4ade80;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(42, 184, 200, 0.14), transparent 28%),
    radial-gradient(circle at right 20%, rgba(240, 165, 0, 0.12), transparent 22%),
    linear-gradient(180deg, #061418 0%, var(--bg-deep) 45%, #041015 100%);
  color: var(--text-main);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

img { max-width: 100%; display: block; }
button, a { font: inherit; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ambient {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
}

.ambient-left {
  width: 260px;
  height: 260px;
  top: 80px;
  left: -60px;
  background: rgba(42, 184, 200, 0.28);
}

.ambient-right {
  width: 320px;
  height: 320px;
  bottom: 50px;
  right: -100px;
  background: rgba(240, 165, 0, 0.16);
}

.site-nav,
.site-body,
.site-footer {
  padding-left: 5%;
  padding-right: 5%;
  position: relative;
  z-index: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(20, 56, 64, 0.7);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

.logo-link:hover .logo-text,
.logo-link:focus-visible .logo-text {
  color: #ffffff;
}

.logo-link:focus-visible {
  outline: 2px solid rgba(42, 184, 200, 0.65);
  outline-offset: 6px;
  border-radius: 12px;
}

.logo-text {
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--teal-light);
}

.logo-text span {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  vertical-align: super;
  color: var(--teal);
}

.nav-pill,
.pill,
.ep,
.badge-ok,
.badge-ret,
.cta-note,
.ic-label,
.key-label,
.tg-label,
.st-l,
.ft,
.qr-label,
.copy-btn {
  font-family: Consolas, "Lucida Console", monospace;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(26, 14, 0, 0.9);
  border: 1px solid rgba(61, 38, 0, 0.8);
  font-size: 12px;
}

.nav-dot,
.pdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.nav-dot,
.pdot-amber { background: var(--amber); }
.pdot-teal { background: var(--teal); }

.site-body {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.content-wrap {
  width: min(100%, 840px);
}

.screen {
  display: none;
  animation: fade-in 220ms ease;
}

.screen.active { display: block; }

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: center;
  margin-bottom: 32px;
}

.eyebrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pill,
.badge-ok,
.badge-ret,
.ep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}

.pill {
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.pill-amber,
.badge-ret,
.ep.amber {
  background: rgba(26, 14, 0, 0.9);
  color: var(--amber);
  border: 1px solid rgba(61, 38, 0, 0.9);
}

.pill-teal,
.badge-ok,
.ep {
  background: rgba(7, 30, 36, 0.92);
  color: var(--teal);
  border: 1px solid rgba(26, 80, 96, 0.8);
}

.site-h1,
.limit-h {
  margin: 0 0 14px;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.site-h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.site-h1 em {
  font-style: normal;
  color: var(--amber);
}

.site-sub {
  margin: 0;
  max-width: 580px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
}

.limit-copy {
  margin-bottom: 26px;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.cta-btn {
  border: none;
  border-radius: 16px;
  padding: 18px 26px;
  background: linear-gradient(135deg, #ffbc2b 0%, var(--amber) 100%);
  color: #1d1200;
  cursor: pointer;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  font-size: 25px;
  line-height: 1.05;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 18px 38px rgba(240, 165, 0, 0.18);
}

.cta-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cta-btn:disabled {
  cursor: progress;
  filter: saturate(0.8);
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.cta-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}

.info-grid,
.stats-row {
  display: grid;
  gap: 12px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.info-cell,
.stat,
.key-field,
.qr-box,
.limit-icon {
  background: rgba(13, 48, 56, 0.88);
  border: 1px solid rgba(20, 56, 64, 0.9);
  box-shadow: var(--shadow);
}

.info-cell,
.stat,
.key-field {
  border-radius: 14px;
}

.info-cell {
  padding: 14px 16px;
}

.ic-label,
.key-label,
.tg-label,
.st-l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.ic-val,
.st-v {
  font-size: 17px;
  color: var(--text-main);
}

.ic-val.amber,
.st-v.amber { color: var(--amber); }
.ic-val.teal { color: var(--teal); }
.ic-val.green,
.st-v.green { color: var(--green); }

.warn-box,
.error-box {
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  border-left: 3px solid var(--amber);
  background: rgba(26, 14, 0, 0.9);
  border-top: 1px solid rgba(61, 38, 0, 0.9);
  border-right: 1px solid rgba(61, 38, 0, 0.9);
  border-bottom: 1px solid rgba(61, 38, 0, 0.9);
  color: var(--text-muted);
  line-height: 1.65;
}

.warn-box strong,
.warn-box b { color: var(--amber); }
.warn-link {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: filter 160ms ease;
}
.warn-link:hover,
.warn-link:focus-visible {
  filter: brightness(1.08);
}
.warn-box {
  margin-bottom: 30px;
}
.hero-warn {
  margin-bottom: 42px;
}
.error-box {
  margin-bottom: 18px;
  color: #ffd8c2;
}

.hidden { display: none !important; }

.key-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.badge-ok,
.badge-ret {
  display: flex;
  width: fit-content;
  margin: 0 auto 24px;
  justify-content: center;
  text-align: center;
}

.qr-box {
  padding: 14px;
  border-radius: 18px;
  background: #c8eaed;
}

.qr-box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.qr-label {
  margin: 12px 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

.key-field {
  padding: 16px 18px;
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--teal);
  word-break: break-all;
  font-family: Consolas, "Lucida Console", monospace;
}

.copy-btn {
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(26, 80, 96, 0.9);
  background: rgba(15, 56, 64, 0.95);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.copy-btn:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.tg-section-top,
.tg-section {
  border-top: 1px solid rgba(20, 56, 64, 0.7);
  padding-top: 20px;
}

.tg-section-top {
  border-top: none;
  border-bottom: 1px solid rgba(20, 56, 64, 0.7);
  padding-top: 0;
  padding-bottom: 22px;
  margin-bottom: 22px;
}

.tg-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tg-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  transition: transform 160ms ease, filter 160ms ease;
}

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

.tg-ch {
  background: rgba(7, 30, 36, 0.95);
  color: var(--teal);
  border: 1px solid rgba(26, 80, 96, 0.8);
}

.tg-bot {
  background: linear-gradient(135deg, #ffbc2b 0%, var(--amber) 100%);
  color: #1d1200;
}

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

.stat {
  padding: 18px 20px;
}

.st-v {
  font-family: Consolas, "Lucida Console", monospace;
  font-size: 24px;
}

.mt-24 { margin-top: 24px; }

.limit-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.limit-h {
  font-size: clamp(34px, 5vw, 48px);
  text-align: center;
}

.limit-copy {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(20, 56, 64, 0.7);
  background: rgba(4, 16, 21, 0.68);
}

.online-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(29, 18, 0, 0.22);
  border-top-color: #1d1200;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .hero-layout,
  .key-layout,
  .stats-row,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-action {
    max-width: 320px;
  }

  .key-layout {
    gap: 22px;
  }

  .qr-box {
    width: min(100%, 220px);
    margin: 0 auto;
  }

  .qr-label {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-nav,
  .site-body,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-body {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .site-nav,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-btn,
  .tg-btn,
  .copy-btn {
    width: 100%;
  }

  .tg-btns {
    flex-direction: column;
  }

  .st-v {
    font-size: 21px;
  }
}
