/* ============================================
   ASTROCHARTS — Base Styles v1.0
   Global resets, typography, utilities
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent mobile swipe-to-navigate (back/forward) gesture */
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text);
  line-height: var(--leading-normal);
  min-height: 100vh;
  overflow-x: hidden;
  /* Prevent mobile swipe-to-navigate (back/forward) gesture */
  overscroll-behavior-x: none;
}

/* ============================================
   COSMIC BACKGROUND — Image + CSS Hybrid
   Cosmos nebula image (AI-upscaled to 4K)
   Responsive: mobile, desktop 1080p, 2K, 4K
   ============================================ */

/* Layer 1: Cosmos nebula image */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  /* Mobile: lightweight 828x466 version */
  background:
    url('/static/images/bg-cosmos-mobile.webp') center center / cover no-repeat,
    /* CSS gradient fallback if image fails to load */
    radial-gradient(ellipse 55% 45% at 72% 15%, rgba(88, 40, 120, 0.35) 0%, rgba(60, 25, 90, 0.15) 40%, transparent 75%),
    radial-gradient(ellipse 50% 40% at 18% 78%, rgba(30, 50, 100, 0.25) 0%, rgba(20, 35, 75, 0.10) 45%, transparent 70%),
    var(--bg-deep);
  opacity: 0.6;
}

/* Desktop (769px – 1920px): Full HD 1920x1080 */
@media (min-width: 769px) {
  body::before {
    background:
      url('/static/images/bg-cosmos-desktop.webp') center center / cover no-repeat,
      radial-gradient(ellipse 55% 45% at 72% 15%, rgba(88, 40, 120, 0.35) 0%, rgba(60, 25, 90, 0.15) 40%, transparent 75%),
      radial-gradient(ellipse 50% 40% at 18% 78%, rgba(30, 50, 100, 0.25) 0%, rgba(20, 35, 75, 0.10) 45%, transparent 70%),
      var(--bg-deep);
  }
}

/* 2K displays (1921px – 2560px): 2560x1440 */
@media (min-width: 1921px) {
  body::before {
    background:
      url('/static/images/bg-cosmos-2k.webp') center center / cover no-repeat,
      radial-gradient(ellipse 55% 45% at 72% 15%, rgba(88, 40, 120, 0.35) 0%, rgba(60, 25, 90, 0.15) 40%, transparent 75%),
      radial-gradient(ellipse 50% 40% at 18% 78%, rgba(30, 50, 100, 0.25) 0%, rgba(20, 35, 75, 0.10) 45%, transparent 70%),
      var(--bg-deep);
  }
}

/* 4K displays (2561px+): native 4096x2304 */
@media (min-width: 2561px) {
  body::before {
    background:
      url('/static/images/bg-cosmos-4k.webp') center center / cover no-repeat,
      radial-gradient(ellipse 55% 45% at 72% 15%, rgba(88, 40, 120, 0.35) 0%, rgba(60, 25, 90, 0.15) 40%, transparent 75%),
      radial-gradient(ellipse 50% 40% at 18% 78%, rgba(30, 50, 100, 0.25) 0%, rgba(20, 35, 75, 0.10) 45%, transparent 70%),
      var(--bg-deep);
  }
}

/* High-DPI / Retina: serve higher-res image for sharp rendering */
@media (min-width: 769px) and (min-resolution: 2dppx) {
  body::before {
    background:
      url('/static/images/bg-cosmos-2k.webp') center center / cover no-repeat,
      radial-gradient(ellipse 55% 45% at 72% 15%, rgba(88, 40, 120, 0.35) 0%, rgba(60, 25, 90, 0.15) 40%, transparent 75%),
      radial-gradient(ellipse 50% 40% at 18% 78%, rgba(30, 50, 100, 0.25) 0%, rgba(20, 35, 75, 0.10) 45%, transparent 70%),
      var(--bg-deep);
  }
}

/* PNG fallback for browsers without WebP support */
@supports not (background-image: url('data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAkA4JZQCdAEO/hepAAA=')) {
  body::before {
    background:
      url('/static/images/bg-cosmos-fallback.png') center center / cover no-repeat,
      radial-gradient(ellipse 55% 45% at 72% 15%, rgba(88, 40, 120, 0.35) 0%, rgba(60, 25, 90, 0.15) 40%, transparent 75%),
      var(--bg-deep);
  }
}

/* Layer 2: Vignette + depth overlay (enhances text readability) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    /* Vignette – dark corners for focus */
    radial-gradient(ellipse 75% 65% at 50% 50%, transparent 30%, rgba(5, 5, 12, 0.70) 100%),
    /* Top fade for navbar contrast */
    linear-gradient(180deg, rgba(7,10,18,0.50) 0%, transparent 22%),
    /* Bottom fade for footer contrast */
    linear-gradient(0deg, rgba(7,10,18,0.55) 0%, transparent 25%),
    /* Overall dark tint for text readability */
    linear-gradient(180deg, rgba(10, 10, 26, 0.35) 0%, rgba(7, 10, 18, 0.30) 100%);
  pointer-events: none;
}

/* Layer 3: Starfield via box-shadows on a pseudo-element on html */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  /* Star particles – crisp white dots */
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 8%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 55%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 20%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 65%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 72%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 88%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 50%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 42%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 85%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 70% 10%, rgba(200,180,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 82% 80%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 92%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 38%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 30% 5%, rgba(220,200,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 65%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 40%, rgba(255,255,255,0.7) 0%, transparent 100%);
  animation: twinkle 8s ease-in-out infinite alternate;
}

/* Second star layer – offset animation for depth */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 17% 22%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 48%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 12%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 75%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 3% 62%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 62% 92%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 48% 5%, rgba(180,160,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 58%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 48%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 88%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 12% 75%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 28%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 95%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 83% 8%, rgba(200,190,255,0.8) 0%, transparent 100%);
  animation: twinkle 10s ease-in-out 2s infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ---- Links ---- */
a {
  color: inherit;
  text-decoration: none;
}

/* ---- Images ---- */
img, svg { display: block; max-width: 100%; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }

p {
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  min-height: var(--touch-min);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  box-shadow: var(--gold-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(212, 160, 74, 0.50);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--brand);
  background: rgba(124, 92, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover {
  color: var(--text);
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-8);
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: inset 0 0 0 0 transparent, 0 2px 12px rgba(0, 0, 0, 0.25);
}
.glass-card:hover {
  border-color: rgba(123, 63, 190, 0.40);
  box-shadow: var(--shadow-glow), 0 4px 20px rgba(0, 0, 0, 0.30);
  transform: translateY(-2px);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}
.badge-credit {
  color: var(--green);
  background: rgba(74, 222, 128, 0.10);
}
.badge-brand {
  color: var(--brand-light);
  background: rgba(124, 92, 255, 0.12);
}

/* ---- Section spacing ---- */
.section {
  padding: var(--space-24) 0;
}
.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-title h2 {
  margin-bottom: var(--space-4);
}
.section-title p {
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Grid utilities ---- */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Flex utilities ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ---- Text utilities ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }

/* ---- Stars Rating ---- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #FFD700;
  font-size: var(--text-sm);
}

/* ---- Icon Container ---- */
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--text-xl);
  background: rgba(124, 92, 255, 0.12);
  color: var(--brand-light);
  margin-bottom: var(--space-4);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: var(--text-3xl); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-2xl); }
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-visual { display: none; }
  .chat-section-grid { grid-template-columns: 1fr !important; }
  .chat-phones { display: none; }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 92, 255, 0.15); }
  50%      { box-shadow: 0 0 40px rgba(124, 92, 255, 0.30); }
}

.animate-fade-in {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
  opacity: 0;
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================
   PAGE TRANSITIONS – Smooth fade between pages
   ============================================ */
.page-transition-enter {
  animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
  from { 
    opacity: 0; 
    transform: translateY(12px); 
    filter: blur(3px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
    filter: blur(0);
  }
}

/* Page exit – applied via JS before navigation */
.page-transition-exit {
  animation: pageExit 0.2s ease-in forwards;
  pointer-events: none;
}

/* Safety: ensure content is always visible by default */
#main-content {
  opacity: 1;
  transform: none;
  filter: none;
  visibility: visible;
}

/* Extra safety: override exit animation on bfcache-restored pages */
/* Safari adds this class but the JS might not fire in time */
.page-transition-exit[style*="opacity: 1"] {
  animation: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

@keyframes pageExit {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.99); }
}

/* ============================================
   SKELETON LOADING STATES – Shimmer placeholders
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(124, 92, 255, 0.06) 0%,
    rgba(124, 92, 255, 0.12) 40%,
    rgba(124, 92, 255, 0.06) 80%
  );
  background-size: 300% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-md, 8px);
  position: relative;
  overflow: hidden;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton variants */
.skeleton-text {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 95%; }

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: 16px;
  border-radius: 8px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-card {
  padding: 24px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-lg, 14px);
  background: var(--glass-bg, rgba(15,12,30,0.75));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md, 8px);
  flex-shrink: 0;
}

.skeleton-button {
  height: 44px;
  width: 140px;
  border-radius: 9999px;
}

.skeleton-chart-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto;
}

/* Dashboard skeleton layout */
.skeleton-dashboard {
  display: grid;
  gap: 20px;
  padding: 24px;
}
.skeleton-dashboard .skeleton-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================
   BUTTON MICRO-INTERACTIONS – Ripple, press, glow
   ============================================ */

/* Ripple effect container */
.btn, .feature-card, .glass-card, .step, button, a.nav-cta-btn {
  position: relative;
  overflow: hidden;
}

/* Active/pressed state for all interactive elements */
.btn:active {
  transform: scale(0.97) !important;
  transition-duration: 80ms !important;
}

/* Enhanced primary button hover */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.15) 50%, 
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

/* Feature card hover lift + glow pulse */
.feature-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(124, 92, 255, 0.12);
}
.feature-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: 100ms;
}

/* Glass card enhanced interaction */
.glass-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  transform: translateY(-4px);
}
.glass-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 80ms;
}

/* Step number pulse on hover */
.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Testimonial card subtle tilt on hover */
.testimonial-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.3);
}

/* Nav links underline animation */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand, #7C5CFF);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a {
  position: relative;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Focus visible for accessibility */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand, #7C5CFF);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion: disable all micro-interactions */
@media (prefers-reduced-motion: reduce) {
  .page-transition-enter,
  .page-transition-exit {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .skeleton { animation: none; }
  .btn:active { transform: none !important; }
  .feature-card:hover,
  .glass-card:hover,
  .testimonial-card:hover { transform: none; }
  .btn-primary::after { display: none; }
  .stella-banner { animation: none !important; }
  .stella-banner .stella-b-particles span { animation: none !important; display: none; }
  .stella-banner .stella-b-orb { animation: none !important; }
  .stella-banner .stella-b-ring { animation: none !important; }
}

/* ═══════════════════════════════════════════════
   STELLA DASHBOARD BANNER – Premium Mystical CTA
   ═══════════════════════════════════════════════ */

.stella-banner {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1), box-shadow 0.45s cubic-bezier(.4,0,.2,1);
  box-shadow:
    0 4px 32px rgba(124,58,237,0.18),
    0 0 0 1px rgba(139,92,246,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.stella-banner:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow:
    0 12px 48px rgba(124,58,237,0.32),
    0 0 0 1.5px rgba(167,139,250,0.5),
    0 0 80px rgba(139,92,246,0.12),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Deep cosmic background */
.stella-b-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(124,58,237,0.35), transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(219,39,119,0.15), transparent 60%),
    radial-gradient(ellipse 50% 50% at 60% 80%, rgba(59,130,246,0.12), transparent 60%),
    linear-gradient(135deg, #0f0a1e 0%, #1a1038 30%, #14082e 60%, #0d0620 100%);
  z-index: 0;
}

/* Animated aurora streaks */
.stella-b-aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.5;
}
.stella-b-aurora::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    conic-gradient(from 180deg at 50% 50%,
      transparent 0deg,
      rgba(139,92,246,0.08) 60deg,
      transparent 120deg,
      rgba(244,114,182,0.06) 200deg,
      transparent 280deg,
      rgba(99,102,241,0.05) 340deg,
      transparent 360deg
    );
  animation: stellaAuroraRotate 20s linear infinite;
}
@keyframes stellaAuroraRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating star particles */
.stella-b-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.stella-b-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(192,132,252,0.6);
  animation: stellaParticleFloat var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}
@keyframes stellaParticleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  15% { opacity: 1; }
  85% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-40px) scale(1.2); }
}

/* Mystical glowing orb */
.stella-b-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
  box-shadow: 0 0 60px rgba(139,92,246,0.15);
  animation: stellaOrbPulse 3.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes stellaOrbPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateY(-50%) scale(1.15); opacity: 1; }
}

/* Thin orbital ring */
.stella-b-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  right: 6%;
  top: 50%;
  transform: translateY(-50%) rotateX(65deg);
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.15);
  animation: stellaRingSpin 12s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.stella-b-ring::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #c4b5fd;
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(196,181,253,0.8);
}
@keyframes stellaRingSpin {
  from { transform: translateY(-50%) rotateX(65deg) rotateZ(0deg); }
  to { transform: translateY(-50%) rotateX(65deg) rotateZ(360deg); }
}

/* Content area */
.stella-b-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 28px 24px;
}

/* Avatar with mystical glow ring */
.stella-b-avatar {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.stella-b-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #c084fc,
    #f472b6,
    #818cf8,
    #7c3aed
  );
  animation: stellaAvatarGlow 4s linear infinite;
  opacity: 0.8;
}
.stella-b-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(139,92,246,0.5), 0 0 48px rgba(139,92,246,0.2);
  animation: stellaAvatarPulse 2.5s ease-in-out infinite;
}
@keyframes stellaAvatarGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes stellaAvatarPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.stella-b-avatar img {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  border: 2.5px solid rgba(15,10,30,0.8);
}

/* Text block */
.stella-b-text {
  flex: 1;
  min-width: 0;
}
.stella-b-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(244,114,182,0.2));
  border: 1px solid rgba(192,132,252,0.3);
  color: #e9d5ff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.stella-b-badge i {
  font-size: 8px;
  animation: stellaBadgeStar 2s ease-in-out infinite;
}
@keyframes stellaBadgeStar {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.stella-b-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.stella-b-sub {
  font-size: 0.88rem;
  color: rgba(226,232,240,0.8);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Arrow CTA */
.stella-b-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(99,102,241,0.2));
  border: 1px solid rgba(167,139,250,0.4);
  color: #c4b5fd;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(139,92,246,0.15);
}
.stella-banner:hover .stella-b-arrow {
  background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(99,102,241,0.4));
  color: #fff;
  border-color: rgba(192,132,252,0.6);
  box-shadow: 0 0 30px rgba(139,92,246,0.3);
  transform: translateX(3px);
}

/* Shimmer sweep on hover */
.stella-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04),
    transparent
  );
  z-index: 3;
  transition: none;
  pointer-events: none;
}
.stella-banner:hover::after {
  animation: stellaShimmer 1.2s ease-out forwards;
}
@keyframes stellaShimmer {
  from { left: -100%; }
  to { left: 150%; }
}

/* Bottom glow line */
.stella-b-glow-line {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.5), rgba(244,114,182,0.3), rgba(129,140,248,0.4), transparent);
  z-index: 4;
  box-shadow: 0 0 12px rgba(167,139,250,0.3);
}

/* ─── Mobile responsive ─── */
@media (max-width: 640px) {
  .stella-b-content {
    padding: 22px 18px;
    gap: 14px;
  }
  .stella-b-avatar, .stella-b-avatar img {
    width: 52px;
    height: 52px;
  }
  .stella-b-avatar::before,
  .stella-b-avatar::after {
    inset: -3px;
  }
  .stella-b-title {
    font-size: 1.08rem;
  }
  .stella-b-sub {
    font-size: 0.8rem;
  }
  .stella-b-orb {
    width: 80px;
    height: 80px;
    right: 5%;
  }
  .stella-b-ring {
    width: 120px;
    height: 120px;
    right: 2%;
  }
  .stella-b-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}
