/**
 * ============================================================================
 * SOUNDBREATH.CSS - Design System v3
 * ============================================================================
 * 
 * Premium glassmorphism design for consciousness technology platform
 * 
 * Colors: Teal primary (#2dd4bf), Gold buttons (#d4af37)
 * Fonts: Space Grotesk (headings), Outfit (body), JetBrains Mono (data)
 * 
 * Version: 3.0
 * ============================================================================
 */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
    /* Background Colors */
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #0f0f15;
    --bg-elevated: #141419;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.015);
    --glass-bg-hover: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(255, 255, 255, 0.1);
    --glass-blur: 24px;
    
    /* Glass Shine */
    --glass-shine: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.05) 100%
    );
    
    /* Text Colors */
    --text-primary: #f0f0f5;
    --text-secondary: #9090a0;
    --text-muted: #505060;
    --text-inverse: #050508;
    
    /* Primary Accent - Teal */
    --accent-teal: #2dd4bf;
    --accent-teal-light: #5eead4;
    --accent-teal-dark: #14b8a6;
    --accent-teal-dim: rgba(45, 212, 191, 0.12);
    
    /* Button Accent - Gold */
    --accent-gold: #d4af37;
    --accent-gold-light: #e8c547;
    --accent-gold-dark: #c49b30;
    --accent-gold-dim: rgba(212, 175, 55, 0.12);
    
    /* Secondary - Purple */
    --accent-purple: #8b8bf5;
    --accent-purple-light: #a5a5ff;
    --accent-purple-dim: rgba(139, 139, 245, 0.12);
    
    /* Status Colors */
    --status-success: #00e676;
    --status-warning: #ffab00;
    --status-error: #ff5252;
    --status-info: #448aff;
    
    /* Gradients */
    --gradient-bg: linear-gradient(160deg, #050508 0%, #0a0a12 40%, #08080d 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #c49b30 50%, #b8922a 100%);
    --gradient-teal: linear-gradient(135deg, #5eead4 0%, #2dd4bf 50%, #14b8a6 100%);
    --gradient-teal-gold: linear-gradient(135deg, #2dd4bf 0%, #5eead4 25%, #d4af37 75%, #e8c547 100%);
    --gradient-border: linear-gradient(135deg, rgba(45, 212, 191, 0.3) 0%, rgba(139, 139, 245, 0.1) 50%, rgba(45, 212, 191, 0.2) 100%);
    
    /* Hero Text Gradient - Teal spectrum */
    --gradient-hero-text: linear-gradient(
        135deg,
        #2dd4bf 0%,
        #5eead4 20%,
        #2dd4bf 40%,
        #a5a5ff 60%,
        #2dd4bf 80%,
        #5eead4 100%
    );
    
    /* Glow Effects */
    --glow-teal: 0 0 30px rgba(45, 212, 191, 0.2);
    --glow-gold: 0 0 30px rgba(212, 175, 55, 0.2);
    --glow-purple: 0 0 40px rgba(139, 139, 245, 0.1);
    --glow-ambient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 212, 191, 0.08) 0%, transparent 60%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.03);
    
    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.75rem;
    --text-6xl: 5rem;
    
    /* Font Weights */
    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-base: 1;
    --z-elevated: 10;
    --z-overlay: 100;
    --z-modal: 1000;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient Glow Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: var(--glow-ambient);
    pointer-events: none;
    z-index: -1;
}

/* Selection */
::selection {
    background: var(--accent-teal-dim);
    color: var(--text-primary);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-medium);
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-light);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-normal);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-teal-light);
}

strong {
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

small {
    font-size: var(--text-sm);
}

/* Text Utilities */
.text-teal { color: var(--accent-teal); }
.text-gold { color: var(--accent-gold); }
.text-purple { color: var(--accent-purple); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

.font-mono { font-family: var(--font-mono); }
.font-heading { font-family: var(--font-heading); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.2em; }

/* ============================================================================
   LAYOUT
   ============================================================================ */

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

.container-sm { max-width: 640px; }
.container-md { max-width: 860px; }
.container-lg { max-width: 1024px; }

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: var(--space-8) 0;
}

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

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================================
   GLASS CARDS
   ============================================================================ */

.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md), var(--shadow-inset);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

/* Glass Shine Overlay */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    pointer-events: none;
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-inset);
}

.glass-card:hover::before {
    opacity: 0.8;
}

/* Card Variants */
.glass-card-sm {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.glass-card-lg {
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
}

/* Teal Accent Card */
.glass-card-teal {
    border-color: rgba(45, 212, 191, 0.15);
}

.glass-card-teal:hover {
    border-color: rgba(45, 212, 191, 0.25);
    box-shadow: var(--shadow-lg), var(--glow-teal);
}

/* Gold Accent Card */
.glass-card-gold {
    border-color: rgba(212, 175, 55, 0.15);
}

.glass-card-gold:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-lg), var(--glow-gold);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    text-align: center;
    padding: var(--space-16) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-teal);
    background: var(--accent-teal-dim);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--weight-light);
    letter-spacing: -0.04em;
    margin-bottom: var(--space-6);
    line-height: 1;
}

/* Hero Title with Animated Teal Gradient */
.hero-title .highlight {
    position: relative;
    display: inline-block;
    background: var(--gradient-hero-text);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-gradient 6s ease infinite;
}

@keyframes hero-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary Button - Gold (Premium CTA) */
.btn-primary {
   /* background: var(--gradient-gold);*/
    background: var(--gradient-teal);
    color: var(--text-inverse);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.4), transparent);
    transition: left 0.6s ease;
}



.btn-primary:hover:not(:disabled) {
    /* box-shadow: var(--glow-gold), 0 4px 20px rgba(212, 175, 55, 0.3); */
    box-shadow: var(--glow-teal), 0 4px 20px rgba(45, 212, 191, 0.3);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Secondary Button - Glass */
.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--glass-bg-hover);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    box-shadow: var(--shadow-md);
}

/* Teal Button */
.btn-teal {
    background: var(--gradient-teal);
    color: var(--text-inverse);
    border: none;
}

.btn-teal:hover:not(:disabled) {
    box-shadow: var(--glow-teal), 0 4px 20px rgba(45, 212, 191, 0.3);
    transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
    color: var(--accent-teal);
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--accent-teal);
    border: 1px solid var(--accent-teal);
}

.btn-outline:hover:not(:disabled) {
    background: var(--accent-teal-dim);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px var(--accent-teal-dim), var(--shadow-sm);
    background: var(--glass-bg-hover);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239090a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Radio & Checkbox Group */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-radio-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-radio-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.form-radio-item.selected,
.form-radio-item:has(input:checked) {
    border-color: var(--accent-teal);
    background: var(--accent-teal-dim);
}

.form-radio-item input[type="radio"],
.form-radio-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    cursor: pointer;
}

.form-radio-item input[type="checkbox"] {
    border-radius: var(--radius-sm);
}

.form-radio-item input:checked {
    border-color: var(--accent-teal);
    background: var(--accent-teal);
    box-shadow: inset 0 0 0 3px var(--bg-primary);
}

.form-radio-item span {
    font-size: var(--text-base);
    color: var(--text-primary);
}

/* ============================================================================
   AUDIO PLAYER
   ============================================================================ */

.audio-player {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.audio-player-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.audio-player-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.audio-player audio {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-sm);
    outline: none;
}

/* ============================================================================
   YANTRA CONTAINER
   ============================================================================ */

.yantra-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-8);
}

.yantra-container {
    position: relative;
    background: transparent;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.yantra-container svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Yantra Glow Effect */
.yantra-glow {
    box-shadow: 
        0 0 60px rgba(45, 212, 191, 0.08),
        0 0 120px rgba(139, 139, 245, 0.04);
}

/* Immersive Mode */
.yantra-immersive {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   ILLUSION VIEWER
   ============================================================================ */

.illusion-viewer {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.illusion-image {
    max-width: 90vmin;
    max-height: 80vmin;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.illusion-controls {
    position: fixed;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-4);
    z-index: var(--z-elevated);
    padding: var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
}

/* ============================================================================
   DATA DISPLAY
   ============================================================================ */

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.data-item {
    padding: var(--space-5);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.data-item:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
}

.data-label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-2);
}

.data-value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.data-value-teal {
    color: var(--accent-teal);
}

.data-value-gold {
    color: var(--accent-gold);
}

.data-value-purple {
    color: var(--accent-purple);
}

/* ============================================================================
   PROGRESS & STATUS
   ============================================================================ */

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-teal);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    border: 1px solid;
}

.status-badge-success {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.2);
    color: var(--status-success);
}

.status-badge-warning {
    background: rgba(255, 171, 0, 0.08);
    border-color: rgba(255, 171, 0, 0.2);
    color: var(--status-warning);
}

.status-badge-error {
    background: rgba(255, 82, 82, 0.08);
    border-color: rgba(255, 82, 82, 0.2);
    color: var(--status-error);
}

.status-badge-info {
    background: rgba(68, 138, 255, 0.08);
    border-color: rgba(68, 138, 255, 0.2);
    color: var(--status-info);
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.alert {
    position: relative;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.alert strong {
    font-weight: var(--weight-semibold);
}

.alert-success {
    background: rgba(0, 230, 118, 0.04);
    border-color: rgba(0, 230, 118, 0.15);
    color: var(--status-success);
}

.alert-warning {
    background: rgba(255, 171, 0, 0.04);
    border-color: rgba(255, 171, 0, 0.15);
    color: var(--status-warning);
}

.alert-error {
    background: rgba(255, 82, 82, 0.04);
    border-color: rgba(255, 82, 82, 0.15);
    color: var(--status-error);
}

.alert-info {
    background: rgba(68, 138, 255, 0.04);
    border-color: rgba(68, 138, 255, 0.15);
    color: var(--status-info);
}

/* ============================================================================
   HEADER & FOOTER
   ============================================================================ */

.site-header {
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

.site-logo span {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    background: rgba(5, 5, 8, 0.6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0;
}

.footer-text a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-text a:hover {
    color: var(--accent-teal);
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        var(--glass-bg) 0%,
        var(--glass-bg-hover) 50%,
        var(--glass-bg) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ============================================================================
   DIVIDER
   ============================================================================ */

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-8) 0;
}

.divider-teal {
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    opacity: 0.3;
}

.divider-gold {
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

/* Spacing */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
.my-12 { margin-top: var(--space-12); margin-bottom: var(--space-12); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

/* Width */
.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }


/* Remove Android tap highlight */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Remove button/link tap feedback */
button, a, .btn, input, label {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    outline: none;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .glass-card {
        padding: var(--space-6);
    }
    
    .glass-card-lg {
        padding: var(--space-8);
    }
    
    .hero {
        padding: var(--space-12) 0;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-lg {
        padding: var(--space-4) var(--space-8);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .btn {
        width: 100%;
    }
    
    .flex.gap-4 {
        flex-direction: column;
    }
    
    .glass-card {
        padding: var(--space-5);
        border-radius: var(--radius-lg);
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   PRINT
   ============================================================================ */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .site-header,
    .site-footer,
    .btn,
    .illusion-controls {
        display: none;
    }
    
    .text-teal,
    .text-gold {
        color: #333;
        -webkit-text-fill-color: #333;
    }
}