.demo-btn {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #d00324;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(208, 3, 36, 0.3);
    transition: all 0.3s;
}

.demo-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(208, 3, 36, 0.4);
}

/* Modern Loader */
.ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(234, 234, 234, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out;
}

.ajax-loader[hidden] {
    display: none;
}

.loader-container {
    text-align: center;
}

/* Modern Spinner */
.modern-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #d00324;
    border-right-color: #d00324;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading Text */
.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.loading-text span {
    display: inline-block;
    animation: fadeInOut 1.4s ease-in-out infinite;
}

.loading-text .letter:nth-child(1) { animation-delay: 0s; }
.loading-text .letter:nth-child(2) { animation-delay: 0.1s; }
.loading-text .letter:nth-child(3) { animation-delay: 0.2s; }
.loading-text .letter:nth-child(4) { animation-delay: 0.3s; }
.loading-text .letter:nth-child(5) { animation-delay: 0.4s; }
.loading-text .letter:nth-child(6) { animation-delay: 0.5s; }
.loading-text .letter:nth-child(7) { animation-delay: 0.6s; }
.loading-text .dot:nth-child(8) { animation-delay: 0.7s; }
.loading-text .dot:nth-child(9) { animation-delay: 0.8s; }
.loading-text .dot:nth-child(10) { animation-delay: 0.9s; }

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Progress bar (optional) */
.progress-bar {
    width: 200px;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin: 20px auto 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #d00324;
    animation: progressSlide 2s ease-in-out infinite;
    border-radius: 3px;
}

@keyframes progressSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}