#aiTopupModal .fc-ai-topup-modal__dialog {
    width: min(100% - 2rem, 460px);
    max-width: 460px;
}

#aiTopupModal .fc-ai-topup-modal__content {
    position: relative;
    min-height: 0;
    padding: 1.5rem;
    border: 1px solid var(--fc-color-palette-dfe7f2);
    border-radius: 20px;
    background: var(--fc-color-surface);
    box-shadow: 0 24px 70px rgba(var(--fc-color-shadow-rgb), 0.2);
    text-align: center;
}

#aiTopupModal .modal-content::before {
    content: none;
    display: none;
}

.fc-ai-topup-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fc-color-palette-71839c);
    font-size: 1rem;
}

.fc-ai-topup-modal__close:hover,
.fc-ai-topup-modal__close:focus-visible {
    color: var(--fc-color-palette-304766);
    background: var(--fc-color-palette-f3f6fa);
}

.fc-ai-topup-modal__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    place-items: center;
    border-radius: 15px;
    background: var(--fc-color-palette-e8f6ed);
    color: var(--fc-color-palette-448b5a, #448b5a);
    font-size: 1.35rem;
}

.fc-ai-topup-modal__title {
    max-width: 380px;
    margin: 0 auto;
    color: var(--fc-color-text);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.fc-ai-topup-modal__text {
    margin: 0.65rem auto 0;
    color: var(--fc-color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.fc-ai-topup-modal__separator {
    height: 1px;
    margin: 1rem 0;
    background: var(--fc-color-palette-edf2f7);
}

.fc-ai-topup-modal__price {
    color: var(--fc-color-text);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.fc-ai-topup-modal__subtitle {
    margin-top: 0.35rem;
    color: var(--fc-color-text-muted);
    font-size: 0.82rem;
}

.fc-ai-topup-modal__submit {
    width: 100%;
    min-height: 44px;
    margin-top: 1rem;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 12px;
    background: var(--fc-color-primary);
    color: var(--fc-color-on-primary);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
}

.fc-ai-topup-modal__submit:hover,
.fc-ai-topup-modal__submit:focus-visible {
    background: var(--fc-color-primary-hover);
}

.fc-ai-topup-modal__submit:disabled {
    opacity: .7;
}

@media (max-width: 576px) {
    #aiTopupModal .fc-ai-topup-modal__content {
        padding: 1.25rem 1rem 1rem;
        border-radius: 16px;
    }

    .fc-ai-topup-modal__text br {
        display: none;
    }
}
