:root {
  --bg: #060a07;
  --green: #3ddc6f;
  --green-dim: #1d6b3a;
  --green-soft: #b9f3cc;
  --red: #ff6b5e;
  --border: #16331f;
  --panel: #0c140d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  background: radial-gradient(900px 500px at 50% -10%, rgba(61,220,111,0.08), transparent 60%), var(--bg);
  color: var(--green-soft);
  display: flex;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,0.12) 0px, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 3px
  );
  mix-blend-mode: multiply;
  z-index: 10;
}

.wrap { width: 100%; max-width: 600px; }

.terminal {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(61,220,111,0.05), 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 60px -20px rgba(61,220,111,0.15);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #0a120b;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; opacity: 0.55; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.titlebar .path { margin-left: auto; font-size: 11.5px; color: var(--green-dim); }

.screen { padding: 26px 24px 28px; }

.line { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.line.comment { color: var(--green-dim); font-size: 12.5px; letter-spacing: 0.02em; }
h1.line {
  font-size: 19px;
  color: var(--green);
  margin: 2px 0 14px;
  text-shadow: 0 0 14px rgba(61,220,111,0.35);
  font-weight: 700;
}
.line.dim { color: #6fae85; font-size: 12.5px; margin-bottom: 22px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.prompt { color: var(--green); font-weight: 700; font-size: 13.5px; flex-shrink: 0; }

.row input[type=url] {
  flex: 1;
  min-width: 160px;
  background: #081108;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--green-soft);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 10px;
}
.row input[type=url]:focus { outline: none; border-color: var(--green-dim); }
.row input[type=url]::placeholder { color: #2c5a3a; }

button {
  background: var(--green-dim);
  color: #04140a;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 14px;
  cursor: pointer;
  text-transform: lowercase;
}
button:hover { background: var(--green); }

.result { display: none; margin-top: 14px; font-size: 13.5px; word-break: break-all; }
.result.show { display: block; }
.result .arrow { color: var(--green-dim); }
.result a { color: var(--green); text-decoration: underline; text-decoration-color: var(--green-dim); }

.error { color: var(--red); font-size: 12.5px; margin-top: 10px; }

.list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}
.item .orig { flex: 1; color: #5f9779; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .short { color: var(--green); }
.item .clicks { color: var(--green-dim); white-space: nowrap; font-size: 11.5px; }
.empty { color: var(--green-dim); font-size: 12.5px; padding: 4px 0; }

.blink-row { margin: 18px 0 0; display: flex; align-items: center; gap: 6px; }
.cursor {
  width: 8px; height: 15px;
  background: var(--green);
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

footer { margin-top: 22px; text-align: center; }
footer a { color: var(--green-dim); font-size: 11.5px; text-decoration: none; }
footer a:hover { color: var(--green); }
