:root {
  --atc-bg: #020617;
  --atc-panel: #1e293b;
  --atc-panel-soft: rgba(30, 41, 59, 0.86);
  --atc-green: #22c55e;
  --atc-green-dark: #064e3b;
  --atc-blue: #93c5fd;
  --atc-red: #f87171;
  --atc-muted: #cbd5e1;
  --atc-text: #f8fafc;
  --atc-border: rgba(34, 197, 94, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--atc-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--atc-text);
  background: var(--atc-bg);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  background: #00720d;
  border-bottom: 6px solid #00110a;
}

.nav-wrap {
  width: min(1280px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}

.brand {
  color: #ffffff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--atc-green);
  background: rgba(2, 6, 23, 0.45);
}

.atc-page {
  max-width: 1200px;
  margin: 34px auto;
  padding: clamp(24px, 5vw, 40px);
  color: var(--atc-text);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(17, 24, 39, 0.97)),
    repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.16) 0px, rgba(34, 197, 94, 0.16) 1px, transparent 1px, transparent 70px),
    repeating-linear-gradient(0deg, rgba(34, 197, 94, 0.10) 0px, rgba(34, 197, 94, 0.10) 1px, transparent 1px, transparent 70px);
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.atc-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(34, 197, 94, 0.22), transparent);
  animation: wireMove 8s linear infinite;
  pointer-events: none;
}

@keyframes wireMove {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.atc-content {
  position: relative;
  z-index: 1;
}

.atc-coin {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  border-radius: 50%;
  border: 4px solid var(--atc-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atc-green);
  font-size: 34px;
  font-weight: bold;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.75);
  animation: spinATC 6s linear infinite;
  background: radial-gradient(circle, #1e293b, #020617);
}

@keyframes spinATC {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.atc-card {
  background: var(--atc-panel-soft);
  border: 2px solid var(--atc-green);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 30px);
  margin-bottom: 25px;
  color: var(--atc-text);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
}

.atc-title {
  color: var(--atc-green);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.atc-blue {
  color: var(--atc-blue);
}

.atc-red {
  color: var(--atc-red);
}

.atc-green {
  color: var(--atc-green);
}

.atc-muted {
  color: var(--atc-muted);
}

.hero {
  text-align: center;
  padding: clamp(32px, 7vw, 60px) 20px;
}

.hero h1 {
  margin: 0;
  color: var(--atc-green);
  font-size: clamp(44px, 8vw, 72px);
  line-height: 0.95;
}

.hero h2 {
  margin: 18px auto 0;
  max-width: 920px;
  color: var(--atc-muted);
  font-size: clamp(22px, 3.3vw, 34px);
  font-weight: 400;
}

.hero p {
  max-width: 900px;
  margin: 25px auto 0;
  font-size: 20px;
}

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

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

.metric {
  text-align: center;
}

.metric h2 {
  margin: 0;
  font-size: 34px;
}

.atc-table-wrap {
  overflow-x: auto;
}

.atc-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--atc-text);
  min-width: 720px;
}

.atc-table th {
  background: var(--atc-green-dark);
  color: var(--atc-text);
}

.atc-table th,
.atc-table td {
  padding: 12px;
  border: 1px solid var(--atc-green);
  text-align: left;
}

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

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

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--atc-text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(203, 213, 225, 0.32);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.68);
  color: var(--atc-text);
  padding: 11px 13px;
}

select option {
  color: #020617;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.upload-control {
  border: 1px dashed rgba(34, 197, 94, 0.65);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  padding: 16px;
}

small {
  color: var(--atc-muted);
  font-weight: 400;
}

.privacy-notice {
  border-left: 5px solid var(--atc-green);
  background: rgba(34, 197, 94, 0.08);
}

.status {
  min-height: 50px;
  margin-top: 18px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.09);
  color: #dcfce7;
  padding: 13px 14px;
  font-weight: 800;
}

.status.error {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.12);
  color: var(--atc-red);
}

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

button,
.atc-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--atc-green);
  border-radius: 8px;
  background: #064e3b;
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button.primary,
.atc-button.primary {
  color: #020617;
  background: var(--atc-green);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.qr-box {
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 12px solid #ffffff;
  border-radius: 10px;
  min-height: 360px;
}

.qr-box canvas {
  width: min(100%, 390px);
  height: auto;
  image-rendering: pixelated;
}

.payload-box {
  width: 100%;
  min-height: 220px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.18);
  padding-bottom: 8px;
}

.detail-list dt {
  color: var(--atc-muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
  color: var(--atc-muted);
}

@media (max-width: 940px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .atc-grid,
  .atc-grid.two,
  .qr-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .atc-page {
    margin: 18px 10px;
  }

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