:root {
  --bg: #0f1624;
  --card: #121c2e;
  --accent: #f9a826;
  --text: #e8edf5;
  --muted: #9fb0c7;
  --border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(249, 168, 38, 0.12), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(118, 219, 255, 0.2), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page {
  width: min(960px, 94vw);
  padding: 64px 16px 80px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}

textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 12px 14px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: rgba(249, 168, 38, 0.4);
  box-shadow: 0 0 0 3px rgba(249, 168, 38, 0.16);
}

input[type="email"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus {
  outline: none;
  border-color: rgba(249, 168, 38, 0.4);
  box-shadow: 0 0 0 3px rgba(249, 168, 38, 0.16);
}

.inline-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

button {
  border: none;
  background: linear-gradient(135deg, #f9a826, #ff6a3d);
  color: #0c101a;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 140px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 6px;
  z-index: 10;
}

.menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.modal-content {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal-body {
  margin-top: 12px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

.close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
}

.status {
  font-size: 14px;
  color: var(--muted);
}

.download {
  margin-top: 16px;
}

.download a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.download a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .page {
    padding-top: 42px;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  button {
    width: 100%;
    text-align: center;
  }
}
