/* ============================================
   TranzNova Virtual Conference Popup Modal
   Plain CSS - Include in your stylesheet
   ============================================ */

/* Overlay */
.tn-conference-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 30, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tn-conference-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tn-conference-overlay.active .tn-conference-modal {
    transform: scale(1) translateY(0);
}

/* Staggered entry animations */
.tn-conference-overlay.active .tn-conf-badge,
.tn-conference-overlay.active .tn-conf-content h2,
.tn-conference-overlay.active .conf-subtitle,
.tn-conference-overlay.active .tn-conf-feature,
.tn-conference-overlay.active .tn-conf-actions,
.tn-conference-overlay.active .tn-conf-urgency {
    animation: tnFadeUp 0.6s ease forwards;
    opacity: 0;
}

.tn-conference-overlay.active .tn-conf-badge { animation-delay: 0.15s; }
.tn-conference-overlay.active .tn-conf-content h2 { animation-delay: 0.25s; }
.tn-conference-overlay.active .conf-subtitle { animation-delay: 0.35s; }
.tn-conference-overlay.active .tn-conf-feature:nth-child(1) { animation-delay: 0.4s; }
.tn-conference-overlay.active .tn-conf-feature:nth-child(2) { animation-delay: 0.48s; }
.tn-conference-overlay.active .tn-conf-feature:nth-child(3) { animation-delay: 0.56s; }
.tn-conference-overlay.active .tn-conf-actions { animation-delay: 0.65s; }
.tn-conference-overlay.active .tn-conf-urgency { animation-delay: 0.75s; }

/* Modal Container */
.tn-conference-modal {
    position: relative;
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(4, 68, 254, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: row;
}

/* Close Button */
.tn-conf-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tn-conf-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: rotate(90deg) scale(1.1);
}

/* ---- LEFT VISUAL PANEL ---- */
.tn-conf-visual {
    width: 42%;
    min-height: 480px;
    position: relative;
    background: linear-gradient(160deg, #0a0e2a 0%, #0444fe 50%, #6366f1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    overflow: hidden;
}

.tn-conf-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -60px;
    right: -80px;
    animation: tnPulse 4s ease-in-out infinite;
}

.tn-conf-visual::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 116, 69, 0.25) 0%, transparent 70%);
    bottom: -40px;
    left: -50px;
    animation: tnPulse 5s ease-in-out infinite 1s;
}

/* Floating particles */
.tn-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 1;
}

.tn-particle:nth-child(1) { top: 15%; left: 20%; animation: tnFloat 6s ease-in-out infinite; }
.tn-particle:nth-child(2) { top: 70%; left: 15%; animation: tnFloat 8s ease-in-out infinite 1s; width: 4px; height: 4px; }
.tn-particle:nth-child(3) { top: 25%; right: 18%; animation: tnFloat 7s ease-in-out infinite 2s; width: 5px; height: 5px; }
.tn-particle:nth-child(4) { bottom: 20%; right: 22%; animation: tnFloat 5s ease-in-out infinite 0.5s; width: 3px; height: 3px; }
.tn-particle:nth-child(5) { top: 50%; left: 10%; animation: tnFloat 9s ease-in-out infinite 3s; width: 4px; height: 4px; }

/* Connection lines container */
.tn-conf-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.15;
}

.tn-conf-lines svg {
    width: 100%;
    height: 100%;
}

/* Globe illustration */
.tn-conf-globe {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 180px;
    margin-bottom: 24px;
}

.tn-conf-globe svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
}

/* Visual panel text */
.tn-conf-visual-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.tn-conf-visual-text .conf-label {
    display: inline-block;
    background: rgba(238, 116, 69, 0.2);
    border: 1px solid rgba(238, 116, 69, 0.4);
    color: #ffb799;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.tn-conf-visual-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.95;
}

/* ---- RIGHT CONTENT PANEL ---- */
.tn-conf-content {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.tn-conf-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(4, 68, 254, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.tn-conf-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 12px;
}

.tn-conf-content h2 span {
    background: linear-gradient(135deg, #0444fe, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tn-conf-content .conf-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 28px;
}

/* Badge */
.tn-conf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(4, 68, 254, 0.08), rgba(99, 102, 241, 0.08));
    color: #0444fe;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    width: fit-content;
}

.tn-conf-badge i {
    font-size: 0.65rem;
    animation: tnBlink 1.5s ease-in-out infinite;
}

/* Feature highlights */
.tn-conf-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.tn-conf-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tn-conf-feature span {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
}

.tn-conf-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.tn-conf-feature-icon.blue { background: rgba(4, 68, 254, 0.08); color: #0444fe; }
.tn-conf-feature-icon.purple { background: rgba(99, 102, 241, 0.08); color: #6366f1; }
.tn-conf-feature-icon.orange { background: rgba(238, 116, 69, 0.08); color: #ee7445; }

/* CTA Buttons */
.tn-conf-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tn-conf-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0444fe, #6366f1);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 6px 24px rgba(4, 68, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.tn-conf-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1, #0444fe);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tn-conf-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(4, 68, 254, 0.45);
}

.tn-conf-cta:hover::before {
    opacity: 1;
}

.tn-conf-cta span,
.tn-conf-cta i {
    position: relative;
    z-index: 1;
}

.tn-conf-later {
    padding: 14px 24px;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.tn-conf-later:hover {
    border-color: #0444fe;
    color: #0444fe;
    background: rgba(4, 68, 254, 0.03);
}

/* Urgency note */
.tn-conf-urgency {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(238, 116, 69, 0.06), rgba(238, 116, 69, 0.02));
    border-left: 3px solid #ee7445;
    border-radius: 0 10px 10px 0;
}

.tn-conf-urgency i { color: #ee7445; font-size: 0.85rem; }
.tn-conf-urgency span { font-size: 0.8rem; color: #92400e; font-weight: 500; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes tnPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes tnFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-15px) translateX(8px); opacity: 0.8; }
    50% { transform: translateY(-5px) translateX(-5px); opacity: 0.5; }
    75% { transform: translateY(-20px) translateX(12px); opacity: 0.9; }
}

@keyframes tnBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes tnFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .tn-conference-modal {
        flex-direction: column;
        max-width: 440px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .tn-conf-visual {
        width: 100%;
        min-height: 200px;
        padding: 32px 24px;
    }

    .tn-conf-globe {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }

    .tn-conf-visual-text .conf-label { font-size: 0.6rem; }
    .tn-conf-visual-text h3 { font-size: 1rem; }

    .tn-conf-content {
        padding: 32px 24px;
    }

    .tn-conf-content h2 { font-size: 1.45rem; }

    .tn-conf-actions {
        flex-direction: column;
    }

    .tn-conf-cta,
    .tn-conf-later {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .tn-conf-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

@media (max-width: 420px) {
    .tn-conference-overlay {
        padding: 12px;
    }

    .tn-conf-content {
        padding: 24px 20px;
    }

    .tn-conf-content h2 { font-size: 1.25rem; }

    .tn-conf-feature span {
        font-size: 0.82rem;
    }
}