/* ================= GLASSMORPHIC ECOSYSTEM CORE ================= */
/* Advanced Unified Design System for Multi-Page PHP Application */

/* ================= FONT IMPORTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ================= ROOT VARIABLES ================= */
:root {
    /* Glass Properties */
    --glass-primary: rgba(255, 255, 255, 0.08);
    --glass-secondary: rgba(255, 255, 255, 0.04);
    --glass-tertiary: rgba(255, 255, 255, 0.12);
    
    /* Thin-Ice Luminous Borders */
    --border-thin-ice: 1px solid rgba(255, 255, 255, 0.15);
    --border-glow: rgba(255, 255, 255, 0.2);
    --border-active: rgba(255, 255, 255, 0.3);
    
    /* Atmospheric Colors */
    --obsidian-base: #0a0a0f;
    --royal-purple: #4c1d95;
    --vibrant-teal: #14b8a6;
    --deep-violet: #6366f1;
    --cosmic-blue: #0ea5e9;
    
    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Shadow System */
    --shadow-soft: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-deep: rgba(0, 0, 0, 0.6);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Glow Effects */
    --glow-primary: rgba(99, 102, 241, 0.3);
    --glow-teal: rgba(20, 184, 166, 0.3);
    --glow-purple: rgba(139, 92, 246, 0.3);
}

/* ================= PREMIUM ANIMATION SYSTEM - GPU ACCELERATED ================= */
/* Critical rendering path optimization */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* GPU acceleration for all animated elements */
.glass-container, .glass-card, .ecosystem-button, .glass-input, 
.upload-ecosystem, .file-ecosystem, .access-card {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Premium page entrance animations */
@keyframes premiumPageEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale3d(0.98, 0.98, 1);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes luxuryCardSlide {
    0% {
        opacity: 0;
        transform: translate3d(-30px, 0, 0) rotateY(-5deg);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotateY(0deg);
    }
}

@keyframes elegantFadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 15px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes premiumGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(20, 184, 166, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Micro-interaction animations */
@keyframes buttonPress {
    0% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
    50% {
        transform: translate3d(0, 1px, 0) scale3d(0.98, 0.98, 1);
    }
    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

@keyframes inputFocusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    }
}

/* Premium particle system */
@keyframes luxuryParticle {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale3d(0, 0, 1);
    }
    10% {
        opacity: 0.6;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
    90% {
        opacity: 0.1;
        transform: translate3d(0, -100vh, 0) scale3d(0.5, 0.5, 1);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -120vh, 0) scale3d(0, 0, 1);
    }
}

/* Animation classes */
.premium-entrance {
    animation: premiumPageEntrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.luxury-slide {
    animation: luxuryCardSlide 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.elegant-fade {
    animation: elegantFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.premium-glow {
    animation: premiumGlow 3s ease-in-out infinite;
}

.subtle-float {
    animation: subtleFloat 4s ease-in-out infinite;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================= MULTIDIMENSIONAL ATMOSPHERIC BACKGROUND ================= */
body {
    background: 
        /* Flowing particle overlay */
        radial-gradient(ellipse at 15% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 20%, rgba(20, 184, 166, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 35%),
        /* Deep multidimensional base */
        linear-gradient(135deg, 
            var(--obsidian-base) 0%, 
            #1a1a2e 15%, 
            var(--royal-purple) 35%, 
            #16213e 55%, 
            var(--vibrant-teal) 75%, 
            #0f1419 100%
        );
    position: relative;
    min-height: 100vh;
}

/* ================= ATMOSPHERIC FLOW EFFECTS ================= */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        conic-gradient(
            from 0deg at 30% 30%,
            rgba(99, 102, 241, 0.08) 0deg,
            rgba(20, 184, 166, 0.06) 90deg,
            rgba(139, 92, 246, 0.04) 180deg,
            rgba(14, 165, 233, 0.06) 270deg,
            rgba(99, 102, 241, 0.08) 360deg
        );
    filter: blur(120px);
    animation: atmosphericFlow 25s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 70%, rgba(20, 184, 166, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    animation: atmosphericPulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes atmosphericFlow {
    0% { 
        opacity: 0.3; 
        transform: scale(1) rotate(0deg); 
        filter: blur(120px) hue-rotate(0deg);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1) rotate(180deg); 
        filter: blur(140px) hue-rotate(90deg);
    }
    100% { 
        opacity: 0.4; 
        transform: scale(0.9) rotate(360deg); 
        filter: blur(100px) hue-rotate(180deg);
    }
}

@keyframes atmosphericPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

/* ================= GEMINI CURSOR SYSTEM - DISABLED ================= */
/* Cursor effects have been disabled per user request */

/* ================= GLASS CARD SYSTEM ================= */
.glass-ecosystem {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.glass-container {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 28px;
    border: var(--border-thin-ice);
    box-shadow:
        var(--shadow-inner),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 0 60px rgba(255, 255, 255, 0.03),
        0 30px 80px var(--shadow-deep);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 28px;
    z-index: -1;
    opacity: 0.6;
}

.glass-container:hover {
    transform: translateY(-8px);
    box-shadow:
        var(--shadow-inner),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 0 80px rgba(255, 255, 255, 0.05),
        0 40px 100px var(--shadow-deep);
    border-color: var(--border-glow);
}

/* ================= GLASS CARD VARIANTS ================= */
.glass-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: var(--border-thin-ice);
    box-shadow:
        var(--shadow-inner),
        0 20px 40px var(--shadow-soft);
    padding: 40px 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 30px 60px var(--shadow-medium);
    border-color: var(--border-glow);
}

/* ================= TYPOGRAPHY SYSTEM ================= */
.ecosystem-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ecosystem-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    text-align: center;
}

/* ================= PREMIUM INPUT SYSTEM ================= */
.input-ecosystem {
    position: relative;
    margin-bottom: 25px;
}

.glass-input {
    width: 100%;
    padding: 18px 24px;
    padding-right: 55px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: var(--border-thin-ice);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.glass-input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-active);
    transform: translate3d(0, -1px, 0) scale3d(1.01, 1.01, 1);
    animation: inputFocusGlow 0.3s ease-out forwards;
}

.glass-input:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* ================= NEON-RIMMED UPLOAD ZONE ================= */
.upload-ecosystem {
    position: relative;
    border: 2px dashed rgba(20, 184, 166, 0.4);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(
        145deg,
        rgba(20, 184, 166, 0.05) 0%,
        rgba(99, 102, 241, 0.03) 100%
    );
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 25px 0;
    overflow: hidden;
}

.upload-ecosystem::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(20, 184, 166, 0.6) 0%,
        rgba(99, 102, 241, 0.4) 50%,
        rgba(20, 184, 166, 0.6) 100%
    );
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-ecosystem:hover::before {
    opacity: 1;
    animation: neonPulse 2s ease-in-out infinite;
}

.upload-ecosystem:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, 0.8);
    box-shadow: 
        0 0 40px var(--glow-teal),
        0 20px 40px var(--shadow-medium);
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.upload-icon {
    font-size: 3rem;
    color: var(--vibrant-teal);
    margin-bottom: 20px;
    animation: cloudFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--glow-teal));
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ================= PASSWORD TOGGLE SYSTEM ================= */
.password-toggle-ecosystem {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
}

.password-toggle-ecosystem:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px var(--glow-primary);
}

/* ================= PREMIUM BUTTON SYSTEM - LUXURY MICRO-INTERACTIONS ================= */
.ecosystem-button {
    width: 100%;
    padding: 18px 28px;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: var(--border-thin-ice);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Premium shimmer effect */
.ecosystem-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ecosystem-button:hover::before {
    left: 100%;
}

/* Luxury Upload Button */
.btn-upload {
    background: linear-gradient(
        135deg,
        rgba(20, 184, 166, 0.9) 0%,
        rgba(6, 182, 212, 0.9) 50%,
        rgba(20, 184, 166, 0.9) 100%
    );
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-upload:hover {
    transform: translate3d(0, -2px, 0) scale3d(1.02, 1.02, 1);
    box-shadow: 
        0 8px 25px rgba(20, 184, 166, 0.4),
        0 0 30px rgba(20, 184, 166, 0.2);
}

.btn-upload:active {
    animation: buttonPress 0.15s ease-out;
}

/* Premium Download Button */
.btn-download {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.9) 0%,
        rgba(139, 92, 246, 0.9) 50%,
        rgba(99, 102, 241, 0.9) 100%
    );
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-download:hover {
    transform: translate3d(0, -2px, 0) scale3d(1.02, 1.02, 1);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(99, 102, 241, 0.2);
}

.btn-download:active {
    animation: buttonPress 0.15s ease-out;
}

/* Premium View Button */
.btn-view {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.9) 0%,
        rgba(99, 102, 241, 0.9) 50%,
        rgba(139, 92, 246, 0.9) 100%
    );
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-view:hover {
    transform: translate3d(0, -2px, 0) scale3d(1.02, 1.02, 1);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.btn-view:active {
    animation: buttonPress 0.15s ease-out;
}

/* Elegant Logout Button */
.btn-logout {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.9) 0%,
        rgba(245, 101, 101, 0.9) 50%,
        rgba(239, 68, 68, 0.9) 100%
    );
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translate3d(0, -2px, 0) scale3d(1.02, 1.02, 1);
    box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.4),
        0 0 30px rgba(239, 68, 68, 0.2);
    filter: saturate(0.8) brightness(0.9);
}

.btn-logout:active {
    animation: buttonPress 0.15s ease-out;
}

/* ================= FLOATING PARTICLE SYSTEM ================= */
.particle-ecosystem {
    position: fixed;
    pointer-events: none;
    opacity: 0.7;
    z-index: 2;
}

.cosmic-particle {
    width: 10px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%,
        68% 57%, 79% 91%, 50% 70%,
        21% 91%, 32% 57%, 2% 35%, 39% 35%
    );
    filter: drop-shadow(0 0 15px currentColor);
    animation: cosmicDrift linear forwards;
}

.energy-sphere {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 30%, transparent 70%);
    filter: blur(1px);
    animation: energyFloat linear forwards;
}

@keyframes cosmicDrift {
    from { 
        transform: translateY(-40px) rotate(0deg) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.6; 
        transform: translateY(-20px) rotate(45deg) scale(1); 
    }
    90% { 
        opacity: 0.1; 
        transform: translateY(calc(100vh + 20px)) rotate(360deg) scale(0.5); 
    }
    to { 
        transform: translateY(calc(100vh + 40px)) rotate(405deg) scale(0); 
        opacity: 0; 
    }
}

@keyframes energyFloat {
    from { 
        transform: translateY(40px) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.7; 
        transform: translateY(20px) scale(1); 
    }
    90% { 
        opacity: 0.1; 
        transform: translateY(calc(-100vh - 20px)) scale(0.3); 
    }
    to { 
        transform: translateY(calc(-100vh - 40px)) scale(0); 
        opacity: 0; 
    }
}

/* ================= ADVANCED UPLOAD ANIMATIONS - OPTIMIZED ================= */
@keyframes uploadEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes uploadFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(90deg);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(20, 184, 166, 0.5), 0 0 25px rgba(99, 102, 241, 0.3);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(1deg);
    }
}

.upload-entrance {
    animation: uploadEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card-float {
    animation: cardFloat 3s ease-in-out infinite;
}

.glowing-title {
    animation: glowPulse 2.5s ease-in-out infinite;
}

.floating-icon {
    animation: iconBounce 2s ease-in-out infinite;
}

/* ================= ADVANCED HOVER EFFECTS - OPTIMIZED ================= */
.glass-card:hover {
    transform: translateY(-5px) rotateX(1deg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(20, 184, 166, 0.2);
    transition: all 0.3s ease;
}

.upload-ecosystem:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.7);
    box-shadow: 
        0 0 30px rgba(20, 184, 166, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#customChooseBtn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 0 25px rgba(99, 102, 241, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

@keyframes downloadFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(180deg);
        opacity: 0;
    }
}

.download-entrance {
    animation: uploadEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ================= RESPONSIVE ECOSYSTEM ================= */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background: 
            /* Simplified mobile background */
            radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, 
                var(--obsidian-base) 0%, 
                #1a1a2e 30%, 
                var(--royal-purple) 60%, 
                #0f1419 100%
            );
    }

    .glass-ecosystem {
        padding: 10px;
        min-height: 100vh;
    }

    .glass-container {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        margin: 0;
        border-radius: 20px;
        box-shadow:
            var(--shadow-inner),
            0 20px 40px var(--shadow-deep);
    }
    
    .glass-card {
        padding: 20px 15px;
        border-radius: 16px;
        margin: 0;
    }
    
    .ecosystem-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .ecosystem-subtitle {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    /* Mobile Upload Zone */
    .upload-ecosystem {
        padding: 25px 15px;
        margin: 15px 0;
        border-radius: 16px;
    }

    .upload-icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .upload-text {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }

    /* Mobile Custom Button */
    #customChooseBtn {
        padding: 14px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
        margin-top: 10px !important;
        width: 100%;
        justify-content: center;
    }

    /* Mobile Selected Files Display */
    #selectedFilesDisplay {
        margin-top: 15px !important;
    }

    #selectedFilesDisplay > div {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .file-ecosystem {
        padding: 12px 15px;
        margin: 8px 0;
        border-radius: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-name {
        width: 100%;
        margin-bottom: 5px;
    }

    .file-name > div {
        margin-left: 0 !important;
    }

    /* Mobile Buttons */
    .ecosystem-button {
        padding: 14px 20px;
        font-size: 0.9rem;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .btn-upload, .btn-download, .btn-logout {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Mobile Progress */
    #progressContainer {
        margin-top: 15px !important;
    }

    /* Mobile Links */
    .ecosystem-link {
        display: block;
        text-align: center;
        margin: 10px 0;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Mobile File List */
    .file-ecosystem .file-name {
        font-size: 0.85rem;
    }

    .file-ecosystem .file-name > div > div:first-child {
        font-size: 0.85rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .file-ecosystem .file-name > div > div:last-child {
        font-size: 0.75rem;
    }

    /* Mobile Navigation Links */
    .mt-30 {
        margin-top: 20px !important;
        text-align: center;
    }

    .mt-30 a {
        display: block;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .glass-container {
        padding: 15px 10px;
        border-radius: 16px;
    }
    
    .glass-card {
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    .ecosystem-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .ecosystem-subtitle {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .upload-ecosystem {
        padding: 20px 12px;
        margin: 12px 0;
    }

    .upload-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .upload-text {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        line-height: 1.4;
    }

    #customChooseBtn {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
    }

    .ecosystem-button {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .file-ecosystem {
        padding: 10px 12px;
        margin: 6px 0;
    }

    .file-ecosystem .file-name i {
        font-size: 1rem !important;
        margin-right: 8px !important;
    }

    .ecosystem-link {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin: 8px 0;
    }

    /* Smaller notification container for mobile */
    #notificationContainer {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }

    /* Mobile form layout */
    .access-container {
        gap: 20px;
        flex-direction: column;
    }

    .access-card {
        width: 100%;
        max-width: none;
        padding: 20px 15px;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .glass-input {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .password-toggle-ecosystem {
        right: 15px;
        font-size: 1.1rem;
    }
}

/* ================= MOBILE LANDSCAPE ================= */
@media (max-width: 768px) and (orientation: landscape) {
    .glass-ecosystem {
        padding: 5px;
    }

    .glass-container {
        padding: 15px 12px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .ecosystem-title {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .ecosystem-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .upload-ecosystem {
        padding: 15px 12px;
        margin: 10px 0;
    }

    .upload-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}

/* ================= MOBILE TOUCH IMPROVEMENTS ================= */
@media (max-width: 768px) {
    /* Larger touch targets */
    button, .ecosystem-button, .ecosystem-link, #customChooseBtn {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }

    /* Better scroll behavior */
    .glass-container {
        -webkit-overflow-scrolling: touch;
    }

    /* Remove hover effects on mobile */
    .glass-card:hover,
    .glass-container:hover,
    .file-ecosystem:hover {
        transform: none;
        box-shadow: inherit;
    }

    /* Simplify animations for better performance */
    .file-select-animation,
    .slide-in-animation,
    .bounce-in-animation {
        animation-duration: 0.3s;
    }

    /* Mobile-specific particle reduction */
    .particle-ecosystem {
        display: none;
    }
}

/* ================= FAST PAGE LOAD OPTIMIZATION ================= */
body {
    opacity: 1 !important;
    visibility: visible !important;
}

.page-loaded {
    opacity: 1 !important;
}

/* ================= PERFORMANCE OPTIMIZATIONS ================= */
* {
    will-change: auto;
}

.glass-container, .glass-card, .ecosystem-button {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* ================= FILE LIST STYLING ================= */
.file-ecosystem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    word-break: break-all;
}

.file-ecosystem:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.file-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    flex: 1;
}

.file-action {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ================= NOTIFICATION STYLES ================= */
#removeFile:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    transform: scale(1.1);
}

#clearAllFiles:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    transform: translateY(-1px);
}

/* ================= CUSTOM CHOOSE FILE BUTTON ================= */
#customChooseBtn {
    cursor: pointer !important;
}

#customChooseBtn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    cursor: pointer !important;
}

#customChooseBtn:active {
    transform: translateY(0) scale(0.98);
    cursor: pointer !important;
}

/* Fix cursor for file input */
#fileInput {
    cursor: pointer !important;
}

/* Ensure cursor stays pointer for upload zone */
.upload-ecosystem {
    cursor: pointer !important;
}

.upload-ecosystem * {
    cursor: pointer !important;
}

/* ================= RIPPLE EFFECT ANIMATION ================= */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ================= FILE SELECTION ANIMATIONS ================= */
@keyframes fileSelectPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes uploadSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.file-select-animation {
    animation: fileSelectPulse 0.2s ease-in-out;
}

.slide-in-animation {
    animation: slideInUp 0.2s ease-out;
}

.bounce-in-animation {
    animation: bounceIn 0.3s ease-out;
}

.upload-success-animation {
    animation: uploadSuccess 0.3s ease-in-out;
}

/* ================= LINK STYLING ================= */
.ecosystem-link {
    display: inline-block;
    color: var(--vibrant-teal);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.ecosystem-link:hover {
    color: white;
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-teal);
}

/* ================= FAST PAGE LOAD OPTIMIZATION ================= */
body {
    opacity: 1 !important;
    visibility: visible !important;
}

.page-loaded {
    opacity: 1 !important;
}

/* ================= PERFORMANCE OPTIMIZATIONS ================= */
* {
    will-change: auto;
}

.glass-container, .glass-card, .ecosystem-button {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================= FAST BUTTON FIXES ================= */
button, .ecosystem-button, .ecosystem-link {
    cursor: pointer !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Ensure all interactive elements work properly */
input[type="file"], label[for], .upload-ecosystem {
    cursor: pointer !important;
}

/* Fast transitions for all interactive elements */
.glass-input, .ecosystem-button, .glass-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* ================= CORE WEB VITALS OPTIMIZATION ================= */
/* Critical rendering path */
html {
    font-display: swap;
}

/* Prevent layout shift */
img, video {
    height: auto;
    max-width: 100%;
}

/* GPU acceleration for all interactive elements */
button, input, select, textarea, .glass-card, .ecosystem-button {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize repaints */
.glass-container, .glass-card {
    contain: layout style paint;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Immediate page visibility */
html, body {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Premium loading state */
.premium-loaded {
    opacity: 1;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: local('Inter');
}

@font-face {
    font-family: 'Montserrat';
    font-display: swap;
    src: local('Montserrat');
}
/* ================= ENHANCED PROGRESS BAR STYLING ================= */
#progressContainer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#progressBar {
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

#progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#progressPercent {
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* ================= NOTIFICATION ENHANCEMENTS ================= */
#notificationContainer {
    z-index: 9999;
}

.notification-shimmer {
    animation: shimmer 2s ease-in-out;
}

/* ================= UPLOAD SUCCESS ANIMATION ================= */
.upload-success-animation {
    animation: uploadSuccessGlow 0.6s ease-out;
}

@keyframes uploadSuccessGlow {
    0% {
        transform: scale3d(1, 1, 1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.3);
    }
    100% {
        transform: scale3d(1, 1, 1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}