/* Popup Overlay */
.stynt-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 31, 58, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    box-sizing: border-box;
}

body.admin-bar .stynt-popup-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .stynt-popup-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* Active State */
.stynt-popup-overlay.stynt-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.stynt-popup-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: #0B1F3A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.stynt-popup-overlay.stynt-active .stynt-popup-container {
    transform: translateY(0) scale(1);
}

/* Close Button */
.stynt-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.stynt-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* Glow Background Decors */
.stynt-popup-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.stynt-glow-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #00f2fe 0%, #4facfe 100%);
    top: -20px;
    left: -20px;
}

.stynt-glow-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #0052d4 0%, #4364f7 100%);
    bottom: -40px;
    right: -40px;
}

/* Content Layout */
.stynt-popup-content {
    position: relative;
    z-index: 2;
    color: #f8fafc;
}

/* Badge Style */
.stynt-popup-badge {
    display: inline-block;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #00f2fe;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.1);
}

/* Heading & Subheading */
.stynt-popup-heading {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.stynt-popup-subheading {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 15px 0;
}

.stynt-popup-body-text {
    font-size: 14px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0 0 25px 0;
}

/* Features Grid */
.stynt-popup-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.stynt-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stynt-feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}

.stynt-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
}

.stynt-feature-text {
    font-size: 13.5px;
    color: #f1f5f9;
    font-weight: 500;
}

/* Trust Text */
.stynt-popup-trust {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 25px;
}

/* CTA Actions */
.stynt-popup-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.stynt-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.stynt-btn-primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #0B1F3A;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.stynt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.stynt-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stynt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Footer Accent Text */
.stynt-popup-footer {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .stynt-popup-container {
        padding: 30px 20px;
    }
    .stynt-popup-heading {
        font-size: 24px;
    }
    .stynt-popup-features {
        grid-template-columns: 1fr;
    }
    .stynt-popup-actions {
        flex-direction: column;
    }
}
