:root {
  --bg1: #020617;
  --bg2: #0f172a;
  --panel: #020617cc;
  --neon: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1e293b;
  --accent: #0ea5e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(120deg, var(--bg1), var(--bg2), var(--bg1));
  background-size: 300% 300%;
  animation: bgMove 18s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background: linear-gradient(90deg, #020617, #020617, #0f172a);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

header .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, var(--neon), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #020617;
  font-size: 24px;
  box-shadow: 0 0 20px #38bdf860;
}

header h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.5px;
}

header .right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill {
  background: #020617;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

main {
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

form {
  background: rgba(2,6,23,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

input[type="text"], select {
  padding: 10px;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
}

input[type="text"]::placeholder {
  color: var(--muted);
}

.notice {
  margin-top: 18px;
  padding: 12px;
  border-left: 4px solid var(--neon);
  background: rgba(3,10,35,0.6);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
}

a.download {
  color: #020617;
  background: var(--neon);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.download:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--neon);
}

#loader {
  margin-top: 20px;
  text-align: center;
  color: var(--neon);
}

.spinner {
  margin: 10px auto;
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Particles overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--neon)33 1px, transparent 1px);
  background-size: 60px 60px;
  animation: drift 60s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 1000px 1000px; }
}
