@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(30px, -20px, 0) rotate(2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 171, 0.35), 0 0 60px rgba(55, 162, 255, 0.25); }
  50% { box-shadow: 0 0 26px rgba(0, 255, 171, 0.75), 0 0 80px rgba(255, 83, 198, 0.45); }
}

@keyframes glowText {
  0%, 100% { text-shadow: 0 0 14px rgba(0, 255, 171, 0.9), 0 0 30px rgba(55, 162, 255, 0.5); }
  50% { text-shadow: 0 0 18px rgba(255, 83, 198, 0.9), 0 0 38px rgba(0, 255, 171, 0.7); }
}

@keyframes floatDot {
  0% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-18px) scale(1.2); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.4; }
}

:root {
  --bg-dark: #04060f;
  --panel: rgba(9, 14, 26, 0.88);
  --accent: #00ffaa;
  --accent-2: #37a2ff;
  --accent-3: #ff53c6;
  --text: #e8f0ff;
  --muted: #92a3c0;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 18px;
}

html, body {
  background: radial-gradient(circle at 10% 20%, rgba(0, 255, 170, 0.2), transparent 26%),
              radial-gradient(circle at 80% 30%, rgba(55, 162, 255, 0.22), transparent 30%),
              radial-gradient(circle at 50% 80%, rgba(255, 83, 198, 0.2), transparent 32%),
              #03050b;
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", "Fira Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.08), rgba(255, 83, 198, 0.08), rgba(55, 162, 255, 0.08));
  filter: blur(50px);
  opacity: 0.8;
  z-index: -2;
}

.swagger-ui .wrapper {
  padding: 28px;
}

.swagger-ui .topbar {
  background: linear-gradient(120deg, rgba(0, 255, 170, 0.18), rgba(55, 162, 255, 0.18), rgba(255, 83, 198, 0.18));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.swagger-ui .topbar-wrapper .link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swagger-ui .topbar-wrapper .link span {
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent);
  animation: glowText 3s ease-in-out infinite;
}

.swagger-ui .topbar a.download-url-wrapper {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #050710;
  border: none;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swagger-ui .topbar a.download-url-wrapper:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 48px rgba(255, 83, 198, 0.35);
}

.swagger-ui .scheme-container,
.swagger-ui .opblock,
.swagger-ui .models {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.swagger-ui .opblock {
  margin: 20px 0;
  overflow: hidden;
}

.swagger-ui .opblock-tag {
  background: linear-gradient(90deg, rgba(0, 255, 170, 0.3), rgba(55, 162, 255, 0.3), rgba(255, 83, 198, 0.25));
  border: none;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 18px 18px;
  border-radius: var(--radius);
  animation: pulse 3s ease-in-out infinite;
  position: relative;
}

.swagger-ui .opblock-tag::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.swagger-ui .opblock-summary {
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 255, 170, 0.03));
}

.swagger-ui .opblock-summary-method {
  border-radius: 12px;
  font-weight: 900;
  color: #0b0f1a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.swagger-ui .opblock-control-arrow {
  filter: drop-shadow(0 0 6px rgba(0, 255, 170, 0.7));
}

.swagger-ui .btn, .swagger-ui .opblock-control__btn {
  border-radius: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.swagger-ui .btn.authorize {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #050710;
  box-shadow: 0 12px 28px rgba(255, 83, 198, 0.45);
}

.swagger-ui .response-col_description__inner,
.swagger-ui table {
  background: rgba(255, 255, 255, 0.03);
}

.swagger-ui .info {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.swagger-ui .info hgroup.main a,
.swagger-ui .info hgroup.main h2 {
  color: var(--accent);
  animation: glowText 3s ease-in-out infinite;
}

.arcade-banner {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(255, 83, 198, 0.2), rgba(55, 162, 255, 0.2));
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.arcade-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--accent);
  animation: glowText 4s ease-in-out infinite;
}

.arcade-sub {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.swagger-ui .highlight-code,
.swagger-ui .model-box {
  background: rgba(6, 10, 22, 0.9) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
}

.swagger-ui .markdown code,
.swagger-ui code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 6px;
}

.neon-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  z-index: -1;
  animation: drift 12s ease-in-out infinite;
}

.floating-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-dots span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 170, 0.9), rgba(0, 255, 170, 0.1));
  animation: floatDot 3s ease-in-out infinite;
  filter: blur(0.5px);
}

.swagger-ui input[type="text"],
.swagger-ui textarea,
.swagger-ui select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swagger-ui input[type="text"]:focus,
.swagger-ui textarea:focus,
.swagger-ui select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 255, 170, 0.3);
}

.swagger-ui .parameter__name {
  color: var(--accent-2);
  font-weight: 800;
}

.swagger-ui .models-control {
  color: var(--muted);
}
