﻿:root {
  --bg: #060b16;
  --panel: rgba(14, 22, 40, 0.84);
  --border: rgba(147, 197, 253, 0.24);
  --text: #e6f0ff;
  --muted: #9fb3d9;
  --cyan: #55d8ff;
  --mint: #7cfcc6;
  --rose: #ff7896;
  --ink: #0a1020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: linear-gradient(140deg, #040812 10%, #0b1530 54%, #071125 100%);
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(85, 216, 255, 0.18), transparent 34%),
    radial-gradient(circle at 80% 16%, rgba(124, 252, 198, 0.15), transparent 28%),
    radial-gradient(circle at 70% 78%, rgba(255, 120, 150, 0.14), transparent 30%);
  filter: saturate(125%);
}

.shell {
  width: min(980px, 100% - 32px);
  margin: 34px auto 42px;
  position: relative;
  z-index: 1;
}

.hero {
  margin-bottom: 16px;
}

.eyebrow {
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-size: 12px;
  margin: 0;
}

h1 {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  margin: 10px 0 8px;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.panel {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(5, 11, 27, 0.45);
  animation: panel-in 380ms ease;
}

@keyframes panel-in {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.stack {
  display: grid;
  gap: 14px;
}

label,
.label-head {
  margin: 0;
  font-weight: 600;
}

.label-head {
  margin-bottom: 8px;
}

input[type='url'] {
  width: 100%;
  background: rgba(7, 12, 25, 0.95);
  color: var(--text);
  border: 1px solid rgba(159, 179, 217, 0.35);
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
}

input[type='url']:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85, 216, 255, 0.18);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(159, 179, 217, 0.3);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(11, 17, 34, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip input {
  accent-color: var(--cyan);
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.primary {
  justify-self: start;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  color: #042332;
  background: linear-gradient(115deg, var(--cyan), var(--mint));
}

.ghost {
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid rgba(159, 179, 217, 0.32);
}

.notice {
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 14px;
}

.notice.error {
  border: 1px solid rgba(255, 120, 150, 0.8);
  background: rgba(56, 10, 23, 0.66);
}

.notice.success {
  border: 1px solid rgba(124, 252, 198, 0.8);
  background: rgba(9, 56, 35, 0.56);
}

.hidden {
  display: none;
}

.hint {
  margin-top: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.list {
  display: grid;
  gap: 9px;
  max-height: 380px;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(159, 179, 217, 0.28);
  background: rgba(6, 11, 23, 0.75);
  margin-bottom: 14px;
}

.item {
  display: flex;
  gap: 10px;
  align-items: start;
  font-weight: 500;
  color: #dbe9ff;
}

.item input {
  margin-top: 3px;
  accent-color: var(--cyan);
}

.download-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--cyan);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(2, 6, 15, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}

.loader.hidden {
  display: none;
}

.loader-card {
  width: min(360px, calc(100% - 32px));
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(85, 216, 255, 0.35);
  background: rgba(8, 15, 30, 0.96);
  text-align: center;
}

.pulse {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid rgba(85, 216, 255, 0.22);
  border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
}

.loader-title {
  margin: 0 0 6px;
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
}

.loader-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
}
