/* Astral – Liquid Glass + Premium SaaS */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --accent: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f4f6fb;
  --bg-card: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.25);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  --radius: 14px;
  --radius-lg: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-card: rgba(30, 41, 59, 0.65);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(124, 58, 237, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(236, 72, 153, 0.1), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(59, 130, 246, 0.08), transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(124, 58, 237, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(236, 72, 153, 0.12), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(59, 130, 246, 0.1), transparent 50%);
}

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

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}

[data-theme="dark"] .glass-strong {
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fade-up { animation: fadeUp 0.6s var(--ease) both; }
.animate-fade-in { animation: fadeIn 0.5s var(--ease) both; }
.animate-scale-in { animation: scaleIn 0.45s var(--ease) both; }

.stagger > * { animation: fadeUp 0.55s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 1.5rem;
  transition: background 0.3s var(--ease);
}
[data-theme="dark"] .header {
  background: rgba(11, 17, 32, 0.7);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-icon { transform: scale(1.06) rotate(-3deg); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.65rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
[data-theme="dark"] .btn-primary { background: #f8fafc; color: #0f172a; }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,0.04); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text); transform: translateY(-1px); }

.btn-accent {
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: white;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.icon-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
  transform: scale(1.05);
}
[data-theme="dark"] .icon-btn:hover { background: rgba(255,255,255,0.08); }

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s var(--ease) both;
}
.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #db2777 60%, #c026d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.18s both;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) 0.15s both;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(241,245,249,0.9), rgba(226,232,240,0.7));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .hero-card {
  background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(51,65,85,0.5));
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(124,58,237,0.08), rgba(236,72,153,0.1));
  pointer-events: none;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-title svg { width: 20px; height: 20px; color: var(--text-muted); }
.view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.view-all:hover { color: var(--primary); gap: 0.45rem; }

.empty-state {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.75rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}
.category-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.35s var(--ease);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.7);
  border-color: transparent;
}
.category-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease);
}
.category-card:hover .category-icon { transform: scale(1.1); }
.category-card .name { font-weight: 600; font-size: 0.9rem; }
.category-card .sub { font-size: 0.75rem; color: var(--text-muted); }

.cat-code { background: #dbeafe; color: #2563eb; }
.cat-palette { background: #fce7f3; color: #db2777; }
.cat-chart { background: #d1fae5; color: #059669; }
.cat-trending { background: #fef3c7; color: #d97706; }
.cat-briefcase { background: #e0e7ff; color: #4f46e5; }
.cat-camera { background: #cffafe; color: #0891b2; }
.cat-music { background: #ede9fe; color: #7c3aed; }
.cat-sparkles { background: #fce7f3; color: #be185d; }
[data-theme="dark"] .cat-code { background: #1e3a5f; }
[data-theme="dark"] .cat-palette { background: #4a1d3a; }
[data-theme="dark"] .cat-chart { background: #064e3b; }
[data-theme="dark"] .cat-trending { background: #78350f; }
[data-theme="dark"] .cat-briefcase { background: #312e81; }
[data-theme="dark"] .cat-camera { background: #164e63; }
[data-theme="dark"] .cat-music { background: #3b0764; }
[data-theme="dark"] .cat-sparkles { background: #831843; }

.cta-banner {
  max-width: 1280px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 1.5rem;
}
.cta-inner {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 45%, #5b21b6 100%);
  border-radius: 24px;
  padding: 3.25rem 2.5rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.35);
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.cta-inner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: -0.02em;
}
.cta-inner p {
  opacity: 0.92;
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
  position: relative;
}
.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1.3rem;
  border-radius: 9999px;
  border: none;
  font-size: 0.9rem;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  transition: box-shadow 0.3s var(--ease);
}
.cta-form input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.4); }
.cta-form .btn {
  background: white;
  color: var(--primary);
  padding: 0.8rem 1.5rem;
}
.cta-form .btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.55rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-col a:hover { color: var(--primary); transform: translateX(3px); }
.footer-bottom {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.course-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.course-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e0e7ff, #fce7f3 60%, #fef3c7);
  position: relative;
  overflow: hidden;
}
.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.08), transparent 40%);
}
.course-body { padding: 1.15rem; }
.course-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.course-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-price { font-weight: 800; font-size: 1.05rem; }
.course-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--warning);
  font-weight: 600;
}

.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
.sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  transition: all 0.25s var(--ease);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
}
.dash-content { padding: 2rem; }
.dash-header { margin-bottom: 2rem; }
.dash-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.dash-header p { color: var(--text-muted); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.stat-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 640px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.5);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: rgba(15,23,42,0.4);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.legal-content .meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.015em;
}
.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.75;
  font-size: 0.95rem;
}
.legal-content ul { padding-left: 1.35rem; margin-bottom: 1rem; }
.legal-content strong { color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-visual { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, transparent 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text);
  color: #fff;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(12px);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.step.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.step.done {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 1.5rem auto;
}
