/* === HOME PAGE — Premium Solar System === */
.home-page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  padding-top: max(var(--space-6), env(safe-area-inset-top));
  padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  background: radial-gradient(
    ellipse 80% 50% at 50% 120%,
    rgba(124, 58, 237, 0.08) 0%,
    transparent 70%
  );
  overflow: hidden;
}

/* Holographic grid overlay */
.home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

.home-content {
  text-align: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  z-index: 1;
  padding-top: var(--space-4);
}

.home-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--purple-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  animation: fadeIn 0.6s ease 0.2s backwards;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.home-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: 0;
  animation: fadeIn 0.6s ease 0.3s backwards;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.home-title--cinematic .gradient-text {
  background: linear-gradient(
    135deg,
    var(--purple-200) 0%,
    var(--purple-400) 40%,
    var(--purple-300) 60%,
    var(--purple-100) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.5))
          drop-shadow(0 0 50px rgba(124, 58, 237, 0.25));
}


/* ═══════════════════════════════════════════════
   SOLAR SYSTEM — Centered at exact screen middle
   ═══════════════════════════════════════════════ */

.orbital-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(340px, 70vmin, 540px);
  height: clamp(340px, 70vmin, 540px);
}

/* --- Single visible orbital ring (the path planets follow) --- */
.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  height: 42%;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.08);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow:
    0 0 15px rgba(124, 58, 237, 0.03),
    inset 0 0 15px rgba(124, 58, 237, 0.02);
}

/* Inner decorative ring (subtle secondary track) */
.orbital-ring--inner {
  width: 60%;
  height: 28%;
  border-color: rgba(124, 58, 237, 0.04);
  box-shadow:
    0 0 8px rgba(124, 58, 237, 0.015);
}

/* --- Central Hub (Luminous Purple Sun) --- */
.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 50% 40% at 38% 30%,
      rgba(220, 200, 255, 0.35) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(190, 165, 255, 0.45) 0%,
      rgba(145, 100, 245, 0.3) 20%,
      rgba(124, 58, 237, 0.25) 40%,
      rgba(80, 30, 180, 0.15) 60%,
      rgba(30, 15, 60, 0.85) 80%,
      rgba(8, 4, 20, 0.95) 100%
    );
  border: 1.5px solid rgba(167, 139, 250, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: sunCoreShimmer 4s ease-in-out infinite;
  box-shadow:
    inset 0 -6px 16px rgba(0, 0, 0, 0.35),
    inset 0 4px 10px rgba(220, 200, 255, 0.08),
    0 0 15px rgba(167, 139, 250, 0.5),
    0 0 35px rgba(124, 58, 237, 0.35),
    0 0 60px rgba(124, 58, 237, 0.2),
    0 0 100px rgba(124, 58, 237, 0.12),
    0 0 160px rgba(124, 58, 237, 0.05);
}

/* Internal energy sweep — rotating highlight inside the core */
.orbital-center::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 30%,
    rgba(167, 139, 250, 0.15) 45%,
    rgba(190, 165, 255, 0.25) 50%,
    rgba(167, 139, 250, 0.15) 55%,
    transparent 70%,
    transparent 100%
  );
  animation: sunInternalSweep 6s linear infinite;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Internal energy pulse — breathing orb inside */
.orbital-center::before {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(190, 165, 255, 0.2) 0%,
    rgba(145, 100, 245, 0.1) 40%,
    transparent 70%
  );
  animation: sunInternalPulse 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.orbital-center-text {
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--purple-200), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

/* Sun corona — inner ring */
.orbital-center-corona {
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.12) 0%,
    rgba(124, 58, 237, 0.06) 45%,
    transparent 70%
  );
  animation: sunPulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Sun corona — outer halo */
.orbital-center-corona--outer {
  inset: -90px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.05) 0%,
    rgba(124, 58, 237, 0.015) 50%,
    transparent 70%
  );
  animation: sunPulse 5s ease-in-out infinite reverse;
}

.orbital-center-glow {
  position: absolute;
  inset: -80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.22) 0%,
    rgba(124, 58, 237, 0.12) 25%,
    rgba(124, 58, 237, 0.04) 50%,
    transparent 70%
  );
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
  animation: sunBreath 3.5s ease-in-out infinite;
}

.orbital-center-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.12);
  animation: orbitSpin 40s linear infinite;
}

.orbital-center-ring--reverse {
  inset: -16px;
  border-style: dotted;
  border-color: rgba(167, 139, 250, 0.06);
  animation: orbitSpin 60s linear infinite reverse;
}

/* --- Point Lights (subtle glow near center) --- */
.orbital-point-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 45;
}

.point-light {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.3) 0%,
    rgba(124, 58, 237, 0.1) 40%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

/* --- Orbit Worlds (planets — positioned by JS) --- */
.orbit-world {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity, filter, left, top;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
}

.orbit-world-glow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.18) 0%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* --- World Image (3D planet sphere) --- */
.orbit-world-img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.2);
  background: rgba(8, 6, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 3D sphere lighting — dynamic sun illumination via CSS vars */
.orbit-world-img::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 55% 45% at var(--sun-x, 35%) var(--sun-y, 28%),
      rgba(167, 139, 250, 0.22) 0%,
      rgba(167, 139, 250, 0.06) 35%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 100% 100% at 50% 50%,
      transparent 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  z-index: 3;
  pointer-events: none;
}

/* Specular highlight on the sphere */
.orbit-world-img::after {
  content: '';
  position: absolute;
  top: 7%;
  left: 20%;
  width: 25%;
  height: 15%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 100%
  );
  z-index: 4;
  pointer-events: none;
}

.orbit-world-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.95) contrast(1.02);
  transition: filter 0.4s ease;
  position: relative;
  z-index: 1;
}

.orbit-world:hover .orbit-world-img {
  border-color: var(--purple-400) !important;
  box-shadow:
    inset 0 0 20px rgba(124, 58, 237, 0.15),
    0 0 24px rgba(124, 58, 237, 0.35),
    0 0 50px rgba(124, 58, 237, 0.12) !important;
}

.orbit-world:hover .orbit-world-img img {
  filter: saturate(1.1) brightness(0.95) contrast(1.05);
}

/* --- World Name (label under planet) --- */
.orbit-world-name {
  font-size: 0.62rem;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.25);
  white-space: nowrap;
  transition: text-shadow 0.4s ease;
}

.orbit-world:hover .orbit-world-name {
  opacity: 1 !important;
  text-shadow:
    0 0 12px rgba(167, 139, 250, 0.5),
    0 0 30px rgba(124, 58, 237, 0.2);
}

/* --- Ripple wave container (centered on planet) --- */
.orbit-world-ripples {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 78px;
  pointer-events: none;
  z-index: 0;
}

/* Individual ripple wave ring */
.ripple-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.5);
  animation: rippleExpand 1.6s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}

/* --- Active planet state (orbit paused, emitting waves) --- */
.orbit-world--active .orbit-world-img {
  border-color: var(--purple-400) !important;
  box-shadow:
    inset 0 0 16px rgba(124, 58, 237, 0.12),
    0 0 20px rgba(124, 58, 237, 0.3),
    0 0 45px rgba(124, 58, 237, 0.12),
    0 0 80px rgba(124, 58, 237, 0.05) !important;
}

.orbit-world--active .orbit-world-name {
  opacity: 1 !important;
  text-shadow:
    0 0 12px rgba(167, 139, 250, 0.6),
    0 0 30px rgba(124, 58, 237, 0.3);
}


/* ═══════════════════════════════════════════════
   HOME ACTIONS & EMPTY STATE
   ═══════════════════════════════════════════════ */

.home-admin {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.home-admin:hover {
  color: var(--purple-400);
  border-color: var(--purple-500);
  box-shadow: var(--shadow-glow);
}

.home-actions {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  gap: var(--space-3);
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
}

.home-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
}

.home-action-btn:hover {
  color: var(--purple-400);
  border-color: var(--purple-500);
}

/* === Empty State === */
.home-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.home-empty-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--purple-400);
}

.home-empty-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.home-empty-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════
   FOOTER — Developer credit
   ═══════════════════════════════════════════════ */

.home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.62rem;
  color: rgba(167, 139, 250, 0.25);
  letter-spacing: 0.08em;
  padding: 10px 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 5;
  pointer-events: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════
   COSMOS BUBBLE — Compact floating notification
   ═══════════════════════════════════════════════ */

.cosmos-bubble {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 9999;
  background: rgba(12, 8, 28, 0.88);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 14px 20px 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 24px rgba(124, 58, 237, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.45);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 260px;
  max-width: 340px;
  pointer-events: auto;
  cursor: pointer;
}

.cosmos-bubble--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cosmos-bubble--closing {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cosmos-bubble-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cosmos-bubble-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
  animation: cosmosPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cosmosPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.cosmos-bubble-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cosmos-bubble-name {
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.cosmos-bubble-msg {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.cosmos-bubble-bar {
  width: 100%;
  height: 2px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.cosmos-bubble-bar-fill {
  width: 30%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-400), var(--purple-300));
  animation: cosmosBarSlide 1.8s ease-in-out infinite;
}

@keyframes cosmosBarSlide {
  0%   { transform: translateX(-100%); width: 30%; }
  50%  { width: 50%; }
  100% { transform: translateX(400%); width: 30%; }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Solar System
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .home-page {
    padding-top: 0;
  }

  .home-content {
    padding-top: 16vh;
  }

  .home-badge {
    margin-bottom: 2px;
  }

  .home-title {
    font-size: var(--text-3xl);
    letter-spacing: 0.04em;
    margin-bottom: 0;
  }

  .orbital-system {
    top: 50%;
    width: clamp(300px, 76vmin, 420px);
    height: clamp(300px, 76vmin, 420px);
  }

  .orbital-center {
    width: 66px;
    height: 66px;
  }

  .orbital-center-text {
    font-size: 0.95rem;
  }

  .orbital-center-glow {
    inset: -50px;
  }

  .orbital-center-corona {
    inset: -25px;
  }

  .orbital-center-corona--outer {
    inset: -60px;
  }

  .orbit-world-img {
    width: 64px;
    height: 64px;
  }

  .orbit-world-ripples {
    width: 64px;
    height: 64px;
  }

  .orbit-world-name {
    font-size: 0.55rem;
  }

  .orbit-world-glow {
    width: 86px;
    height: 86px;
  }

  .point-light {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .home-page {
    padding-top: 0;
  }

  .home-content {
    padding-top: 18vh;
  }

  .home-badge {
    font-size: 0.6rem;
    padding: 2px var(--space-2);
    margin-bottom: 0;
  }

  .home-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    letter-spacing: 0.04em;
    margin-bottom: 0;
  }

  .orbital-system {
    top: 50%;
    width: clamp(280px, 88vw, 350px);
    height: clamp(280px, 88vw, 350px);
  }

  .home-admin {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .home-actions {
    bottom: 12px;
    right: 12px;
    gap: var(--space-2);
  }

  .home-action-btn {
    padding: var(--space-1) var(--space-3);
    font-size: 0.72rem;
  }

  .home-footer {
    font-size: 0.55rem;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .orbital-center {
    width: 56px;
    height: 56px;
  }

  .orbital-center-text {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .orbital-center-glow {
    inset: -35px;
  }

  .orbital-center-corona {
    inset: -18px;
  }

  .orbital-center-corona--outer {
    inset: -45px;
  }

  .orbit-world-img {
    width: 54px;
    height: 54px;
    border-width: 1.5px;
  }

  .orbit-world-ripples {
    width: 54px;
    height: 54px;
  }

  .orbit-world-name {
    font-size: 0.48rem;
    letter-spacing: 0.05em;
  }

  .orbit-world-glow {
    width: 70px;
    height: 70px;
    top: -8px;
  }

  .point-light {
    width: 40px;
    height: 40px;
  }

  /* Bubble compact for small screens */
  .cosmos-bubble {
    min-width: 220px;
    max-width: 300px;
    bottom: 24px;
    padding: 12px 16px 10px;
    border-radius: 12px;
  }

  .cosmos-bubble-name {
    font-size: 0.76rem;
  }

  .cosmos-bubble-msg {
    font-size: 0.65rem;
  }
}


/* ═══════════════════════════════════════════════
   JOIN WORLD — "Suma tu Negocio" special planet
   ═══════════════════════════════════════════════ */

.orbit-world--join .orbit-world-img--join {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(124, 58, 237, 0.25) 0%,
    rgba(80, 30, 180, 0.15) 40%,
    rgba(30, 15, 60, 0.6) 70%,
    rgba(8, 4, 20, 0.9) 100%
  );
  border: 2px dashed rgba(167, 139, 250, 0.35);
  color: var(--purple-400);
  animation: joinWorldPulse 2.5s ease-in-out infinite;
}

.orbit-world--join:hover .orbit-world-img--join {
  border-color: var(--purple-400);
  color: var(--purple-300);
}

@keyframes joinWorldPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(124, 58, 237, 0.15); }
  50% { box-shadow: 0 0 24px rgba(124, 58, 237, 0.35), 0 0 50px rgba(124, 58, 237, 0.1); }
}


/* ═══════════════════════════════════════════════
   SUPERNOVA ANIMATION
   ═══════════════════════════════════════════════ */

.supernova-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: auto;
  background: transparent;
  transition: background 0.8s ease;
}

.supernova-overlay--active {
  background: rgba(8, 4, 20, 0.3);
}

.supernova-overlay--fade {
  background: rgba(8, 4, 20, 0.85);
  transition: background 0.6s ease;
}

.supernova-overlay--closing {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Core — bright expanding center */
.supernova-core {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, var(--purple-300) 30%, var(--purple-500) 60%, transparent 80%);
  animation: supernovaCore 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 3;
}

@keyframes supernovaCore {
  0%   { width: 4px; height: 4px; opacity: 1; }
  30%  { width: 100px; height: 100px; opacity: 1; }
  60%  { width: 200px; height: 200px; opacity: 0.9; }
  100% { width: 400px; height: 400px; opacity: 0; }
}

/* Expanding shock-wave rings */
.supernova-ring {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  z-index: 2;
}

.supernova-ring--1 {
  animation: supernovaRing 1.2s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.supernova-ring--2 {
  animation: supernovaRing 1.4s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  border-color: rgba(124, 58, 237, 0.4);
}

.supernova-ring--3 {
  animation: supernovaRing 1.6s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  border-color: rgba(124, 58, 237, 0.2);
}

@keyframes supernovaRing {
  0%   { width: 0; height: 0; opacity: 1; }
  70%  { opacity: 0.6; }
  100% { width: 600px; height: 600px; opacity: 0; }
}

/* White flash */
.supernova-flash {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(167, 139, 250, 0.3) 40%, transparent 70%);
  animation: supernovaFlash 0.8s 0.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 4;
  pointer-events: none;
}

@keyframes supernovaFlash {
  0%   { width: 0; height: 0; opacity: 1; }
  40%  { width: 300px; height: 300px; opacity: 0.8; }
  100% { width: 800px; height: 800px; opacity: 0; }
}

/* Particles flying outward */
.supernova-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple-400);
  transform: translate(-50%, -50%);
  animation: supernovaParticle 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 5;
  box-shadow: 0 0 6px var(--purple-400);
}

@keyframes supernovaParticle {
  0%   { transform: translate(-50%, -50%) translate(0, 0); opacity: 1; }
  70%  { opacity: 0.7; }
  100% { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)); opacity: 0; }
}


/* ═══════════════════════════════════════════════
   MEETING SCHEDULER — Post-supernova popup
   ═══════════════════════════════════════════════ */

.meeting-scheduler {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.meeting-scheduler--visible {
  opacity: 1;
  transform: scale(1);
}

.meeting-scheduler-content {
  background: rgba(12, 8, 28, 0.92);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: var(--space-7) var(--space-6);
  max-width: 420px;
  width: 90vw;
  text-align: center;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow:
    0 0 40px rgba(124, 58, 237, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.meeting-scheduler-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--purple-400);
  animation: meetingIconPulse 2s ease-in-out infinite;
}

.meeting-scheduler-icon--success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  animation: none;
}

@keyframes meetingIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
  50% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0.08); }
}

.meeting-scheduler-title {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.meeting-scheduler-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.meeting-scheduler-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.meeting-scheduler-field {
  text-align: left;
}

.meeting-scheduler-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.meeting-scheduler-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.meeting-scheduler-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.meeting-scheduler-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.meeting-scheduler-btn--primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  border-color: var(--purple-500);
  color: var(--text-primary);
}

.meeting-scheduler-btn--primary:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

/* ─── Responsive: Meeting Scheduler ─── */
@media (max-width: 480px) {
  .meeting-scheduler-content {
    padding: var(--space-5) var(--space-4);
    border-radius: 16px;
  }

  .meeting-scheduler-title {
    font-size: 1.1rem;
  }

  .meeting-scheduler-desc {
    font-size: 0.82rem;
  }

  .meeting-scheduler-form {
    grid-template-columns: 1fr;
  }

  .meeting-scheduler-icon {
    width: 56px;
    height: 56px;
  }
}
