:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0e1116;
  background-color: #030712;
  line-height: 1.5;
  font-weight: 400;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 25% 20%, rgba(236, 72, 153, 0.15), transparent 45%),
    radial-gradient(circle at 75% 10%, rgba(14, 165, 233, 0.2), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.18), transparent 55%),
    #060b1a;
  color: #f8fafc;
  overflow-x: hidden;
}

main.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.bg-aurora,
.bg-aurora--two {
  position: fixed;
  inset: -15%;
  background: radial-gradient(circle at 25% 25%, rgba(236, 72, 153, 0.25), transparent 45%),
    radial-gradient(circle at 70% 10%, rgba(14, 165, 233, 0.3), transparent 50%),
    radial-gradient(circle at 40% 75%, rgba(59, 130, 246, 0.25), transparent 50%);
  z-index: 0;
  filter: blur(160px);
  opacity: 0.4;
  animation: float 18s ease-in-out infinite alternate;
}

.bg-aurora--two {
  animation-duration: 22s;
  animation-delay: 2s;
  filter: blur(220px);
  opacity: 0.25;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  z-index: 0;
  opacity: 0.25;
}

@keyframes float {
  from {
    transform: translateY(-20px);
  }
  to {
    transform: translateY(20px);
  }
}

.auth-panel,
.dashboard {
  width: min(1040px, 100%);
  background: rgba(7, 12, 27, 0.8);
  border-radius: 22px;
  padding: 2.5rem;
  border: 1px solid rgba(129, 140, 248, 0.2);
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.85rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  background: rgba(248, 250, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 35px 40px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(12px);
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #e0e7ff;
  gap: 0.35rem;
}

input,
button {
  font: inherit;
}

input {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(248, 250, 255, 0.92);
  color: #0b1220;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

input::placeholder {
  color: rgba(75, 85, 99, 0.7);
}

button {
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(120deg, #7c3aed, #2563eb);
  color: white;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

button.secondary {
  background: rgba(99, 102, 241, 0.15);
  color: #e0e7ff;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: none;
}

button.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.4);
}

button.secondary:hover {
  background: rgba(99, 102, 241, 0.25);
}

.dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #f4f6ff;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.tabs button {
  flex: 1;
  background: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
  border: 1px solid transparent;
}

.tabs button.active {
  background: linear-gradient(120deg, #4338ca, #6366f1);
  color: white;
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.tab-panel {
  animation: fade 180ms ease;
}

.hidden {
  display: none !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.response {
  min-height: 100px;
  margin: 0;
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(4, 10, 25, 0.85);
  color: #ecf5fe;
  overflow: auto;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

code {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0 0.35rem;
}

.helper-text {
  font-size: 0.85rem;
  color: #eef2ff;
}

.helper-text--dark {
  color: rgba(15, 23, 42, 0.9);
}

.helper-text code {
  background: rgba(255, 255, 255, 0.15);
  color: #fefefe;
  padding: 0 0.35rem;
  border-radius: 6px;
}

.helper-text--dark code {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.webhook-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.webhook-card__actions {
  display: flex;
  gap: 0.5rem;
}

button.danger {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow: none;
}

button.danger:hover {
  background: rgba(248, 113, 113, 0.25);
}

.webhook-card .response {
  max-height: 240px;
}

.payout-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 720px) {
  .dashboard__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

details.advanced {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

details.advanced summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #111827;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

textarea {
  font: inherit;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.65rem 0.75rem;
  min-height: 120px;
  resize: vertical;
  background: rgba(248, 250, 255, 0.92);
  color: #0b1220;
}

textarea::placeholder {
  color: rgba(75, 85, 99, 0.7);
}

.payurl-box {
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.payurl-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #f4f8ff;
}

.payurl-box__url {
  display: block;
  padding: 0.85rem;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #93c5fd;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.payurl-box__url:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(59, 130, 246, 0.5);
  text-decoration: underline;
}
