.whatsapp-panel {
    display: none;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 48px 32px !important;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.whatsapp-panel.is-visible {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: whatsapp-panel-in 0.45s ease;
}

@keyframes whatsapp-panel-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.whatsapp-panel-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.32;
    pointer-events: none;
}

.whatsapp-panel-glow.one {
    background: #25D366;
    top: -90px;
    right: -40px;
}

.whatsapp-panel-glow.two {
    background: #4AF2E2;
    bottom: -100px;
    left: -50px;
}

.whatsapp-panel-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

.whatsapp-icon-ring {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 0 28px rgba(37, 211, 102, 0.28);
    animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-icon-ring i {
    font-size: 42px;
    color: #25D366;
}

@keyframes whatsapp-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(37, 211, 102, 0.22); }
    50% { transform: scale(1.06); box-shadow: 0 0 32px rgba(37, 211, 102, 0.45); }
}

.whatsapp-panel-title {
    color: #fff;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 10px;
}

.whatsapp-panel-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.whatsapp-message-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(74, 242, 226, 0.22);
    border-radius: 16px;
    padding: 16px 18px;
    color: #fff;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, #25D366 0%, #4AF2E2 100%);
    color: #042126;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-cta:hover {
    color: #042126;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.whatsapp-required-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.14);
    border: 1px solid rgba(255, 107, 107, 0.45);
    color: #ffb4b4;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.whatsapp-panel.is-page {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.whatsapp-success-icon {
    background: rgba(0, 227, 211, 0.12);
    border-color: rgba(0, 227, 211, 0.4);
    box-shadow: 0 0 28px rgba(0, 227, 211, 0.28);
}

.whatsapp-success-icon i {
    color: #4AF2E2;
}

.whatsapp-course-meta {
    text-align: right;
}

.whatsapp-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    border: 1px solid rgba(74, 242, 226, 0.35);
    border-radius: 16px;
    color: #4AF2E2;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
}

.whatsapp-home-link:hover {
    color: #fff;
    border-color: #4AF2E2;
}

@media (max-width: 575px) {
    .whatsapp-panel {
        min-height: 360px;
        padding: 32px 18px !important;
    }

    .whatsapp-panel-title {
        font-size: 22px;
    }

    .whatsapp-icon-ring {
        width: 76px;
        height: 76px;
    }
}
