/* ===================== GATED TEASER ===================== */

.algocell-gated {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9fb;
    border-radius: 16px;
    border: 2px dashed #e0dfe5;
    margin: 30px 0;
}

.algocell-gated__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.algocell-gated__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.algocell-gated__text {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px;
}

.algocell-gated__btn {
    display: inline-block;
    padding: 14px 36px;
    background: #4F39F6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.algocell-gated__btn:hover {
    background: #3d2bd4;
    transform: translateY(-1px);
}

.algocell-gated__btn--full {
    width: 100%;
    padding: 16px;
}

/* ===================== MODAL ===================== */

.algocell-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.algocell-modal.is-open {
    display: flex;
}

.algocell-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.algocell-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1;
    animation: algocellSlideUp 0.3s ease;
}

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

.algocell-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.algocell-modal__close:hover {
    color: #333;
}

.algocell-modal__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.algocell-modal__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 28px;
}

/* ===================== FORM ===================== */

.algocell-form__group {
    margin-bottom: 20px;
}

.algocell-form__group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.algocell-form__group label .required {
    color: #ef4444;
}

.algocell-form__group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #e0dfe5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #fff;
}

.algocell-form__group input:focus {
    border-color: #4F39F6;
    box-shadow: 0 0 0 3px rgba(79, 57, 246, 0.1);
}

.algocell-form__checkbox {
    margin-bottom: 24px;
}

.algocell-form__checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.4;
}

.algocell-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #4F39F6;
}

.algocell-form__error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ===================== SUCCESS STATE ===================== */

.algocell-modal__success {
    text-align: center;
    padding: 20px 0;
}

.algocell-modal__success .algocell-gated__icon {
    margin-bottom: 12px;
}

/* ===================== LOADING STATE ===================== */

.algocell-gated__btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ===================== UNLOCKED CONTENT ===================== */

.algocell-gated-unlocked {
    margin: 30px 0;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 600px) {
    .algocell-modal__content {
        padding: 28px 20px;
        width: 95%;
    }

    .algocell-gated {
        padding: 40px 16px;
    }
}
