/* Planloom Premium Utilities */

/* 1. Premium Modal */
.pl-premium-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    display: none; /* Hidden by default */
}

.pl-premium-modal.is-active {
    display: flex;
}

.pl-modal-backdrop,
.pl-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    animation: plFadeIn 0.3s ease;
}

.pl-modal-content,
.pl-modal-container {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: plSlideUpFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pl-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pl-modal-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* 2. Animations */
@keyframes plFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes plSlideUpFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}