/* Popup Modal Styles - Glassy Design */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 360px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Background Media (Behind the glass content) */
.modal-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.modal-media-wrapper img,
.modal-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px) brightness(0.7);
}

.modal-lock-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography */
.modal-lock-title {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.modal-lock-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Plans List */
.modal-plans-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.modal-plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px dashed rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-plan-card.featured {
    border: 2px dashed #ff4500;
    background: rgba(255, 69, 0, 0.1);
}

.modal-plan-card:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}

.modal-plan-card .best-seller-badge {
    position: absolute;
    top: -11px;
    right: 15px;
    background: #ff4500;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}

.modal-plan-card .plan-name {
    font-weight: 600;
    font-size: 16px;
}

.modal-plan-card .plan-price {
    font-weight: 700;
    font-size: 18px;
}

.modal-plan-card.featured .plan-price {
    color: #ff4500;
}

.modal-plan-card.selected {
    border-style: solid;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* Footer CTA */
.footer-cta {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-instruction {
    color: #ff4500;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    text-transform: uppercase;
    margin: 0;
}

/* Emoji Seta iOS with Movement */
.ios-arrow {
    width: 22px;
    height: 22px;
    animation: point-up 1s infinite ease-in-out;
}

@keyframes point-up {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.modal-reassurance {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 8px;
}

/* Loading state */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 0;
}

.modal-loading .dots {
    display: flex;
    gap: 5px;
}

.modal-loading .dot {
    width: 8px;
    height: 8px;
    background: #ff4500;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite ease-in-out;
}

.modal-loading .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.modal-loading .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.modal-loading-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Scroll Lock */
body.modal-open {
    overflow: hidden;
}