/**
 * Universal Styles for Consciousness Revolution
 * Industrial Retro-Futuristic Theme — matching araya-chat aesthetic
 * Dark metal / neon / cyberpunk design language
 * Electric upgrade: boosted glow, animated borders, Orbitron headers.
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&family=Rajdhani:wght@400;600;700&family=Exo+2:wght@300;400;600;700&display=swap');
/* Animate.css is loaded via <link> in each page's <head> (see animate-init.js) */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ── Futuristic Color Palette ── */
    --primary-color: #00f5ff;        /* Electric cyan — primary accent (boosted) */
    --secondary-color: #0e0c16;      /* Dark panel background */
    --accent-color: #FFD700;         /* Gold — highlights */
    --accent-green: #39ff14;         /* Toxic green */
    --accent-pink: #ff00aa;          /* Electric magenta */
    --accent-orange: #ff6b35;        /* Rust orange */
    --accent-purple: #9b30ff;        /* Electric purple */
    --success-color: #39ff14;
    --warning-color: #FFD700;
    --danger-color: #ff00aa;
    --info-color: #00f5ff;

    /* ── Background System ── */
    --bg-gradient: linear-gradient(135deg, #020206 0%, #0a0814 50%, #06040e 100%);
    --card-gradient: linear-gradient(135deg, rgba(10, 8, 22, 0.95) 0%, rgba(4, 4, 12, 0.97) 100%);
    --panel-bg: rgba(10, 8, 22, 0.92);
    --grid-line: rgba(0, 245, 255, 0.05);

    /* ── Glow Effects (boosted intensity) ── */
    --glow-cyan:    0 0 8px rgba(0, 245, 255, 0.7),  0 0 22px rgba(0, 245, 255, 0.4),  0 0 45px rgba(0, 245, 255, 0.15);
    --glow-purple:  0 0 8px rgba(155, 48, 255, 0.7), 0 0 22px rgba(155, 48, 255, 0.4), 0 0 45px rgba(155, 48, 255, 0.15);
    --glow-green:   0 0 8px rgba(57, 255, 20, 0.6),  0 0 20px rgba(57, 255, 20, 0.3),  0 0 40px rgba(57, 255, 20, 0.12);
    --glow-orange:  0 0 8px rgba(255, 107, 53, 0.6), 0 0 20px rgba(255, 107, 53, 0.3);
    --glow-amber:   0 0 8px rgba(255, 215, 0, 0.7),  0 0 22px rgba(255, 215, 0, 0.4),  0 0 45px rgba(255, 215, 0, 0.15);

    /* ── Text Colors ── */
    --text-primary: #d0d0e8;
    --text-secondary: #8888aa;
    --text-muted: #44445a;
    --text-bright: #ffffff;

    /* ── Spacing ── */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* ── Border Radius ── */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* ── Borders ── */
    --border-cyan: 1px solid rgba(0, 245, 255, 0.28);
    --border-cyan-bright: 1px solid rgba(0, 245, 255, 0.65);
    --border-amber: 1px solid rgba(255, 215, 0, 0.35);
    --border-green: 1px solid rgba(57, 255, 20, 0.32);

    /* ── Shadows ── */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.7);

    /* ── Transitions ── */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* ── Z-Index Layers ── */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ── CRT Scanlines Overlay ── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    pointer-events: none;
    z-index: 9998;
}

body {
    font-family: 'Rajdhani', 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Tighter electric grid — more vivid than the old rust-orange variant */
html {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(0, 245, 255, 0.25);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow-amber);
    text-decoration: none;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Navigation Header */
.universal-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(4, 4, 12, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.18);
    padding: var(--spacing-sm) var(--spacing-lg);
    z-index: var(--z-sticky);
    display: flex;
    box-shadow: 0 2px 30px rgba(0, 245, 255, 0.06);
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(15, 245, 224, 0.05);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(15, 245, 224, 0.05);
    border: 1px solid rgba(15, 245, 224, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    letter-spacing: 0.05em;
}

.back-button:hover {
    background: rgba(15, 245, 224, 0.12);
    border-color: var(--primary-color);
    box-shadow: var(--glow-cyan);
    color: var(--primary-color);
    transform: translateX(-4px);
    text-decoration: none;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.container-fluid {
    width: 100%;
    padding: var(--spacing-lg);
}

/* Content Area */
.content {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    box-shadow: var(--shadow-lg);
    border: var(--border-cyan);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.4;
}

/* Cards */
.card {
    background: var(--card-gradient);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: var(--border-cyan);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 245, 224, 0.4), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
    border-color: rgba(15, 245, 224, 0.5);
}

.card-header {
    border-bottom: 1px solid rgba(15, 245, 224, 0.15);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    color: var(--text-secondary);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: 'Share Tech Mono', 'Rajdhani', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    text-decoration: none;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: rgba(15, 245, 224, 0.08);
    border-color: rgba(15, 245, 224, 0.5);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: rgba(15, 245, 224, 0.18);
    border-color: var(--primary-color);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-secondary {
    background: rgba(20, 18, 25, 0.8);
    border-color: rgba(138, 138, 154, 0.3);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: rgba(15, 245, 224, 0.4);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-success {
    background: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.5);
    color: var(--accent-green);
}

.btn-success:hover {
    background: rgba(57, 255, 20, 0.15);
    box-shadow: var(--glow-green);
    text-decoration: none;
}

.btn-warning {
    background: rgba(255, 170, 0, 0.08);
    border-color: rgba(255, 170, 0, 0.5);
    color: var(--accent-color);
}

.btn-warning:hover {
    background: rgba(255, 170, 0, 0.15);
    box-shadow: var(--glow-amber);
    text-decoration: none;
}

.btn-danger {
    background: rgba(255, 0, 128, 0.08);
    border-color: rgba(255, 0, 128, 0.5);
    color: var(--danger-color);
}

.btn-danger:hover {
    background: rgba(255, 0, 128, 0.15);
    text-decoration: none;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.8rem;
    min-width: 80px;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid rgba(15, 245, 224, 0.2);
    border-radius: var(--radius-md);
    background: rgba(10, 10, 12, 0.6);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(15, 245, 224, 0.6);
    box-shadow: 0 0 0 3px rgba(15, 245, 224, 0.1), var(--glow-cyan);
    background: rgba(15, 245, 224, 0.04);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

select option {
    background: #0d0a12;
    color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex Utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

/* Grid */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Colors */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-accent { color: var(--accent-color); }

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.alert-success {
    background: rgba(57, 255, 20, 0.06);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.06);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.alert-danger {
    background: rgba(255, 0, 128, 0.06);
    border-color: var(--danger-color);
    color: #ff6090;
}

.alert-info {
    background: rgba(15, 245, 224, 0.06);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ========================================
   LOADING & SPINNERS
   ======================================== */

.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(15, 245, 224, 0.15);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    box-shadow: var(--glow-cyan);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and below */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }
    
    .container {
        padding: var(--spacing-md);
    }
    
    .content {
        padding: var(--spacing-lg);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .universal-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Mobile */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .card {
        padding: var(--spacing-md);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus Styles */
*:focus {
    outline: 1px solid rgba(15, 245, 224, 0.6);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 1px solid rgba(15, 245, 224, 0.6);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes neonPulse {
    0%, 100% { box-shadow: var(--glow-cyan); }
    50% { box-shadow: 0 0 20px rgba(15, 245, 224, 0.8), 0 0 40px rgba(15, 245, 224, 0.4); }
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, -1px); }
    98% { transform: translate(1px, 1px); }
}

.fade-in {
    animation: fadeIn var(--transition-normal);
}

.slide-in-up {
    animation: slideInUp var(--transition-normal);
}

.slide-in-down {
    animation: slideInDown var(--transition-normal);
}

.neon-pulse {
    animation: neonPulse 3s ease-in-out infinite;
}

/* ========================================
   FOOTER
   ======================================== */

.universal-footer {
    background: rgba(14, 12, 20, 0.95);
    border-top: 1px solid rgba(15, 245, 224, 0.15);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    text-align: center;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.universal-footer p {
    margin-bottom: var(--spacing-sm);
}

.universal-footer a {
    color: var(--primary-color);
    margin: 0 var(--spacing-sm);
}

.universal-footer a:hover {
    color: var(--accent-color);
}

/* ========================================
   FUTURISTIC EXTRAS — UI Polish
   ======================================== */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 12, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 245, 224, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 245, 224, 0.6);
}

/* Selection */
::selection {
    background: rgba(15, 245, 224, 0.2);
    color: var(--primary-color);
}

/* Code / monospace elements */
code, pre, kbd, samp {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background: rgba(15, 245, 224, 0.05);
    border: 1px solid rgba(15, 245, 224, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 0.875em;
    padding: 0.1em 0.4em;
}

pre {
    padding: var(--spacing-md);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

th {
    background: rgba(15, 245, 224, 0.06);
    color: var(--primary-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(15, 245, 224, 0.2);
    text-align: left;
}

td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(15, 245, 224, 0.08);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

tr:hover td {
    background: rgba(15, 245, 224, 0.03);
    color: var(--text-primary);
}

/* HR separator */
hr {
    border: none;
    border-top: 1px solid rgba(15, 245, 224, 0.12);
    margin: var(--spacing-xl) 0;
}

/* Badge / tag */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid;
}

.badge-cyan {
    background: rgba(15, 245, 224, 0.1);
    border-color: rgba(15, 245, 224, 0.4);
    color: var(--primary-color);
}

.badge-green {
    background: rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.4);
    color: var(--accent-green);
}

.badge-amber {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.4);
    color: var(--accent-color);
}

.badge-orange {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.4);
    color: var(--accent-orange);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before {
        display: none;
    }
    
    .universal-header,
    .universal-footer,
    .back-button {
        display: none;
    }
}

/* ========================================
   ELECTRIC ANIMATION KEYFRAMES  (site-wide)
   Used by universal cards, buttons, headers
   ======================================== */

@keyframes electricBorderFlow {
    0%, 100% { background-position: 0%   50%; }
    50%       { background-position: 100% 50%; }
}

@keyframes electricGlowPulse {
    0%, 100% { box-shadow: var(--glow-cyan); }
    50%       { box-shadow: 0 0 14px rgba(0,245,255,0.8), 0 0 36px rgba(0,245,255,0.5), 0 0 70px rgba(0,245,255,0.2); }
}

@keyframes electricShimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes electricFloat {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-6px); }
}

@keyframes electricFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ========================================
   ANIMATE.CSS INTEGRATION UTILITIES
   https://animate.style
   ======================================== */

/* Default animation duration / delay overrides */
:root {
    --animate-duration: 0.6s;
    --animate-delay:    0.2s;
    --animate-repeat:   1;
}

/* Convenience speed modifiers */
.animate-fast   { --animate-duration: 0.35s; }
.animate-slow   { --animate-duration: 1.2s;  }

/* Reduced-motion: disable all CSS animations / transitions */
@media (prefers-reduced-motion: reduce) {
    .animate__animated {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Staggered entrance helpers — add to parent, children receive delays */
.stagger-children > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { animation-delay: 0.15s; }
.stagger-children > *:nth-child(3)  { animation-delay: 0.25s; }
.stagger-children > *:nth-child(4)  { animation-delay: 0.35s; }
.stagger-children > *:nth-child(5)  { animation-delay: 0.45s; }
.stagger-children > *:nth-child(6)  { animation-delay: 0.55s; }
.stagger-children > *:nth-child(n+7){ animation-delay: 0.65s; }

/* Scroll-reveal: elements start hidden; animate-init.js adds the visible class */
.reveal-on-scroll {
    opacity: 0;
    transition: opacity 0.1s;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
}

/* Pre-built entrance combos used by animate-init.js */
.cr-fade-up    { animation: fadeInUp    var(--animate-duration) ease both; }
.cr-fade-in    { animation: fadeIn      var(--animate-duration) ease both; }
.cr-zoom-in    { animation: zoomIn      var(--animate-duration) ease both; }
.cr-slide-right{ animation: slideInRight var(--animate-duration) ease both; }
.cr-slide-left { animation: slideInLeft  var(--animate-duration) ease both; }
