.dca-body {
  background: radial-gradient(circle at 18% 18%, #06150a, #000 80%);
  color: #e6fff3;
  text-transform: lowercase;
  display: block;
  overflow-y: auto;
  touch-action: auto;
}

.lang-toggle {
  position: static;
  border: 1px solid rgba(103, 255, 122, 0.5);
  background: rgba(0, 0, 0, 0.8);
  color: #e6fff3;
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.45rem 0.7rem;
  height: auto;
  width: 3.2rem;
  min-width: 3.2rem;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  text-transform: lowercase;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-right: 4.5rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.brand {
  letter-spacing: 0.08em;
  color: #aefcd4;
}

.nav {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a,
.nav span {
  color: #d8ffe8;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(103, 255, 122, 0.25);
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.75rem;
}

.nav a:hover {
  border-color: rgba(103, 255, 122, 0.5);
}

.nav__current {
  border-color: rgba(103, 255, 122, 0.6);
  color: #67ff7a;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(103, 255, 122, 0.35);
  background: rgba(0, 0, 0, 0.7);
}

.eyebrow {
  margin: 0;
  color: #67ff7a;
  font-size: 0.7rem;
}

h1 {
  margin: 0.4rem 0;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.lead {
  margin: 0.3rem 0 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

button {
  border: 1px solid rgba(103, 255, 122, 0.5);
  background: rgba(0, 0, 0, 0.8);
  color: #e6fff3;
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}

button.ghost {
  border-color: rgba(103, 255, 122, 0.25);
  color: #aefcd4;
}

.panel {
  border: 1px solid rgba(103, 255, 122, 0.35);
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 0.5rem;
}

.panel h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: #aefcd4;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}

input[type="number"],
input[type="text"] {
  width: 140px;
  border: 1px solid rgba(103, 255, 122, 0.4);
  background: rgba(0, 0, 0, 0.7);
  color: #e6fff3;
  padding: 0.35rem 0.4rem;
  font-family: inherit;
  font-size: 0.75rem;
}

select {
  width: 140px;
  border: 1px solid rgba(103, 255, 122, 0.4);
  background: rgba(0, 0, 0, 0.7);
  color: #e6fff3;
  padding: 0.35rem 0.4rem;
  font-family: inherit;
  font-size: 0.75rem;
}

.compare-toggle {
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.compare-toggle .check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.compare-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid rgba(103, 255, 122, 0.35);
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.7);
}

.card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: #aefcd4;
}

.results .chart-card {
  grid-column: 1 / -1;
  order: 10;
}

.chart-card canvas {
  width: 100%;
  height: 320px;
  border: 1px solid rgba(103, 255, 122, 0.25);
  background: rgba(0, 0, 0, 0.7);
}

.small {
  font-size: 0.7rem;
}

.compare-card .compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.compare-card p {
  margin: 0 0 0.25rem;
}

.compare-card strong {
  display: block;
  margin-bottom: 0.15rem;
}

.card p {
  margin: 0.15rem 0;
  font-size: 0.8rem;
}

.log-card ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.log-card li {
  font-size: 0.75rem;
  padding: 0.3rem 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(103, 255, 122, 0.1);
}

.muted {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  .page {
    padding: 1rem 0.75rem 2.5rem;
  }
  .nav {
    gap: 0.4rem;
  }
  .panel {
    grid-template-columns: 1fr;
  }
  label {
    flex-direction: column;
    align-items: flex-start;
  }
  input[type="number"],
  input[type="text"],
  select {
    width: 100%;
  }
  .hero {
    padding: 0.85rem;
  }
  button {
    width: 100%;
    text-align: center;
  }
  .cta {
    flex-direction: column;
    align-items: stretch;
  }
  .results {
    grid-template-columns: 1fr;
  }
  .log-card ul {
    max-height: 160px;
  }
}
