:root {
    --e-bg: #ffffff;
    --e-primary: #008f9a;
    --e-secondary: #00b2b2;
    --e-text: #0f172a;
    --e-font: 'Space Grotesk', system-ui, sans-serif;
    --e-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --e-gradient: linear-gradient(135deg, #008f9a 0%, #00b2b2 100%);
}

#mayar-preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--e-font);
    overflow: hidden;
    transition: opacity 0.6s var(--e-ease), visibility 0.6s var(--e-ease);
}

/* Modern Animated Mesh Glow - Soft vibrant light accents for white background */
.e-mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.45;
    filter: blur(80px);
    pointer-events: none;
}

.e-mesh-circle {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 178, 178, 0.25) 0%, rgba(45, 212, 191, 0.3) 100%);
    animation: meshMove 12s infinite alternate ease-in-out;
}

.e-mesh-1 {
    top: -15%;
    left: -15%;
    animation-delay: 0s;
}

.e-mesh-2 {
    bottom: -15%;
    right: -15%;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.25) 0%, rgba(2, 132, 199, 0.2) 100%);
    animation-delay: -4s;
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 40px) scale(1.15);
    }
}

#neuron-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.85;
    pointer-events: none;
}

.e-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.e-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 36px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 143, 154, 0.25);
    box-shadow: 0 12px 35px rgba(0, 143, 154, 0.12), inset 0 0 15px rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.e-logo {
    height: 52px;
    width: auto;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s var(--e-ease);
    filter: drop-shadow(0 4px 12px rgba(0, 143, 154, 0.25));
}

.e-logo.show {
    opacity: 1;
    transform: scale(1);
}

.e-text-outer {
    height: 48px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.e-word {
    position: absolute;
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    opacity: 0;
    transform: translateY(40px);
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 143, 154, 0.12);
}

.e-word.turquoise {
    background: linear-gradient(135deg, #007780 0%, #00a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.e-indicator-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 260px;
    gap: 10px;
    z-index: 10;
    margin-top: 6px;
}

.e-progress-bar-modern {
    width: 100%;
    height: 4px;
    background: rgba(0, 143, 154, 0.12);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.e-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007780 0%, #00b2b2 50%, #0d9488 100%);
    transition: width 0.3s var(--e-ease);
    box-shadow: 0 0 10px rgba(0, 143, 154, 0.4);
}

.e-percentage {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #007780;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.e-percentage::before,
.e-percentage::after {
    content: '';
    width: 25px;
    height: 1px;
    background: rgba(0, 143, 154, 0.35);
}

/* Success State */
#mayar-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s var(--e-ease), visibility 0.6s var(--e-ease);
}

#mayar-preloader.loaded .e-content {
    transform: scale(0.96) translateY(-20px);
    opacity: 0;
    transition: all 0.5s var(--e-ease);
}

@keyframes wordIn {
    from {
        opacity: 0;
        transform: translateY(35px) rotateX(-20deg);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

@keyframes wordOut {
    from {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(-35px) rotateX(20deg);
        filter: blur(8px);
    }
}