@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --bg-deep: #0a0a0f;
  --bg-card: #111118;
  --bg-panel: #16161f;
  --accent: #c084fc;
  --accent-bright: #e0b0ff;
  --accent-dim: rgba(192, 132, 252, 0.15);
  --text-primary: #f0eef6;
  --text-secondary: #9390a8;
  --text-muted: #5c5a6e;
  --border: rgba(192, 132, 252, 0.12);
  --border-hover: rgba(192, 132, 252, 0.3);
  --glow: rgba(192, 132, 252, 0.08);
  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-bright); }

/* ── Ambient bg glow ── */
.bg-ambient {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0; pointer-events: none;
}
.bg-ambient::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(192,132,252,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.bg-ambient::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(147,51,234,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.content { position: relative; z-index: 1; }

/* ── Nav ── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 48px;
  max-width: 1280px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--text-primary); display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(192, 132, 252, 0.4);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-hover); }

/* ── Inputs ── */
input, textarea, select {
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: var(--radius);
  padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  width: 100%; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,132,252,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 120px; }

label {
  display: block; margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-family: 'Space Mono', monospace; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-purple { background: rgba(192,132,252,0.15); color: var(--accent); border: 1px solid rgba(192,132,252,0.25); }
.badge-green  { background: rgba(52,211,153,0.12); color: var(--success); border: 1px solid rgba(52,211,153,0.25); }
.badge-red    { background: rgba(248,113,113,0.12); color: var(--error); border: 1px solid rgba(248,113,113,0.25); }
.badge-yellow { background: rgba(251,191,36,0.12); color: var(--warning); border: 1px solid rgba(251,191,36,0.25); }

/* ── Shot type chip ── */
.shot-chip {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; font-weight: 700;
  background: rgba(192,132,252,0.1); color: var(--accent);
  padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(192,132,252,0.2);
  display: inline-block;
}

/* ── Loading spinner ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(192,132,252,0.2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(192,132,252,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(192,132,252,0.4); }

/* ── Toast notifications ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 0.875rem; max-width: 340px;
  animation: toast-in 0.25s ease; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
}
