/* Popup Overlay Container */
#ftvp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent dark background */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    
    /* Fade-in animation starting state */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Modifier class to show popup */
#ftvp-popup-overlay.ftvp-show {
    opacity: 1;
    visibility: visible;
}

/* Pure hidden state for logic */
#ftvp-popup-overlay.ftvp-hidden {
    display: none !important;
}

/* Popup Content Wrapper */
.ftvp-popup-content {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    width: 95%;
    max-width: 960px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Animation base */
    transform: translateY(30px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#ftvp-popup-overlay.ftvp-show .ftvp-popup-content {
    transform: translateY(0) scale(1);
}

/* Header Area */
.ftvp-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    text-align: left;
}

.ftvp-heading {
    margin: 0;
    font-size: 36px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Improved Close Button */
.ftvp-close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.ftvp-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Cards Grid */
.ftvp-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Modern Card Design */
.ftvp-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;

    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: left;
}

.ftvp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(248, 126, 25, 0.15), 0 10px 10px -5px rgba(248, 126, 25, 0.1);
    border-color: #F87E19;
        text-decoration: none !important;
}

.ftvp-card-body {
    padding: 32px 24px;
    flex-grow: 1;
}

/* Enhanced Icons */
.ftvp-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(248, 126, 25, 0.1); /* Brand color transparency */
    color: #F87E19; /* Brand color */
}

.ftvp-card:hover .ftvp-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: #F87E19;
    color: #ffffff;
}

.ftvp-card-icon svg {
    width: 28px;
    height: 28px;
}

/* Typography */
.ftvp-card-title {
    font-size: 20px;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-weight: 700;
}

.ftvp-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Card Footer Action */
.ftvp-card-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
    text-decoration: none !important; /* Force no decoration */
}

.ftvp-card:hover .ftvp-card-footer {
    background: #F87E19;
    color: #ffffff;
    border-color: #F87E19;
    text-decoration: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 860px) {
    .ftvp-cards-container {
        grid-template-columns: 1fr;
    }
    
    .ftvp-popup-content {
        padding: 40px 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .ftvp-heading {
        font-size: 28px;
    }
    
    .ftvp-card-body {
        padding: 24px;
        display: flex;
        align-items: center;
    }
    
    .ftvp-card-icon {
        margin-bottom: 0;
        margin-right: 20px;
        flex-shrink: 0;
    }
    
    .ftvp-card-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
}
