/* ==========================================================================
   Luxury Preloader & Loading Screen (Apple-grade fluidity)
   ========================================================================== */

.talayar-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--talayar-bg-base, #0E0F11);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease;
    overflow: hidden;
}

.talayar-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.talayar-preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    z-index: 2;
}

/* Atmospheric Radial Glow behind Diamond */
.talayar-preloader-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201, 162, 75, 0.22) 0%, rgba(201, 162, 75, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    animation: talayarGlowPulse 2.4s ease-in-out infinite alternate;
}

@keyframes talayarGlowPulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* Constrained Media & Diamond Icon */
.talayar-preloader-icon {
    position: relative;
    min-width: 88px;
    max-width: 180px;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.talayar-preloader-diamond {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 0 12px rgba(201, 162, 75, 0.4));
}

/* Notre Ads Studio Default Preloader Logo */
.talayar-preloader-notre-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.talayar-preloader-notre-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #FF6A00;
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.45), inset 0 0 12px rgba(255, 106, 0, 0.25);
    animation: talayarNotreImgPulse 2.4s ease-in-out infinite alternate;
}

@keyframes talayarNotreImgPulse {
    0% {
        transform: scale(0.94);
        box-shadow: 0 0 18px rgba(255, 106, 0, 0.35);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 0 38px rgba(255, 106, 0, 0.7);
    }
}

/* Video Preloader Engine */
.talayar-preloader-video-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

.talayar-preloader-video {
    max-width: 150px;
    max-height: 150px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(201, 162, 75, 0.25);
}

/* Custom Image Preloader Engine */
.talayar-preloader-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.talayar-preloader-img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(201, 162, 75, 0.4));
    animation: talayarImgPulse 2.2s ease-in-out infinite alternate;
}

@keyframes talayarImgPulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* Custom SVG & Lottie Containers */
.talayar-preloader-custom-svg-wrap svg,
.talayar-preloader-lottie-wrap {
    max-width: 140px;
    max-height: 140px;
}

/* SVG Stroke Draw Animation */
.talayar-draw-path {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: talayarStrokeDraw 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.path-crown { animation-delay: 0.15s; }
.path-girdle { animation-delay: 0.25s; }
.path-pavilion { animation-delay: 0.35s; }
.path-h1, .path-h2, .path-h-cross, .path-y { animation-delay: 0.5s; }

@keyframes talayarStrokeDraw {
    0% {
        stroke-dashoffset: 260;
        opacity: 0.3;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Brand Typographic Reveal */
.talayar-preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.talayar-preloader-sig {
    font-family: var(--talayar-font-display, serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--talayar-gold, #C9A24B);
    line-height: 1;
    animation: talayarTextFade 0.9s ease 0.4s both;
}

.talayar-preloader-sub {
    font-family: var(--talayar-font-display, serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: var(--talayar-text-muted, #9B9FA8);
    text-transform: uppercase;
    animation: talayarTextFade 0.9s ease 0.6s both;
}

@keyframes talayarTextFade {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Micro Progress Bar */
.talayar-preloader-line {
    width: 140px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.talayar-preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--talayar-gold-gradient);
    animation: talayarProgress 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes talayarProgress {
    0% { width: 0%; }
    50% { width: 65%; }
    100% { width: 100%; }
}
