:root {
  --bg: #07111f;
  --surface: rgba(10, 20, 36, 0.82);
  --surface-strong: rgba(13, 26, 45, 0.94);
  --line: rgba(121, 210, 255, 0.18);
  --line-strong: rgba(121, 210, 255, 0.34);
  --text: #eef7ff;
  --muted: #98abc1;
  --brand: #00c2ff;
  --brand-soft: rgba(14, 43, 62, 0.72);
  --accent: #7af0ff;
  --danger: #ff7b8f;
  --danger-soft: rgba(91, 24, 39, 0.5);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --glow: 0 0 0 1px rgba(122, 240, 255, 0.12), 0 20px 60px rgba(0, 75, 140, 0.22);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(44, 224, 255, 0.18), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(142, 107, 255, 0.18), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(42, 245, 194, 0.12), transparent 24%),
    linear-gradient(180deg, #040914 0%, var(--bg) 38%, #02060d 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(122, 240, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 240, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 92%);
  animation: gridDrift 24s linear infinite;
}

.admin-shell {
  width: min(860px, calc(100% - 32px));
  margin: 28px auto 40px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow), var(--glow);
  padding: 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(22px);
  animation: cardFloat 9s ease-in-out infinite;
}

.admin-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(122, 240, 255, 0.8), transparent);
}

.admin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(122, 240, 255, 0.08) 35%, transparent 58%);
  transform: translateX(-120%);
  animation: heroSweep 8s ease-in-out infinite;
}

.eyebrow,
.result-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}

.admin-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}

.intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quick-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.guide-card {
  background: linear-gradient(180deg, rgba(13, 26, 45, 0.96), rgba(8, 15, 28, 0.92));
  border: 1px solid rgba(121, 210, 255, 0.14);
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: inset 0 0 24px rgba(122, 240, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guide-card:hover,
.request-form:hover,
.result-card:hover,
.status-box:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 240, 255, 0.3);
  box-shadow: inset 0 0 24px rgba(122, 240, 255, 0.04), 0 16px 36px rgba(0, 0, 0, 0.22);
}

.guide-card h2 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #03111d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.request-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 26, 45, 0.96), rgba(9, 18, 32, 0.92));
  border: 1px solid rgba(121, 210, 255, 0.16);
  box-shadow: inset 0 0 28px rgba(122, 240, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.request-form::after,
.result-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 240, 255, 0.2), transparent 70%);
  opacity: 0.55;
  filter: blur(10px);
  animation: glowPulse 7s ease-in-out infinite;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(8, 16, 29, 0.92);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(122, 240, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(122, 240, 255, 0.08);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

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

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #03111d;
  box-shadow: 0 10px 28px rgba(0, 194, 255, 0.24);
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.secondary-btn {
  background: rgba(13, 26, 45, 0.82);
  color: var(--text);
  border: 1px solid rgba(121, 210, 255, 0.18);
}

.status-box,
.result-card {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.status-box {
  border: 1px solid rgba(121, 210, 255, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.status-box.info {
  background: var(--brand-soft);
  color: #dff8ff;
}

.status-box.error {
  background: var(--danger-soft);
  border-color: rgba(255, 123, 143, 0.2);
  color: var(--danger);
}

.result-card {
  background: linear-gradient(180deg, rgba(13, 26, 45, 0.96), rgba(8, 15, 28, 0.92));
  border: 1px solid rgba(121, 210, 255, 0.16);
  box-shadow: inset 0 0 28px rgba(122, 240, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.result-intro {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-note {
  margin: 16px 0 0;
  color: #d7ebff;
  line-height: 1.6;
}

.action-link {
  text-decoration: none;
}

.motion-card:nth-child(1) { animation: statFloat 7s ease-in-out infinite; }
.motion-card:nth-child(2) { animation: statFloat 7.8s ease-in-out infinite; }
.motion-card:nth-child(3) { animation: statFloat 8.6s ease-in-out infinite; }

.reveal {
  opacity: 0;
  animation: revealIn 0.8s ease forwards;
}

.reveal-up { transform: translateY(22px); }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes revealIn {
  to { opacity: 1; transform: translate(0, 0); }
}

@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, 10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes heroSweep {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translateX(120%); opacity: 0.7; }
  100% { opacity: 0; }
}

@keyframes statFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.62; transform: scale(1.08); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.hidden {
  display: none;
}

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

.result-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(14, 43, 62, 0.8);
  color: #dff8ff;
  font-weight: 700;
}

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

.result-item {
  background: rgba(8, 16, 29, 0.72);
  border: 1px solid rgba(121, 210, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}

.result-label {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}

.secondary-actions {
  margin-top: 14px;
}

@media (max-width: 700px) {
  .admin-shell {
    width: min(100%, calc(100% - 20px));
    margin-top: 16px;
  }

  .admin-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .quick-guide,
  .field-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }
}
