:root {
  color-scheme: dark;
  --bg: #0b1011;
  --bg-alt: #121a1d;
  --line: #223136;
  --ink: #eef5f2;
  --muted: #9aaca6;
  --accent: #d7ff64;
  --accent-strong: #a7de00;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(215, 255, 100, 0.12), transparent 24rem),
    radial-gradient(circle at bottom left, rgba(43, 148, 109, 0.18), transparent 28rem),
    linear-gradient(180deg, #0b1011 0%, #091012 100%);
  color: var(--ink);
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
}

.shell {
  width: min(920px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.94;
  max-width: 11ch;
}

.lede {
  max-width: 52rem;
  color: var(--muted);
  margin: 1rem 0 2rem;
  font-size: 1rem;
}

.dropzone,
.result-card,
.donate-card {
  background: rgba(18, 26, 29, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 80px var(--shadow);
}

.dropzone {
  padding: 1.15rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  outline: none;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 24px 80px rgba(167, 222, 0, 0.14);
}

.drop-inner {
  min-height: 15rem;
  border: 1px dashed #304349;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.45rem;
  background:
    linear-gradient(145deg, rgba(215, 255, 100, 0.06), transparent 40%),
    rgba(8, 13, 14, 0.56);
}

.drop-inner strong {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.drop-inner span,
.status {
  color: var(--muted);
}

.meter {
  height: 0.6rem;
  border-radius: 999px;
  background: #1a2528;
  margin-top: 1rem;
  overflow: hidden;
}

.meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 120ms ease;
}

.status {
  margin: 0.9rem 0 0;
  min-height: 1.4rem;
}

.result-card {
  margin-top: 1.25rem;
  padding: 1rem;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.result-lines {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: #091012;
  border: 1px solid #1e2d31;
  display: grid;
  gap: 0.65rem;
}

.result-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.result-line.no-copy {
  gap: 0;
}

.result-line.no-copy .result-value {
  flex: 0 0 auto;
}

.result-line.has-copy .result-value {
  flex: 1 1 auto;
  min-width: 0;
}

.result-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-line {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-line svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.copy-line.copied {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-line.copied svg {
  display: none;
}

.copy-line.copied::before {
  content: "✓";
  font-size: 0.95rem;
}

.cli-lines {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.cli-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding: 1rem;
  border-radius: 16px;
  background: #091012;
  border: 1px solid #1e2d31;
}

.cli-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cli-label-inline {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.cli-value-inline {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: var(--ink);
}

button {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

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

button:not(:disabled):hover {
  color: var(--accent);
  border-color: var(--accent);
}

.donate-card {
  margin-top: 1.25rem;
  padding: 1rem;
}

.donate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.donate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  background: rgba(18, 26, 29, 0.88);
  box-shadow: 0 18px 50px var(--shadow);
}

.donate-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pay-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pay-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  background: #091012;
}

.pay-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.donate-copy {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .shell {
    padding-top: 2rem;
  }

  .drop-inner {
    min-height: 12rem;
    padding: 1rem;
  }

  .result-line,
  .cli-line {
    align-items: flex-start;
  }
}
