/* ===== Beta Notice Overlay ===== */
#beta-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 8, 17, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: betaFadeIn 0.5s ease both;
    padding: 20px;
}

@keyframes betaFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#beta-modal {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(31, 143, 255, 0.06) 100%);
    border: 1px solid rgba(31, 143, 255, 0.25);
    border-radius: 28px;
    padding: 52px 48px 44px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 100px rgba(31, 143, 255, 0.08);
    animation: betaSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    overflow: hidden;
}

/* top glow line */
#beta-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1F8FFF, #00F0FF, transparent);
    border-radius: 2px;
}

/* subtle grid bg */
#beta-modal::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(31, 143, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#beta-modal>* {
    position: relative;
    z-index: 1;
}

@keyframes betaSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.beta-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(31, 143, 255, 0.2), rgba(0, 240, 255, 0.1));
    border: 1px solid rgba(31, 143, 255, 0.3);
    margin-bottom: 24px;
    animation: betaIconPulse 3s ease-in-out infinite;
}

.beta-icon-wrapper i {
    font-size: 2rem;
    background: linear-gradient(135deg, #1F8FFF, #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes betaIconPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(31, 143, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(31, 143, 255, 0);
    }
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(90deg, #1F8FFF, #00F0FF);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(31, 143, 255, 0.4);
}

.beta-title {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.beta-title span {
    background: linear-gradient(90deg, #1F8FFF, #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.beta-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.beta-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 28px;
}

.beta-info-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.beta-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 16px;
    flex: 1;
    max-width: 160px;
}

.beta-info-item i {
    color: #1F8FFF;
    font-size: 1rem;
}

.beta-info-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
}

#beta-close-btn {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(90deg, #1F8FFF, #00C8FF);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

#beta-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

#beta-close-btn:hover::before {
    left: 100%;
}

#beta-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(31, 143, 255, 0.45);
}

.beta-skip {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.beta-skip:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* ===== Close on overlay click ===== */
#beta-overlay.hiding {
    animation: betaFadeOut 0.35s ease both;
}

@keyframes betaFadeOut {
    to {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    #beta-modal {
        padding: 36px 24px 32px;
        border-radius: 22px;
    }

    .beta-title {
        font-size: 1.5rem;
    }

    .beta-info-row {
        flex-direction: column;
        align-items: center;
    }

    .beta-info-item {
        max-width: 100%;
    }
}