/**
 * ═══════════════════════════════════════════════════════════════════════════
 * LIFEREPORT.AI COSMIC STYLES
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * A lean cosmic/space-themed stylesheet adapted for lifereport.ai
 * Extracted from the full Cosmic Wizard framework, optimized for web apps.
 * 
 * FEATURES:
 * - Futuristic cosmic aesthetic (minimalistic but kick-ass)
 * - Glass-morphism cards with backdrop blur
 * - Gradient buttons with shimmer animations
 * - Glowing text effects
 * - Smooth transitions and hover states
 * - Responsive design utilities
 * 
 * USAGE:
 * Include this CSS file in your HTML:
 * <link rel="stylesheet" href="lifereport-cosmic.css">
 * 
 * Then use cosmic- prefixed classes throughout your app.
 * 
 * ═══════════════════════════════════════════════════════════════════════════
 */


/* ═══════════════════════════════════════════════════════════════════════════
   1. CSS VARIABLES / THEME CONFIGURATION
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Core Colors - Adapted for lifereport.ai brand */
  --cosmic-bg: #0b0a13;              /* Deep space background */
  --cosmic-card: #151328;            /* Card background */
  --cosmic-accent: #667eea;          /* Primary purple (your brand color) */
  --cosmic-accent-2: #764ba2;        /* Secondary purple gradient */
  --cosmic-text: #f2f5ff;            /* Light text */
  --cosmic-muted: #c9c9db;           /* Muted/secondary text */
  
  /* Status Colors */
  --cosmic-danger: #ff5c7a;          /* Error/danger states */
  --cosmic-success: #2ad38b;         /* Success states */
  --cosmic-warning: #ff8800;         /* Warning states */
  --cosmic-gold: #ffd700;            /* Premium/special features */
  --cosmic-green: #4CAF50;           /* Action/positive states */
  
  /* Effects */
  --cosmic-focus: 0 0 0 3px rgba(102, 126, 234, 0.4);  /* Focus ring using your purple */
  --cosmic-radius: 18px;             /* Default border radius */
  --cosmic-radius-sm: 8px;           /* Small border radius */
  --cosmic-radius-lg: 24px;          /* Large border radius */
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. BASE STYLES & RESETS
   ═══════════════════════════════════════════════════════════════════════════ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--cosmic-text);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. COSMIC BACKGROUNDS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Primary cosmic background - radial gradient from center top */
.cosmic-bg {
  background: radial-gradient(1200px 700px at 50% -10%, #1b1840 0%, var(--cosmic-bg) 60%);
  min-height: 100vh;
  position: relative;
}

/* Alternative: use your existing gradient with cosmic twist */
.cosmic-bg-brand {
  background: radial-gradient(ellipse at top, #667eea 0%, #764ba2 50%, #0b0a13 100%);
  min-height: 100vh;
  position: relative;
}

/* Deeper space background (darker variant) */
.cosmic-bg-deep {
  background: radial-gradient(1200px 600px at 50% -20%, #252042, #0b0a12 65%);
  min-height: 100vh;
  position: relative;
}

/* Overlay for better text readability */
.cosmic-overlay::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. CARDS & PANELS (Glass-morphism)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Standard cosmic card with glass-morphism effect */
.cosmic-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)), var(--cosmic-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--cosmic-radius);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Card header with gradient */
.cosmic-card-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.18), transparent);
}

/* Card body */
.cosmic-card-body {
  padding: 22px;
}

/* Lighter section panel */
.cosmic-section {
  background: rgba(26, 23, 51, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Gold/Premium panel (for special features) */
.cosmic-panel-gold {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.04)), var(--cosmic-card);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--cosmic-radius);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 0 40px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-panel-gold .cosmic-card-header {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.18), rgba(255, 140, 0, 0.08));
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

/* Green/Success panel */
.cosmic-panel-green {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.08), rgba(56, 142, 60, 0.04)), var(--cosmic-card);
  border: 2px solid rgba(76, 175, 80, 0.4);
  border-radius: var(--cosmic-radius);
  box-shadow: 0 0 40px rgba(76, 175, 80, 0.3), 0 40px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-panel-green .cosmic-card-header {
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.18), rgba(56, 142, 60, 0.08));
  border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Cosmic title with gradient text effect and glow animation */
.cosmic-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #667eea 0%, #c792ea 50%, #37f3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
  filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.6));
  animation: cosmicTitleGlow 4s ease-in-out infinite;
  text-align: center;
  margin-bottom: 20px;
}

@keyframes cosmicTitleGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.6));
  }
  50% {
    filter: drop-shadow(0 4px 20px rgba(102, 126, 234, 0.9));
  }
}

/* Responsive title sizes */
@media (max-width: 768px) {
  .cosmic-title {
    font-size: 36px;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .cosmic-title {
    font-size: 28px;
  }
}

/* Standard headings with cosmic styling */
h1.cosmic-h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #667eea, #c792ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

h2.cosmic-h2 {
  font-size: 32px;
  color: var(--cosmic-accent);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

h3.cosmic-h3 {
  font-size: 24px;
  color: #a8a2ff;
  margin: 25px 0 15px;
}

/* Subtitle styling */
.cosmic-subtitle {
  font-size: 18px;
  color: #a8a2ff;
  letter-spacing: 1px;
}

/* Muted text */
.cosmic-muted {
  color: var(--cosmic-muted);
}

/* Gold text */
.cosmic-text-gold {
  color: var(--cosmic-gold);
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   6.1 PURPLE BUTTON (Primary - using your brand color)
   ───────────────────────────────────────────────────────────────────────── */

.cosmic-btn-purple {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 50%, #6d28d9 100%);
  color: white;
  font-size: 18px;
  box-shadow: #5b21b6 0px 10px 0px 0px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.cosmic-btn-purple::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: cosmicShimmer 3s ease-in-out infinite;
}

@keyframes cosmicShimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.cosmic-btn-purple:hover {
  background: linear-gradient(180deg, #c084fc 0%, #a855f7 50%, #9333ea 100%);
  box-shadow: #5b21b6 0px 7px 0px 0px;
  transform: translateY(-2px);
}

.cosmic-btn-purple:active {
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 50%, #6d28d9 100%);
  box-shadow: #5b21b6 0px 0px 0px 0px;
  transform: translateY(10px);
}

/* ─────────────────────────────────────────────────────────────────────────
   6.2 GOLD BUTTON (Premium/Special)
   ───────────────────────────────────────────────────────────────────────── */

.cosmic-btn-gold {
  width: 100%;
  padding: 20px 40px;
  border-radius: 12px;
  border: none;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd700 0%, #ffb300 50%, #ff8c00 100%);
  color: #1a1a1a;
  font-size: 24px;
  box-shadow: #cc7000 0px 10px 0px 0px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.cosmic-btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: cosmicShimmer 3s ease-in-out infinite;
}

.cosmic-btn-gold:hover {
  background: linear-gradient(180deg, #ffe44d 0%, #ffd700 50%, #ffb300 100%);
  box-shadow: #cc7000 0px 7px 0px 0px;
  transform: translateY(-2px);
}

.cosmic-btn-gold:active {
  background: linear-gradient(180deg, #ffd700 0%, #ffb300 50%, #ff8c00 100%);
  box-shadow: #cc7000 0px 0px 0px 0px;
  transform: translateY(10px);
}

/* ─────────────────────────────────────────────────────────────────────────
   6.3 GREEN BUTTON (Success/Action)
   ───────────────────────────────────────────────────────────────────────── */

.cosmic-btn-green {
  width: 100%;
  padding: 20px 40px;
  border-radius: 12px;
  border: none;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 50%, #2E7D32 100%);
  color: #FFFFFF;
  font-size: 24px;
  box-shadow: #1B5E20 0px 10px 0px 0px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cosmic-btn-green::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: cosmicShimmer 3s ease-in-out infinite;
}

.cosmic-btn-green:hover {
  background: linear-gradient(180deg, #66BB6A 0%, #4CAF50 50%, #43A047 100%);
  box-shadow: #1B5E20 0px 7px 0px 0px;
  transform: translateY(-2px);
}

.cosmic-btn-green:active {
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 50%, #2E7D32 100%);
  box-shadow: #1B5E20 0px 0px 0px 0px;
  transform: translateY(10px);
}

/* ─────────────────────────────────────────────────────────────────────────
   6.4 SECONDARY/SUBTLE BUTTON
   ───────────────────────────────────────────────────────────────────────── */

.cosmic-btn-secondary {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #2b2a3f, #1c1a2d);
  color: var(--cosmic-text);
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.cosmic-btn-secondary:hover {
  background: linear-gradient(180deg, #3a3952, #2a2840);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────
   6.5 SMALL ICON BUTTONS
   ───────────────────────────────────────────────────────────────────────── */

.cosmic-btn-icon-green {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid rgba(76, 175, 80, 0.6);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(56, 142, 60, 0.35));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
  transition: all 0.2s ease;
  outline: none;
}

.cosmic-btn-icon-green:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(56, 142, 60, 0.5));
  border-color: rgba(76, 175, 80, 0.8);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.cosmic-btn-icon-purple {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.35));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  transition: all 0.2s ease;
  outline: none;
}

.cosmic-btn-icon-purple:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.5));
  border-color: rgba(102, 126, 234, 0.8);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.cosmic-btn-icon-gold {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 200, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 200, 0, 0.25), rgba(255, 150, 0, 0.35));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 200, 0, 0.15);
  transition: all 0.2s ease;
  outline: none;
}

.cosmic-btn-icon-gold:hover {
  background: linear-gradient(135deg, rgba(255, 200, 0, 0.4), rgba(255, 150, 0, 0.5));
  border-color: rgba(255, 200, 0, 0.8);
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.25);
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Form field container */
.cosmic-field {
  margin: 14px 0;
}

/* Labels */
.cosmic-label {
  display: block;
  font-size: 14px;
  color: var(--cosmic-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

/* Input fields */
.cosmic-input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cosmic-text);
  font-size: 16px;
  outline: none;
  transition: 0.12s border, 0.12s box-shadow;
}

.cosmic-input:focus {
  border-color: var(--cosmic-accent);
  box-shadow: var(--cosmic-focus);
}

.cosmic-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Select/Dropdown */
.cosmic-select {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cosmic-text);
  font-size: 16px;
  outline: none;
  cursor: pointer;
  transition: 0.12s border, 0.12s box-shadow;
}

.cosmic-select:focus {
  border-color: var(--cosmic-accent);
  box-shadow: var(--cosmic-focus);
}

/* Textarea */
.cosmic-textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cosmic-text);
  font-size: 16px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: 0.12s border, 0.12s box-shadow;
}

.cosmic-textarea:focus {
  border-color: var(--cosmic-accent);
  box-shadow: var(--cosmic-focus);
}

/* Form divider */
.cosmic-form-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(to right, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%, 
    rgba(255, 255, 255, 0.15) 50%, 
    rgba(255, 255, 255, 0.1) 80%, 
    transparent 100%);
}

/* Hint text */
.cosmic-hint {
  margin-top: 6px;
  color: var(--cosmic-muted);
  font-size: 14px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. TABS NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tab container */
.cosmic-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 12px;
}

/* Individual tab */
.cosmic-tab {
  white-space: nowrap;
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  color: var(--cosmic-muted);
  transition: 0.15s all ease;
  border: none;
  background: transparent;
}

.cosmic-tab:hover {
  color: var(--cosmic-text);
  background: rgba(102, 126, 234, 0.1);
}

.cosmic-tab.active {
  color: var(--cosmic-text);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.4), rgba(102, 126, 234, 0.2));
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Alternative tab style (outline buttons) */
.cosmic-tab-btn {
  padding: 12px 24px;
  background: linear-gradient(180deg, #3a2f62, #2a224b);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.cosmic-tab-btn:hover {
  background: linear-gradient(180deg, #4a3f72, #3a325b);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.cosmic-tab-btn.active {
  background: linear-gradient(180deg, #667eea, #5a3cbf);
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Tab content areas */
.cosmic-tab-content {
  display: none;
  animation: cosmicFadeIn 0.3s;
}

.cosmic-tab-content.active {
  display: block;
}

@keyframes cosmicFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. PROGRESS BARS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Progress bar container */
.cosmic-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Progress bar fill - default purple */
.cosmic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cosmic-accent), #a855f7);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

/* Progress bar variants */
.cosmic-progress-fill.gold {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.cosmic-progress-fill.green {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.cosmic-progress-fill.yellow {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.cosmic-progress-fill.red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.cosmic-progress-fill.red-pulse {
  background: linear-gradient(90deg, #ff0000, #cc0000);
  animation: cosmicPulse 1s infinite;
}

@keyframes cosmicPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. INFO BOXES (Alerts/Notifications)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Info box (purple) */
.cosmic-info-box {
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid var(--cosmic-accent);
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  color: var(--cosmic-text);
}

/* Warning box (orange) */
.cosmic-warning-box {
  background: rgba(255, 136, 0, 0.1);
  border-left: 4px solid var(--cosmic-warning);
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  color: var(--cosmic-text);
}

/* Success box (green) */
.cosmic-success-box {
  background: rgba(42, 211, 139, 0.1);
  border-left: 4px solid var(--cosmic-success);
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  color: var(--cosmic-text);
}

/* Danger box (red) */
.cosmic-danger-box {
  background: rgba(255, 92, 122, 0.1);
  border-left: 4px solid var(--cosmic-danger);
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  color: var(--cosmic-text);
}

/* Gold box (special/premium) */
.cosmic-gold-box {
  background: rgba(255, 215, 0, 0.1);
  border-left: 4px solid var(--cosmic-gold);
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  color: var(--cosmic-text);
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. BADGES & LABELS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Basic badge */
.cosmic-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge variants */
.cosmic-badge-purple {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
  border: 1px solid rgba(102, 126, 234, 0.5);
  color: #c792ea;
}

.cosmic-badge-gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: var(--cosmic-gold);
}

.cosmic-badge-green {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.2));
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4CAF50;
}

.cosmic-badge-red {
  background: linear-gradient(135deg, rgba(255, 92, 122, 0.3), rgba(220, 38, 38, 0.2));
  border: 1px solid rgba(255, 92, 122, 0.5);
  color: var(--cosmic-danger);
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. LOADING & ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Loading text */
.cosmic-loading {
  text-align: center;
  padding: 60px;
  font-size: 18px;
  color: #a8a2ff;
}

/* Spinner animation */
.cosmic-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--cosmic-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: cosmicSpin 1s linear infinite;
  margin: 0 auto;
}

@keyframes cosmicSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade in animation */
.cosmic-fade-in {
  animation: cosmicFadeIn 0.3s ease-in-out;
}


/* ═══════════════════════════════════════════════════════════════════════════
   13. MODAL/OVERLAY STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Modal overlay backdrop */
.cosmic-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal container */
.cosmic-modal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)), var(--cosmic-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--cosmic-radius);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Modal header */
.cosmic-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.18), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Modal title */
.cosmic-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--cosmic-text);
}

/* Modal close button */
.cosmic-modal-close {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.cosmic-modal-close:hover {
  background: rgba(255, 92, 122, 0.15);
  border-color: rgba(255, 92, 122, 0.3);
  color: var(--cosmic-danger);
  box-shadow: 0 0 8px rgba(255, 92, 122, 0.2);
}

/* Modal body */
.cosmic-modal-body {
  padding: 24px;
}

/* Modal footer */
.cosmic-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Spacing utilities */
.cosmic-mt-1 { margin-top: 8px; }
.cosmic-mt-2 { margin-top: 16px; }
.cosmic-mt-3 { margin-top: 24px; }
.cosmic-mt-4 { margin-top: 32px; }

.cosmic-mb-1 { margin-bottom: 8px; }
.cosmic-mb-2 { margin-bottom: 16px; }
.cosmic-mb-3 { margin-bottom: 24px; }
.cosmic-mb-4 { margin-bottom: 32px; }

.cosmic-p-1 { padding: 8px; }
.cosmic-p-2 { padding: 16px; }
.cosmic-p-3 { padding: 24px; }
.cosmic-p-4 { padding: 32px; }

/* Text alignment */
.cosmic-text-center { text-align: center; }
.cosmic-text-left { text-align: left; }
.cosmic-text-right { text-align: right; }

/* Flex utilities */
.cosmic-flex { display: flex; }
.cosmic-flex-center { display: flex; align-items: center; justify-content: center; }
.cosmic-flex-between { display: flex; align-items: center; justify-content: space-between; }
.cosmic-flex-col { display: flex; flex-direction: column; }
.cosmic-gap-1 { gap: 8px; }
.cosmic-gap-2 { gap: 16px; }
.cosmic-gap-3 { gap: 24px; }

/* Width utilities */
.cosmic-w-full { width: 100%; }
.cosmic-w-auto { width: auto; }

/* Responsive utilities */
@media (max-width: 768px) {
  .cosmic-hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .cosmic-hide-desktop { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   END OF LIFEREPORT.AI COSMIC STYLES
   ═══════════════════════════════════════════════════════════════════════════
   
   Total: ~750 lines (vs 1,243 in original)
   Removed: Game-specific components (item cards, rarity system, stat displays)
   Optimized: For web app use cases
   
   ═══════════════════════════════════════════════════════════════════════════ */
