:root {
  --bg: #07090f;
  --surface: #0e131e;
  --line: rgba(148, 163, 184, 0.18);
  --ink: #eef1f7;
  --muted: #a8b1c2;
  --green: #6cbe45;
  --green-dim: rgba(108, 190, 69, 0.14);
  --teal: #2dd4bf;
  --danger: #f87171;
  --font: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(45, 212, 191, 0.07), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(108, 190, 69, 0.08), transparent 55%),
    var(--bg);
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 720px; margin: 0 auto; padding: 28px 20px 64px; }
.topnav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; }
.brand { font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(108, 190, 69, 0.35);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 10px; letter-spacing: -0.03em; }
.lead { color: var(--muted); margin: 0 0 28px; line-height: 1.55; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type="text"], input[type="number"], textarea, select {
  width: 100%;
  background: #07090f;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 14px;
}
textarea { min-height: 120px; font-family: var(--mono); font-size: 13px; }
.drop {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 14px;
  cursor: pointer;
}
.drop strong { color: var(--ink); display: block; margin-bottom: 4px; }
.drop.has-file { border-color: rgba(108, 190, 69, 0.5); background: var(--green-dim); }
#payment-element { margin: 10px 0 16px; min-height: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(94deg, #b7f26d 0%, #6cbe45 48%, #2dd4bf 100%);
  color: #071008;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-top: 10px;
}
.status { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.2em; }
.status.err { color: var(--danger); }
.status.ok { color: var(--green); }
pre {
  background: #07090f;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.grid { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}
.tool-list { display: grid; gap: 10px; }
.tool-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.tool-card:hover { border-color: rgba(108, 190, 69, 0.45); text-decoration: none; }
.tool-card h3 { margin: 0 0 4px; font-size: 1rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13px; }
.footer { margin-top: 28px; color: var(--muted); font-size: 13px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.result-actions .btn { width: auto; padding: 10px 16px; }
