/* ═══════════════════════════════════════════════════════
   AURA CHESS — Launch Free-Pass Overlay
   "أبقِ محفظتك مغلقة!"
   Active: 2026-06-09 → 2026-07-09
   ═══════════════════════════════════════════════════════ */

/* ── Full-screen Overlay ── */
.free-pass-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 7, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    animation: fpo-fadeIn 0.8s ease forwards;
}

@keyframes fpo-fadeIn {
    to { opacity: 1; }
}

/* ── Floating particles behind the card ── */
.free-pass-overlay::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(0, 204, 255, 0.12) 0%,
        rgba(176, 125, 255, 0.08) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: fpo-pulse 4s ease-in-out infinite alternate;
}

@keyframes fpo-pulse {
    0%   { transform: translateX(-50%) scale(1);   opacity: 0.6; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* ── Glassmorphic Card ── */
.fpo-card {
    position: relative;
    max-width: 680px;
    width: 100%;
    background: rgba(12, 15, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2.2rem 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 80px rgba(0, 204, 255, 0.08),
        0 0 40px rgba(176, 125, 255, 0.06),
        0 30px 60px rgba(0, 0, 0, 0.5);
    animation: fpo-cardEntry 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes fpo-cardEntry {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Neon border shimmer */
.fpo-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 29px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(0, 204, 255, 0.5),
        rgba(176, 125, 255, 0.5),
        rgba(0, 204, 255, 0.2)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: fpo-borderShimmer 3s linear infinite;
}

@keyframes fpo-borderShimmer {
    0%   { opacity: 0.5; }
    50%  { opacity: 1; }
    100% { opacity: 0.5; }
}

/* ── Logo ── */
.fpo-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 204, 255, 0.4))
            drop-shadow(0 0 40px rgba(176, 125, 255, 0.2));
    animation: fpo-logoPulse 2.5s ease-in-out infinite alternate;
}

@keyframes fpo-logoPulse {
    0%   { filter: drop-shadow(0 0 15px rgba(0, 204, 255, 0.3)) drop-shadow(0 0 30px rgba(176, 125, 255, 0.15)); }
    100% { filter: drop-shadow(0 0 25px rgba(0, 204, 255, 0.5)) drop-shadow(0 0 50px rgba(176, 125, 255, 0.3)); }
}

/* ── Title ── */
.fpo-title {
    font-family: 'Cairo', sans-serif;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.fpo-title-top {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #b07dff, #00ccff, #ffffff, #b07dff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fpo-gradientSweep 5s linear infinite;
    display: inline-block;
    margin-bottom: 0.2rem;
}

@keyframes fpo-gradientSweep {
    to { background-position: 300% center; }
}

.fpo-title-main {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #00CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

/* ── Love Copy ── */
.fpo-message {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: rgba(200, 210, 230, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Countdown Section ── */
.fpo-countdown-label {
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    color: rgba(176, 125, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.fpo-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1.5rem;
    direction: ltr; /* Numbers always LTR */
}

.fpo-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fpo-time-value {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 125, 255, 0.25);
    border-radius: 16px;
    box-shadow:
        0 0 15px rgba(176, 125, 255, 0.1),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ── Smooth Text Animation inside Box ── */
.fpo-num-anim {
    display: inline-block;
    animation: fpo-numPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fpo-numPop {
    0% { transform: translateY(-15px) scale(0.8); opacity: 0; filter: blur(2px); }
    50% { transform: translateY(2px) scale(1.05); opacity: 1; filter: blur(0); }
    100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

.fpo-time-label {
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    color: rgba(160, 168, 187, 0.8);
    font-weight: 600;
}

/* ── CTA Button ── */
.fpo-cta, .fpo-learn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fpo-cta {
    color: #050508;
    background: linear-gradient(135deg, #00CCFF, #00E5FF);
    box-shadow:
        0 0 20px rgba(0, 204, 255, 0.3),
        0 0 40px rgba(0, 204, 255, 0.1);
    animation: fpo-pulseShadow 2s infinite alternate;
}

.fpo-learn-cta {
    color: #fff;
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow:
        0 0 20px rgba(168, 85, 247, 0.3),
        0 0 40px rgba(168, 85, 247, 0.1);
    animation: fpo-pulseShadowPurple 2s infinite alternate;
}

@keyframes fpo-pulseShadow {
    0% {
        box-shadow: 0 0 20px rgba(0, 204, 255, 0.3), 0 0 40px rgba(0, 204, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 204, 255, 0.6), 0 0 60px rgba(0, 204, 255, 0.3);
    }
}

@keyframes fpo-pulseShadowPurple {
    0% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.1);
    }
    100% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
    }
}

.fpo-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 0 40px rgba(0, 204, 255, 0.7),
        0 0 80px rgba(0, 204, 255, 0.4);
    background: linear-gradient(135deg, #00E5FF, #00CCFF);
}

.fpo-learn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 0 40px rgba(168, 85, 247, 0.7),
        0 0 80px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, #b07dff, #8b5cf6);
}

.fpo-cta:active, .fpo-learn-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Shine sweep */
.fpo-cta::after, .fpo-learn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: fpo-shine 3s ease-in-out infinite;
}

@keyframes fpo-shine {
    0%, 100% { left: -100%; }
    50%      { left: 100%; }
}

/* ── Gift emoji bounce ── */
.fpo-gift {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 0.3rem;
    animation: fpo-giftBounce 2s ease-in-out infinite;
}

@keyframes fpo-giftBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-8px) rotate(-5deg); }
    50%      { transform: translateY(0) rotate(0deg); }
    75%      { transform: translateY(-4px) rotate(3deg); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .fpo-card {
        padding: 2rem 1.5rem;
        border-radius: 22px;
    }

    .fpo-title-top {
        font-size: 1.1rem;
    }

    .fpo-title-main {
        font-size: 1.6rem;
    }

    .fpo-message {
        font-size: 0.9rem;
    }

    .fpo-time-value {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        border-radius: 12px;
    }

    .fpo-countdown {
        gap: 10px;
    }

    .fpo-cta, .fpo-learn-cta {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .fpo-logo {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 400px) {
    .fpo-time-value {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .fpo-countdown {
        gap: 8px;
    }
}
