.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--Cards);
    /* background: linear-gradient(145deg, #1a1a1a, #0d0d0d); */
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--text);
    position: relative;
    /* box-shadow: 10px 10px 50px var(--text); */
    /* color: var(--text); */

}



.pro-features {
    /* background: var(--probtn); */
    list-style: none;
    padding: 20px 0;
    color: var(--probtn);
}

.pro-features li {
    margin-bottom: 12px;
    color: var(--texttran);
}

.pro-features i {
    color: var(--btn);
    margin-left: 10px;
}

.price-tag {
    margin: 25px 0;
    font-size: 40px;
    color: var(--text);
}

.amount {
    font-weight: bold;
}

.period {
    font-size: 18px;
    color: var(--texttransparent);
}

.secure-text {
    margin-top: 20px;

}

.subscribe-btn {
    background: var(--icontransparent3);
    color: var(--texttran3);
    border: none;
    padding: 15 30;
    font-size: 18;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 90%;
    transition: 0.3s;
}

.sidebar-item {
    background: var(--icontransparent4);
    color: var(--texttran5);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 90%;
    transition: 0.3s;
    margin-top: 20px;
    /* display: none; */

}

.sidebar-itema {
    background: var(--icontransparent);
    color: var(--texttran1);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 90%;
    transition: 0.3s;
    margin-top: 20px;
    /* display: none; */

}

.subscribe-btn:hover {
    transform: scale(1.1);
    /* box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); */
}


.adminResetCounters {
    background: var(--icontransparent3);
    color: var(--texttran3);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 90%;
    transition: 0.3s;
    margin-top: 20px;
    /* display: none; */

}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #555;
    cursor: pointer;
}

#pixelumSliderWrapper{
    width: 100%;
}

@media (min-width: 100px) and (max-width: 452px) {


    .modal {
        width: 100%;
        height: 100%;
    }

    .modal-content {
        border-radius: 20px;
        width: 90% !important;
    }

    .pro-badge {
        padding: 5px 15px;
        border-radius: 50px;
        font-weight: bold;
        margin: 20 0;
    }

    .pro-features {
        padding: 20px 0;
        /* background: rebeccapurple; */
    }

    .modal-content h2 {
        font-size: 21;
    }

    .modal-content p {
        font-size: 16;
    }

    .pro-features li {
        margin: 0;
        line-height: 1.6;
        font-size: 12;
    }

    .pro-features i {
        margin: 0 10;

    }

    .price-tag {
        margin-top: 10;
        font-size: 40px;
    }

    .amount {
        font-weight: bold;
    }

    .period {
        font-size: 12px;
        color: #777;
    }

    .secure-text {
        margin-top: 10px;
        font-size: 12 !important;
    }

    .subscribe-btn {
        font-size: 12;
        font-weight: bold;
        border-radius: 50px;
        width: 100%;
        padding: 10 0;
    }

    .sidebar-item {
        font-size: 12;
        font-weight: bold;
        border-radius: 50px;
        width: 100%;
        padding: 10 0;
        margin-top: 20px;
    }

    .sidebar-itema {
        font-size: 12;
        font-weight: bold;
        border-radius: 50px;
        width: 100%;
        padding: 10 0;
    }

    .adminResetCounters {
        font-size: 12;
        font-weight: bold;
        border-radius: 50px;
        width: 100%;
        padding: 10 0;

    }

    .close-modal {
        right: 20px;
        top: 15px;
        font-size: 38px;
    }
}

/* خلفية المودال العامة */
.pro-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.88);
    backdrop-filter: blur(8px);
}

/* بطاقة المودال الرئيسية */
.pro-modal-card {
    position: relative;
    margin: 3% auto;
    max-width: 780px;
    background: var(--Cards);
    border: 1px solid var(--text);
    border-radius: 20px;
    padding: 28px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: fadeInModal 0.3s ease;
}

/* زر الإغلاق */
.pro-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    cursor: pointer;
    font-size: 26px;
    color: #9ca3af;
    transition: color 0.2s ease;
}
.pro-modal-close:hover {
    color: #fff;
}

/* ترويسة المودال */
.pro-modal-header {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pro-badge {
    display: inline-block;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    padding: 4px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.pro-modal-title {
    margin-top: 10px;
    font-size: 1.6rem;
    color: var(--text);
    font-weight: 800;
}

.pro-modal-subtitle {
    color: var(--texttran);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* حاوية مفتاح التبديل (Toggle Switch) */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 15px 0 25px 0;
}
.billing-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}
.billing-label.active,
.billing-label:hover {
    color: #fff;
}
.toggle-switch-bg {
    width: 52px;
    height: 28px;
    background: #374151;
    border-radius: 20px;
    padding: 3px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}
.toggle-switch-circle {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.savings-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 4px;
    font-weight: bold;
}

/* حاوية الكروت */
.plans-cards-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center , stretch;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 40 0 0;
}

.plans-loading-text {
    color: var(--texttran);
    padding: 0;
    text-align: center;
    width: auto;
}

/* ملاحظة الفوتر */
.pro-modal-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--texttran);
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 40 0 0;
}

.security-lock-icon {
    color: #10b981;
}

/* أنيميشن الظهور */
@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}