/* Overlay covers the entire screen */
.sub2twt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: sub2twt-fadeIn 0.5s forwards;
}

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

/* Popup box styling */
.sub2twt-popup {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 420px;
    width: 90%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transform: translateY(20px);
    opacity: 0;
    animation: sub2twt-slideUp 0.6s 0.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    border: 1px solid rgba(0,0,0,0.05);
}

@keyframes sub2twt-slideUp {
    to { 
        transform: translateY(0);
        opacity: 1; 
    }
}

.sub2twt-popup h2 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sub2twt-popup p {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Subscribe button styling */
.sub2twt-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff0000 0%, #d40000 100%);
    color: #fff;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sub2twt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    filter: brightness(1.1);
}

.sub2twt-btn:active {
    transform: translateY(0);
}
