:root {
  --bg: #05070d;
  --bg-elevated: #0c1019;
  --surface: rgba(14, 20, 32, 0.72);
  --border: rgba(120, 160, 220, 0.16);
  --text: #e8eef8;
  --muted: #8b9bb3;
  --cyan: #3ec8ff;
  --blue: #4a7dff;
  --violet: #8b6cff;
  --success: #3dd68c;
  --danger: #ff6b7a;
  --warning: #f5b942;
  --radius: 14px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --glow: 0 0 80px rgba(62, 200, 255, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(62, 200, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(139, 108, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 10% 60%, rgba(74, 125, 255, 0.1), transparent 45%),
    linear-gradient(180deg, #05070d 0%, #080c16 50%, #05070d 100%);
  animation: atmosphereShift 18s ease-in-out infinite alternate;
}

@keyframes atmosphereShift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to { filter: hue-rotate(12deg) brightness(1.05); }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  animation: fadeDown 0.7s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(62, 200, 255, 0.35));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.admin-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.admin-link:hover {
  color: var(--text);
  border-color: rgba(62, 200, 255, 0.4);
  background: rgba(62, 200, 255, 0.08);
}

main { max-width: 960px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(115deg, #7adfff 0%, #5a8cff 45%, #a78bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 4px 30px rgba(62, 200, 255, 0.25));
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.hero-support {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.98rem;
}

.form-section {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--glow);
  animation: fadeUp 0.85s ease 0.25s both;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.section-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full { grid-column: 1 / -1; }

.field span {
  font-size: 0.82rem;
  font-weight: 500;
  color: #b4c2d8;
  letter-spacing: 0.01em;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(5, 8, 16, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(62, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 200, 255, 0.12);
}

.field input[type="file"] {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  font-family: inherit;
  font-weight: 500;
  border: none;
  background: linear-gradient(90deg, rgba(62, 200, 255, 0.2), rgba(139, 108, 255, 0.2));
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  margin-right: 0.75rem;
  cursor: pointer;
}

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: 11px;
  padding: 0.85rem 1.4rem;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  color: #041018;
  background: linear-gradient(105deg, #5ad4ff 0%, #6a8dff 50%, #9a7dff 100%);
  box-shadow: 0 8px 28px rgba(62, 200, 255, 0.22);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 36px rgba(62, 200, 255, 0.35);
}

.btn-submit {
  width: 100%;
  margin-top: 1.4rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.form-message.success {
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: var(--success);
}

.form-message.error {
  background: rgba(255, 107, 122, 0.12);
  border: 1px solid rgba(255, 107, 122, 0.35);
  color: var(--danger);
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(120, 160, 220, 0.08);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.35s ease both;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  width: min(440px, 100%);
  background: linear-gradient(165deg, #101827 0%, #0a0f1a 100%);
  border: 1px solid rgba(62, 200, 255, 0.25);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(62, 200, 255, 0.1);
  animation: modalIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  animation: logoPulse 2.5s ease-in-out infinite;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.modal-body {
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
}

.modal-body p { margin-bottom: 0.7rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body strong { color: var(--text); font-weight: 600; }

.modal .btn { width: 100%; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(62, 200, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 18px rgba(139, 108, 255, 0.55)); }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.75rem 0 1.5rem; }
  .form-section { padding: 1.35rem 1.1rem 1.5rem; }
  .site-header { padding: 1rem; }
}
