:root {
  --bg: #050915;
  --bg-soft: #0d1427;
  --card: rgba(12, 18, 34, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #a5b0d0;
  --accent: #7de2ff;
  --accent-2: #9f7cff;
  --success: #8df3b0;
  --danger: #ff7d9d;
  --warning: #ffd477;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #060816 0%, #0a1020 44%, #05070f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.site-header { padding: 22px 0 14px; }
.site-footer {
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(125, 226, 255, 0.18), rgba(159, 124, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-name {
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-select,
select,
input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 24, 0.78);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.lang-select {
  width: auto;
  min-width: 84px;
  padding-right: 40px;
}

textarea { resize: vertical; min-height: 170px; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(125, 226, 255, 0.6);
  transform: translateY(-1px);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px;
  padding: 18px 0 22px;
  position: relative;
  z-index: 2;
}

.narrow-layout {
  max-width: 820px;
  padding: 72px 0 24px;
  position: relative;
  z-index: 2;
}

.admin-layout {
  padding: 32px 0 34px;
  position: relative;
  z-index: 2;
}

.glass {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.form-card,
.success-card,
.admin-card {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  line-height: 1.02;
  margin: 14px 0 14px;
}

.hero-copy,
.success-card p,
.admin-card p,
.form-footnote,
.policy-item span,
.helper-row,
.legal-card p,
.legal-list,
.status-box {
  color: var(--muted);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 28px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(125, 226, 255, 0.26), rgba(159, 124, 255, 0.26));
  font-size: 0.85rem;
}

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

.policy-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group { margin-bottom: 18px; }
label {
  display: inline-block;
  font-size: 0.94rem;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  margin-top: 8px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.checkline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  margin-bottom: 0;
}

.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061120;
  font-weight: 800;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.ghost-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.form-footnote {
  font-size: 0.84rem;
  margin-top: 12px;
}

.status-box {
  margin-top: 14px;
  border-radius: 16px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: 0.25s ease;
}

.status-box.show {
  padding: 13px 14px;
  max-height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.status-success { color: var(--success); }
.status-error { color: var(--danger); }
.status-warning { color: var(--warning); }

.action-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge.pending_review { color: var(--warning); }
.badge.accepted { color: var(--success); }
.badge.refused { color: var(--danger); }
.badge.archived { color: #c5c7ff; }

.message-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
}

.admin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hidden { display: none !important; }

.legal-list {
  padding-left: 20px;
}

.legal-list li { margin-bottom: 10px; }

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 4%;
  background: rgba(125, 226, 255, 0.16);
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -60px;
  top: 26%;
  background: rgba(159, 124, 255, 0.14);
  animation-duration: 22s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  left: 28%;
  bottom: -110px;
  background: rgba(110, 255, 205, 0.08);
  animation-duration: 20s;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(28px, -34px, 0) scale(1.08); }
}

@media (max-width: 980px) {
  .hero-layout,
  .split-grid,
  .policy-grid,
  .admin-topbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-actions {
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-card,
  .form-card,
  .success-card,
  .admin-card {
    padding: 22px;
  }

  .helper-row {
    flex-direction: column;
  }
}
