/* ========================================
   PREMIUM LOADER & TOAST SYSTEM
   Theme: Royal Chameleon Green
   ======================================== */

/* === PROFESSIONAL LOADER MODAL === */
.loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    animation: fadeIn 0.3s ease;
}

.loader-content {
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.98), rgba(36, 59, 85, 0.98));
    border: 2px solid #26de81;
    border-radius: 40px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(38, 222, 129, 0.4),
        inset 0 0 40px rgba(38, 222, 129, 0.1);
    animation: loaderPulse 2s ease-in-out infinite;
    min-width: 350px;
}

@keyframes loaderPulse {

    0%,
    100% {
        box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8),
            0 0 60px rgba(38, 222, 129, 0.4),
            inset 0 0 40px rgba(38, 222, 129, 0.1);
    }

    50% {
        box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8),
            0 0 80px rgba(38, 222, 129, 0.6),
            inset 0 0 60px rgba(38, 222, 129, 0.2);
    }
}

.king-loader {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: kingBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(38, 222, 129, 0.5));
}

@keyframes kingBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-20px) scale(1.1);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    75% {
        transform: translateY(-10px) scale(1.05);
    }
}

.loader p {
    color: #26de81;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(38, 222, 129, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(38, 222, 129, 0.8), 0 0 30px rgba(38, 222, 129, 0.6);
    }
}

.loader p::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

/* === PREMIUM TOAST NOTIFICATIONS - EXTRA LARGE === */
.chameleon-bubble {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.98), rgba(36, 59, 85, 0.98)) !important;
    border: 3px solid #26de81 !important;
    border-radius: 35px !important;
    padding: 3rem 4.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 2.5rem !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(38, 222, 129, 0.4) !important;
    animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    z-index: 1000000 !important;
    min-width: 550px !important;
    max-width: 750px !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
}

.chameleon-bubble:hover {
    transform: translate(-50%, -50%) scale(1.05) !important;
}

@keyframes toastSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.chameleon-bubble.fade-out {
    animation: toastSlideOut 0.4s ease forwards !important;
}

@keyframes toastSlideOut {
    to {
        transform: translate(-50%, -50%) scale(0.8) rotate(5deg);
        opacity: 0;
    }
}

.chameleon-bubble .mini-mascot {
    width: 100px !important;
    height: 100px !important;
    animation: mascotWiggle 2s ease-in-out infinite !important;
    filter: drop-shadow(0 5px 15px rgba(38, 222, 129, 0.4)) !important;
    flex-shrink: 0 !important;
}

@keyframes mascotWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.chameleon-bubble p {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.7 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Error state */
.chameleon-bubble.error {
    border-color: #ff4757 !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 71, 87, 0.4) !important;
}

.chameleon-bubble.error .mini-mascot {
    filter: drop-shadow(0 5px 15px rgba(255, 71, 87, 0.4)) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .chameleon-bubble {
        min-width: auto !important;
        max-width: 90% !important;
        padding: 2rem 2.5rem !important;
        gap: 1.5rem !important;
    }

    .chameleon-bubble .mini-mascot {
        width: 70px !important;
        height: 70px !important;
    }

    .chameleon-bubble p {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .loader-content {
        min-width: 280px;
        padding: 2rem;
    }

    .king-loader {
        font-size: 4rem;
    }

    .loader p {
        font-size: 1rem;
    }

    .chameleon-bubble {
        padding: 1.5rem 2rem !important;
        gap: 1rem !important;
    }

    .chameleon-bubble .mini-mascot {
        width: 60px !important;
        height: 60px !important;
    }

    .chameleon-bubble p {
        font-size: 1rem !important;
    }
}